Dear @baudneo , I’ve installed your docker image. But I’m still having previous issue.
Every time I do a backup of the docker image and docker container restarts, it sends me a MQTT notification as if someone rings the bell.
Any ideas why may happen?
Hereby the log:
2024-02-28 09:47:25,051 INFO clients.BaseClient Initialize MQTTClient
2024-02-28 09:47:25,051 INFO clients.BaseClient Starting to connect MQTTClient, Should connect: True
2024-02-28 09:47:25,051 INFO clients.BaseClient Initialize DahuaClient
2024-02-28 09:47:25,051 INFO clients.BaseClient Starting to connect DahuaClient, Should connect: True
2024-02-28 09:47:26,051 INFO clients.MQTTClient MQTT Broker is trying to connect...
2024-02-28 09:47:26,051 INFO clients.DahuaClient Connecting
2024-02-28 09:47:26,052 INFO clients.MQTTClient MQTT Broker connected with result code 0
2024-02-28 09:47:26,098 INFO clients.DahuaAPI Get access control configuration
2024-02-28 09:47:26,098 INFO clients.DahuaAPI Get version
2024-02-28 09:47:26,098 INFO clients.DahuaAPI Get serial number
2024-02-28 09:47:26,098 INFO clients.DahuaAPI Get device type
2024-02-28 09:47:26,098 INFO clients.DahuaAPI Attach event manager
2024-02-28 09:47:26,132 ERROR clients.DahuaAPI Failed to read data: b' \x00\x00\x00DHIP\x18\x9e\x03t\x04\x00\x00\x00f\x10\x00\x00\x00\x00\x00\x00f\x10\x00\x00\x00\x00\x00\x00{"id":4,"params":{"table":[{"AccessProtocol":"Local","AutoRemoteCheck":{"Enable":false,"Time":255},"BreakInAlarmEnable":false,"CardNoConvert":0,"CloseAlwaysTime":255,"CloseTimeout":60,"CustomPasswordEnable":false,"DoorNotClosedAlarmEnable":false,"DuressAlarmEnable":true,"Enable":true,"FirstEnter":{"Enable":false,"Status":"Normal","Time":1},"HelmetEnable":false,"HolidayTime":255,"LockMode":2,"Method":42,"Name":"Door1","OpenAlwaysTime":255,"ProtocolType":0,"ReadCardState":0,"RemoteCheck":false,"RemoteDetail":{"TimeOut":0,"TimeOutDoorStatus":"Close"},"RepeatEnterAlarm":false,"RepeatEnterTime":0,"SensorEnable":false,"State":"Normal","TimeSchedule":[[{"Method":42,"TimeSection":"00:00:00-23:59:59"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"}],[{"Method":42,"TimeSection":"00:00:00-23:59:59"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"}],[{"Method":42,"TimeSection":"00:00:00-23:59:59"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"}],[{"Method":42,"TimeSection":"00:00:00-23:59:59"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00', error: Expecting ',' delimiter: line 1 column 1380 (char 1379), Line: 406
2024-02-28 09:47:26,132 ERROR clients.DahuaAPI Failed to handle message, error: 'NoneType' object has no attribute 'get', Line: 87
2024-02-28 09:47:26,132 ERROR clients.DahuaAPI Failed to handle message, error: 'NoneType' object has no attribute 'get', Line: 87
2024-02-28 09:47:26,189 INFO clients.DahuaAPI Version: 4.600.0000000.0.R, Build Date: 2022-08-13
2024-02-28 09:47:26,189 INFO clients.DahuaAPI Serial Number: 9C072E4PAJDCDBA
2024-02-28 09:51:21,878 INFO clients.BaseClient Initialize MQTTClient
2024-02-28 09:51:21,878 INFO clients.BaseClient Starting to connect MQTTClient, Should connect: True
2024-02-28 09:51:21,878 INFO clients.BaseClient Initialize DahuaClient
2024-02-28 09:51:21,878 INFO clients.BaseClient Starting to connect DahuaClient, Should connect: True
2024-02-28 09:51:22,878 INFO clients.MQTTClient MQTT Broker is trying to connect...
2024-02-28 09:51:22,878 INFO clients.DahuaClient Connecting
2024-02-28 09:51:22,880 INFO clients.MQTTClient MQTT Broker connected with result code 0
2024-02-28 09:51:22,979 INFO clients.DahuaAPI Get access control configuration
2024-02-28 09:51:22,979 INFO clients.DahuaAPI Get version
2024-02-28 09:51:22,979 INFO clients.DahuaAPI Get serial number
2024-02-28 09:51:22,979 INFO clients.DahuaAPI Get device type
2024-02-28 09:51:22,979 INFO clients.DahuaAPI Attach event manager
2024-02-28 09:51:23,028 ERROR clients.DahuaAPI Failed to read data: b' \x00\x00\x00DHIP\xe3\x07\xfaP\x04\x00\x00\x00f\x10\x00\x00\x00\x00\x00\x00f\x10\x00\x00\x00\x00\x00\x00{"id":4,"params":{"table":[{"AccessProtocol":"Local","AutoRemoteCheck":{"Enable":false,"Time":255},"BreakInAlarmEnable":false,"CardNoConvert":0,"CloseAlwaysTime":255,"CloseTimeout":60,"CustomPasswordEnable":false,"DoorNotClosedAlarmEnable":false,"DuressAlarmEnable":true,"Enable":true,"FirstEnter":{"Enable":false,"Status":"Normal","Time":1},"HelmetEnable":false,"HolidayTime":255,"LockMode":2,"Method":42,"Name":"Door1","OpenAlwaysTime":255,"ProtocolType":0,"ReadCardState":0,"RemoteCheck":false,"RemoteDetail":{"TimeOut":0,"TimeOutDoorStatus":"Close"},"RepeatEnterAlarm":false,"RepeatEnterTime":0,"SensorEnable":false,"State":"Normal","TimeSchedule":[[{"Method":42,"TimeSection":"00:00:00-23:59:59"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"}],[{"Method":42,"TimeSection":"00:00:00-23:59:59"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"}],[{"Method":42,"TimeSection":"00:00:00-23:59:59"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"}],[{"Method":42,"TimeSection":"00:00:00-23:59:59"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00-00:00:00"},{"Method":42,"TimeSection":"00:00:00', error: Expecting ',' delimiter: line 1 column 1380 (char 1379), Line: 406
2024-02-28 09:51:23,028 ERROR clients.DahuaAPI Failed to handle message, error: 'NoneType' object has no attribute 'get', Line: 87
2024-02-28 09:51:23,028 ERROR clients.DahuaAPI Failed to handle message, error: 'NoneType' object has no attribute 'get', Line: 87