-
Notifications
You must be signed in to change notification settings - Fork 20
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
Please do a release with serial & tcp support #11
Comments
Just found (closed) issue #1 which didn't see a lot of activity. I assume this was closed for lack of testing? |
there are 2 protocols tested by me and some users: HTTP and TCP. |
I just cloned the repository, and after a few trivial fixes (e.g. loop parameter still there) I got test_serial.py working, and it turned on my projector.
I'm not sure either. I just tried a modified version of the get_serial() method from ProjectorTCP, and that doesn't work so far. But I can experiment a bit more soon, and will let you know. In case it turns out impossible to retrieve the serial number from the projector, perhaps we can use something else to set the entity unique_id - e.g. based on the serial device file path may just be sufficient. |
Try to find out if it's possible to retrieve serial number or anything which makes device unique. |
The "SNO?" command appears to work - even when the projector is not turned on. I implemented the following method in ProjectorSerial:
Sample output from my projector: "NPCF210216L" I'll experiment a bit more and send a PR your way once I'm confident enough it works reliably. |
sounds good! When I got this PR I will prepare custom_component of epson for you, so you can test it thoroughly and then I can create PR in HA Core. |
Thanks! I've tested the code for a couple of days in practice, and just submitted a PR: #12 I had already extended the HA component with support to be able to test it in my HA instance, and I'd be happy to send a PR for that as well once we're happy with it. See https://github.com/markbergsma/home-assistant-core/tree/epson-serial and let me know what you think. |
ok, I will check this. For now you can wait with PR to HA as I have to remove configuration.yaml. option in first place as it's should be removed in 2021.9 version. |
Can you test if polling would work for serial connection for your projector? |
I'm... not sure what you mean by polling here? |
sorry, no polling, but I meant subscription to events sent by projector |
I'm not aware of any support for push updates over the serial connection/protocol, so I think it's down to polling for now. The serial code as well as my updated HA component appears to have been working well for the past few weeks here. |
@markbergsma hey, is there a plan to merge your branch changes to HA? |
@martimarkov PR is merged, just HA component needs to be adapted to work with it. |
I have a serial projector but interestingly enough it doesn’t seem to work with the current library.
If I run the code on my Mac - everything is fine. As soon as I try to run it on hass - can’t seem to connect reliably to the projector. I’m not very familiar with serial connectors but maybe it’s the lack of signal strength as hass is running on a mini pc and the cable is over 10m long. But it does work on the Mac with identical config.
I’ve ordered a new cable so let’s see what will happen
—
MM
… On 22 Nov 2021, at 21:26, Pawel ***@***.***> wrote:
@martimarkov PR is merged, just HA component needs to be adapted to work with it.
In December I can create some custom component for tests, but I'd need someone help as I don't own projector with serial support.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Yes, I can try to update my custom HA component with the latest HA code soon, now this library code is published. Unfortunately, I have less need for this code since I wrote it, as my old projector (EH-TW3200) has died in the mean time. But my new one (EH-TW9400) still has a serial port alongside LAN, so I suppose I can test it with that. |
I'm fairly new to HA after coming over from years of using openhab. I have an older Epson serial projector that I was using successfully in openhab via a Tasmota Serial-to-TCP-Bridge. I've been struggling to get this working in HA and I stumbled upon this. It appears the Epson integration will only attempt to talk ESC/VP.net and not ESC/VP when using TCP which of course my serial only projector fails to respond to. Is there any way this code could be adapted to use a TCP bridge like in my case ? |
@daza67 are you able to write code in python? I'm missing somebody who can test and fix issues for serial connected device. |
I'm a novice with python but have written code before in other languages,
willing to give it a crack. The projector I have is connected via a tasmota
serial tcp bridge.
…On Fri, May 6, 2022 at 4:36 PM Pawel ***@***.***> wrote:
@daza67 <https://github.com/daza67> are you able to write code in python?
I'm missing somebody who can test and fix issues for serial connected
device.
—
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AINWQYBBSSFGWMMUKP4DO4DVIS4W7ANCNFSM5BK72E6Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I wrote a serial home assistant integration on HACS for my Epson Home Cinema https://github.com/amosyuen/ha-epson-projector-link. Feel free to refer to it if it's helpful. |
I also have a Epson projector with only a serial port. Been using it with openhab using ser2net, now migrating to home assistant and trying to find a solution. Happy to test anything you have, I am familiar with python. |
I have tested this library and it works great with my projector via serial. Are there still plans to extend the home assistant integration to have a serial option? |
If somebody would make PR to this lib and HA component I'd be happy to merge it. |
I have created a PR for this. |
@pszafer any chance you can have a look at the PR? I have been using it for a few weeks now without issue. |
I already told on discord that this pr looks good to me but I'm unable to test it. I added comment in PR as well |
Excellent, thanks. |
I'd be grateful if you could do a release with the Serial & TCP support that appears to have been present in the code for some time. :) Are there any remaining issues with it? Can I help test it?
I was looking into adding support for it to the Home Assistant integration, but then found that the version 0.4.2 release doesn't have it yet. My older projector (EH-TW3200) doesn't yet have a LAN port.
The text was updated successfully, but these errors were encountered: