alarmdotcom icon indicating copy to clipboard operation
alarmdotcom copied to clipboard

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

Open robin-vandaele opened this issue 3 years ago • 2 comments

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

robin-vandaele avatar Apr 08 '22 15:04 robin-vandaele

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 avatar Apr 11 '22 20:04 elahd

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

elahd avatar Apr 17 '22 22:04 elahd