Closed conrad66 closed 3 years ago
Am I the only one with this problem ? How do I solve this ?
Just release v0.3.6, please give it a try and let me know if this solves things!
I have the same issue with a leak sensor. After triggering, its state is on. I don't know what to do with it
I have version 0.3.7 installed
I would expect the alarm system to send a message saying the leak is over/gone/reset etc. but maybe that is not what happens. That would have to be a WH message, so if you turn on logging, and then trigger and reset those sensors, could you both (@conrad66 & @GlebOlden ) post some logs here so I can see what's going on? (I don't have leak or smoke sensors myself so not able to test!)
@eavanvalkenburg I enabled the log
Arming:
2020-09-03 14:01:43 WARNING (MainThread) [pysiaalarm.aio.sia_server] Last event: Content: & ,\|#AAA|Nri2/CG502]_11:01:43,09-03-2020, Zone: 2, Code: CG, Message: 502, Concerns: Area number, Type: Close Area, Description: System has been partially armed, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-03 11:01:43, Length: 0075, Sequence: 1297, CRC: 4797, Calc CRC: 4797, Message type: Close Area, Encrypted Content: EC70F6884DCA95CA4264C8AC9F482D4DFFB7EB0DF63F1BDB346EA66AF0592709D62C9181D18A379D4221F6716F012B56, Full Message: "*SIA-DCS"1297L0#AAA[EC70F6884DCA95CA4264C8AC9F482D4DFFB7EB0DF63F1BDB346EA66AF0592709D62C9181D18A379D4221F6716F012B56., gave error in user function: '8124_AAA_2_alarm'. 2020-09-03 14:01:43 WARNING (MainThread) [pysiaalarm.aio.sia_server] Last event: Content: 'P5H|#AAA|Nri3/CG502]_11:01:43,09-03-2020, Zone: 3, Code: CG, Message: 502, Concerns: Area number, Type: Close Area, Description: System has been partially armed, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-03 11:01:43, Length: 0075, Sequence: 1298, CRC: A831, Calc CRC: A831, Message type: Close Area, Encrypted Content: 96FABC30AEE92979D2CCEB5B149DE8167419C93953055B2DAD02C067DCA94045E8B76330C66CE14E48C44C3E4C1725F2, Full Message: "*SIA-DCS"1298L0#AAA[96FABC30AEE92979D2CCEB5B149DE8167419C93953055B2DAD02C067DCA94045E8B76330C66CE14E48C44C3E4C1725F2., gave error in user function: '8124_AAA_3_alarm'.
Disarming:
2020-09-03 14:02:38 WARNING (MainThread) [pysiaalarm.aio.sia_server] Last event: Content: \geDQ|#AAA|Nri2/OG502]_11:02:37,09-03-2020, Zone: 2, Code: OG, Message: 502, Concerns: Area number, Type: Open Area, Description: System has been partially disarmed, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-03 11:02:37, Length: 0075, Sequence: 1301, CRC: 28C9, Calc CRC: 28C9, Message type: Open Area, Encrypted Content: C58B6E157328E150D16D0B314391869C51DD772F27830B661A10FB485DAA1C89220F8AE3D0529FC346B76CF87DAB4671, Full Message: "*SIA-DCS"1301L0#AAA[C58B6E157328E150D16D0B314391869C51DD772F27830B661A10FB485DAA1C89220F8AE3D0529FC346B76CF87DAB4671., gave error in user function: '8124_AAA_2_alarm'. 2020-09-03 14:02:38 WARNING (MainThread) [pysiaalarm.aio.sia_server] Last event: Content: C;vdE+|#AAA|Nri3/OG502]_11:02:38,09-03-2020, Zone: 3, Code: OG, Message: 502, Concerns: Area number, Type: Open Area, Description: System has been partially disarmed, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-03 11:02:38, Length: 0075, Sequence: 1302, CRC: 087D, Calc CRC: 087D, Message type: Open Area, Encrypted Content: 91B6B1CFD9D87FE37BBAD40B909E8D242E4E63DBE2FBE02631B2B202D962CFA81AF8C4BBE215A5BB33CDE762721C3CEB, Full Message: "*SIA-DCS"1302L0#AAA[91B6B1CFD9D87FE37BBAD40B909E8D242E4E63DBE2FBE02631B2B202D962CFA81AF8C4BBE215A5BB33CDE762721C3CEB., gave error in user function: '8124_AAA_3_alarm'.
There are no messages when the leak sensor is triggered. Although in the Ajax app the sensor shows the current state.
Thanks @GlebOlden those codes CG and OG map to setting a alarm (so not a water or smoke sensor) to armed away and disarmed, but it seems like you have it setup with just 1 zone for this account, while you are using 3, is that correct?
In this file the codes are mapped to actions, so for moisture the codes WA and WH to be sent by the alarm, this is also documented by ajax themselves.
PS: use triple ` (ticks) around the logging blocks, makes them easier to read!
@eavanvalkenburg I reinstalled the SIA component and set 3 zones in the settings.
When the leak sensor is triggered, the following message is displayed in the log:
2020-09-03 15:09:35 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 34250075"*SIA-DCS"1407L0#AAA[BE6E6724176E2FCDC2F94C33F90091D9A7C2B049920EDD97B6CB2001E63265ACBEC20FA32F60C7B3AF10613504F61C38 2020-09-03 15:09:35 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: #>9VxYvm|#AAA|Nri1/WA2]_12:09:34,09-03-2020, Zone: 1, Code: WA, Message: 2, Concerns: Zone or point, Type: Water Alarm, Description: Water detected at protected premises, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-03 12:09:34, Length: 0075, Sequence: 1407, CRC: 3425, Calc CRC: 3425, Message type: Water Alarm, Encrypted Content: BE6E6724176E2FCDC2F94C33F90091D9A7C2B049920EDD97B6CB2001E63265ACBEC20FA32F60C7B3AF10613504F61C38, Full Message: "*SIA-DCS"1407L0#AAA[BE6E6724176E2FCDC2F94C33F90091D9A7C2B049920EDD97B6CB2001E63265ACBEC20FA32F60C7B3AF10613504F61C38.. 2020-09-03 15:09:47 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 34250075"*SIA-DCS"1407L0#AAA[BE6E6724176E2FCDC2F94C33F90091D9A7C2B049920EDD97B6CB2001E63265ACBEC20FA32F60C7B3AF10613504F61C38 2020-09-03 15:09:47 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: #>9VxYvm|#AAA|Nri1/WA2]_12:09:34,09-03-2020, Zone: 1, Code: WA, Message: 2, Concerns: Zone or point, Type: Water Alarm, Description: Water detected at protected premises, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-03 12:09:34, Length: 0075, Sequence: 1407, CRC: 3425, Calc CRC: 3425, Message type: Water Alarm, Encrypted Content: BE6E6724176E2FCDC2F94C33F90091D9A7C2B049920EDD97B6CB2001E63265ACBEC20FA32F60C7B3AF10613504F61C38, Full Message: "*SIA-DCS"1407L0#AAA[BE6E6724176E2FCDC2F94C33F90091D9A7C2B049920EDD97B6CB2001E63265ACBEC20FA32F60C7B3AF10613504F61C38.. 2020-09-03 15:10:15 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.140352791730928] Connection closed by client 2020-09-03 15:10:18 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 23F40075"*SIA-DCS"1408L0#AAA[BE68F20C7D01A3D8AB0764CD39B36999179653ABD6C17B344673144391690B95F5DACCC86808CA720DDBAA1ECECA663E 2020-09-03 15:10:18 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: wy K|#AAA|Nri0/RP0000]_12:10:17,09-03-2020, Zone: 0, Code: RP, Message: 0000, Concerns: Unused, Type: Automatic Test, Description: Automatic communication test report, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-03 12:10:17, Length: 0075, Sequence: 1408, CRC: 23F4, Calc CRC: 23F4, Message type: Automatic Test, Encrypted Content: BE68F20C7D01A3D8AB0764CD39B36999179653ABD6C17B344673144391690B95F5DACCC86808CA720DDBAA1ECECA663E, Full Message: "*SIA-DCS"1408L0#AAA[BE68F20C7D01A3D8AB0764CD39B36999179653ABD6C17B344673144391690B95F5DACCC86808CA720DDBAA1ECECA663E.. 2020-09-03 15:11:12 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 2EBB0075"*SIA-DCS"1409L0#AAA[40688C26C6E13723DB7D42685826047C6F31AFF203B512CBFD1381441001E557460215660E6BC8D5526C8AAD9A78FBC6
After the sensor dries, the following message is displayed in the log:
2020-09-03 15:11:12 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 2EBB0075"*SIA-DCS"1409L0#AAA[40688C26C6E13723DB7D42685826047C6F31AFF203B512CBFD1381441001E557460215660E6BC8D5526C8AAD9A78FBC6 2020-09-03 15:11:12 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: /KQ;4|#AAA|Nri1/WH2]_12:11:11,09-03-2020, Zone: 1, Code: WH, Message: 2, Concerns: Zone or point, Type: Water Alarm Restore, Description: Water alarm condition eliminated, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-03 12:11:11, Length: 0075, Sequence: 1409, CRC: 2EBB, Calc CRC: 2EBB, Message type: Water Alarm Restore, Encrypted Content: 40688C26C6E13723DB7D42685826047C6F31AFF203B512CBFD1381441001E557460215660E6BC8D5526C8AAD9A78FBC6, Full Message: "*SIA-DCS"1409L0#AAA[40688C26C6E13723DB7D42685826047C6F31AFF203B512CBFD1381441001E557460215660E6BC8D5526C8AAD9A78FBC6.. 2020-09-03 15:11:19 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 19560075"*SIA-DCS"1410L0#AAA[C2D55DF36086E7C2869D38DBD81BA38276170AED08DC428456573464BB27261E8159C545C31D70757AF36E58ACAFA48D 2020-09-03 15:11:19 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: k,Y
and the sensor status does not change in any way.
You should see a change in the AAA_1_moisture binary_sensor in this case, so not sure what is happening because in my tests when I send a WA message I see the status chance as expected. Could you add _LOGGER.debug("Setting binary sensor to %s", new_on)
before https://github.com/eavanvalkenburg/sia/blob/eddc097b58ca5e59f435c73e2d2de2f1c54d5f36/custom_components/sia/binary_sensor.py#L148 and then reboot and test again?
@eavanvalkenburg Ok. I did it.
Log:
2020-09-04 10:39:43 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: y:Ho|#AAA|Nri1/WA2]_07:39:42,09-04-2020, Zone: 1, Code: WA, Message: 2, Concerns: Zone or point, Type: Water Alarm, Description: Water detected at protected premises, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-04 07:39:42, Length: 0075, Sequence: 1958, CRC: DD78, Calc CRC: DD78, Message type: Water Alarm, Encrypted Content: 900F8097E27EC33487B5F213F447ED1680D16AE464F696515AEFE7D1FDE696FCCEDE36194D4B0ADCF31EB9E81ED5A443, Full Message: "*SIA-DCS"1958L0#AAA[900F8097E27EC33487B5F213F447ED1680D16AE464F696515AEFE7D1FDE696FCCEDE36194D4B0ADCF31EB9E81ED5A443.. 2020-09-04 10:39:43 DEBUG (MainThread) [custom_components.sia.binary_sensor] Setting binary sensor to True 2020-09-04 10:39:56 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: D5090075"*SIA-DCS"1959L0#AAA[49E10A9C7F48EF7BF828C1DFD76E8F66C1CF9F000F1FE0061B77F41167E6CDE163799017E5002C3E20DFB9C42BBC425B 2020-09-04 10:39:56 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: :yF|#AAA|Nri1/WH2]_07:39:52,09-04-2020, Zone: 1, Code: WH, Message: 2, Concerns: Zone or point, Type: Water Alarm Restore, Description: Water alarm condition eliminated, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-04 07:39:52, Length: 0075, Sequence: 1959, CRC: D509, Calc CRC: D509, Message type: Water Alarm Restore, Encrypted Content: 49E10A9C7F48EF7BF828C1DFD76E8F66C1CF9F000F1FE0061B77F41167E6CDE163799017E5002C3E20DFB9C42BBC425B, Full Message: "*SIA-DCS"1959L0#AAA[49E10A9C7F48EF7BF828C1DFD76E8F66C1CF9F000F1FE0061B77F41167E6CDE163799017E5002C3E20DFB9C42BBC425B.. 2020-09-04 10:40:08 INFO (MainThread) [homeassistant.components.websocket_api.http.connection.140379261066976] Connection closed by client 2020-09-04 10:40:25 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: C6E00075"*SIA-DCS"1960L0#AAA[A5178168A9E5B5016DBA313CB2CF136E8D0B83CA357D2B70634EAB2843D478D98E5973AD4338F56A649AD2F91C65EA74 2020-09-04 10:40:25 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: PuVk|#AAA|Nri0/RP0000]_07:40:24,09-04-2020, Zone: 0, Code: RP, Message: 0000, Concerns: Unused, Type: Automatic Test, Description: Automatic communication test report, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-04 07:40:24, Length: 0075, Sequence: 1960, CRC: C6E0, Calc CRC: C6E0, Message type: Automatic Test, Encrypted Content: A5178168A9E5B5016DBA313CB2CF136E8D0B83CA357D2B70634EAB2843D478D98E5973AD4338F56A649AD2F91C65EA74, Full Message: "*SIA-DCS"1960L0#AAA[A5178168A9E5B5016DBA313CB2CF136E8D0B83CA357D2B70634EAB2843D478D98E5973AD4338F56A649AD2F91C65EA74..
The state of the sensor:
binary_sensor.8124_aaa_1_moisture
on
account: AAA ping_interval: 0:01:00 zone: 1 friendly_name: 8124 - AAA - zone 1 - moisture device_class: moisture
The sensor remains on. Sensor continues to show " wet"
Yeah looks like the WH message isn't being parsed correctly, strange, let me think about this one
Just created a new release that I think solves this issue, let me know!
@eavanvalkenburg I have updated the SIA component to version 0.3.8. But nothing has changed. Here's the log:
2020-09-04 13:46:50 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: zUQ2n|#AAA|Nri1/WA2]_10:46:50,09-04-2020, Zone: 1, Code: WA, Message: 2, Concerns: Zone or point, Type: Water Alarm, Description: Water detected at protected premises, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-04 10:46:50, Length: 0075, Sequence: 2158, CRC: F625, Calc CRC: F625, Message type: Water Alarm, Encrypted Content: CEA3C9A347EC31BF030844936BFDFC4F5E833861A88ABC14C5F933CBC292C288B350985111CD3637D215417D43DADB09, Full Message: "*SIA-DCS"2158L0#AAA[CEA3C9A347EC31BF030844936BFDFC4F5E833861A88ABC14C5F933CBC292C288B350985111CD3637D215417D43DADB09.. 2020-09-04 13:46:50 DEBUG (MainThread) [custom_components.sia.binary_sensor] Setting binary sensor to True 2020-09-04 13:46:51 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: D49F0075"*SIA-DCS"2159L0#AAA[AC17D2F569F7CDD4F5DF787F48946A292D12A0C87F173BDE1D15566A7D9AD0517478A5047DD21D06273B527B242E83E7 2020-09-04 13:46:51 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: 4?-f#>|#AAA|Nri0/RP0000]_10:46:51,09-04-2020, Zone: 0, Code: RP, Message: 0000, Concerns: Unused, Type: Automatic Test, Description: Automatic communication test report, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-04 10:46:51, Length: 0075, Sequence: 2159, CRC: D49F, Calc CRC: D49F, Message type: Automatic Test, Encrypted Content: AC17D2F569F7CDD4F5DF787F48946A292D12A0C87F173BDE1D15566A7D9AD0517478A5047DD21D06273B527B242E83E7, Full Message: "*SIA-DCS"2159L0#AAA[AC17D2F569F7CDD4F5DF787F48946A292D12A0C87F173BDE1D15566A7D9AD0517478A5047DD21D06273B527B242E83E7.. 2020-09-04 13:47:00 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: A4A00075"*SIA-DCS"2160L0#AAA[DEDAAF3F29995D71C82D1B6F8AF8EFAD09444784CCA8C07B48598DF787E4FA196AC02F9132F7AC797322A411C8213232 2020-09-04 13:47:00 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: Y;QST:wc|#AAA|Nri1/WH2]_10:47:00,09-04-2020, Zone: 1, Code: WH, Message: 2, Concerns: Zone or point, Type: Water Alarm Restore, Description: Water alarm condition eliminated, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-04 10:47:00, Length: 0075, Sequence: 2160, CRC: A4A0, Calc CRC: A4A0, Message type: Water Alarm Restore, Encrypted Content: DEDAAF3F29995D71C82D1B6F8AF8EFAD09444784CCA8C07B48598DF787E4FA196AC02F9132F7AC797322A411C8213232, Full Message: "*SIA-DCS"2160L0#AAA[DEDAAF3F29995D71C82D1B6F8AF8EFAD09444784CCA8C07B48598DF787E4FA196AC02F9132F7AC797322A411C8213232.. 2020-09-04 13:47:51 DEBUG (MainThread) [pysiaalarm.aio.sia_server] Incoming line: 21120075"*SIA-DCS"2161L0#AAA[3BEB9BFEA5F240DC8196A43F9FEFDF704A9E46C4D22EF6F8855AA8E9DFBF6F11433F3833289B60C7EDC454FAF329EFD9 2020-09-04 13:47:51 DEBUG (MainThread) [pysiaalarm.base_sia_server] Parsed event: Content: j,|#AAA|Nri0/RP0000]_10:47:51,09-04-2020, Zone: 0, Code: RP, Message: 0000, Concerns: Unused, Type: Automatic Test, Description: Automatic communication test report, Account: AAA, Receiver: None, Prefix: L0, Timestamp: 2020-09-04 10:47:51, Length: 0075, Sequence: 2161, CRC: 2112, Calc CRC: 2112, Message type: Automatic Test, Encrypted Content: 3BEB9BFEA5F240DC8196A43F9FEFDF704A9E46C4D22EF6F8855AA8E9DFBF6F11433F3833289B60C7EDC454FAF329EFD9, Full Message: "*SIA-DCS"2161L0#AAA[3BEB9BFEA5F240DC8196A43F9FEFDF704A9E46C4D22EF6F8855AA8E9DFBF6F11433F3833289B60C7EDC454FAF329EFD9..
Just had a thought, please change line 208 to if new_state is not None:
Just added this to new release, please try it and let me know!
Номе Assisnant 0.112.4 Component v0.3.5 The configuration is made in integrations After simulating a water leak and eliminating it, the leak sensor continues to show " wet" binary_sensor.8226_58ad94_1_moisture = on
warning in log: 2020-07-17 13:36:55 WARNING (MainThread) [pysiaalarm.base_sia_server] Decrypting last line: 69D80078"*SIA-DCS"1408L0#58AD94[50F5F6130B03555799A827B762CF45255A05AC5286EBFF76856CBD27B52FD74C4C3964F666FFED8671C2D79F81E6740F could not be parsed as a SIAEvent, content: q|#58AD94|Nri0/RP0000]_10:36:54,07-17-2020
I didn't check the other sensors ......