Skip to content
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

Still intressted to integrate network connection? #9

Closed
fabiankrauss opened this issue Aug 15, 2023 · 31 comments
Closed

Still intressted to integrate network connection? #9

fabiankrauss opened this issue Aug 15, 2023 · 31 comments

Comments

@fabiankrauss
Copy link

Hey there @rrooggiieerr !

You mentioned in your readme that:
"The same commands should work over a network connection, but I don't own such projector and have not implemented any network functionality. Contact me if you have a network connected BenQ projector and like this to work."

I own a BenQ with LAN Connection and im totally intressted to integrated that with you togehter!

BR
Fabian

@rrooggiieerr
Copy link
Owner

That sounds great Fabian!

I'm not using my projector a lot at the moment because of summer time and not being at home a lot, but I'll try to help you where needed.

The conecction and commands are actually handled in the benqprojector.py library, so thats where you should be to add the network connection.

Keep me posted on you progress and if you have any questions.

Rogier

@waazdakka
Copy link

Hello @rrooggiieerr!
I'm currently trying to connect my hass to my projector using lan. It has it's own IP address, and the only thing I could have get so far is this page when connecting from a web browser 😅
Capture d’écran 2023-08-18 à 14 36 06

I'm not sure how to use your library to connect from Home Assistant, since the IP address is not an acceptable setting in your integration panel:
Capture d’écran 2023-08-18 à 14 38 17

How are we supposed to use it?

Thanks a lot!! (and sorry for the noob questions ^^')

@Dodoooh
Copy link

Dodoooh commented Oct 12, 2023

hej @waazdakka and @rrooggiieerr

I am also at this point, have you @waazdakka already found out more or could somehow integrate it into Home Assistant?

thanks a lot!

@waazdakka
Copy link

Hello, I didn't tried anything more since my last post. But I'm still interested by the connection :)

@rrooggiieerr
Copy link
Owner

I actually implemented support for serial to networking bridges in the benqprojector.py library. But having said that, it looks like your projector is using Creston RoomView Connect which seems to be a different protocol.

What model of BenQ projector are you using?

Can you try using the benqprojector.py library from the command line and connect to it?

@waazdakka
Copy link

I actually have a W4000i (the US reference is HT4550i).
I don't even know how Creston RoomView Connect works, but I'll try tonight from the command line! Thanks for your support!

@rrooggiieerr
Copy link
Owner

I just released a major update to the integration: network support. Still very much in beta since I don't own a networked projector. Let me know if it works for you.

@Dodoooh
Copy link

Dodoooh commented Dec 21, 2023

thanks for implementing! @rrooggiieerr

but I'm already failing to integrate: "Unexpected error" can I send you any useful debug logs?
I have the BenQ W4000i (HT4550i).

@fabiankrauss
Copy link
Author

fabiankrauss commented Dec 21, 2023 via email

@rrooggiieerr
Copy link
Owner

Thanks for giving it a try! Unfortunately without luck, yet.

My first questions would be:

Can you ping your projector from your HA instance?
Can you telnet to port 8000 of your projector?
If so, can you execute a command like
*pow=?#
And what response do you get

If not to port 8000, is there an other port available on your projector that accepts telnet connections? Maybe you could do a portscan on your projector to see which ports are available.

The integration does not use any web based interface to communicate with the projector, so if the only way to communicate with your projector is web based that's not going to work, it needs to be telnet and it needs to accept commands in the *<key>=<value># format.

@rrooggiieerr
Copy link
Owner

@Dodoooh, for your W4000i I read in the manual that there is support for "Control4", which I never heard off before but seems to be an other home automation platform. Maybe you can enable that and see if it makes a difference?

Screenshot 2023-12-21 at 12 33 16

@rrooggiieerr
Copy link
Owner

@fabiankrauss your W5700 seems to support a Network Standby Mode which disables the network connection after some time. Make sure it's disabled or try the integration with the projector turned on.

W5700 manual for reference

@fabiankrauss
Copy link
Author

fabiankrauss commented Dec 21, 2023 via email

@rrooggiieerr
Copy link
Owner

@fabiankrauss, yes, could be running on an other port too although the information I found online default port should be 8000. Maybe you need to enable something else in the menu. I didn't go trough the whole manual of your model, maybe you can have a good look in the manual and the menu options and see if there is something else that can be set.

Also, do a port scan of you projector over the full port range. and let me know which ports are open. Maybe that can give a hint.

@Dodoooh
Copy link

Dodoooh commented Dec 21, 2023

I have activated control4, thought I had to anyway, when I connect to the IP of the beamer I get the following UI, which does not work (flash in 2023 really benq?...)

Screenshot 2023-12-21 at 12 56 39

the port scan outputs the following:

Not shown: 995 closed tcp ports (conn-refused)
PORT     STATE    SERVICE
80/tcp    open  http
843/tcp   open  unknown
1023/tcp  open  netvenuechat
4352/tcp  open  pjlink
4774/tcp  open  converge
8000/tcp  open  http-alt
8080/tcp  open  http-proxy
41794/tcp open  crestron-cip
55950/tcp open  unknown
55953/tcp open  unknown

telnet on port 8000 does not seem to work for me

@rrooggiieerr
Copy link
Owner

@Dodoooh Can you try telnet on the other ports? Just give an enter when connected and see if anything returns

@fabiankrauss
Copy link
Author

looks like the same ports like @Dodoooh

Discovered open port 8080/tcp
Discovered open port 80/tcp
Discovered open port 843/tcp
Discovered open port 41794/tcp
Discovered open port 8000/tcp
Discovered open port 4352/tcp
Discovered open port 1023/tcp
Discovered open port 55953/tcp
Discovered open port 55950/tcp

@Dodoooh
Copy link

Dodoooh commented Dec 22, 2023

@Dodoooh Can you try telnet on the other ports? Just give an enter when connected and see if anything returns

have tried it with all ports unfortunately none of them returns anything useful on telnet

@rrooggiieerr
Copy link
Owner

Since I don't own a networked BenQ projector I think finding out how to make this work is not within reach for me. If you're able to find out how to make it work I'm more than happy to make the required changes to the library and integration.

The actual communication with the projector is done using the benqprojector library. You could try to use that manually as described in the Readme and add the -debug argument to the benqprojector CLI command. Like so:
python3 -m benqprojector telnet <host> <port> status --debug

Maybe that gives some extra hints on what's going on

@fabiankrauss
Copy link
Author

so what I can report:

PjLink on Port 4352 is working with putty and this class 1 comands: https://optics.fujifilm.com/projector/en/spec/manual/fp-z8000/technical_notes/pjlink/#pjlink_class1

but this is just basic.

@rrooggiieerr
Copy link
Owner

There is a PJLink integration for HA, but I don't think it's as extensive as my BenQ integration

https://www.home-assistant.io/integrations/pjlink/

@waazdakka
Copy link

Hello!
Sorry I wasn't able to run tests...

I found a way to access the flash interface of Crestron RoomView.
Here are the few settings we can found into this shinny interface!

Capture d’écran 2024-02-10 à 22 19 55

I tried a lot of ports (80 / 843 / 1023 / 8000 / 8080 and finally 41794) without any success :(

@mrZeffka
Copy link

mrZeffka commented Jun 5, 2024

Any news on the topic?

@rrooggiieerr
Copy link
Owner

Network connection is implemented and should work, although I never got feedback of anyone using it

@mrZeffka
Copy link

mrZeffka commented Jun 5, 2024

I'm trying to connect Benq W5700, but it doesn't work.

@rrooggiieerr
Copy link
Owner

You need to give more details on what you're trying to do and what message you get. I don't own a networked projector myself so am totally dependent on proper feedback

@mrZeffka
Copy link

mrZeffka commented Jun 5, 2024

When adding a network address, the following error appears:
Failed to connect

Error in log:
`Registrar: benqprojector.benqprojector
Source: /usr/local/lib/python3.12/site-packages/benqprojector/benqprojector.py:277
First message: 17:58:40 (2 сообщений)
Last message: 17:59:58

Failed to get projector command prompt, is your projector properly connected?`

@rrooggiieerr
Copy link
Owner

Can you telnet to the port and what do you get then

@mrZeffka
Copy link

mrZeffka commented Jun 5, 2024

Telnet opens for me only on port 4352. But this is a PJLink port. (It also cannot connect through standard integration PJLink, although I can do everything through the test application)
No command can be executed. Everything is as described above in this thread.

@rrooggiieerr
Copy link
Owner

Then this integration does not work for you

@waazdakka
Copy link

Hello @rrooggiieerr, I'm sorry I'm in the middle of moving so I can't test your integration for now but I promise I will add some elements here! Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants