Hi.
I’m configurating a shelly one switch. Works great, but I’d like to execute two different automations depending on if I turn it on via the wall switch or via home assistant (mqtt). Is it possible?
Via the wall switch I want to turn on the light attached to the shelly and another light connected to a sonoff device.
Via home assistant I want to turn on only the light attached to the shelly.
With this automation there’s no way to switch on only the “livingroom_light_shelly”.
- alias: Switch on living room lights
trigger:
platform: state
entity_id: switch.livingroom_light_shelly
from: 'off'
to: 'on'
action:
- service: switch.turn_on
data:
entity_id: switch.livingroom_light_sonoff
Any ideas?