bitfocus / companion-module-requests

Repository for tracking module requests
97 stars 10 forks source link

LG Commercial Display #224

Open mixmastrbrock opened 4 years ago

mixmastrbrock commented 4 years ago

Looking to control LG displays. Already have figured out the control method, just would like some help getting this into Companion.

Displays are controlled with same Hex/ASCII characters as RS232. Just point a telnet or netcat command at the IP address and port 9761. Only different command is power on, but that's a simple WOL/Magic Packet. Currently controlling them using a script, but would love to have a tactile controller within my environment.

josephdadams commented 4 years ago

Are you looking to create this module yourself and you need help getting started? Or are you looking for someone else to write this for you? If that’s the case, consider posting the actual commands.

mixmastrbrock commented 4 years ago

Development is not in my wheelhouse, but I have enough know-how with terminal and ShellScript to figure out the control parameters. Here are the ASCII commands that can be sent.

https://support.justaddpower.com/kb/article/36-lg-rs232-control/

https://www.lg.com/us/business/download/resources/BT00001837/UV340C-U_Install_Manual_170825.pdf

Below are the commands that work in terminal for control: Power On wakeonlan -I <--ipaddress-->

Power Off echo -n -e "ka 01 00" | nc <--ipaddress--> 9761

Volume Up echo -n -e "mc 01 02" | nc <--ipaddress--> 9761

Volume Down echo -n -e "mc 01 03" | nc <--ipaddress--> 9761

Not sure if these commands are the best method for control, but this is how I accomplished it. Only other standing issue is to have a way to periodically poll the NIC with a status request to keep it awake. They tend to stop responding to WakeOnLAN after a few hours.