Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New firmware finally upload but in HA MQTT I have most of the settings but no toggle button for lock/unlock #618

Closed
1 task
bertybassett opened this issue Jan 27, 2025 · 22 comments
Labels
Not NukiHub related question Further information is requested

Comments

@bertybassett
Copy link

bertybassett commented Jan 27, 2025

PROBLEM DESCRIPTION

finally flashed the new firm 9.09-master1 to the w32-eth01 and everything is OK however HomeAssistant is missing a lock button like the old firmware, instead I have just 3 entries

Lock 'n' Go
Lock 'n' Go with unlatch
Open

Where is the old toggle button with lock and unlock or at least a normal lock button

Publishing the payload lock/unlock to nukihub/lock/action does work

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

System Information
------------ NUKI HUB ------------
Device: ESP32
Version: 9.09-master1
Build: 12980624914.253.1
Build type: Release
Build date: 2025-01-27
Updater version: 9.09-master1
Updater build: 12980624914.253.1
Updater build date: 2025-01-23
Uptime (min): 19
Config version: 909
Last restart reason FW: NotApplicable
Last restart reason ESP: ESP_RST_POWERON: Reset due to power-on event.
Free internal heap: 84988
Total internal heap: 246356
PSRAM Available: No
Network task stack high watermark: 8268
Nuki task stack high watermark: 5120

------------ GENERAL SETTINGS ------------
Network task stack size: 12288
Nuki task stack size: 8192
Check for updates: Yes
Latest version: 9.09-master1
Allow update from MQTT: No
Update Nuki Hub and Nuki devices time using NTP: No
Web configurator username: Not set
Web configurator password: Not set
Web configurator bypass for proxy IP: Not set
Web configurator authentication: Basic
Session validity (in seconds): 3600
Session validity remember (in hours): 720
Duo Push MFA enabled: No
Web configurator enabled: Yes
HTTP SSL: Disabled
Advanced menu enabled: No
Publish free heap over MQTT: No
Nuki connect debug logging enabled: No
Nuki communication debug logging enabled: No
Nuki readable data debug logging enabled: No
Nuki hex data debug logging enabled: No
Nuki command debug logging enabled: No
MQTT log enabled: No
Webserial enabled: No
Bootloop protection enabled: No

------------ NETWORK ------------
Network device: WT32-ETH01
Network connected: Yes
IP Address: 192.168.0.15

------------ NETWORK SETTINGS ------------
Nuki Hub hostname: nukihub
DHCP enabled: Yes
Restart ESP32 on network disconnect enabled: No
Disable Network if not connected within 60s: No
MQTT Timeout until restart (s): 60

------------ MQTT ------------
MQTT connected: Yes
MQTT broker address: 192.168.0.22
MQTT broker port: 1883
MQTT username: Not set
MQTT password: Not set
MQTT base topic: nukihub
MQTT SSL: Disabled

------------ BLUETOOTH ------------
Bluetooth connection mode: New
Bluetooth TX power (dB): 9
Bluetooth command nr of retries: 3
Bluetooth command retry delay (ms): 100
Seconds until reboot when no BLE beacons received: 60

------------ QUERY / PUBLISH SETTINGS ------------
Lock/Opener state query interval (s): 1800
Publish Nuki device authorization log: Yes
Max authorization log entries to retrieve: 5
Battery state query interval (s): 1800
Most non-JSON MQTT topics disabled: No
Publish Nuki device config: Yes
Config query interval (s): 3600
Publish Keypad info: No
Keypad query interval (s): 1800
Enable Keypad control: Yes
Publish Keypad topic per entry: No
Publish Keypad codes: No
Allow checking Keypad codes: No
Max keypad entries to retrieve: 10
Publish timecontrol info: Yes
Keypad query interval (s): 1800
Enable timecontrol control: Yes
Publish timecontrol topic per entry: Yes
Max timecontrol entries to retrieve: 10
Enable authorization control: Yes
Publish authorization topic per entry: Yes
Max authorization entries to retrieve: 5

------------ HOME ASSISTANT ------------
Home Assistant auto discovery enabled: Yes
Home Assistant auto discovery topic: homeassistant/
Nuki Hub configuration URL for HA: 192.168.0.22:8123
Nuki Hub ID: 101307317986208

------------ NUKI LOCK ------------
Lock enabled: Yes
Lock Ultra enabled: No
Paired: Yes
Nuki Hub device ID: 4145312077
Nuki device ID: ***
Firmware version: 2.15.3
Hardware version: 11.2
Valid PIN set: Yes
Has door sensor: No
Has keypad: No
Timecontrol highest entries count: 0
Authorizations highest entries count: 0
Register as: Bridge

------------ HYBRID MODE ------------
Hybrid mode enabled: No
Force Lock ID: No
Force Lock Keypad: No
Force Lock Doorsensor: No

------------ NUKI LOCK ACL ------------
Lock: Allowed
Unlock: Allowed
Unlatch: Allowed
Lock N Go: Allowed
Lock N Go Unlatch: Allowed
Full Lock: Allowed
Fob Action 1: Allowed
Fob Action 2: Allowed
Fob Action 3: Allowed

------------ NUKI LOCK CONFIG ACL ------------
Name: Disallowed
Latitude: Disallowed
Longitude: Disallowed
Auto Unlatch: Disallowed
Pairing enabled: Disallowed
Button enabled: Disallowed
LED flash enabled: Disallowed
LED brightness: Disallowed
Timezone offset: Disallowed
DST mode: Disallowed
Fob Action 1: Disallowed
Fob Action 2: Disallowed
Fob Action 3: Disallowed
Single Lock: Disallowed
Advertising Mode: Disallowed
Timezone ID: Disallowed
Unlocked Position Offset Degrees: Disallowed
Locked Position Offset Degrees: Disallowed
Single Locked Position Offset Degrees: Disallowed
Unlocked To Locked Transition Offset Degrees: Disallowed
Lock n Go timeout: Disallowed
Single button press action: Disallowed
Double button press action: Disallowed
Detached cylinder: Disallowed
Battery type: Disallowed
Automatic battery type detection: Disallowed
Unlatch duration: Disallowed
Auto lock timeout: Disallowed
Auto unlock disabled: Disallowed
Nightmode enabled: Disallowed
Nightmode start time: Disallowed
Nightmode end time: Disallowed
Nightmode auto lock enabled: Disallowed
Nightmode auto unlock disabled: Disallowed
Nightmode immediate lock on start: Disallowed
Auto lock enabled: Disallowed
Immediate auto lock enabled: Disallowed
Auto update enabled: Disallowed
Reboot Nuki: Disallowed
Motor speed: Disallowed
Enable slow speed during nightmode: Disallowed

------------ NUKI OPENER ------------
Opener enabled: No

------------ GPIO ------------

Retain Input GPIO MQTT state: No

TO REPRODUCE

Steps to reproduce the behavior:

EXPECTED BEHAVIOUR

a lock toggle button within MQTT in home assistant that I can press or use in automations.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

Image Image

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

@iranl
Copy link
Collaborator

iranl commented Jan 28, 2025

Not sure where you updated from but Home Assistant had multiple changes in the last few versions.

This has caused duplicate devices in Home Assistant in many cases. Make sure that there you are looking at the "right/latest" device in Home Assistant. There should be a device for Nuki Hub and for each Nuki device (lock and/or opener) you have paired to Nuki Hub.

Also you haven't posted your info page but the main page, this is not what we ask for.
Please provide the correct information. You can access the info page by clicking on the firmware version on the main page or by entering the correct webaddress as outlined in the issue template to access it directly

@iranl iranl added question Further information is requested template missing/incomplete labels Jan 28, 2025
@bertybassett
Copy link
Author

bertybassett commented Jan 28, 2025

updated from a firmware of at least 12 months old.

and there is no lock button in any of my HA MQTT screens as you can see from my screenshots

Image Image Image Image

@iranl
Copy link
Collaborator

iranl commented Jan 28, 2025

What version of Home Assistant are you running?

@bertybassett
Copy link
Author

HA is version 2025.1.4!

Image

@iranl
Copy link
Collaborator

iranl commented Jan 29, 2025

Please post the content of the MQTT topic homeassistant/lock/NUKI_ID/smartlock/config and homeassistant/switch/15_DIGIT_NUMERIC_RANDOM_ID/reset/config (check using MQTT explorer or similar)

And check your HA logbooks for errors related to Nuki Hub MQTT discovery

@bertybassett
Copy link
Author

bertybassett commented Jan 29, 2025

There was no topic for Home assistant and not a single mention of the word MQTT in the HA logs

Image

@mundschenk-at
Copy link
Collaborator

You probably did not subscribe to it when connecting in the MQTT Explorer frontend.

@bertybassett
Copy link
Author

I subscripted to #. Is that not the right thing to do?

Image

@bertybassett
Copy link
Author

Enable Home Assistant auto discovery was not ticked in NukieBridge

Fixed that, now grabbing the screenshot

@bertybassett
Copy link
Author

bertybassett commented Jan 29, 2025

homeassistant/switch/101307317986208/reset/config

{"dev":{"ids":["nuki_101307317986208"],"mf":"Technyon","mdl":"Nuki Hub","name":"nukihub","sw":"9.09-master1","hw":"ESP32","cu":"192.168.0.22:8123"},"~":"nukihub","name":"Restart Nuki Hub","unique_id":"101307317986208_reset","avty":[{"t":"~/maintenance/mqttConnectionState"}],"opt":"false","stat_t":"~/maintenance/reset","ent_cat":"diagnostic","cmd_t":"~/maintenance/reset","ic":"mdi:restart","pl_on":"1","pl_off":"0","stat_on":"1","stat_off":"0"}

@mundschenk-at
Copy link
Collaborator

It is, but I have found that it does not always work in MQTT explorer. if there was nothing under homeassistant, no entities would show up in HA for MQTT devices at all (unless you configured them manually in YAML).

@bertybassett
Copy link
Author

exactly I have no other MQTT devices just the nukiESP32 bridge

@bertybassett
Copy link
Author

bertybassett commented Jan 29, 2025

Image

See the picture I now have a topic in MQTT but not lock button in HA

@mundschenk-at
Copy link
Collaborator

mundschenk-at commented Jan 29, 2025

There should also be homeassistant/status published by HA, but maybe it is possible to disable that when setting up the MQTT integration (I don't want to check).

Anyway, look for topics under homeassistant/lock

@bertybassett
Copy link
Author

I can see a lock topic and a button topic (with lock and Go, etc) but no close or actual toggle lock button

Image

@bertybassett
Copy link
Author

toggling these on/off

Image

Made a open button appear in HA

but in the old firmware before the hard flash via the USB cable I had a single toggle button for the lock. Is that still possible?

@bertybassett
Copy link
Author

bertybassett commented Jan 29, 2025

Image

Open has appeared but was disabled in HA.

What is the option in nuki ESP32 bridge under access level control Full lock

@bertybassett
Copy link
Author

bertybassett commented Jan 29, 2025

Image

Toggling the Lock N Go option gives and removes the option within HA under MQTT devices NukiLock

Toggling lock or unlock or full unlock does nothing in HA.

Let me know what to check next

@bertybassett
Copy link
Author

Image

@iranl
Copy link
Collaborator

iranl commented Jan 30, 2025

So your issue was first that you didn't enable Home Assistant discovery in Nuki Hub.
Any device you saw in Home Assistant before that time was a leftover of an earlier version of Nuki Hub.

Your MQTT topics shows Nuki Hub has correctly created all topics. The lock device / button is under the homeassistant/lock/1830fc95/smartlock/config topic and the Nuki Hub device is primarily under the homeassistant/switch/101307317986208/reset/config topic.

If there are still issues this is on the side of your Home Assistant instance and not on Nuki Hub's side.

You should look for a device named "nukihub" and a device named "Frontdoor" in your list of MQTT devices in Home Assistant.

@bertybassett
Copy link
Author

bertybassett commented Jan 30, 2025

where from MQTT does nuki ESP32 bridge get the name frontdoor from?

@bertybassett
Copy link
Author

fixed it by factory resetting the nuki ESP32 hub setting. Most likely something I click or did in the setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not NukiHub related question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants