Keep broardlink TV status in sync

Ive set up Brordlink with Home Assistant this week

All working well except my TV uses the same code for both off and on

I have some Tasmota BlitzWolf SHP smart plugs that measure current wondering if there is a way to use the value of current drawn to keep the status of the entity in sync? So if the value is over a threshold set the value to on without sending the IR code even if the on command hasn’t been called.

Yes, that’s what I do.
I have a single broadlink switch that’s the TVs on/off IR code, then have a template switch that uses the power reading (>40w) to determine the on/off status.
There might be cleaner ways to do it, but this works for me.

    livingroom_tv_power:
      friendly_name: "Livingroom TV Power Switch"
      value_template: "{{ states('sensor.livingroom_tv_outlet_power')|float > 40 }}"
      turn_on:
        service: switch.toggle
        data:
          entity_id: switch.livingroom_tv_power_ir
      turn_off:
        service: switch.toggle
        data:
          entity_id: switch.livingroom_tv_power_ir

that was a quick replay

thank you ill give this a go

thanks its working just takes about 5 mins to catch up waiting for the next mqtt message

You can also use a cheap esp8266 device if your tv has an usb port.

1 Like