eavanvalkenburg / sia

SIA alarm systems integration into Home Assistant
MIT License
48 stars 11 forks source link

Disabling night mode doesn't work #25

Closed dogghy14 closed 4 years ago

dogghy14 commented 4 years ago

Hi,

after setting the night mode, if I disable it using "Disarm" or "Night Mode Off", states on home assistant do not updates.

Many thanks, Andrea

eavanvalkenburg commented 4 years ago

Could you turn on logging and post them as well?

dogghy14 commented 4 years ago

Sure!

## Night Mode Off command
2020-08-03 16:58:23 INFO (MainThread) [custom_components.sia] Unhandled event code, will be set as attribute in the heartbeat. Code is: NP, Message: 503, Full event: Code: NP, Type: Arming Event,             Description: Night mode deactivated using device
2020-08-03 16:58:24 INFO (MainThread) [custom_components.sia] Unhandled event code, will be set as attribute in the heartbeat. Code is: NP, Message: 503, Full event: Code: NP, Type: Arming Event,             Description: Night mode deactivated using device
2020-08-03 16:58:24 INFO (MainThread) [custom_components.sia] Unhandled event code, will be set as attribute in the heartbeat. Code is: NP, Message: 503, Full event: Code: NP, Type: Arming Event,             Description: Night mode deactivated using device
2020-08-03 16:58:24 INFO (MainThread) [custom_components.sia] Unhandled event code, will be set as attribute in the heartbeat. Code is: NP, Message: 503, Full event: Code: NP, Type: Arming Event,             Description: Night mode deactivated using device

## Disarm command
2020-08-03 16:58:53 INFO (MainThread) [custom_components.sia] Unhandled event code, will be set as attribute in the heartbeat. Code is: NP, Message: 503, Full event: Code: NP, Type: Arming Event,             Description: Night mode deactivated using device
2020-08-03 16:58:53 INFO (MainThread) [custom_components.sia] Unhandled event code, will be set as attribute in the heartbeat. Code is: NP, Message: 503, Full event: Code: NP, Type: Arming Event,             Description: Night mode deactivated using device
2020-08-03 16:58:54 INFO (MainThread) [custom_components.sia] Unhandled event code, will be set as attribute in the heartbeat. Code is: NP, Message: 503, Full event: Code: NP, Type: Arming Event,             Description: Night mode deactivated using device
2020-08-03 16:58:54 INFO (MainThread) [custom_components.sia] Unhandled event code, will be set as attribute in the heartbeat. Code is: NP, Message: 503, Full event: Code: NP, Type: Arming Event,             Description: Night mode deactivated using device
eavanvalkenburg commented 4 years ago

and which type of alarm system is this?

dogghy14 commented 4 years ago

It's an Ajax Hub Plus

eavanvalkenburg commented 4 years ago

Quick fix is to add "NP": { "type": "alarm", "new_state": "disarmed" }, to the const.py file in the list of reactions, I'll include that as well in a next release.

dogghy14 commented 4 years ago

Great! It's work!

Thank you eavanvalkenburg

jilvero commented 3 years ago

This was never added? I have the same issue.

eavanvalkenburg commented 3 years ago

yeah, this was solved a while ago, and should also work in the official integration.

jilvero commented 3 years ago

yeah, this was solved a while ago, and should also work in the official integration.

There is a official integration now? So no need to use HACS for sia anymore?

eavanvalkenburg commented 3 years ago

Nope! It was added in 2021.6 initially, just with alarm_control_panel, 2021.7 added binary_sensors. There might be some differences in entity_names, and you first have to delete the integration, then the custom component in hacs, and then reboot, and then install the new integration.