My goal is to represent the state of my ikea tradfri outlet using my led panel, but use only one automation. With 2 automation I can easily do this, but I want less clutter in the automations UI.
My current setup looks like this:
Can you please write your logic then…what I seem to read is :
If [switch toggle] and [pc=on] then [if switch on] then [light] and [switch off] then [light off]
I guess??? you want
If [switch toggle] and [pc=on] then [light toggle]
…with the GUI ‘automations’ this is easy to do
The logic should be: “If switch on and pc on turn light on and set its color to red, if the switch is off and my pc is on turn the light on and set its color to green, if the pc is off turn it off”.
Since I use the light also for other notifications, I want to be sure it represents the correct state of the switch.
The answer is probably in the ‘choose’ then…use Automation-GUI and skip the first conditions, go straight to Actions, here you have the possiblity to choose multiple options ( an if/then/else alike setup )…if you want even more than that…templates remain but these could become daunting to maintain and then I would suggest two automation…for now I believe Choose would work for you