sia-ha icon indicating copy to clipboard operation
sia-ha copied to clipboard

Please help me understand what I'm missing

Open thekoma opened this issue 3 years ago • 4 comments

Hi! I'm having problem into understand why all the sensors in home-assistant created by the plugin are unavailable. Seems that the messages are coming (even if with a wrong timestamp)L

Maybe is some kind of formatting?

homeassistant    | 2022-01-19 18:22:36 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 17:55:01+00:00
homeassistant    | 2022-01-19 18:22:54 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 63B40050"SIA-DCS"1660L0#000110[#000110|Nri0RP2^SL 1807110200065423^]_17:55:01,01-19-2022
homeassistant    | 2022-01-19 18:22:54 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '0', 'code': 'RP', 'message': '2^SL 1807110200065423^', 'xdata': None, 'timestamp': '17:55:01,01-19-2022'}
homeassistant    | 2022-01-19 18:22:54 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 17:55:01+00:00
homeassistant    | 2022-01-19 18:23:18 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 593B005F"SIA-DCS"1660L0#000110[#000110|Nri1BA503^Volum.Taverna   Appartam.Giorno ^]_17:55:48,01-19-2022
homeassistant    | 2022-01-19 18:23:18 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '1', 'code': 'BA', 'message': '503^Volum.Taverna   Appartam.Giorno ^', 'xdata': None, 'timestamp': '17:55:48,01-19-2022'}
homeassistant    | 2022-01-19 18:23:18 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 17:55:48+00:00
homeassistant    | 2022-01-19 18:23:36 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 593B005F"SIA-DCS"1660L0#000110[#000110|Nri1BA503^Volum.Taverna   Appartam.Giorno ^]_17:55:48,01-19-2022
homeassistant    | 2022-01-19 18:23:36 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '1', 'code': 'BA', 'message': '503^Volum.Taverna   Appartam.Giorno ^', 'xdata': None, 'timestamp': '17:55:48,01-19-2022'}
homeassistant    | 2022-01-19 18:23:36 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 17:55:48+00:00
homeassistant    | 2022-01-19 18:23:54 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 593B005F"SIA-DCS"1660L0#000110[#000110|Nri1BA503^Volum.Taverna   Appartam.Giorno ^]_17:55:48,01-19-2022
homeassistant    | 2022-01-19 18:23:54 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '1', 'code': 'BA', 'message': '503^Volum.Taverna   Appartam.Giorno ^', 'xdata': None, 'timestamp': '17:55:48,01-19-2022'}
homeassistant    | 2022-01-19 18:23:54 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 17:55:48+00:00
homeassistant    | 2022-01-19 18:24:12 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 593B005F"SIA-DCS"1660L0#000110[#000110|Nri1BA503^Volum.Taverna   Appartam.Giorno ^]_17:55:48,01-19-2022
homeassistant    | 2022-01-19 18:24:12 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '1', 'code': 'BA', 'message': '503^Volum.Taverna   Appartam.Giorno ^', 'xdata': None, 'timestamp': '17:55:48,01-19-2022'}
homeassistant    | 2022-01-19 18:24:12 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 17:55:48+00:00
homeassistant    | 2022-01-19 18:24:36 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 1128005F"SIA-DCS"1660L0#000110[#000110|Nri1BR503^Volum.Taverna   Appartam.Giorno ^]_17:55:50,01-19-2022
homeassistant    | 2022-01-19 18:24:36 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '1', 'code': 'BR', 'message': '503^Volum.Taverna   Appartam.Giorno ^', 'xdata': None, 'timestamp': '17:55:50,01-19-2022'}
homeassistant    | 2022-01-19 18:24:36 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 17:55:50+00:00
homeassistant    | 2022-01-19 18:24:54 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 1128005F"SIA-DCS"1660L0#000110[#000110|Nri1BR503^Volum.Taverna   Appartam.Giorno ^]_17:55:50,01-19-2022
homeassistant    | 2022-01-19 18:24:54 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '1', 'code': 'BR', 'message': '503^Volum.Taverna   Appartam.Giorno ^', 'xdata': None, 'timestamp': '17:55:50,01-19-2022'}
homeassistant    | 2022-01-19 18:24:54 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 17:55:50+00:00
homeassistant    | 2022-01-19 18:25:12 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 1128005F"SIA-DCS"1660L0#000110[#000110|Nri1BR503^Volum.Taverna   Appartam.Giorno ^]_17:55:50,01-19-2022
homeassistant    | 2022-01-19 18:25:12 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '1', 'code': 'BR', 'message': '503^Volum.Taverna   Appartam.Giorno ^', 'xdata': None, 'timestamp': '17:55:50,01-19-2022'}
homeassistant    | 2022-01-19 18:25:12 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 17:55:50+00:00
homeassistant    | 2022-01-19 18:25:30 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 1128005F"SIA-DCS"1660L0#000110[#000110|Nri1BR503^Volum.Taverna   Appartam.Giorno ^]_17:55:50,01-19-2022
homeassistant    | 2022-01-19 18:25:30 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '1', 'code': 'BR', 'message': '503^Volum.Taverna   Appartam.Giorno ^', 'xdata': None, 'timestamp': '17:55:50,01-19-2022'}
homeassistant    | 2022-01-19 18:25:30 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 17:55:50+00:00
homeassistant    | 2022-01-19 18:25:54 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 24810050"SIA-DCS"1660L0#000110[#000110|Nri0RP2^SL 1807110200065423^]_18:00:01,01-19-2022
homeassistant    | 2022-01-19 18:25:54 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '0', 'code': 'RP', 'message': '2^SL 1807110200065423^', 'xdata': None, 'timestamp': '18:00:01,01-19-2022'}
homeassistant    | 2022-01-19 18:25:54 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 18:00:01+00:00
homeassistant    | 2022-01-19 18:26:12 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 24810050"SIA-DCS"1660L0#000110[#000110|Nri0RP2^SL 1807110200065423^]_18:00:01,01-19-2022
homeassistant    | 2022-01-19 18:26:12 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '0', 'code': 'RP', 'message': '2^SL 1807110200065423^', 'xdata': None, 'timestamp': '18:00:01,01-19-2022'}
homeassistant    | 2022-01-19 18:26:12 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 18:00:01+00:00
homeassistant    | 2022-01-19 18:26:30 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 24810050"SIA-DCS"1660L0#000110[#000110|Nri0RP2^SL 1807110200065423^]_18:00:01,01-19-2022
homeassistant    | 2022-01-19 18:26:30 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '0', 'code': 'RP', 'message': '2^SL 1807110200065423^', 'xdata': None, 'timestamp': '18:00:01,01-19-2022'}
homeassistant    | 2022-01-19 18:26:30 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 18:00:01+00:00
homeassistant    | 2022-01-19 18:26:51 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 24810050"SIA-DCS"1660L0#000110[#000110|Nri0RP2^SL 1807110200065423^]_18:00:01,01-19-2022
homeassistant    | 2022-01-19 18:26:51 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '0', 'code': 'RP', 'message': '2^SL 1807110200065423^', 'xdata': None, 'timestamp': '18:00:01,01-19-2022'}
homeassistant    | 2022-01-19 18:26:51 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 18:00:01+00:00
homeassistant    | 2022-01-19 18:27:15 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 27440050"SIA-DCS"1660L0#000110[#000110|Nri0RP2^SL 1807110200065423^]_18:05:01,01-19-2022
homeassistant    | 2022-01-19 18:27:15 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '0', 'code': 'RP', 'message': '2^SL 1807110200065423^', 'xdata': None, 'timestamp': '18:05:01,01-19-2022'}
homeassistant    | 2022-01-19 18:27:15 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 18:05:01+00:00
homeassistant    | 2022-01-19 18:27:33 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 27440050"SIA-DCS"1660L0#000110[#000110|Nri0RP2^SL 1807110200065423^]_18:05:01,01-19-2022
homeassistant    | 2022-01-19 18:27:33 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '0', 'code': 'RP', 'message': '2^SL 1807110200065423^', 'xdata': None, 'timestamp': '18:05:01,01-19-2022'}
homeassistant    | 2022-01-19 18:27:33 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 18:05:01+00:00
homeassistant    | 2022-01-19 18:27:51 DEBUG (MainThread) [pysiaalarm.base_server] Incoming line: 27440050"SIA-DCS"1660L0#000110[#000110|Nri0RP2^SL 1807110200065423^]_18:05:01,01-19-2022
homeassistant    | 2022-01-19 18:27:51 DEBUG (MainThread) [pysiaalarm.event] Content matches: {'account': '000110', 'ti': None, 'id': None, 'ri': '0', 'code': 'RP', 'message': '2^SL 1807110200065423^', 'xdata': None, 'timestamp': '18:05:01,01-19-2022'}
homeassistant    | 2022-01-19 18:27:51 WARNING (MainThread) [pysiaalarm.base_server] Event timestamp is no longer valid: 2022-01-19 18:05:01+00:00

thekoma avatar Jan 19 '22 17:01 thekoma

Hi! You have ~22m difference between the time in events and your server. Events were marked as outdated and were discarded. You have to synchronize time settings on both devices.

Cheaterdev avatar Jan 20 '22 09:01 Cheaterdev

Hi! You have ~22m difference between the time in events and your server. Events were marked as outdated and were discarded. You have to synchronize time settings on both devices.

Sadly it's not possible (the timestamp on the unit is correct I have no idea how to change the time on the SIA Event. But anyway I've set the "do not check timestamp" checkmark. But this didn't help.

thekoma avatar Jan 20 '22 09:01 thekoma

So the possible solution is to turn off the time check on a client side or make the time bounds check a little wider to cover your time diff. It seems that you are not using mine integration but https://github.com/eavanvalkenburg/sia You may want to ask there how to configure it.

Cheaterdev avatar Jan 20 '22 09:01 Cheaterdev

Mea culpa Opened an issue on the component itself. Thank you for your time: https://github.com/home-assistant/home-assistant.io/issues/21253#issuecomment-1017154909

thekoma avatar Jan 20 '22 12:01 thekoma