Hi, i am using this code to know tv status, its returns ON or OFF.
binary_sensor: - platform: ping host: 192.168.1.237 scan_interval: 10 name: lg_tv_status
to turn on tv using broadlink IR transmitter, i use this code:
- platform: broadlink host: 192.168.1.23 mac: !secret mac_broadlink_felipe timeout: 15 switches: # Will work on most LG TVs tv_lg_felipe: friendly_name: "TV" command_on: 'JgBQAAABKJIVEBUQFTQVEBUPFRAVEBUPFjMWNBUQFTQVNBY0FTQVNBYPFRAVEBU0FRAVDxUQFRAVNBU0FTQWDxU1FTQVNBY0FQAFHgABKEkVAA0FAAAAAAAAAAA' command_off: 'JgBQAAABKJIVEBUQFTQVEBUPFRAVEBUPFjMWNBUQFTQVNBY0FTQVNBYPFRAVEBU0FRAVDxUQFRAVNBU0FTQWDxU1FTQVNBY0FQAFHgABKEkVAA0FAAAAAAAAAAA'
I would like to sync tv status to tv switch button, so if i try turn of tv and status already marked as off, it wont send power command again…