bas_vdl
(Bas)
December 16, 2022, 8:45am
1
Hi,
I have Nuki 3.0 Pro integrated via the UI. I can lock, unlock and open the door.
I was pleased to see that you can add a code when creating a button calling any of the lock.* services. However, when I click the button, HA will never ask me for the code.
I’m a bit confused about what is going wrong here.
I’ve tried the lock.unlock, lock,lock and lock.open service, and different codes (text and numeric only).
Running the HA docker image 2022.11.2
Thank you in advance!
show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: lock.open
data:
code: '12345'
target:
entity_id: lock.nuki_812681190
icon: mdi:door-open
hold_action:
action: none
bas_vdl
(Bas)
December 16, 2022, 5:34pm
2
I think I found my answer…
opened 10:58PM - 26 Dec 20 UTC
closed 10:25PM - 28 Dec 20 UTC
integration: homekit
## The problem
<!--
Describe the issue you are experiencing here to communi… cate to the
maintainers. Tell us what you were trying to do and what happened.
-->
I am using the current version of home assistant and the homekit integration.
I configured my lock with a code but iPhones are not asking for it. You can open/close the lock as you like without entering it
With a configured code I would expected to be asked for it.
## Environment
<!--
Provide details about the versions you are using, which helps us to reproduce
and find the issue quicker. Version information is found in the
Home Assistant frontend: Configuration -> Info.
-->
Home Assistant Core release with the issue: 2020.12.1
Last working Home Assistant Core release (if known): n.a.
Operating environment (OS/Container/Supervised/Core): Home Assistant OS 5.9 / 2020.12.7 / Docker Version | 19.03.13
Integration causing this issue: group covers
Link to integration documentation on our website: https://www.home-assistant.io/integrations/homekit/
## Problem-relevant `configuration.yaml`
<!--
An example configuration that caused the problem for you. Fill this out even
if it seems unimportant to you. Please be sure to remove personal information
like passwords, private URLs and other credentials.
-->
```yaml
#################################################################
## HomeKit
#################################################################
- name: HomeKit Lotz
port: 51827
filter:
include_entities:
- lock.hausture
entity_config:
lock.hausture:
code: 123456
name: Eingangstür
```
## Traceback/Error logs
<!--
If you come across any trace or error logs, please provide them.
-->
not available
```txt
```
## Additional information
I used the following configuration hint:
```
code string (optional)
Code to arm / disarm an alarm or lock / unlock a lock. Only applicable for alarm_control_panel or lock entities.
Default: <No code>
```
Somebody else has the same problem and did not find a solution for it:
https://community.home-assistant.io/t/homekit-lock-with-code-does-not-work/232558/3
I hope I filled out everything right.
If I did a mistake, I can easily correct/add things...
Merry chrismas and thanks for your work with home assistant!
Sebastian
bas_vdl
(Bas)
December 16, 2022, 6:10pm
3
And my solution
type: button
tap_action:
action: call-service
service: lock.lock
target:
entity_id: lock. nuki_812681190
confirmation:
text: Are you sure you want to open the door?
1 Like