From 0537fcc4d8aaceceea8d973b7ca072b6bcd0724e Mon Sep 17 00:00:00 2001 From: David O'Neill Date: Sun, 21 Apr 2024 21:12:12 -0700 Subject: [PATCH] Fix for #96: Update handling of DSC 651 update Clear the `alarm`, `armed_*`, `eixt_delay` and `entry_delay` states when a 651 (Partition Not Ready) update is received from the EVL. This should properly clear an alarm triggered by a fire or panic activation. --- .../envisalink_new/pyenvisalink/dsc_envisalinkdefs.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/custom_components/envisalink_new/pyenvisalink/dsc_envisalinkdefs.py b/custom_components/envisalink_new/pyenvisalink/dsc_envisalinkdefs.py index 992623b..f9d1351 100644 --- a/custom_components/envisalink_new/pyenvisalink/dsc_envisalinkdefs.py +++ b/custom_components/envisalink_new/pyenvisalink/dsc_envisalinkdefs.py @@ -195,7 +195,16 @@ def __str__(self) -> str: "name": "Not Ready", "handler": "partition_state_change", "state_change": True, - "status": {"ready": False, "alpha": "Not Ready"}, + "status": { + "ready": False, + "alarm": False, + "armed_stay": False, + "armed_zero_entry_delay": False, + "armed_away": False, + "exit_delay": False, + "entry_delay": False, + "alpha": "Not Ready", + }, }, "652": {"name": "Armed", "handler": "partition_state_change", "state_change": True}, "653": {