Hi, have the following setup:
I have a Tasmota IR blaster, a Yamaha AV receiver a LG plasma TV, energy metering plugs for the yamaha and LG. The commands are send to Tasmota IR with MQTT payloads.
I have found the discrete IR commands for the Yamaha and LG for turning them off and on. But since no state is published I cant rely on a MQTT state topic for on/off state.
Best I want to use a media player device for the yamaha (the tv could be an mqtt switch). I want to set the on/off state based on the power consumption of both the TV and the receiver.
I want to be able to switch different inputs etc with IR commands.
How do I do that best?
Right now I have just configured buttons in lovelace for control.