My bulb went on, at 3:12AM, right at my face while I was sleeping. There are no automations defined, but a lot of people have the app on their phones, so it could have been anyone.
My question is:
Is there a way to log who triggered a light or a switch. Optimal would be the username of the logged in account.
If that’s not possible, it definitively would be massive improvement adding this
Try to turn on something on their faces (one by one) and look to the reaction. I think that is the only way for now to figure it out
I might be wrong by the way
Wow. It being logged in the database and the action itself being shown in the logbook, from my perspective, it shouldn’t be too hard to show both in the logbook.
Bumping a thread will not help. You should open a feature request and if a lot of people vote on the feature request and if you are lucky, this might get the attention of the developers. However this still doesn’t mean that it gets implemented.
You can get this info yourself. But remember, if an automation triggered it, it will not contain a user_id. Also, user ID’s are only populated with non-custom lovelace cards, and only populated when someone uses the UI. In most cases, the context is empty.