Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robin-vandaele opened this issue Apr 8, 2022 · 2 comments
Labels
new feature New feature for supported devices

Comments

@robin-vandaele
Copy link

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
Copy link
Collaborator

elahd commented Apr 11, 2022

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
Copy link
Collaborator

elahd commented Apr 17, 2022

@robin-vandaele I started a discussion at home-assistant/architecture#757.

@elahd elahd added the new feature New feature for supported devices label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature for supported devices
Projects
None yet
Development

No branches or pull requests

2 participants