kvj / hass_nuki_ng

Better support for Nuki devices in the Home Assistant
MIT License
184 stars 36 forks source link

Nuki Opener does not work from HomeAssistant but from NukiApp it works #115

Open stefancvetkovic opened 2 years ago

stefancvetkovic commented 2 years ago

Hello, I have a strange behavior in my home. Im using Nuki Lock and Nuki opener. Nuki Lock works 100% from Ha, and form Nuki App But Nuki opener, does not work from HA, only from Nuki App Also I can see that mine binary_sensor.bottom_door_opener_ring_action gets the state changes (when I ring on my intercome in front of enter the building, I set automatic open the door)

This is mine lovelace setup:

type: grid
cards:
  - show_name: true
    show_icon: true
    type: button
    entity: lock.nuki_front_door_lock
    show_state: true
    name: Front Door Lock
#ock.nuki_front_door_lock works
  - type: button
    entity: lock.bottom_door_opener_lock
    name: Bottom Door Lock
    show_state: true
#lock.bottom_door_opener_lock does not work

Any hints? Why mine nuki opener lock does not locks/unlocks from HA?

kvj commented 2 years ago

I don't know, I don't have any openers in my setup.

But should it work? As far as I understand, having UI "button" for any "lock" entity means that it will "lock" un-locked device and "unlock" any locked. Is it enough to "unlock" the opener? What are you trying to achieve?

stefancvetkovic commented 2 years ago

yes, I have unlock/lock button on my UI, but it doesnt work. I test also from my service tab, as calling the service, also doesnr work.

but it works from nuki app. hmm..weird

alucar-d commented 1 year ago

From HA perspective, "unlock" the opener means "activate Ring To Open", and lock deactivate it. To open the door you need to call the "lock.open" service for the opener entity

deceju commented 1 year ago

Same problem with my configuration, my opener doesn't work in home assistant but it's working with the nuki app

efolio commented 1 year ago

Same here…

Demoniete commented 1 year ago

I have the same problem. Can someone please show the command lines to solve the problem, and in which configuration file it is put. Thank you

Demoniete commented 1 year ago

The solution is to create a new button in the control panel and modify the code with your entity:

type: button entity: lock.nuki_front_door_lock tap_action: action: call-service service: lock.open service_data: {} target: entity_id: lock.nuki_front_door_lock name: Nuki