Hi guys! really rookie here. Im trying to create a switch to turn on/off the TV. As I
ve an old TV (2012) Ive done it using CEC_HDMI. I
ve created a scrip to turn on and another to turn it off and both works correctly. Now I want instead of the script to use the switch in the UI. I`ve created the folowing automation
- alias: Turn TV off
trigger:
platform: state
entity_id: switch.hdmi_0
to: 'off'
action:
service: hdmi_cec.standby
and the configuration file is as follows
hdmi_cec:
devices:
TV: 0.0.0.0
The result is that the switch is only showing the TV state but it does not respond to the changes, every time I change the switch.
Any suggestion on what I`m doing wrong?
Thank you in advance!