Bonjour,
Je viens vers @thanaus concernant le plugin SiaPro.
Je viens de tomber sur un code non traité par le plugin : NP (Night mode deactivated using [device]). C’est assez ennuyant car en mode groupe, je ne vois pas le passage du mode « armé » vers le mode "désarmé.
Voici un extrait du logging :
[2020-11-25 15:57:05.649][DEBUG] : SIATCPHandler::handle IP: 192.168.0.100,raw: bytearray(b'
F7F0003A"SIA-DCS"1867L0#A5B3[#A5B3|Nri1/NL501]_15:58:39,11-25-2020
')
[2020-11-25 15:57:05.649][DEBUG] : SIATCPHandler::process line: F7F0003A"SIA-DCS"1867L0#A5B3[#A5B3|Nri1/NL501]_15:58:39,11-25-2020
[2020-11-25 15:57:05.651][DEBUG] : SIATCPHandler::process event: CRC:F7F0, Digest:F7F0, Message:"SIA-DCS"1867L0#A5B3[#A5B3|Nri1/NL501]_15:58:39,11-25-2020, ID Token:SIA-DCS, Sequence:1867, Receiver Number:, Account Prefix:L0, Account Number:A5B3, Content:#A5B3|Nri1/NL501, Zone:Nri1, Code:NL, UUID:501, Timestamp:15:58:39,11-25-2020
[2020-11-25 15:57:05.652][DEBUG] : SIATCPHandler::process response: DFC80012"ACK"1867L0#A5B3[]
[2020-11-25 15:57:05.653][DEBUG] : Send to jeedom : {'message': '"SIA-DCS"1867L0#A5B3[#A5B3|Nri1/NL501]_15:58:39,11-25-2020', 'account': 'A5B3', 'zone': 'Nri1', 'code': 'NL', 'uuid': '501'}
[2020-11-25 15:57:05.657][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-11-25 15:57:05.779][DEBUG] : http://127.0.0.1:80 "POST /plugins/siapro/core/php/jeeSIAPro.php?apikey=kNkbGRa74t9LRgHcYAK18Zdwj6pSI57s HTTP/1.1" 200 0
[2020-11-25 15:57:12.572][DEBUG] : SIATCPHandler::handle IP: 192.168.0.100,raw: bytearray(b'
BD32003A"SIA-DCS"1868L0#A5B3[#A5B3|Nri1/NP501]_15:58:46,11-25-2020
')
[2020-11-25 15:57:12.573][DEBUG] : SIATCPHandler::process line: BD32003A"SIA-DCS"1868L0#A5B3[#A5B3|Nri1/NP501]_15:58:46,11-25-2020
[2020-11-25 15:57:12.574][DEBUG] : SIATCPHandler::process event: CRC:BD32, Digest:BD32, Message:"SIA-DCS"1868L0#A5B3[#A5B3|Nri1/NP501]_15:58:46,11-25-2020, ID Token:SIA-DCS, Sequence:1868, Receiver Number:, Account Prefix:L0, Account Number:A5B3, Content:#A5B3|Nri1/NP501, Zone:Nri1, Code:NP, UUID:501, Timestamp:15:58:46,11-25-2020
[2020-11-25 15:57:12.575][DEBUG] : SIATCPHandler::process response: EFF80012"ACK"1868L0#A5B3[]
[2020-11-25 15:57:12.576][DEBUG] : Send to jeedom : {'message': '"SIA-DCS"1868L0#A5B3[#A5B3|Nri1/NP501]_15:58:46,11-25-2020', 'account': 'A5B3', 'zone': 'Nri1', 'code': 'NP', 'uuid': '501'}
[2020-11-25 15:57:12.580][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2020-11-25 16:57:12][INFO] : jeeSIAPro:: jsonData:'{"message": "\"SIA-DCS\"1868L0#A5B3[#A5B3|Nri1/NP501]_15:58:46,11-25-2020", "account": "A5B3", "zone": "Nri1", "code": "NP", "uuid": "501"}'
[2020-11-25 16:57:12][ERROR] : jeeSIAPro:: Unknown SIA Code 'NP'
[2020-11-25 15:57:12.658][DEBUG] : http://127.0.0.1:80 "POST /plugins/siapro/core/php/jeeSIAPro.php?apikey=kNkbGRa74t9LRgHcYAK18Zdwj6pSI57s HTTP/1.1" 200 0
Pour info les code SIA renvoyés par AJAX sont documentés ici (documentation AJAX)