From 196309ef5ffb83f83c8844e50294f1e16aa2066b Mon Sep 17 00:00:00 2001 From: drudgebg Date: Tue, 21 Mar 2023 14:05:03 +0200 Subject: [PATCH] Update binary_sensor.py --- custom_components/hon/binary_sensor.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/custom_components/hon/binary_sensor.py b/custom_components/hon/binary_sensor.py index f047945..dcbf52d 100644 --- a/custom_components/hon/binary_sensor.py +++ b/custom_components/hon/binary_sensor.py @@ -37,6 +37,20 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = { device_class=BinarySensorDeviceClass.DOOR, on_value="0", ), + ), + "TD": ( + HonBinarySensorEntityDescription( + key="attributes.lastConnEvent.category", + name="Connection", + device_class=BinarySensorDeviceClass.CONNECTIVITY, + on_value="CONNECTED", + ), + HonBinarySensorEntityDescription( + key="doorStatus", + name="Door", + device_class=BinarySensorDeviceClass.DOOR, + on_value="1", + ), ) }