Add "armed_by" and "disarmed_by" attributes #565
Replies: 5 comments 12 replies
-
There is an initiatingEntityId, which appears to be mapped to a user's name via a call to another API with that ID, which is how the name is retrieved and displayed in the Ring app/web console. Unfortunately, I haven't been able to quite work out the exact details, but maybe this doesn't really matter as I've considering just forwarding the ID itself, since it wouldn't be very difficult to figure out which ID maps to what person. |
Beta Was this translation helpful? Give feedback.
-
+1 for this feature. I'd like to write an automation that would send a notification to the person who just armed the house (whether they used their code at keypad or used Ring App). I could also see use cases of automations for disarmed by as already mentioned. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Finally managed to work out how to do this. There were two possible ways to go about it, try to grab the full arm/disarm event message as it happens, or query the event after the fact. I decided to go for option one even though it was more complex because I thought it would delay the event notification less (event API can sometimes be a little bit slow or throttled). Even grabbing the event update is a little bit tricky as there is still a delay as you have to query another API to get the user name. This adds a small delay to the update, but my testing showed it being ~100ms which seemed acceptable. The attributes are available on the alarm control panel entity and are as follows: lastArmedBy Feedback on this feature is greatly appreciated. Not that there can be things other than users that trigger alarm mode changes, so, for example, if there is a mode schedule in the Ring app, this will display as "device-schedule" instead of a username. |
Beta Was this translation helpful? Give feedback.
-
Was just using this in an automation and found that Guest Users do not show the name of the user you put in Ring, just come through as “user”. Assuming the ring api shows the name of the guest user? Would be great if that would add in the entry the name vs “user” for who armed/disarmed. |
Beta Was this translation helpful? Give feedback.
-
Was this every implemented? Just started using this and am not seeing my name when I arm/disarm |
Beta Was this translation helpful? Give feedback.
-
Does the Ring API make the name of the User who last Armed/Disarmed the system available? If so, could those be added as attributes (e.g. armed_by and disarmed_by) under the keypad_info sensor?
Use case - Disarming the system is usually the first thing we do in the morning, but my wife and I prefer different scenes. It would be nice to be able to differentiate between who disarms the alarm for use in automations.
Beta Was this translation helpful? Give feedback.
All reactions