Hi all,
I only found two abandoned threads asking the same question.
I want to establish an automation triggered by a switch and then sends a notify to only the user who did not switch the switch, so user 1 changed the switch and only user 2 should get the notify and vice versa.
Is there a know solution for this?
thanks in advance
The easiest way is to have 2 switches, I’m not sure how the automation knows who’s pressing the switch without an additional presence sensor.
A physical switch or a dashboard switch?
For physical switch, there is no way to tell. For a dashboard switch you can check the trigger.to_state.context.user_id
in your automation.
1 Like
Sorry for the delay, live with a small child is sometimes different
A switch on my Dashboard and switched from different phones/apps
Awesome, so I will play with:
trigger.to_state.context.user_id
Thanks