-
Notifications
You must be signed in to change notification settings - Fork 20
Use with rfc2217... small change required #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Should be easy enough. Feel free to create a pull request. I will look at it this week! |
Ok. Do you know if write timeout is actually needed for the local serial adapter? If not easiest commit would be to delete the line. I cannot easily test on my end. Thanks!
… On Jul 8, 2018, at 4:26 AM, Egor Tsinko ***@***.***> wrote:
Should be easy enough. Feel free to create a pull request. I will look at it this week!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@abarbaccia can you please provide me with a stack trace? I checked the pymonoprice/pymonoprice/__init__.py Lines 186 to 194 in 7e54cd3
|
I cannot do it at the moment .. possibly later tonight. But if you comment out the write_timeout definition, it should avoid the error.
… On Jul 11, 2018, at 5:40 PM, Egor Tsinko ***@***.***> wrote:
@abarbaccia can you please provide me with a stack trace? I checked the pyserial sources and noticed that rfc2217 implementation has both timeout and write_timeout.
In my case pymonoprice failed when I actually tried opening the port at line 194:
https://github.com/etsinko/pymonoprice/blob/7e54cd349942bfe42a4c9aad0ad814ffff2b5109/pymonoprice/__init__.py#L186-L194
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Uh oh!
There was an error while loading. Please reload this page.
Hi thanks for the code. In my setup I have my home assistant box far from the amp. As a workaround I connect a rpi to the amp, and create an rfc2217 service to expose the serial port over tcp (there is a very simple server script in the pyserial docs that you can run as-is).
The monoprice home assistant component should be able to take a url as “rfc2217:\\ip:port”. The hangup is with pymonoprice, around line 190 in init where we define a write timeout. This does not exist for rfc2217 and it errors out. If I comment that line out, everything works fine and I can control my amp from home assistant (via the Pi over tcp!)
Any way to put a condition around that one line? Right now I stopped updating my ha container because it keeps requiring me to change the file again. Thanks!!
The text was updated successfully, but these errors were encountered: