Failed to handle message, error: 'NoneType' object has no attribute 'get', Line: 54

Bonjour,

j’ai un pbs equivalent à celui du 6 aout. J’ai un Dahua VTO2211-WP en version Firmware 4.50.

J’ai deux soucis, le premier est le passage de 0 à 1 de la variable ‹ appel › sans que la sonnette soit appuyée, cela arrive systematiquement au demarrage du plugins ainsi que de maniere aleatoire sans raison.
2eme soucis (j’ai jeedom qui se connecte en API et un telephone voip C610 qui vient sur le VTO):

[2021-08-31 12:39:00.155][DEBUG] : -------------------
[2021-08-31 12:39:00.173][ERROR] : Failed to read data: b'\xe4\x00\x00\x00\x00\x00\x00\x00\xe4\x00\x00\x00\x00\x00\x00\x00{"id":3,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Stop","Code":"NetAbort","Data":{"Interface":"eth2","LocaleTime":"2021-08-31 14:38:55","UTC":1630413535.0},"Index":2}]},"session":138592589}
\x00\x00\x00DHIPM\xc1B\x08\x03\x00\x00\x00\xe2\x00\x00\x00\x00\x00\x00\x00\xe2\x00\x00\x00\x00\x00\x00\x00{"id":3,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"BackKeyLight","Data":{"LocaleTime":"2021-08-31 14:38:56","State":11,"UTC":1630413536.0},"Index":-1}]},"session":138592589}
\x00\x00\x00DHIPM\xc1B\x08\x03\x00\x00\x00N\x01\x00\x00\x00\x00\x00\x00N\x01\x00\x00\x00\x00\x00\x00{"id":3,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Stop","Code":"RtspSessionDisconnect","Data":{"Device":"192.168.1.116","LocaleTime":"2021-08-31 14:38:56","StreamType":"Extra1","UTC":1630413536.0,"UserAgent":" RTSP client (LIVE555 Streaming Media v2009.07.27)"},"Index":0}]},"session":138592589}
\x00\x00\x00DHIPM\xc1B\x08\x03\x00\x00\x00\xd7\x00\x00\x00\x00\x00\x00\x00\xd7\x00\x00\x00\x00\x00\x00\x00{"id":3,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NetworkChange","Data":{"LocaleTime":"2021-08-31 14:38:56","UTC":1630413536.0},"Index":0}]},"session":138592589}
\x00\x00\x00DHIPM\xc1B\x08\x03\x00\x00\x00\xdf\x00\x00\x00\x00\x00\x00\x00\xdf\x00\x00\x00\x00\x00\x00\x00{"id":3,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"NetChangeNotifyCenter","Data":{"LocaleTime":"2021-08-31 14:38:56","UTC":1630413536.0},"Index":0}]},"session":138592589}
\x00\x00\x00DHIPM\xc1B\x08\x03\x00\x00\x00\xf1\x00\x00\x00\x00\x00\x00\x00\xf1\x00\x00\x00\x00\x00\x00\x00{"id":3,"method":"client.notifyEventStream","p', error: Unterminated string starting at: line 1 column 45 (char 44), Line: 212
[2021-08-31 12:39:00.174][DEBUG] : Data received: {'id': 3, 'method': 'client.notifyEventStream', 'params': {'SID': 513, 'eventList': [{'Action': 'Pulse', 'Code': 'NetChangeNotifyCenter', 'Data': {'LocaleTime': '2021-08-31 14:38:56', 'UTC': 1630413536.0}, 'Index': 0}]}, 'session': 138592589}
[2021-08-31 12:39:00.174][DEBUG] : Pulse
[2021-08-31 12:39:00.174][DEBUG] : {'Action': 'Pulse', 'Code': 'NetChangeNotifyCenter', 'Data': {'LocaleTime': '2021-08-31 14:38:56', 'UTC': 1630413536.0}, 'Index': 0, 'deviceType': 'DHI-VTO2211G-WP', 'serialNumber': '6H0B3F0PAJ82F97'}
[2021-08-31 12:39:00.175][DEBUG] : -------------------
[2021-08-31 12:39:01.564][ERROR] : Failed to read data: b'arams":{"SID":513,"eventList":[{"Action":"Stop","Code":"APConnect","Data":{"LocaleTime":"2021-08-31 14:38:57","Result":true,"SSID":"myhome","UTC":1630413537.0},"Index":0}]},"session":138592589}
\x00\x00\x00DHIPM\xc1B\x08\x03\x00\x00\x00\x8d\x01\x00\x00\x00\x00\x00\x00\x8d\x01\x00\x00\x00\x00\x00\x00{"id":3,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Pulse","Code":"SIPRegisterResult","Data":{"LocaleTime":"2021-08-31 14:38:57","Success":true,"UTC":1630413537.0,"User":{"DevType":"3rdParty","GroupNbr":"-1","ID":"8001","IpAddr":"192.168.1.115","Online":true,"Port":5060,"UserAgent":"C610 IP\/42.247.00.000.000","VtoType":""}},"Index":0}]},"session":138592589}
', error: Extra data: line 1 column 167 (char 166), Line: 212
[2021-08-31 12:39:01.565][DEBUG] : Data received: None
[2021-08-31 12:39:01.565][ERROR] : Failed to handle message, error: 'NoneType' object has no attribute 'get', Line: 54
[2021-08-31 12:39:25.756][DEBUG] : Data received: {'id': 65, 'params': {'timeout': 55}, 'result': True, 'session': 138592589}
[2021-08-31 12:39:27.742][DEBUG] : Keep alive
[2021-08-31 12:39:28.161][DEBUG] : Data received: {'id': 3, 'method': 'client.notifyEventStream', 'params': {'SID': 513, 'eventList': [{'Action': 'Pulse', 'Code': 'SIPRegisterResult', 'Data': {'LocaleTime': '2021-08-31 14:39:26', 'Success': True, 'UTC': 1630413566.0}, 'Index': 0}]}, 'session': 138592589}
[2021-08-31 12:39:28.161][DEBUG] : Pulse
[2021-08-31 12:39:28.162][DEBUG] : {'Action': 'Pulse', 'Code': 'SIPRegisterResult', 'Data': {'LocaleTime': '2021-08-31 14:39:26', 'Success': True, 'UTC': 1630413566.0}, 'Index': 0, 'deviceType': 'DHI-VTO2211G-WP', 'serialNumber': 'XXXXXXXXXXXX2F97'}
[2021-08-31 12:39:28.162][DEBUG] : -------------------
[2021-08-31 12:39:28.753][DEBUG] : Keep alive

J’ai essayé la modification du precedent post mais je n’ai pas d’amélioration.

je suis en jeedom smart dernière version et le plugins est lui aussi à jour

Merci d’avance de tous vos retours

Lo,

Pour une meilleure visibilité peux tu mettre tes logs entre balises,

Merci, au plaisir,

1 « J'aime »

Voici un autre log pour un déclenchement de la sonnette de manière fantôme alors qu’il n’y a personne devant le portillon (cela commence par une erreur puis ensuite il y a production de la variable sonnette à 1 ) :

[2021-09-01 18:41:43.923][DEBUG] : Keep alive
[2021-09-01 18:41:44.627][ERROR] : Failed to read data: b' \x00\x00\x00DHIP\x88Yp{\x03\x00\x00\x00\xc5\x04\x00\x00\x00\x00\x00\x00\xc5\x04\x00\x00\x00\x00\x00\x00{"id":3,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Start","Code":"AlarmLocal","Data":{"LocaleTime":"2021-09-01 20:41:33","UTC":1630521693.0},"Index":4,"Param":{}},{"Action":"Start","Code":"AlarmLocal","Data":{"LocaleTime":"2021-09-01 20:41:33","UTC":1630521693.0},"Index":11,"Param":{}},{"Action":"Start","Code":"CallNoAnswered","Data":{"CallID":"2","IsEncryptedStream":false,"LocaleTime":"2021-09-01 20:41:33","LockNum":2,"SupportPaas":false,"TCPPort":37777,"UTC":1630521693.0,"UserID":"9901"},"Index":0,"Param":{}},{"Action":"Start","Code":"NetAbort","Data":{"Interface":"eth0","LocaleTime":"2021-09-01 20:41:33","UTC":1630521693.0},"Index":0,"Param":{}},{"Action":"Start","Code":"PassiveHungup","Data":{"LocaleTime":"2021-09-01 20:41:33","UTC":1630521693.0},"Index":0,"Param":null},{"Action":"Start","Code":"RequestCallState","Data":{"LocaleTime":"2021-09-01 20:41:33","UTC":1630521693.0},"Index":0,"Param":{}},{"Action":"Start","Code":"RtspSessionDisconnect","Data":{"Device":"192.168.1.116","LocaleTime":"2021-09-01 20:41:33","StreamType":"Main","UTC":1630521693.0,"UserAgent":" RTSP client (LIVE555 Streaming Media v2009.07.27)"},"Index":0,"Param":null}]},"session":2070960520}
 \x00\x00\x00DHIP\x88Yp{\x03\x00\x00\x00P\x01\x00\x00\x00\x00\x00\x00P\x01\x00\x00\x00\x00\x00\x00{"id":3,"method":"client.notifyEventStream","params":{"SID":513,"eventList":[{"Action":"Start","Code":"RtspSessionDisconnect","Data":{"Device":"192.168.1.116","Loc', error: Unterminated string starting at: line 1 column 160 (char 159), Line: 212
[2021-09-01 18:41:44.627][DEBUG] : Data received: {'id': 3, 'method': 'client.notifyEventStream', 'params': {'SID': 513, 'eventList': [{'Action': 'Start', 'Code': 'AlarmLocal', 'Data': {'LocaleTime': '2021-09-01 20:41:33', 'UTC': 1630521693.0}, 'Index': 4, 'Param': {}}, {'Action': 'Start', 'Code': 'AlarmLocal', 'Data': {'LocaleTime': '2021-09-01 20:41:33', 'UTC': 1630521693.0}, 'Index': 11, 'Param': {}}, {'Action': 'Start', 'Code': 'CallNoAnswered', 'Data': {'CallID': '2', 'IsEncryptedStream': False, 'LocaleTime': '2021-09-01 20:41:33', 'LockNum': 2, 'SupportPaas': False, 'TCPPort': 37777, 'UTC': 1630521693.0, 'UserID': '9901'}, 'Index': 0, 'Param': {}}, {'Action': 'Start', 'Code': 'NetAbort', 'Data': {'Interface': 'eth0', 'LocaleTime': '2021-09-01 20:41:33', 'UTC': 1630521693.0}, 'Index': 0, 'Param': {}}, {'Action': 'Start', 'Code': 'PassiveHungup', 'Data': {'LocaleTime': '2021-09-01 20:41:33', 'UTC': 1630521693.0}, 'Index': 0, 'Param': None}, {'Action': 'Start', 'Code': 'RequestCallState', 'Data': {'LocaleTime': '2021-09-01 20:41:33', 'UTC': 1630521693.0}, 'Index': 0, 'Param': {}}, {'Action': 'Start', 'Code': 'RtspSessionDisconnect', 'Data': {'Device': '192.168.1.116', 'LocaleTime': '2021-09-01 20:41:33', 'StreamType': 'Main', 'UTC': 1630521693.0, 'UserAgent': ' RTSP client (LIVE555 Streaming Media v2009.07.27)'}, 'Index': 0, 'Param': None}]}, 'session': 2070960520}
[2021-09-01 18:41:44.628][DEBUG] : Start
[2021-09-01 18:41:44.628][DEBUG] : {'Action': 'Start', 'Code': 'AlarmLocal', 'Data': {'LocaleTime': '2021-09-01 20:41:33', 'UTC': 1630521693.0}, 'Index': 4, 'Param': {}}
[2021-09-01 18:41:44.628][DEBUG] : -------------------
[2021-09-01 18:41:44.628][DEBUG] : Start
[2021-09-01 18:41:44.629][DEBUG] : {'Action': 'Start', 'Code': 'AlarmLocal', 'Data': {'LocaleTime': '2021-09-01 20:41:33', 'UTC': 1630521693.0}, 'Index': 11, 'Param': {}}
[2021-09-01 18:41:44.629][DEBUG] : -------------------
[2021-09-01 18:41:44.629][DEBUG] : Start
[2021-09-01 18:41:44.629][DEBUG] : {'Action': 'Start', 'Code': 'CallNoAnswered', 'Data': {'CallID': '2', 'IsEncryptedStream': False, 'LocaleTime': '2021-09-01 20:41:33', 'LockNum': 2, 'SupportPaas': False, 'TCPPort': 37777, 'UTC': 1630521693.0, 'UserID': '9901'}, 'Index': 0, 'Param': {}}
[2021-09-01 18:41:44.630][DEBUG] : -------------------
[2021-09-01 18:41:44.630][DEBUG] : Send to jeedom :  {'devices': {'2212': {'calling': 1}}}
[2021-09-01 18:41:44.638][DEBUG] : Start
[2021-09-01 18:41:44.639][DEBUG] : {'Action': 'Start', 'Code': 'NetAbort', 'Data': {'Interface': 'eth0', 'LocaleTime': '2021-09-01 20:41:33', 'UTC': 1630521693.0}, 'Index': 0, 'Param': {}}
[2021-09-01 18:41:44.640][DEBUG] : -------------------
[2021-09-01 18:41:44.641][DEBUG] : Start
[2021-09-01 18:41:44.642][DEBUG] : {'Action': 'Start', 'Code': 'PassiveHungup', 'Data': {'LocaleTime': '2021-09-01 20:41:33', 'UTC': 1630521693.0}, 'Index': 0, 'Param': None}
[2021-09-01 18:41:44.648][DEBUG] : -------------------
[2021-09-01 18:41:44.648][DEBUG] : Start
[2021-09-01 18:41:44.649][DEBUG] : {'Action': 'Start', 'Code': 'RequestCallState', 'Data': {'LocaleTime': '2021-09-01 20:41:33', 'UTC': 1630521693.0}, 'Index': 0, 'Param': {}}
[2021-09-01 18:41:44.649][DEBUG] : -------------------
[2021-09-01 18:41:44.650][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2021-09-01 18:41:44.650][DEBUG] : Start
[2021-09-01 18:41:44.652][DEBUG] : {'Action': 'Start', 'Code': 'RtspSessionDisconnect', 'Data': {'Device': '192.168.1.116', 'LocaleTime': '2021-09-01 20:41:33', 'StreamType': 'Main', 'UTC': 1630521693.0, 'UserAgent': ' RTSP client (LIVE555 Streaming Media v2009.07.27)'}, 'Index': 0, 'Param': None}
[2021-09-01 18:41:44.653][DEBUG] : -------------------
[2021-09-01 18:41:44.732][DEBUG] : Data received: None
[2021-09-01 18:41:44.732][ERROR] : Failed to handle message, error: 'NoneType' object has no attribute 'get', Line: 54

Bonsoir,
Je me reponds à moi meme, j’ai pris une autre variable (BackLightEvent qui est à 1 ou 2 en cas de call/ring) du VTO pour declencher la modification de ‹ appel ›. Je vais tester ce week end et je vous ferais un retour si c’est concluant.

A bientot