kvj / hass_nuki_ng

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

SERVICE LOCK_N_GO? #30

Closed andybali closed 1 week ago

andybali commented 2 years ago

The Service LOCK_N_GO isn´t implemented? Nuki 3.0 without Bridge

kvj commented 2 years ago

not yet, but good idea to have it

faxmaster commented 2 years ago

Hi! First thanks for the great work, your integration is already vastly superior to the official one! The only reason I didn't delete the other one yet is the missing Lock'N'Go service. So +1 for that feature

KitHubek commented 2 years ago

I wait for this too

agarbato commented 2 years ago

This could be nice but It's something you can do with an automation.

I've a scene where I set to ON an input boolean (I call it 'leaving') With google home I trigger the scene with voice command "I'm leaving"

After that I've the following automation that unlock and then lock the door after 40secs so I have time to go out :-) You can also arm an alarm system if you have one.

alias: LeavingOpenThenLock
description: ''
trigger:
  - platform: state
    entity_id: input_boolean.leaving
    from: 'off'
    to: 'on'
condition: []
action:
  - service: lock.unlock
    data: {}
    target:
      device_id: mylockid
  - delay:
      hours: 0
      minutes: 0
      seconds: 40
      milliseconds: 0
  - service: lock.lock
    data: {}
    target:
      device_id: mylockid
  - service: input_boolean.turn_off
    data: {}
    target:
      entity_id: input_boolean.leaving
mode: single
Ra72xx commented 2 years ago

I would like to have this implemented, too. IMHO it's better to use a ready-made and builtin function, if available, than to rely on additional HA automations. Is this still on the todo-list?

kvj commented 2 years ago

There's a service for that:

service: nuki_ng.execute_action
data:
  action: lock_n_go
target:
  device_id: 83f592f5c6d885fe4698618afb5cb129

Screenshot from 2022-09-02 06-15-23

Ra72xx commented 2 years ago

Thanks for the hint! This service seems not to be documemted?!