How can i determine (in an automation) what triggered e.g. a Light to turn on?
In the Logbook i can see e.g. “turned on by userxyz/automationxyz”
If i could set up an automation “trigger: light1 turned on // condition: turned on = empty / turned on = not by userxyz/automationxyz” i could assume that its been turned on by the regular Wallswitch, and set it to 100% brightness.
I played around with Things like:
alias: _Test with Trigger IDs
trigger:
- platform: state
entity_id: light.color_temperature_light_5
condition: []
action:
- service: notify.notify
data:
message: >
EntityID: {{ trigger.entity_id }} Platform: {{ trigger.platform }}
ContextID: {{ trigger.context_id }} ParentID: {{ trigger.parent_id }}
mode: single
But couldnt identify helpful data.
How can i work with what/who triggered an event in automations?
2 posts - 2 participants