Dilbert66 / esphome-vistaECP

This is an implementation of an ESPHOME custom component and ESP Library to interface directly to a Safewatch/Honeywell/Ademco Vista 15/20 alarm system using the ECP interface and very inexpensive ESP8266/ESP32 modules .
GNU Lesser General Public License v2.1
125 stars 21 forks source link

Invalid state armed_stay for alarm_control_panel #53

Closed rbauman70 closed 2 years ago

rbauman70 commented 3 years ago

Hi. I was getting the error:

Logger: homeassistant.components.template.alarm_control_panel
Source: components/template/alarm_control_panel.py:210
Integration: Template (documentation, issues)
First occurred: 9:13:22 AM (1 occurrences)
Last logged: 9:13:22 AM

Received invalid alarm panel state: armed_stay. Expected: armed_away, armed_home, armed_night, arming, disarmed, pending, triggered, unavailable

As a workaround, I replaced armed_stay with armed_home in the value_template:

value_template: "{{ states('sensor.vistaalarm_system_status') | replace('armed_stay', 'armed_home')}}" Using HA core-2021.8.8

knifesk commented 3 years ago

+1 on this. It worked for me

Dilbert66 commented 3 years ago

Alternatively you can change line 50 in vistalarm.h to be armed_home instead of armed_stay

  const char* const STATUS_STAY = "armed_home";

I'll change it in the code when I get a chance.