pergolafabio / Hikvision-Addons

Home Assistant: Hikvision Doorbell
188 stars 41 forks source link

MQTT spams Log #219

Closed csice closed 2 months ago

csice commented 2 months ago

What happened?

I installed Hikvison (non beta) & Mqtt, all runs fine on the first look. But my Log get spammed now from MQTT. If i check the MQTT devices site the Sensor "Call State" changing from idle to ringing to dismissed every 6 secs. Also the Door 1 relay button change from on/off every ~ 30 secs. -> The door dont open in this event. If i click the button, the door opens.

If i use the INFO log in the addon you see the logs coming from the addon. I already try to deinstall mqtt & the Addon multiple times but the log keep spamming, hope you got an solution.

Add-on

Hikvision Doorbell

What version of the add-on are you running?

3.0.15

Installation type

Home Assistant add-on

Relevant log output

2024-09-07 14:51:07.048 | INFO     | event:video_intercom_alarm:120 - Video intercom alarm from Eingang
2024-09-07 14:51:07.049 | INFO     | mqtt:video_intercom_alarm:392 - Call dismissed, updating sensor 
settings: mqtt=MQTT(host='core-mosquitto', port=1883, username='addons', password='loo5Ichoh3hotahdo4Aez1erairahchooghah4egohghah3dah7aih1wue5eete6', client_name=None, tls_key=None, tls_certfile=None, tls_ca_cert=None, discovery_prefix='homeassistant', state_prefix='hmd') entity=SensorInfo(component='sensor', device=DeviceInfo(name='Eingang', model='DS-KD8003-IME1', manufacturer='Hikvision', sw_version='V2.2.62', hw_version='0x0', identifiers='6883457568564848514573776949484950485049485550558282715250485652535155', connections=None, configuration_url=None), device_class=None, enabled_by_default=None, entity_category=None, expire_after=None, force_update=None, icon='mdi:bell', name='Call state', object_id='eingang_call_state', qos=None, unique_id='6883457568564848514573776949484950485049485550558282715250485652535155-call_state', unit_of_measurement=None, state_class=None) debug=False manual_availability=True
topic_prefix: sensor/Eingang/Call-state
config_topic: homeassistant/sensor/Eingang/Call-state/config
state_topic: hmd/sensor/Eingang/Call-state/state
wrote_configuration: True

2024-09-07 14:51:13.575 | INFO     | event:video_intercom_alarm:120 - Video intercom alarm from Eingang
2024-09-07 14:51:13.576 | INFO     | mqtt:video_intercom_alarm:389 - Doorbell ringing, updating sensor 
settings: mqtt=MQTT(host='core-mosquitto', port=1883, username='addons', password='loo5Ichoh3hotahdo4Aez1erairahchooghah4egohghah3dah7aih1wue5eete6', client_name=None, tls_key=None, tls_certfile=None, tls_ca_cert=None, discovery_prefix='homeassistant', state_prefix='hmd') entity=SensorInfo(component='sensor', device=DeviceInfo(name='Eingang', model='DS-KD8003-IME1', manufacturer='Hikvision', sw_version='V2.2.62', hw_version='0x0', identifiers='6883457568564848514573776949484950485049485550558282715250485652535155', connections=None, configuration_url=None), device_class=None, enabled_by_default=None, entity_category=None, expire_after=None, force_update=None, icon='mdi:bell', name='Call state', object_id='eingang_call_state', qos=None, unique_id='6883457568564848514573776949484950485049485550558282715250485652535155-call_state', unit_of_measurement=None, state_class=None) debug=False manual_availability=True
topic_prefix: sensor/Eingang/Call-state
config_topic: homeassistant/sensor/Eingang/Call-state/config
state_topic: hmd/sensor/Eingang/Call-state/state
wrote_configuration: True

2024-09-07 14:51:19.266 | INFO     | event:video_intercom_alarm:120 - Video intercom alarm from Eingang
2024-09-07 14:51:19.267 | INFO     | mqtt:video_intercom_alarm:392 - Call dismissed, updating sensor 
settings: mqtt=MQTT(host='core-mosquitto', port=1883, username='addons', password='loo5Ichoh3hotahdo4Aez1erairahchooghah4egohghah3dah7aih1wue5eete6', client_name=None, tls_key=None, tls_certfile=None, tls_ca_cert=None, discovery_prefix='homeassistant', state_prefix='hmd') entity=SensorInfo(component='sensor', device=DeviceInfo(name='Eingang', model='DS-KD8003-IME1', manufacturer='Hikvision', sw_version='V2.2.62', hw_version='0x0', identifiers='6883457568564848514573776949484950485049485550558282715250485652535155', connections=None, configuration_url=None), device_class=None, enabled_by_default=None, entity_category=None, expire_after=None, force_update=None, icon='mdi:bell', name='Call state', object_id='eingang_call_state', qos=None, unique_id='6883457568564848514573776949484950485049485550558282715250485652535155-call_state', unit_of_measurement=None, state_class=None) debug=False manual_availability=True
topic_prefix: sensor/Eingang/Call-state
config_topic: homeassistant/sensor/Eingang/Call-state/config
state_topic: hmd/sensor/Eingang/Call-state/state
wrote_configuration: True

2024-09-07 14:51:25.786 | INFO     | event:video_intercom_event:109 - Video intercom event from Eingang
2024-09-07 14:51:25.786 | INFO     | mqtt:update_door_entities:300 - Door 1 unlocked by 494848494849494848485100 , updating sensor and device trigger
2024-09-07 14:51:25.787 | INFO     | mqtt:handle_device_trigger:487 - Invoking device trigger automation{'name': 'Door unlocked', 'type': 'door open', 'subtype': 'door 0', 'payload': {'control_source': '494848494849494848485100'}}
2024-09-07 14:51:31.322 | INFO     | event:video_intercom_alarm:120 - Video intercom alarm from Eingang
2024-09-07 14:51:31.322 | INFO     | mqtt:video_intercom_alarm:389 - Doorbell ringing, updating sensor 
settings: mqtt=MQTT(host='core-mosquitto', port=1883, username='addons', password='loo5Ichoh3hotahdo4Aez1erairahchooghah4egohghah3dah7aih1wue5eete6', client_name=None, tls_key=None, tls_certfile=None, tls_ca_cert=None, discovery_prefix='homeassistant', state_prefix='hmd') entity=SensorInfo(component='sensor', device=DeviceInfo(name='Eingang', model='DS-KD8003-IME1', manufacturer='Hikvision', sw_version='V2.2.62', hw_version='0x0', identifiers='6883457568564848514573776949484950485049485550558282715250485652535155', connections=None, configuration_url=None), device_class=None, enabled_by_default=None, entity_category=None, expire_after=None, force_update=None, icon='mdi:bell', name='Call state', object_id='eingang_call_state', qos=None, unique_id='6883457568564848514573776949484950485049485550558282715250485652535155-call_state', unit_of_measurement=None, state_class=None) debug=False manual_availability=True
topic_prefix: sensor/Eingang/Call-state
config_topic: homeassistant/sensor/Eingang/Call-state/config
state_topic: hmd/sensor/Eingang/Call-state/state
wrote_configuration: True

2024-09-07 14:51:37.838 | INFO     | event:video_intercom_alarm:120 - Video intercom alarm from Eingang
2024-09-07 14:51:37.839 | INFO     | mqtt:video_intercom_alarm:392 - Call dismissed, updating sensor 
settings: mqtt=MQTT(host='core-mosquitto', port=1883, username='addons', password='loo5Ichoh3hotahdo4Aez1erairahchooghah4egohghah3dah7aih1wue5eete6', client_name=None, tls_key=None, tls_certfile=None, tls_ca_cert=None, discovery_prefix='homeassistant', state_prefix='hmd') entity=SensorInfo(component='sensor', device=DeviceInfo(name='Eingang', model='DS-KD8003-IME1', manufacturer='Hikvision', sw_version='V2.2.62', hw_version='0x0', identifiers='6883457568564848514573776949484950485049485550558282715250485652535155', connections=None, configuration_url=None), device_class=None, enabled_by_default=None, entity_category=None, expire_after=None, force_update=None, icon='mdi:bell', name='Call state', object_id='eingang_call_state', qos=None, unique_id='6883457568564848514573776949484950485049485550558282715250485652535155-call_state', unit_of_measurement=None, state_class=None) debug=False manual_availability=True
topic_prefix: sensor/Eingang/Call-state
config_topic: homeassistant/sensor/Eingang/Call-state/config
state_topic: hmd/sensor/Eingang/Call-state/state
wrote_configuration: True

Relevant configuration

No response

Anything else?

No response

pergolafabio commented 2 months ago

Yes, that's the backlog of all history events... It takes a while, once done, it should be good