JoeyEamigh / concord4ws

a project to connect the concord4 alarm panel with home assistant via websockets
2 stars 1 forks source link

Feature Request #1

Open Kdemontf opened 3 weeks ago

Kdemontf commented 3 weeks ago

There is an option when arming the panel to stay to to press key #4 immediately after arming and the panel, and the panel goes into Armed-Stay-No delay. This stops the panel from beeping for 30 seconds waiting for someone to leave (WAF issue). As per manual page 14: To arm to Level 2 or Level 3 with no delay using a touchpad:

  1. Close all perimeter doors and windows.
  2. Press 2, code to arm to Level 2, or press 3, code to arm to Level 3. Concord 4 User Manual 15 The system sounds two (Level 2) or three (Level 3) short beeps.
  3. Immediately press 4. Touch-pads display ARMED TO STAY NO DELAY or ARMED TO AWAY NO DELAY.

If I do this at the keypad it works. If I try from the HA UI, it does not. In addition, if I have the panel in the armed, stay, no delay mode, and try to restart HA the integration fails to start with this error message: Logger: concord4ws Source: runner.py:189 First occurred: 6:18:41 AM (25 occurrences) Last logged: 6:23:24 AM

1 validation error for StateReceivedMessage data -> partitions -> 1 -> armingLevel unexpected value; permitted: 'off', 'stay', 'away', 'phoneTest', 'sensorTest' (type=value_error.const; given=home; permitted=('off', 'stay', 'away', 'phoneTest', 'sensorTest')) 'Concord4WSClient' object has no attribute '_state'

If it is possible to add these states it would be appreciated. Once again thanks for this project, it has saved me from scrapping my panel.

JoeyEamigh commented 3 weeks ago

Hey!! I will take a look at that crash. As for the ability to arm with no delay, Home Assistant doesn't really have a good way to do that. See https://github.com/home-assistant/core/issues/59435. I will try and think of a way to make that possible. Right now there is a service added to Home Assistant, but not quite sure how to call it to be honest. Will keep you posted!