diff --git a/custom_components/bosch_shc/alarm_control_panel.py b/custom_components/bosch_shc/alarm_control_panel.py index f2e0f1a..98effc7 100644 --- a/custom_components/bosch_shc/alarm_control_panel.py +++ b/custom_components/bosch_shc/alarm_control_panel.py @@ -12,6 +12,7 @@ STATE_ALARM_ARMED_HOME, STATE_ALARM_ARMING, STATE_ALARM_DISARMED, + STATE_ALARM_TRIGGERED, Platform, ) @@ -126,6 +127,8 @@ def state(self): == SHCIntrusionSystem.Profile.CUSTOM_PROTECTION ): return STATE_ALARM_ARMED_CUSTOM_BYPASS + if self._device.alarm_state == SHCIntrusionSystem.AlarmState.ALARM_ON: + return STATE_ALARM_TRIGGERED return None @property diff --git a/custom_components/bosch_shc/manifest.json b/custom_components/bosch_shc/manifest.json index 936d290..84f617d 100644 --- a/custom_components/bosch_shc/manifest.json +++ b/custom_components/bosch_shc/manifest.json @@ -4,7 +4,7 @@ "config_flow": true, "documentation": "https://github.com/tschamm/boschshc-hass/blob/master/README.md", "requirements": ["boschshcpy==0.2.56"], - "version": "0.4.48", + "version": "0.4.49", "zeroconf": [{ "type": "_http._tcp.local.", "name": "bosch shc*" }], "iot_class": "local_push", "issue_tracker": "https://github.com/tschamm/boschshc-hass/issues",