rrooggiieerr / homeassistant-benqprojector

Home Assistant integration for BenQ projectors over the serial (and network?) interface.
Apache License 2.0
22 stars 1 forks source link

Network Support W5700 #3

Closed coehne closed 1 year ago

coehne commented 1 year ago

Hi! I have a W5700 with LAN support. Want to figure out how to make it run? :) Unfortunately the Web UI of the projector is done with adobe flash...

Do you have any idea how to send the commands to the projector over LAN?

coehne commented 1 year ago

Using the pjlink cli (https://github.com/macoss/pjlink-cli) I was able to send "POWR 0" to turn the projector off and "POWR 1" to turn it back on. "LAMPE" also worked for me to get the lamp hours. Other commands from the benQ manual don't seen to work. And had to google for others who tried POWR 0 insted of POWER OFF like stated in the manual

Sources: The BenQ Networking Manual (https://esupportdownload.benq.com/esupport/PROJECTOR/UserManual/MH733/NG_EN_210428143533.pdf)

coehne commented 1 year ago

yeah, so I figured, the basic functions of the projector work fine with the already integrated PJLink integration :) https://www.home-assistant.io/integrations/pjlink/

So nevermind I guess?

rrooggiieerr commented 1 year ago

Hi @coehne , good to hear you've already got your projector working using PJLink. I wasn't aware the (some?) BenQ network connected projectors support PJLink, I will actually add this to the readme so future users can easily find this info.

The BenQ Networking Manual you link to is for the model MH733 projector which might explain why the commands differ from your model W5700 projector. To my understanding there are different command protocols for different series of BenQ projectors, and I can tell you first hand that even if you have the command set that officially applies to your particular model even then there are errors and deviations to what is documented.

If it's ok with you I close this issue.

coehne commented 1 year ago

Hi @rrooggiieerr, Yes, in the manual for my projector there is just a non working reference link to the "BenQ Network Projector Operation Guide" which is a generic one like the one I posted previously. So I guess there is no good documentation :/

However, I figured that the PJlink integration only allows to add the projector as media player which makes it integrate badly into automations. If I use your integration using the serial port, will the projector then be added as a device? Sorry, I am also very new to HA...

rrooggiieerr commented 1 year ago

Yes and no. When you use the serial port and your projector uses the same communication protocol as my integration implements then you will get an extra media player device which you can use to control on/off, input source and volume. On top of that you will get a dozen entities for color temperature, brightness, contrast.

Screenshot 2022-12-07 at 19 47 48 Screenshot 2022-12-07 at 19 48 05 Screenshot 2022-12-07 at 14 03 32

Screenshot 2022-12-07 at 19 46 44

rrooggiieerr commented 1 year ago

@coehne can you connect to port 8000 as described in this document?

https://esupportdownload.benq.com/esupport/Projector/Control%20Protocols/PU9530/RS232%20Control%20Guide_0_Windows7_Windows8_WinXP.pdf

coehne commented 1 year ago

Ah nice. Didn't see that before. I'm on the road now but will give it a try and come back to you.

coehne commented 1 year ago

@rrooggiieerr unfortunately, nothing happens, when I connect to port 8000 like in the manual. I only get a black screen when using the tera term program from the manual. Didn't figure out how to send the control commands with tera term. I guess I will first try to control the projector via the PJlink integration and hope that will work :) If not, I'll try IR or buy a RS232 to USB cable, but that would feel like giving up on the LAN integration 😞

rrooggiieerr commented 1 year ago

So it does connect? At least that's something. I think if you hit enter you will get a command prompt > and then you could type *pow=?# to get the projector power state

coehne commented 1 year ago

Yes, I only get a black terminal without any prompt or any reaction at all to any key presses.

rrooggiieerr commented 1 year ago

Do you use the telnet protocol?

coehne commented 1 year ago

I selected "other" like it was on the screenshot. Is it working via telnet?

rrooggiieerr commented 1 year ago

I have no idea, my projector doesn't have a network connection. But I'm guessing it's not encrypted like SSH but just plain text and then telnet should generally work

coehne commented 1 year ago

Nope, doesn't work when I select telnet, it just changes the port to 23. Same result sadly.

And you are not planning on adding PJlink support for your integration I guess 😃 ?

rrooggiieerr commented 1 year ago

Too bad! No, I'm not going to support PJLink, my projector doesn't support it. But feel free to use my integration as a blueprint to develop your own integration, or improve the existing PJLink integration. Good luck ;-)