pyalarmdotcom / alarmdotcom

Custom component to allow Home Assistant to interface with Alarm.com
MIT License
116 stars 35 forks source link

Is it possible to read arming state when user has no access to the arming codes #109

Open robin-vandaele opened 2 years ago

robin-vandaele commented 2 years ago

Hi If I want to make a restricted alarmdotcom user (custom, who cannot read the arming codes), this integration cannot get the arming state. I would like to give my users as less Rights as possible. I would like to not allow security code access to this user, but still read the arming state with this integration.

Of not possible, no harm.

Sincerely

elahd commented 2 years ago

Thanks for the feedback. Possibly in a future release. Home Assistant doesn't have a read only concept for alarm control panels, lights, garage doors, etc. If you have read only access to an alarm system, Home Assistant will still show the Arm Home and Arm Away buttons. It's a bad experience.

There are two options here:

1) Build custom "read only" sensors in this integration for all supported Alarm.com devices. I.e.: A "sensor" type entity for your alarm control panel. 2) Petition HA devs to implement read only modes on an entity-by-entity basis. Once that's done, update this integration to use that feature.

There's also a third option of just not breaking on read-only devices, showing them as-is in HA with controls that do nothing.

In v0.2.4 of this integration and v0.2.6 of pyalarmdotcomajax, I released a "read_only" attribute for all supported devices. This can be used for building out either one of the two above options.

elahd commented 2 years ago

@robin-vandaele I started a discussion at https://github.com/home-assistant/architecture/discussions/757.