Hello, thank you in advance for reading my question.
I have an automation script as follows:-
alias: Kitchen - Master Switch Off description: '' trigger: - platform: state entity_id: sensor.tradfri_on_off_switch condition:  action: - entity_id: light.kitchen_led_plug service: light.turn_off - entity_id: light.tradfri_bulb_4 service: light.turn_off - entity_id: light.tradfri_bulb_5 service: light.turn_off - entity_id: switch.sonoff_100033c557 service: switch.turn_off - entity_id: switch.sonoff_100033c860 service: switch.turn_off
Clicking the Execute button in the Automations YAML editor successfully turns off the 5 entities (and vice versa. I have another identical automation script except it says on)
My issue is that physically pressing the IKEA on/off switch in the kitchen does not turn on/off the related entities. It only turns off the IKEA bulbs and ignores the plug and Sonoff.
Being a noob, I’ve searched and tried different syntax but to no avail. Any piece of advice will be greatly appreciated.