-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Home assistant 0.111.1 Nuki update problem #36719
Comments
Yeah, I see that also in my logs. The question is what changed on lib... @pschmitt ? |
That depends. Are you using a software bridge, @Ciqsky ? |
No, with nuki lock i use only its bridge (nuki) with hassio on raspberry
Il Ven 12 Giu 2020, 19:30 Philipp Schmitt <notifications@github.com> ha
scritto:
… That depends. Are you using a software bridge, @Ciqsky
<https://github.com/Ciqsky> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#36719 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN7AGOU3JDWK2RCHFRXCCPTRWJQ33ANCNFSM4N4KPGFA>
.
|
Same error here, starting from 111.1 What seems strange is that the Nuki ID disappears from the entity: After a restart the ID appears again and the integration works. Logger: homeassistant.helpers.entity
HASS Info:
|
hm. That's odd behavior. I see these in my logs as well. pynuki isn't quite perfect yet. |
Glad it's not just me! Same problem here. |
+1 same problem here, started with latest 0.111 |
Joining the group of people that encounters this issue.
|
same problem here, started with latest 0.111 |
+1. I also wanted to share some other information: While my nuki lock is locked, from time to time I see status change in HA to unlocked when unexpected (actually nuki is still locked), firing the automations I have for that lock status. When it happened, I checked the nuki id is gone in HA. If I restart HA then the nuki id is set again and status is correct (locked). But after a while (aprox a day) the issue comes again. |
Same issue here. Factory reset of the nuki bridge (and hence a new token in configuration.yaml) resolves it, but it returns after a couple of days. I'm rebooting the Pi after editing, of course. |
+1 here, please fix |
+1, same problem |
+1, same. Nuki lock is unavailable and a bunch of Timeout errors in my logs like: "socket.timeout: timed out" Edit: I've renamed my lock in Nuki web and restarted Home Assistant and the Lock is back. will watch how long this works. |
After some update (Nuki fw?) i have many problems with Nuki. Sometimes Nuki component is not available (ok after restart again for few hours). For example right now component IS available but LOCK command fail with this error in log:
|
This issue? |
I have exactly the same problem. Both of my locks become unavailable and do not update the status until a restart of HA. Before 0.111, the service nuki.check_connection did bring back the locks to HA, but now hass does not even find the service any more. The nuki integration cannot be used in reliable automations until this bug is not resolved. Update: I went back to 0.110.7 and Nuki integration works as usual. So, there is a problem with HA 0.111. and not on the Nuki side. |
Same here. |
Same problems. |
+1 Note: that the link via IFTTT still works and can be used as a workaround. |
Works It now on 112.0 release? |
Haven't had the new release yet, but there's no mention of Nuki in the release notes. |
Just upgraded. Lock seems to be working normally so far - no errors. Fingers crossed. |
Problem still exist on on 112.0 release |
Confirm, still exist!
Inviato da iPhone
… Il giorno 2 lug 2020, alle ore 11:23, chpego ***@***.***> ha scritto:
Problem still exist on on 112.0 release
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
+1. Problem still on 112.0. 👎 |
I think id lost is connected with this piece of code:
It sets available to false after first error of bridge http call. But as we now bridge is slow and unreliable on rest api. I changed code to count errors and my new code sets available to false after 5 rest api call fails. I will report results.. |
My Nuki, opener and lock, have been stable for 50 hrs now with just the lock.py fix. |
Do you all have a Hardware Bridge in use? |
Hardware here. |
Yep, hardware bridge, Opener, Keypad and Lock. |
I also have a nuki bridge and have only changed the constructor calling (fixed the timeout problem 5 to 20 sec). My system works fine since over 3 days |
Made a custom nuki componten with the lock.zip files. Still no luck. At least one of my two nuki locks becomes unavailable and not comes back. It happens when an automation calls both locks to close or open at the same time. Thus, the lock.zip files are not the solution as all worked unser 0.110. |
Sure it's loaded properly? Mine has been up working perfectly for 140 hours now. |
Yes. I think, it's caused by simultaneous service calls two both locks. Maybe it's too much for the slow bridge API. |
That can be solved with a simple flag on INI to tell home assistant core for do not parallel service calls. |
For every loaded custom component HA generates a warning in the log on startup. If you can see this warning, your custom component is used:
By temporarily disabling one of the entities in the config you may verify, if the other entity remains available and if your problem is indeed caused by multiple nuki components somehow. |
Thank you so much, working flawlessly since 4 days! |
I just have one warning for another custom component, but not for the nuki one. Have I to disable the existing nuki lock entities in oder to get the custom nuki component loading? |
If the custom component files are located in the right folder, they should be loaded on next startup. No need to disable anything. The files should be located in Finally the custom component folder should look similar to this listing:
|
Thank you very much for the info. I just picked up the Nuki component files from github and the copied the lock.py into the right folder. How can I access the component folder on an Hass.io installation in order to copy the files? Via ssh and samba and config editor I can only access the /config folder. |
To access the components folder of your current hass.io installation you would need shell access to the host running the homeassistant docker container and open a shell inside the container, i.e. But copying them from GitHub is just fine as well. I just didn't think about this method. |
I've also has this bug. I read the conversation and tried the fix proposed by derandiunddasbo. For me it doesn't work. After upplied the fix I can easly triggered "unavaiable" state just quickly clicking many times on "lock" action. I've checked the diferences of nuki integartion between version 0.110.7 and 0.111.0. In 0.111.0 pynuki was changed from 1.3.3 to 1.3.7. Pynuki 1.3.3 works on the old api. Pynuki 1.3.7 works on api version 1.10. There are also introduced nuki opener support. Pynuki was rewrited heavly between versions. I've just downgreded nuki component to version 0.110.7 and pynuki to 1.3.3. For now it works. |
Sorry for the question: bit where do you find pynuki.py as older version and where do I have to place it? Thanks. |
Do nothing with pynuki. Follow the derandiunddasbo instruction about custom components but download version 0.110.7 of nuki component form githab (not the latest). In file manifest.json there is information about required version of pynuki: "requirements": ["pynuki==1.3.3"]. Base on that HA will download correct version of pynuki. Don't try to mix old version of pynuki and newest version of nuki component - it doesn't work. |
Anyway. I'm pretty sure that I fixed the here described issue at a pynuki level with version 1.3.8. For implementation details see the upstream commit and my comment in the corresponding issue. I must say that I'm not exactly a fan of the fact that the hass component uses aggressive polling by default. This should really be avoided at any cost. I was myself wondering why the batteries were running out so quickly on my lock... |
Oh yeah. Can someone please confirm if pynuki 1.3.8 fixes this here issue? And open a PR with the requirements update? 👼 EDIT: PR opened -> #38159 |
@pschmitt yes, i will try ;) |
I'm using nuki with the newest pynuki librabry (version 1.3.8) from several hours. I've also performed few stress tests. Previously these test caused the problem, now nuki survive all these tests. For me is ok. |
Issue closed but i think some problem is still there. Now HA Nuki component is probably fixed and more reliable. BUT! I think Nuki bridge is still unreliable, because i have many small "unavailable" thin grey lines on Nuki HA graph. I will try to continue issue on Nuki dev web. |
@bigboban that's another issue. Please open a new one for this. |
I think the problem may not be fixed, had the Lock go unresponsive after a week or so of uptime on latest HA version. |
The problem
After update to 0.111.1 my nuki lock do not update status.
Environment
host_os | HassOS 4.10
os_version | 4.19.126-v7
python_version | 3.7.7
supervisor | 227
version | 0.111.1
Problem-relevant
configuration.yaml
Traceback/Error logs
logs:
Logger: homeassistant.helpers.entity
Source: components/nuki/lock.py:124
First occurred: 11:40:21 (377 occurrences)
Last logged: 14:56:51
Update for lock.porta fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 472, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/nuki/lock.py", line 124, in update
self._nuki_device.update(aggressive=level)
File "/usr/local/lib/python3.7/site-packages/pynuki/device.py", line 90, in update
"Failed to update data for lock. "
AssertionError: Failed to update data for lock. Nuki ID None volatized.
Additional information
found also pschmitt/pynuki#54 but my problem is not with netgear
The text was updated successfully, but these errors were encountered: