pergolafabio / Hikvision-Addons

Home Assistant: Hikvision Doorbell
188 stars 41 forks source link

The doorbell never connects to HA #233

Closed s493321320 closed 2 weeks ago

s493321320 commented 2 weeks ago

What happened?

My Hikvision Doorbell turns off every time it starts for a while and there is no physical doorbell

微信图片_20241111095434

Add-on

Hikvision Doorbell

What version of the add-on are you running?

3.0.18

Installation type

Home Assistant add-on

Relevant log output

No response

Relevant configuration

No response

Anything else?

No response

pergolafabio commented 2 weeks ago

What kind of device do you have?

s493321320 commented 2 weeks ago

您拥有哪种设备?

DS-K1T673M-RZSZ

pergolafabio commented 2 weeks ago

Ok, I will add it later to the list, so you can test it... I keep you posted

s493321320 commented 2 weeks ago

好的,我稍后会将其添加到列表中,以便您可以测试它...我会及时通知您

Thanks bro

pergolafabio commented 2 weeks ago

i just added beta 71, can you try ?

s493321320 commented 2 weeks ago

我刚刚添加了 beta 71,您可以尝试吗

Even when it's in the call state, it shows "idle"

pergolafabio commented 2 weeks ago

I just added beta 71, can you try it

Even when it's in the call state, it shows "idle"

Yes , that's normal on those devices, they don't provide the call event, there is a callstatus button, you can poll it manually?

s493321320 commented 2 weeks ago

我刚刚添加了 beta 71,您可以试用吗

即使处于通话状态,也显示 “idle”

是的,这在这些设备上是正常的,它们不提供 call 事件,有一个 callstatus 按钮,你可以手动轮询它吗?

yes,I can. does beta work with one device?

pergolafabio commented 2 weeks ago

you can add as many devices you want in the config

s493321320 commented 2 weeks ago

you can add as many devices you want in the config

Why can't my "Hikvison Doorbell" connect to two devices, and the second one doesn't work properly?

s493321320 commented 2 weeks ago

12334 QWE

pergolafabio commented 2 weeks ago

Not sure , what does the log say?

s493321320 commented 2 weeks ago

不确定,日志是怎么说的?

微信截图_20241114140103

pergolafabio commented 2 weeks ago

That looks good, I don't see any error.... Maybe stop addon, delete all the mqtt devices, restart adddon again

s493321320 commented 2 weeks ago

That looks good, I don't see any error.... Maybe stop addon, delete all the mqtt devices, restart adddon again

I feel so strange, I don't know how to express. Can you log in to my homeassistant?

pergolafabio commented 2 weeks ago

sure, i can have a quick look

s493321320 commented 2 weeks ago

That looks good, I don't see any error.... Maybe stop addon, delete all the mqtt devices, restart adddon again

第一 第二 第三

pergolafabio commented 2 weeks ago

ok, user/pass ?

s493321320 commented 2 weeks ago

好的,用户/通行证 ?

Have you logged in?

pergolafabio commented 2 weeks ago

yes

pergolafabio commented 2 weeks ago

i cant delete the device? maybe restart HA?

image

pergolafabio commented 2 weeks ago

ok, deleted and restarted, working now?

s493321320 commented 2 weeks ago

第四

s493321320 commented 2 weeks ago

It's still not working.

pergolafabio commented 2 weeks ago

i changed chinese names to device1 and device2 , now its ok ?

pergolafabio commented 2 weeks ago

maybe it has issues with device names? seems ok now

s493321320 commented 2 weeks ago

I'll try it right away.

pergolafabio commented 2 weeks ago

ok, i log out, delete all your messages here on github

s493321320 commented 2 weeks ago

How do I pay you

pergolafabio commented 2 weeks ago

i have a donate on paypal system, its up to you...

https://www.paypal.com/paypalme/pergolafabio

s493321320 commented 2 weeks ago

Do you have Alipay

pergolafabio commented 2 weeks ago

no :-)

s493321320 commented 2 weeks ago

I'll transfer you a tip tomorrow. I'll set up an account

pergolafabio commented 2 weeks ago

thnx , much appreciated!

s493321320 commented 2 weeks ago

Check out your paypal

pergolafabio commented 2 weeks ago

ty, received!! :-)

s493321320 commented 1 week ago

ty, received!! :-)

hey,Bro! I have a question. I want you to help me set up the automation system. When the doorbell rings, a pop-up window displays a monitoring screen and a button to open the door. Can you help me? I'm willing to tip more than last time.

pergolafabio commented 1 week ago

something like this, first one is an automation when the sensor changes in my case, the second one is the action if you click on the notify event , i use android

# Automation for 
- alias: 'Deurbel Hikvision'
  initial_state: 'on'
  trigger:
    - platform: state
      entity_id: sensor.ds_kd8003_call_state
      to: 'ringing'
  - service: notify.xxxx
    data:
      title: "Deurbel"
      message: "Er staat iemand aan de deur!"
      data:
        channel: Doorbell
        actions:
          - action:  deur_open
            title: "Open Door!"     
        priority: high
        ttl: 0  

## Action to use to open door 
- alias: Action Door Open
  initial_state: 'on'
  trigger:
  - event_data:
      action: deur_open
    event_type: mobile_app_notification_action
    platform: event
  action:
    action: switch.turn_on
    target:
      entity_id: switch.ds_kd8003_door_relay_0

The only thing extra you need, is a poll sensor, cause you dont have the ring event right? you need to poll/press the button every xx seconds, that based on the json you can grab the "ringing" status

once you have the polling, you can retrieve the idle/ringing state like below in an autmation

  trigger:
  - platform: state
    entity_id: button.ds_kd8003_caller_info
  condition:
  - condition: template    
    value_template: >
      {% if (state_attr("button.ds_kd8003_call_status", "CallStatus")['status']) == "ringing" %}True{% endif %} 

you can play with the template editor:

image

s493321320 commented 1 week ago

Is it " node-red " Settings automation?

pergolafabio commented 1 week ago

No, I don't use node red. Those are just automations in yaml

s493321320 commented 1 week ago

No, I don't use node red. Those are just automations in yaml

OK, we have a holiday in China on Saturday and Sunday. I'll try on Monday

s493321320 commented 1 week ago

Why did I put your code in my automated editor and get an errormmexport1731848930431.jpg

pergolafabio commented 1 week ago

Ow, I have door_open and deur_open, change that... Also, that's just an example, you probably need to change according to what you want... Maybe you need to configure a mobile app first, also notification... The example is based on android

pergolafabio commented 1 week ago

If you are new to HA, it's better use the GUI to create automations, instead of yaml

s493321320 commented 1 week ago

Bro, homeassistant is used by very few people in China. Can you log into my account like last time? Give me a sample so I can understand.

pergolafabio commented 1 week ago

That's difficult, everything is in chinese :-)

You first need to know what you want do you have already mobile/notify configured?? Lots of examples on forums Todo that

s493321320 commented 1 week ago

All right, I'll try again

pergolafabio commented 1 week ago

trial and error, thats how you learn HA :-)

s493321320 commented 1 week ago

Are there any recommended places to learn Ha

pergolafabio commented 1 week ago

the community forums, lots of examples there to find