pergolafabio / Hikvision-Addons

Home Assistant: Hikvision Doorbell
188 stars 41 forks source link

Support for te indoor station alarm output relays #218

Closed fatmacheto closed 3 months ago

fatmacheto commented 3 months ago

Is there an existing feature request for this?

Add-on

Doorbell

Your feature request

Most of the indoor stations have 2 relays inbuild which can be controlled from the Hik-Connect app or the indoor station screen itself etc. Usually they are used to trigger external lights or additional gates in the house as they are located directly on the home page of the indoor station. The 1 relays can be renamed so they have a custom name on the indoor station as well as custom triggering time.

It will be nice if those are visible in HA as we can use the buttons on the screen to trigger something in HA. For example in my case I have 1 garage doors (soon 2) 2 fence doors and and 1 pedestrian door in my house and I have KD8003 installed which supports only 2 relays so I am obviously short on relays and I have to use the indoor station relays for this purpose. Unfortunately I can but I am too lazy to run a wire between the gates and the door phone (which are all smart) so at this stage I created an action that when door station relay 2 (not wired) is triggered, it will open my garage door. If I could see the 2 additional indoor station relays in HA I could use them to trigger my fence gates without any wiring.

Another more simple example is if you trigger indoor station relay 1, then you trigger your external lights and so on. I think it will be a great addition for people with existing indoor stations to have that option to use the screen to trigger some automations in HA.

pergolafabio commented 3 months ago

Hi, in the addon config, you can already add a second device, that gives you 2 entities, i also have the 8003 and 9510 as indoor, if you add the indoor too, its like below, it will add 2 com ports that you can trigger

please not, there is no state, you can only trigger it... Note , not all indoor devices do support the "com relay", so its trrial and error image image

fatmacheto commented 3 months ago

Oh great to hear that! I was refereeing to the original documentation of the add on and on the indoor station screen there where only 3 items available. I have 9510 and 8350 and will test it.

Thanks.

fatmacheto commented 3 months ago

Just Tested it! Works Great!

image

pergolafabio commented 3 months ago

Perfect!! :-)