Skip to content

Commit

Permalink
Report if alarm was triggered.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschamm committed Feb 18, 2023
1 parent 5c073db commit 7571dd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions custom_components/bosch_shc/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
STATE_ALARM_ARMED_HOME,
STATE_ALARM_ARMING,
STATE_ALARM_DISARMED,
STATE_ALARM_TRIGGERED,
Platform,
)

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bosch_shc/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7571dd5

Please sign in to comment.