Closed breizhdude closed 8 months ago
Hi,
since few days I got the following error when the addon starts:
2024-03-14 08:08:16,419 - tydom.MessageHandler - INFO - Device update (id=1388534424, endpoint=1388534411, name=Tyxal Alarm, type=alarm) 2024-03-14 08:08:16,420 - tydom.MessageHandler - ERROR - Error in alarm parsing ! 2024-03-14 08:08:16,421 - tydom.MessageHandler - ERROR - 'NoneType' object has no attribute 'publish' 2024-03-14 08:08:16,422 - tydom.MessageHandler - INFO - Device update (id=1616710619, endpoint=1616710619, name=Salon N, type=shutter) 2024-03-14 08:08:16,422 - tydom.MessageHandler - ERROR - Error on parsing tydom response ('NoneType' object has no attribute 'publish') 2024-03-14 08:08:16,423 - tydom.MessageHandler - ERROR - Incoming data ([{"id":1388534424,"endpoints":[{"id":1388534411,"error":0,"data":[{"name":"alarmState","validity":"upToDate","value":"OFF"},{"name":"alarmMode","validity":"upToDate","value":"OFF"},{"name":"alarmTechnical","validity":"upToDate","value":false},{"name":"alarmSOS","validity":"upToDate","value":false},{"name":"unitAutoProtect","validity":"upToDate","value":false},{"name":"unitBatteryDefect","validity":"upToDate","value":false},{"name":"unackedEvent","validity":"upToDate","value":false},{"name":"systAutoProtect","validity":"upToDate","value":false},{"name":"systBatteryDefect","validity":"upToDate","value":true},{"name":"systSupervisionDefect","validity":"upToDate","value":true},{"name":"systOpenIssue","validity":"upToDate","value":false},{"name":"systSectorDefect","validity":"upToDate","value":false},{"name":"systTechnicalDefect","validity":"upToDate","value":false},{"name":"videoLinkDefect","validity":"upToDate","value":false},{"name":"remoteSurveyDefect","validity":"upToDate","value":false},{"name":"simDefect","validity":"upToDate","value":false},{"name":"networkDefect","validity":"upToDate","value":false},{"name":"inactiveProduct","validity":"upToDate","value":false},{"name":"liveCheckRunning","validity":"upToDate","value":false},{"name":"zone1State","validity":"upToDate","value":"UNUSED"},{"name":"zone2State","validity":"upToDate","value":"UNUSED"},{"name":"zone3State","validity":"upToDate","value":"UNUSED"},{"name":"zone4State","validity":"upToDate","value":"UNUSED"},{"name":"zone5State","validity":"upToDate","value":"UNUSED"},{"name":"zone6State","validity":"upToDate","value":"UNUSED"},{"name":"zone7State","validity":"upToDate","value":"UNUSED"},{"name":"zone8State","validity":"upToDate","value":"UNUSED"},{"name":"outTemperature","validity":"upToDate","value":13.000},{"name":"gsmLevel","validity":"upToDate","value":7},{"name":"irv1State","validity":"upToDate","value":"AVAILABLE"},{"name":"irv2State","validity":"upToDate","value":"UNAVAILABLE"},{"name":"irv3State","validity":"upToDate","value":"UNAVAILABLE"},{"name":"irv4State","validity":"upToDate","value":"UNAVAILABLE"},{"name":"kernelUpToDate","validity":"upToDate","value":true},{"name":"preAlarm","validity":"expired","value":false}]}]},{"id":1616710619,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false},{"name":"upDefect","validity":"upToDate","value":false},{"name":"downDefect","validity":"upToDate","value":false},{"name":"obstacleDefect","validity":"upToDate","value":false},{"name":"intrusion","validity":"upToDate","value":false},{"name":"battDefect","validity":"upToDate","value":false}]}]},{"id":1616710620,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false}]}]},{"id":1616710622,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":0},{"name":"onFavPos","validity":"upToDate","value":false}]}]},{"id":1616710623,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":0},{"name":"onFavPos","validity":"upToDate","value":false}]}]},{"id":1616710625,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false}]}]},{"id":1616710626,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false},{"name":"upDefect","validity":"upToDate","value":false},{"name":"downDefect","validity":"upToDate","value":false},{"name":"obstacleDefect","validity":"upToDate","value":false},{"name":"intrusion","validity":"upToDate","value":false},{"name":"battDefect","validity":"upToDate","value":false}]}]},{"id":1616710627,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":0},{"name":"onFavPos","validity":"upToDate","value":false}]}]},{"id":1616710628,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":0},{"name":"onFavPos","validity":"upToDate","value":false}]}]},{"id":1616710630,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false},{"name":"upDefect","validity":"upToDate","value":false},{"name":"downDefect","validity":"upToDate","value":false},{"name":"obstacleDefect","validity":"upToDate","value":false},{"name":"intrusion","validity":"upToDate","value":false},{"name":"battDefect","validity":"upToDate","value":false}]}]},{"id":1689658770,"endpoints":[{"id":1689658770,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false},{"name":"obstacleDefect","validity":"upToDate","value":false},{"name":"intrusion","validity":"upToDate","value":false},{"name":"battDefect","validity":"upToDate","value":false}]}]},{"id":1689659053,"endpoints":[{"id":1689659053,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false},{"name":"obstacleDefect","validity":"upToDate","value":false},{"name":"intrusion","validity":"upToDate","value":false},{"name":"battDefect","validity":"upToDate","value":false}]}]},{"id":1689659154,"endpoints":[{"id":1689659154,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false},{"name":"obstacleDefect","validity":"upToDate","value":false},{"name":"intrusion","validity":"upToDate","value":false},{"name":"battDefect","validity":"upToDate","value":false}]}]}] ) 2024-03-14 08:08:16,424 - tydom.MessageHandler - ERROR - 'NoneType' object has no attribute 'publish' Traceback (most recent call last): File "/app/tydom/MessageHandler.py", line 362, in parse_response await self.parse_devices_data(parsed=parsed) File "/app/tydom/MessageHandler.py", line 472, in parse_devices_data await self.parse_endpoint_data(endpoint, i["id"]) File "/app/tydom/MessageHandler.py", line 686, in parse_endpoint_data await new_cover.update() File "/app/sensors/Cover.py", line 73, in update await self.setup() File "/app/sensors/Cover.py", line 68, in setup self.mqtt.mqtt_client.publish( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Hi,
since few days I got the following error when the addon starts:
2024-03-14 08:08:16,419 - tydom.MessageHandler - INFO - Device update (id=1388534424, endpoint=1388534411, name=Tyxal Alarm, type=alarm) 2024-03-14 08:08:16,420 - tydom.MessageHandler - ERROR - Error in alarm parsing ! 2024-03-14 08:08:16,421 - tydom.MessageHandler - ERROR - 'NoneType' object has no attribute 'publish' 2024-03-14 08:08:16,422 - tydom.MessageHandler - INFO - Device update (id=1616710619, endpoint=1616710619, name=Salon N, type=shutter) 2024-03-14 08:08:16,422 - tydom.MessageHandler - ERROR - Error on parsing tydom response ('NoneType' object has no attribute 'publish') 2024-03-14 08:08:16,423 - tydom.MessageHandler - ERROR - Incoming data ([{"id":1388534424,"endpoints":[{"id":1388534411,"error":0,"data":[{"name":"alarmState","validity":"upToDate","value":"OFF"},{"name":"alarmMode","validity":"upToDate","value":"OFF"},{"name":"alarmTechnical","validity":"upToDate","value":false},{"name":"alarmSOS","validity":"upToDate","value":false},{"name":"unitAutoProtect","validity":"upToDate","value":false},{"name":"unitBatteryDefect","validity":"upToDate","value":false},{"name":"unackedEvent","validity":"upToDate","value":false},{"name":"systAutoProtect","validity":"upToDate","value":false},{"name":"systBatteryDefect","validity":"upToDate","value":true},{"name":"systSupervisionDefect","validity":"upToDate","value":true},{"name":"systOpenIssue","validity":"upToDate","value":false},{"name":"systSectorDefect","validity":"upToDate","value":false},{"name":"systTechnicalDefect","validity":"upToDate","value":false},{"name":"videoLinkDefect","validity":"upToDate","value":false},{"name":"remoteSurveyDefect","validity":"upToDate","value":false},{"name":"simDefect","validity":"upToDate","value":false},{"name":"networkDefect","validity":"upToDate","value":false},{"name":"inactiveProduct","validity":"upToDate","value":false},{"name":"liveCheckRunning","validity":"upToDate","value":false},{"name":"zone1State","validity":"upToDate","value":"UNUSED"},{"name":"zone2State","validity":"upToDate","value":"UNUSED"},{"name":"zone3State","validity":"upToDate","value":"UNUSED"},{"name":"zone4State","validity":"upToDate","value":"UNUSED"},{"name":"zone5State","validity":"upToDate","value":"UNUSED"},{"name":"zone6State","validity":"upToDate","value":"UNUSED"},{"name":"zone7State","validity":"upToDate","value":"UNUSED"},{"name":"zone8State","validity":"upToDate","value":"UNUSED"},{"name":"outTemperature","validity":"upToDate","value":13.000},{"name":"gsmLevel","validity":"upToDate","value":7},{"name":"irv1State","validity":"upToDate","value":"AVAILABLE"},{"name":"irv2State","validity":"upToDate","value":"UNAVAILABLE"},{"name":"irv3State","validity":"upToDate","value":"UNAVAILABLE"},{"name":"irv4State","validity":"upToDate","value":"UNAVAILABLE"},{"name":"kernelUpToDate","validity":"upToDate","value":true},{"name":"preAlarm","validity":"expired","value":false}]}]},{"id":1616710619,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false},{"name":"upDefect","validity":"upToDate","value":false},{"name":"downDefect","validity":"upToDate","value":false},{"name":"obstacleDefect","validity":"upToDate","value":false},{"name":"intrusion","validity":"upToDate","value":false},{"name":"battDefect","validity":"upToDate","value":false}]}]},{"id":1616710620,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false}]}]},{"id":1616710622,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":0},{"name":"onFavPos","validity":"upToDate","value":false}]}]},{"id":1616710623,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":0},{"name":"onFavPos","validity":"upToDate","value":false}]}]},{"id":1616710625,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false}]}]},{"id":1616710626,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false},{"name":"upDefect","validity":"upToDate","value":false},{"name":"downDefect","validity":"upToDate","value":false},{"name":"obstacleDefect","validity":"upToDate","value":false},{"name":"intrusion","validity":"upToDate","value":false},{"name":"battDefect","validity":"upToDate","value":false}]}]},{"id":1616710627,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":0},{"name":"onFavPos","validity":"upToDate","value":false}]}]},{"id":1616710628,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":0},{"name":"onFavPos","validity":"upToDate","value":false}]}]},{"id":1616710630,"endpoints":[{"id":1616710619,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false},{"name":"upDefect","validity":"upToDate","value":false},{"name":"downDefect","validity":"upToDate","value":false},{"name":"obstacleDefect","validity":"upToDate","value":false},{"name":"intrusion","validity":"upToDate","value":false},{"name":"battDefect","validity":"upToDate","value":false}]}]},{"id":1689658770,"endpoints":[{"id":1689658770,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false},{"name":"obstacleDefect","validity":"upToDate","value":false},{"name":"intrusion","validity":"upToDate","value":false},{"name":"battDefect","validity":"upToDate","value":false}]}]},{"id":1689659053,"endpoints":[{"id":1689659053,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false},{"name":"obstacleDefect","validity":"upToDate","value":false},{"name":"intrusion","validity":"upToDate","value":false},{"name":"battDefect","validity":"upToDate","value":false}]}]},{"id":1689659154,"endpoints":[{"id":1689659154,"error":0,"data":[{"name":"thermicDefect","validity":"upToDate","value":false},{"name":"position","validity":"upToDate","value":100},{"name":"onFavPos","validity":"upToDate","value":false},{"name":"obstacleDefect","validity":"upToDate","value":false},{"name":"intrusion","validity":"upToDate","value":false},{"name":"battDefect","validity":"upToDate","value":false}]}]}] ) 2024-03-14 08:08:16,424 - tydom.MessageHandler - ERROR - 'NoneType' object has no attribute 'publish' Traceback (most recent call last): File "/app/tydom/MessageHandler.py", line 362, in parse_response await self.parse_devices_data(parsed=parsed) File "/app/tydom/MessageHandler.py", line 472, in parse_devices_data await self.parse_endpoint_data(endpoint, i["id"]) File "/app/tydom/MessageHandler.py", line 686, in parse_endpoint_data await new_cover.update() File "/app/sensors/Cover.py", line 73, in update await self.setup() File "/app/sensors/Cover.py", line 68, in setup self.mqtt.mqtt_client.publish( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^