-
Notifications
You must be signed in to change notification settings - Fork 21
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
Events not showing ? #68
Comments
Does the Last Lock User entity show Something? |
Uh, this one shows unknown, but the last lock Action is helpful! Still, I am a bit confused that I dont get any events when listening to esphome.nuki |
As far as I remember, I only send events after retrieving the events from the lock. When changing the lock state (lock, unlock,...) logs should be retrieved and then sent to Home Assistant via events. But it seems that this didn't happen at all, as the last unlock user is unknown as well (which should actually change after retrieving logs). Is there anything in the ESPHome Webserver logs/console logs with debug logging? Which Nuki Lock do you own? |
Not really anything in the logs, except for the "Retrieving logs" line I have a smartlock 3.0 pro (the build in wifi is too unstable for me and also uses unencrypted mqtt so I switched to this project) |
But meanwhile I made an automation that checks for the lock state becoming locked and checks the "Last Action" to have been LockNgo This works very well now! =D So my original issue is solved, just confused about the events part still |
Weeeell, I completely forgot about that and ended up spending quite a bit of time on it. |
AHHH understood, yes that solves it... still feels like this is quite a slow way to get infos, check this: event_type: esphome.nuki You can see the event fired much later than it actually happened... Also I am not sure I like my security pin being conserved as entity state in homeassistant =P... I rather like secrets in esphome configs But wathing ast action does 98% of what I need so I am quite happy so far, thanks for the awesome component (did I miss the logs thing about the security pin in the docs ? cause I think it is not noted there...) |
Check some of my logs here: [22:48:38][I][nuki_lock.lock:711]: lockAction Unlock (1) has resulted in success (1) |
You're right, it is slow. Unfortunately, I'm not aware of a faster way to request the data, especially since it sometimes fails multiple times and requires retries before successfully fetching the logs. One potential improvement could be dynamically adjusting the request order based on incoming events. For instance, after the first boot, we could prioritize fetching the config and advanced config as quickly as possible. However, once that's done, the focus could shift to retrieving log updates as fast as possible. This way, we can better prioritize requests depending on the situation. @uriyacovy what do you think about this idea? Regarding the pin configuration: As for the configuration itself, we could introduce a fixed fallback pin YAML option alongside the entity. This would allow for a runtime configuration option in addition to the compiled one. Alternatively, we could save the pin whenever it changes but avoid restoring it to the entity. That way, it wouldn't be displayed in Home Assistant anymore. |
Oh yes that all sounds awesome!!! But yes, for now I am not relying on the timing of the events... |
Hey There, Super awesome project!
Everything seems to work, lock is paired and functional, but listenting to esphome.nuki does not give me any events. I am using the config like in the readme with
event: "nuki"
Am I missing any thing ?
I am actually trying to catch if the user triggers a double press action, is that possible ? I am firering a LockNGo and it would be great to have that trigger an automation...
Maybe you know where I am going wrong, or have a better solution...
The text was updated successfully, but these errors were encountered: