-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Major Z-Wave bug since 0.33 #4867
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
Comments
I think your issue was resolved in 0.33.1. Try updating to the most recent release and see if the issue persists. |
Thanks, it was not fixed. I h 8000 ave tried the latest release and had to downgrade. Here are other reports of this same Z-Wave problem. https://community.home-assistant.io/t/z-wave-devices-stop-reporting-to-hass/6636/4 |
Not fixed in 0.34.5 either. |
I'm also seeing this- it looks like we see an event in the log for calling the turn_on service, but we see no subsequent state change event. So in the UI it looks like the switch turns on momentarily (the light correctly turns on too), and then the switch reverts back. I'll try to get some logs later tonight. I'm running the latest current version 0.34.5 |
I am having the same issue. Seems to be an issue with only light entities and not switches. Works okay in 32.4 but any revision higher is a no go for me. It also appears that it is happening with various manufacturer switches. Seems like I have to turn a light on then off then back on for the state to properly reflect. |
Oh good observation. I have both switches and lights- so I'll try both also |
Yeah i just tried this too- i tend to agree that the light controls definitely seem to be part of the problem. If i just touch the zwave switches, they seem solid. For lights, however, we get in this "limbo" state, where the light controls is not updating. Also, when in this state, it does seem to impact the switches as well. It's almost like the zwave updates get queued up, and the switches don't update until the light gets synched up again too. |
One thing I see though it that states don't update even outside of the UI. So if I turn on a switch or lock a lock, after being polled, they sometimes do not reflect that state in HA. |
Is everybody using the Aeotec controller? Wondering why this is not wide spread. Maybe isolated to the controller. |
Yes Aeotec ZStick for me. |
I'm also experiencing this, but I need to quantify further which actions result in this behavior. I also have an Aeotec Z-Stick Gen 5. |
I also have an aeotec zstick gen 5 |
I'm also having this problem now. Haven't tried a restart yet. @turbokongen can you take a look when you have time? |
This is almost certainly related to async changes and the z-wave polling interval. |
Ok- so taking a closer look at how the z-wave library + hass works, it's very, very similar to what I did with the envisalink component. In that case, i had a polling mechanism built within the pyenvisalink library, and used pydispatch to update hass on a poll timer + any live events. When the async switch happened, i had to update component states using the following: In the zwave case, it still looks like it's using sub-threads, so we have this weird updating of states through the event loop AND in a subthread.... Looks like there's a new helper method called schedule_update_ha_state which is very similar to the command i referenced above. Perhaps that is what the zwave component needs to use... |
I think I have the same issue. I set up a generic_thermostat and the switch is Z-Wave. The UI doesn't change when the switch is turned on by the thermostat. |
What I also noticed is that after some time, one of the hass threads starts using 100% from one my RPi2 cores, and it looks as if it's hung. I attached using gdb and I saw that the executed code is different between breaks, so probably it's not stuck but the 100% usage never drops unless I restart. At one point the thread was calling the open z-wave library. |
I'm on the latest dev version. I think the z-wave issues are getting worse. Sometimes I'll flip switches and nothing will happen. Then, when I turn off HASS, suddenly all those actions will happen at once and I get a bunch of async+zwave stacktraces. Unfortunately I don't know enough about async, or zwave, to properly fix this. |
Also having this problem. Running 0.35.2 on RP3 AIO and Aeotec Z-stick 5. HASS not showing state changes for GE z-wave dimmer switches. If an automation or some external controller (like Alexa) changes the state, HASS dashboard does not reflect the changes. If I change the state manually from the dashboard, HASS dashboard reflects proper state as expected. |
Just some feedback from me.... I'm not seeing any issues like this reported here but I do have the fibaro dimmer 2 and the everspring an157/an158 that I use with the aeotec zstick gen 5. I guess this issue is related to the type of devices being used. |
Someone should test with latest dev code to see if this is resolved. |
I tested it. I have a HomeSeer WD100 switch. The more I toggle a given physical switch, the less likely the UI actually updates. |
I'll give it a try later tonight- but in terms of the ui not updating when physically changing the switch, I know on my dimmers there was a special config setting I had to set on the dimmer to advertise all changes to the controller- by default it would just sync up with the switches in the immediate group (the accessory dimmer). |
Okay- i just re-pulled dev and tried again. It didn't seem to solve the issue. HOWEVER, In my case, the more i look at it, the more I think perhaps it's just my zwave controller getting behind. I've attached a snippet from both hass log and openzwave log. is it at all possible that older versions "assumed" the state of the switch until told otherwise? |
My report: on latest dev branch, z-wave devices are acting more responsively than ever. GUI updates when I toggle my GE switches physically and the lights switch immediately when I toggle them in the GUI. Happy so far. I have Aeotech Z-stick on a Raspberry Pi 2. |
@Cinntax Timeouts are problems on the zwave network, and not a problem in HA. You can tweak the openzwave settings, by adjusting timings at the file options.xml in the openzwave config dir. Also when everything is rediscovered, use the network heal, and look for timeouts or errors during the heal, That will give you a hint on what nodes are problematic. Before the UI waited 0.5sec before it assumed failed command, but now it is waiting 2 secs, so that should just make it better. 10 seconds delay is alot on the zwave network. A healthy network should give callback in 1-4secs depending on size. If somebody needs help decoding the ozw log, Pm me and I will have a look at it, and give some hints and try to explain. |
Some more tips:
If that does not do the trick, or just nearly, add:
It is important that these are set under the zwave section in customize, NOT the homeassistant section. |
Thank you very much! I'll give it a shot and let you know! I definitely understand that the real problem, at least in my case, resides outside of hass, but it looks like these may help at least make it less noticeable. |
So I went ahead and deleted my xml zwcfg_*_.xml file within the .homeassistant folder, and yes that did seem to make everything FAR more robust. I know over the last few months I've added a few switches, change OZW versions, etc. so I suppose in my case the network was just not operating as efficiently as it should have been. I can see how your other fixes would also help in the event that we're not getting timely callbacks, but I'll hold off on those changes unless I feel they're needed. Thank you! |
Did you try the suggestion with the breakers? I think the problem was when
you turned the breakers back on. I had brownout recently and half my
switches started doing this (once one did it, they all did until restart).
Flipping the breaker cleanly fixed it again.
…On May 4, 2017 12:27:23 AM parneli ***@***.***> wrote:
Just gone to set up a new Zwave plug, in particular the Aeon Labs Z-Wave
Plus SmartSwitch
Looks like I am experiencing this issue whereby the UI does not update at
all if using the manual switch (although will work after the HASS services
are restarted), I started to think this is by design but I suspect not
after reading further. I can see the following in the OZW.log which
suggests the switch is annoucing the change.
> Info, Node003, UPDATE_STATE_NODE_INFO_RECEIVED from node 3
I have tried the above suggestion to add a refresh value but I can't get
the below config to work:
` customize:
switch.aeotec_zw096_smart_switch_6_switch_3_0:
refresh_value: true
delay: 5 `
Appreciate any guidance if anything I am doing is wrong, else may be
related to this issue.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#4867 (comment)
|
Same issue for me on 0.44.1. It seems laggy/unresponsive from home assistant on my raspberry pi 3 and z stick to aoetec Z096 smart switches. I notice that after a few iterations, the switch connectivity "wakes up" and becomes more responsive. |
So this issue is very random it seems. Let's try to find out where the problem is: Check the node entitiy states for the problematic devices. The Aeotec switch node of mine has 46ms and 29ms for response times(Round-Trip-Time). |
The issue I see applies to every single Z-Wave light, switch, and lock so I am not sure what looking at the specific device information is going to solve. I have also tried every refresh_true setting from 1-5 and it does not fix the issue. The switches in front end keep flipping after I change the state, and then they update to the proper state after, not just light specific. Anything else to try? |
Have a look at my post again. This is not specific to any type of device. RTT times are how much time it takes for the node to respond back to the controller after a command. So if it takes longer than 2 secs (2000ms)it will flip back. Check the RTT times. |
Why did this start happening with 0.33? |
No idea. Reviewing the changes made to zwave from 0.32.4 to 0.33.4 there is minor changes, we added the possibility to configure delay of value refresh to lights, some refactoring of the climate component and a bugfix to cover component. |
Prior to 0.33 I was using the delay-of-value-refresh with lights just
fine... how do you mean that it was just added? Why and how did this change?
…On Sat, May 20, 2017 at 3:16 AM John Arild Berentsen < ***@***.***> wrote:
No idea. Reviewing the changes made to zwave from 0.32.4 to 0.33.4 there
is minor changes, we added the possibility to configure delay of value
refresh to lights, some refactoring of the climate component and a bugfix
to cover component.
So if we are going to figure out why this only happens to some and not
others, we need to look at the basics first.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4867 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABGTom_xJp9_ESMsH7_xEGXg-LNoHaEks5r7pNWgaJpZM4LKjSs>
.
|
Prior to 0.33 it was at default 2secs for ALL devices except the workaround devices. Not configurable. The workaround devices had 5 sec refresh. This made problems with devices that support instant notifications, flooding logs with refresh values. So we added an opt-in for the refresh. Meaning ALL devices will not refresh values by default. If you opt-in with the config (refresh_value: true) then it is set for default 2 secs. If you also specify the delay option, it will delay by that amount of seconds. |
Example with two problematic lights in the front end and also the lock. Please let me know what input to try so these don't flip back and forth. Thanks turbo
And
|
@jsg4 In your examples: |
Trying that now. My point though is that before 0.33 even the lock did not flip and back forth in the front end, this issue did not happen for however long Z-Wave has been in HA until 0.33. |
I'm not sure when, but before the 2sec wait change we only had 1sec, so that would be even worse. |
Didn't work. Here's screenshot and video. |
But the problem is only the back and forth flipping of switches? It will display correctly after a short period of time? |
Correct, it always shows the correct state after that, so it's just a visual front end thing. Makes it annoying when using something like Homebridge for instance as you receive alerts like door is unlocked and 5 seconds later door is locked. |
cc @pvizeli @balloob @robbiet480 Any of you with suggestions? |
My situation does not fix itself until a restart of the zwave services, it doesn't update in HASS until you send another command to the device and the state thinks it is still the last sent command. Power cycling the switch hasn't worked. Trying to add refresh value .. delay 1 but saying invalid config ?
Happy to try any suggestions, as stated above you can see the zwave log upating so its not the zwave network, my RTT is about 36 network looks fine. |
I seemed to have resolved my issue/s, with a combination of upgrading to the latest HASS 45.1 and OZW OpenZwave Version 1.4.2508 but also changing the above code from customize to device_config : |
It looks like the big change from 0.32 to 0.33 was that we switched to asynchronously firing off the state change instead of blocking. 0.32.3...0.33#diff-758847d0dd4b50b523c035461d973f60R99
|
@armills Thanks for investigating — your description does seem to track pretty well with my observed behavior. Unfortunately, the Z-Wave set up I have access to is nowhere near me for months at a time, so I have limited ability to test this myself. I hope that some other folks who are experiencing this problem might be able to step up and help. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
For anyone else who stumbles across this issue, it should be fixed by #9430 — which is currently blocked on OpenZWave/open-zwave#1352. If it's still not updated by the end of the year I should at least be able to do some testing when I'm physically present at the house where I set up HA. |
@nriley , I have tested out #9430 with the OpenZWave/open-zwave#1352 fix in pace as well and it does fix the issues described above (with a Home Seer HS-WD100+). Unfortunately, there hasn't been any feedback on the open-zwave PR, positive or negative, so it's hard to say when this will get merged. I'm try bumping the open-zwave PR to see if there is anyone in particular to talk to about it. |
I am seeing Z-Wave states reporting improperly for all types of devices since 0.33. Additionally, when HA tries to turn on a light switch for instance as part of a scene, that state is not even reflected in the front-end sometimes. And if I manually turn on a light switch or lock, the state does not change sometimes.
As soon as I installed back to 0.32.3 this issue is 100% fixed.
Home Assistant release (
hass --version
):0.33
Component/platform:
Z-wave
The text was updated successfully, but these errors were encountered: