nutechsoftware / alarmdecoder-webapp

Web application for interfacing with the AlarmDecoder family of devices.
MIT License
49 stars 50 forks source link

Home Assistant integration, entity will not work in automation #90

Open bertiebeez opened 3 years ago

bertiebeez commented 3 years ago

I have a AD2PI recently purchased. This is working fine with Home assistant. I am trying to intergate a few 433mhz sensors and have them enabled by an automation that detects when the Alarm panel is armed. The automation does not work. Do you have any idea what could be the issue. Here is the code for the automation. I have tried also to trigger it on the state of the alarm panel rather than the "READY" attribute. Neither one will work.

- id: '1611450843281'
  alias: Enable 433mhz alarms from AD2pi
  description: ''
  trigger:
  - platform: state
    to: 'false'
    from: 'true'
    entity_id: alarm_control_panel.alarm_panel
    attribute: ready
  condition: []
  action:
  - condition: state
    state: 'on'
    entity_id: input_boolean.alarm_enable
  mode: single
htcheng commented 3 years ago

Under "Developer Tools" in your Home Assistant Lovelace interface, you can investigate the various states of devices and entities. If you pull up the alarm_control_panel.alarm_panel entity, you'll see the state is "disarmed" or "armed_home" or some other variant of "armed" (e.g. "armed_away") -- " not "off" or "on" or "true" or "false". If you use one of those values, the trigger should work.

bertiebeez commented 3 years ago

Yes, I have tried all the various states and nothing seems to work. I can see the state change from disarmed to armed_away in developer tools.

Sent from Mail for Windows 10

From: P C Sent: Monday, February 1, 2021 7:54 PM To: nutechsoftware/alarmdecoder-webapp Cc: bertiebeez; Author Subject: Re: [nutechsoftware/alarmdecoder-webapp] Home Assistant integration,entity will not work in automation (#90)

Under "Developer Tools" in your Home Assistant Lovelace interface, you can investigate the various states of devices and entities. If you pull up the alarm_control_panel.alarm_panel entity, you'll see the state is "disarmed" or "armed" not "off" or "on" or "true" or "false". If you use one of those values, the trigger should work. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.