I have an automation built to run based on a light switch being turned on/off. Works well, however, two of the actions are an IR Blaster to a dumb TV and dumb space heater. So, regardless if I’m turning either “on” or “off”, the IR blaster sends a “power” signal to them, and it acts as a toggle.
I already have a switch built within HA to set an on or off status. However, if the heater (for example) manually is turned off, I don’t want it to turn on when I turn that switch off. For this exercise, we’re going to ignore the fact that either device may become out of sync with the HA switch.
My best solution I can come up with is a set of conditional actions. However, not sure how I can use one condition for one device and another condition for another device. Pardon my shorthand, but this is what I’m trying to do:
trigger: light on
if heater = off
call service: heater switch ON
else
end if
if TV = off
call service: TV switch ON
else
end if
I’m trying to avoid multiple separate automations: one for the tv and another for the heater. So, any help is appreciated. Thanks!