I’am currently controlling and updating the powerstate of my Samsung tv using an HDMI CEC usb adapter using simple scripts and a cron job. But this also means that it takes up to a minute until openhab realizes that the tv has been turned on. I would like to use this event power on my sat receiver and at the moment this takes some time with this solution
I’ve looked at the cec-client and I think it would be possible to build a better solution by listening to the output of the process and immediateley update the item in openhab if a power change is reported. This would also block the device, so the solution should also be able to receive commands and send them to the cec-client’s input.
Is there some existing binding or script that could do that or do I have to create my own binding to do this?