pergolafabio / Hikvision-Addons

Home Assistant: Hikvision Doorbell
179 stars 41 forks source link

No Call State to DS-KV6113-WPE1(B) #96

Closed VCTGomes closed 1 year ago

VCTGomes commented 1 year ago

What happened?

I'm trying to use the Add-On with my HikVision DS-KV6113-WPE1(B). It's connected and working, with door opener working, reject calls and more are normal, but the Call State continue showing Idle even when button is pressed and doorbell is ringing.

I tried to update doorbell to the last version, but it continues with the same problem.

Add-on

Hikvision Doorbell

What version of the add-on are you running?

3.0.0-beta.16

Installation type

Home Assistant add-on

Relevant log output

2023-03-18 15:25:06.321 | DEBUG    | config:mqtt_config_from_supervisor:36 - Requesting MQTT service configuration to supervisor
2023-03-18 15:25:06.356 | INFO     | sdk.utils:loadSDK:44 - Using OS: Linux with architecture: aarch64
hpr tls index{3}
loop[2] find 2 mac and 0 ip
2023-03-18 15:25:07.787 | INFO     | doorbell:authenticate:68 - Connected to doorbell: doorbell
2023-03-18 15:25:07.788 | INFO     | event:__init__:76 - Setting up event handler: Console stdout
2023-03-18 15:25:07.789 | INFO     | mqtt:__init__:91 - Setting up event handler: MQTT
2023-03-18 16:20:17.848 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:20:25.433 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:20:33.097 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:20:40.631 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:20:42.143 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:20:49.680 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:21:00.116 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:30:14.284 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:30:21.893 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:30:29.423 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:30:36.963 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:30:44.502 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:30:45.465 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:30:53.064 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:31:04.628 | INFO     | event:motion_detection:87 - Motion detected from doorbell
2023-03-18 16:50:40.607 | INFO     | mqtt_input:_reject_call_callback:98 - Received reject command for doorbell: doorbell
2023-03-18 16:50:42.242 | INFO     | mqtt_input:_reject_call_callback:98 - Received reject command for doorbell: doorbell

Relevant configuration

No response

Anything else?

No response

pergolafabio commented 1 year ago

Hi, can you try it one more time? Maybe your device was still loading a backlog and maybe that's why we didn't see the ring event, can you enable DEBUG again on the SDK, and press the call button again and show us?

VCTGomes commented 1 year ago

Hi, can you try it one more time? Maybe your device was still loading a backlog and maybe that's why we didn't see the ring event, can you enable DEBUG again on the SDK, and press the call button again and show us?

Hi, Fabio, I think you're right! Look at the log now:

2023-03-19 16:28:56.185 | INFO | event:video_intercom_alarm:109 - Video intercom alarm from doorbell 2023-03-19 16:28:56.186 | INFO | mqtt:video_intercom_alarm:236 - Doorbell ringing, updating sensor settings: mqtt=MQTT(host=‘core-mosquitto’, username=‘addons’, password=‘XXX’, 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=‘doorbell’, model=‘DS-KV6113-WPE1(B)’, manufacturer=‘Hikvision’, sw_version=‘V2.2.53’, hw_version=‘0x0’, identifiers=‘xxx’, 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=‘doorbell_call_state’, qos=None, unique_id=‘XXX-call_state’, unit_of_measurement=None) debug=False manual_availability=True topic_prefix: sensor/doorbell/Call-state config_topic: homeassistant/sensor/doorbell/Call-state/config state_topic: hmd/sensor/doorbell/Call-state/state wrote_configuration: True

2023-03-19 16:29:01.864 | INFO | mqtt_input:_reject_call_callback:98 - Received reject command for doorbell: doorbell

Is the plugin receiving status now? I'm not nearby my doorbell to do the test again, but I think it's working now.

pergolafabio commented 1 year ago

Perfect, good to hear :-)