joleys / niko-home-control-II

Home Assistant Custom Integration for Niko Home Control II
MIT License
74 stars 21 forks source link

More control with Accesscontrol Videobuitenpost NHC 1 Bel - BL 550-22001 #125

Closed Pitsaer closed 6 months ago

Pitsaer commented 6 months ago

Hello,

Is it possible to have more control options with accesscontrol? In action I only see my strike opening and in sensors I have Call Answered, Call Pending and Decline call applied on all devices. And of course I have video streaming.

When my doorbell rings, I always go through the Niko app or my Niko screen (because I'm kind of obliged to...). But I'd like to use Home Assistant to do a Hangup at the very least.

If you have any info or ideas :-)

tijsverkoyen commented 6 months ago

To my knowledge all possible actions are exposed. @joleys any idea if it is possible to hang up?

nexus256 commented 6 months ago

In configuration.yaml add following shell commands. Make sure the door phone is connected to your network, not to the Niko controller module. Otherwise HA cannot communicate with the door phone!

shell_command: doorphone_hangup: curl -u admin:123qwe http://192.168.0.3/api/v1/call_hangup doorphone_mute: curl -u admin:123qwe http://192.168.0.3/api/v1/mute_set?mute=tones_incoming doorphone_unmute: curl -u admin:123qwe http://192.168.0.3/api/v1/mute_set?mute=off

Reboot HA.

Create automation (example in attachment)

Sent from my Galaxy

-------- Original message -------- From: Tijs Verkoyen @.> Date: 18/03/24 18:16 (GMT+01:00) To: joleys/niko-home-control-II @.> Cc: Subscribed @.***> Subject: Re: [joleys/niko-home-control-II] More control with Accesscontrol Videobuitenpost NHC 1 Bel - BL 550-22001 (Issue #125)

To my knowledge all possible actions are exposed. @joleyshttps://github.com/joleys any idea if it is possible to hang up?

— Reply to this email directly, view it on GitHubhttps://github.com/joleys/niko-home-control-II/issues/125#issuecomment-2004499204, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANUSBYM7HW3XGYHCRYYG7FDYY4OO7AVCNFSM6AAAAABEYH3FWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBUGQ4TSMRQGQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

tijsverkoyen commented 6 months ago

@Pitsaer can you confirm this is working? If so I will add it to the FAQ. Thx @nexus256

nexus256 commented 6 months ago

Extra info:

API handleiding: https://www.robintele.com/images/downloads/How-To_The_Robin_API_v3.6.0_NL.pdf

Handleiding: https://www.robintele.com/images/downloads/Manual-Robin-SV-3211NL.pdf

Sent from my Galaxy

-------- Original message -------- From: Ian Akkermans @.> Date: 18/03/24 20:20 (GMT+01:00) To: joleys/niko-home-control-II @.>, joleys/niko-home-control-II @.> Cc: Subscribed @.> Subject: RE: [joleys/niko-home-control-II] More control with Accesscontrol Videobuitenpost NHC 1 Bel - BL 550-22001 (Issue #125)

In configuration.yaml add following shell commands. Make sure the door phone is connected to your network, not to the Niko controller module. Otherwise HA cannot communicate with the door phone!

shell_command: doorphone_hangup: curl -u admin:123qwe http://192.168.0.3/api/v1/call_hangup doorphone_mute: curl -u admin:123qwe http://192.168.0.3/api/v1/mute_set?mute=tones_incoming doorphone_unmute: curl -u admin:123qwe http://192.168.0.3/api/v1/mute_set?mute=off

Reboot HA.

Create automation (example in attachment)

Sent from my Galaxy

-------- Original message -------- From: Tijs Verkoyen @.> Date: 18/03/24 18:16 (GMT+01:00) To: joleys/niko-home-control-II @.> Cc: Subscribed @.***> Subject: Re: [joleys/niko-home-control-II] More control with Accesscontrol Videobuitenpost NHC 1 Bel - BL 550-22001 (Issue #125)

To my knowledge all possible actions are exposed. @joleyshttps://github.com/joleys any idea if it is possible to hang up?

— Reply to this email directly, view it on GitHubhttps://github.com/joleys/niko-home-control-II/issues/125#issuecomment-2004499204, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANUSBYM7HW3XGYHCRYYG7FDYY4OO7AVCNFSM6AAAAABEYH3FWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBUGQ4TSMRQGQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Pitsaer commented 6 months ago

@tijsverkoyen Sorry for the late reply. I'll try it this week and get back to you :-) @nexus256 I don't see the example of your automation. Have a nice evening.

nexus256 commented 6 months ago

alias: NHC - Voordeur verbreek call bij openen deur description: "" trigger:

Pitsaer commented 6 months ago

That way, when someone rings the doorbell, I get the picture of the street phone displayed on my dashboard, with a hangup button and a mute button :-)

`type: vertical-stack cards:

Is there any chance of being able to pick up the phone directly and speak like in the Niko Home app or on the niko control screen?

nexus256 commented 6 months ago

The door phone only supports one SIP server (which is the NHC controller module), and one failover SIP server that will only be contacted if the NHC controller is unavailable. The NHC controller itself is connected to a cloud SIP server, to receive calls on the Niko mobile app.

If you want to answer calls on another system you would need to setup some kind of internal SIP server that handles the calls between the door phone and the NHC controller (like Asterisk) You would need to reconfigure the NHC door phone to call the new SIP server. The new SIP server then forwards the call to the NHC controller and any additional configured client. Never tested it, but I assume it is technically possible.

From: Pitsaer @.> Sent: Wednesday, 20 March 2024 10:01 To: joleys/niko-home-control-II @.> Subject: Re: [joleys/niko-home-control-II] More control with Accesscontrol Videobuitenpost NHC 1 Bel - BL 550-22001 (Issue #125)

That way, when someone rings the doorbell, I get the picture of the street phone displayed on my dashboard, with a hangup button and a mute button :-)

`type: vertical-stack cards:

Is there any chance of being able to pick up the phone directly and speak like in the Niko Home app or on the niko control screen?

- Reply to this email directly, view it on GitHubhttps://github.com/joleys/niko-home-control-II/issues/125#issuecomment-2009069736, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANUSBYP5PR3CAQOBMFTEGR3YZFF45AVCNFSM6AAAAABEYH3FWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBZGA3DSNZTGY. You are receiving this because you were mentioned.Message ID: @.**@.>>