I’m trying to add HDMI CEC control to OpenHab so I can switch off all TV’s at once. I could do this by sending a command like echo "standby 0" | cec-client -s but then the remote for the TV stops working as I believe there can only be one HDMI-CEC client at a time.
Is there a way to tell the TV to switch off via Rasplex’s LibCEC? Perhaps a link via REST API or something similar?
But I need an external way to power down the tv that is not the remote. I was thinking perhaps there is an API call like for the rest of Plex. I want to use a 3rd party app that isn’t the remote or the Plex iOS app.
As far as I’m aware, there’s no API for OpenPHt or Rasplex for this purpose
What might be a possibility is to install the needed tools on the raspi itself, and build you own daemon. Be sure to do this on the part of the file system which is persistent across upgrades!
The commands to run are already on rasplex, they are the same as plex itself uses to control the TV, but if I access them directly, the TV stops sending HDMI commands to Plex.
Does the TV have ethernet/WIFI and a way to control it via the network? Otherwise you may need an IR Blaster connected to some form of embedded computer.
It is not a smart TV, old Samsung 32". I already have an IR blaster in the lounge, but it seems overkill to add one to the bedroom when the CEC commands are there and working, I just need to know how to send it a command and then hand back control to Rasplex.