I am trying to use the whole context.user_id stuff, but I am seriously missing something!
Here is the result of the entire trigger structure, when I personally turn on a light in lovelace.
[ {'id': '1', 'idx': '1', 'platform': 'device', 'entity_id':
'light.altanlampah', 'from_state': <state light.altanlampah=off;
effect_list=['blink', 'breathe', 'okay', 'channel_change',
'finish_effect', 'stop_effect'], supported_color_modes=['brightness'],
linkquality=199, power_on_behavior=off, update=state=idle,
update_available=False, friendly_name=AltanLampaH, supported_features=45 @
2021-09-01T21:13:34.369730+02:00>, 'to_state': <state
light.altanlampah=on; effect_list=['blink', 'breathe', 'okay',
'channel_change', 'finish_effect', 'stop_effect'],
supported_color_modes=['brightness'], color_mode=brightness,
brightness=255, linkquality=199, power_on_behavior=off, update=state=idle,
update_available=False, friendly_name=AltanLampaH, supported_features=45 @
2021-09-01T21:13:36.577907+02:00>, 'for': None, 'attribute': None,
'description': 'state of light.altanlampah'} ]
Where is the context id??