Better source of the state changed #3702
Unanswered
buuuudzik
asked this question in
Automations & scripts
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature
I see that in entity.context there is id, user_id and parent_id but maybe I'm wrong but it looks that these values aren't very helpful and aren't very reliable.
It would be great to force setting some kind of reliable label so e.g. we could easily check what is the source of the state changed.
E.g. NodeRED, Switch Manager, Zigbee switch changed by the manual click, Visualization etc.
I have some experience scripting in KNX, and I really liked the ability to check the source that changed a specific object.
It would be great to introduce some predictable value/values that aren't uuuids but e.g.
NodeRED - NAME
Switch Manager - PUSHBUTTON
SCRIPT - NAME
AUTOMATION - NAME
ZIGBEE - SELF
etc.
Use cases
I want to easily check if the user switched on manually the light in the room with the automatic lights so I could allow to let it switched on while the day for 15 minutes and ignore the automatic mechanism.
Current workarounds
entity.context.user_id but it's very unreliable and not enough context
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions