-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Vera Hub Sensor States Not Updating in Home-Assistant #24987
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
Vera Hub Sensor States Not Updating in Home-Assistant #24987
Comments
+1 Same issue 0.95.4 After re-starting Hassio, a couple of hours later motion sensors (Philio, Neo Coolcam, D-Link) stop updating event in Hassio. All automations based on them stop working. They are still reporting events at Vera Lite unit though. I set the Vera component in debug logging and it shows normal polling activity until eventually it stops reporting and polling. It just stops reporting polling activity 😦 Last lines in the logs are 2019-07-07 11:15:00 DEBUG (Vera Poll Thread) [pyvera] get_changed_devices() requesting payload {‘timeout’: 30, ‘minimumdelay’: 200, ‘id’: ‘lu_sdata’, ‘loadtime’: 1562385868, ‘dataversion’: 385901882} Look as if HA gets a timeout when waiting for Vera to reply, it won’t continue polling. Is this the case? Is this the expected behaviour? If so, could it be tweaked by adjusting timeout, or not stopping polling even if a timeout is eventually got? |
This happened after updating hassio from 0.94 to 0.95. After removing the vera component from configuration.yaml restarting home assistant then adding it back, the hub would work fine and all the sensors would show in home assistant and their status would update all the time. but then after couple of hours the sensors would stop updating in home assistant and it just idles. the sensors are working fine in the vera UI but not in home assistant. any help with this will be much appreciated. Thank you |
I'm having this exact same issue since 0.95 as well. All versions of 0.95 are affected. As above, after a few hours it seems the sensors attached to Vera stop reporting requiring a restart of HA to get them to work again. In 0.94 it's working flawlessly. |
Me too. Vera sensors update upon restart but stall from thereon untill next restart. I'm on 0.95.4. Had no problems in 0.94. |
@jeroenjoosse , @hmmz77 , @basharfaraj , @JIOB Just to ensure we're all experiencing the same issue -and not different ones-, would you be able to gather and share some logs from your HA? I think that would help whoever can help troubleshooting the issue. What I did to get mines was adding this at configuration.yaml and restart: logger:
default: critical And then, when your sensors stop updating in HA, you can just extract the last few lines from home-assistant.log file at your /config folder. Thanks! |
Unfortunately I've already rolled back to 0.94. I'll have to see when I have some free time to update and troubleshoot. |
Ah yes same here, rolled back after posting the above. I'll check tonight if the logs file allows me to see past the rollback. |
@jeroenjoosse I'm affraid logs are re-started once you reboot hassio. However, I decided to downgrade yesterday to 0.94 and it's now working flawlessly. So for me looks to be the same issue, and my own logs couple help anyone with enought knowledge to anylize and eventualy fix this. Thnks |
@JIOB Can we label this as integration:vera? |
This one may fix itself by just waiting for the next release. See this commit: I updated the components/vera/manifest.json in my HA installation to use pyvera 0.3.2 as per that change, restarted, and I haven't had an issue since. Obviously there may be other issues with cherry-picking a change like this but I really didn't want to revert to 0.94 and deal with the google calendar authentications all over again. |
Same problem here. I've turned on pyvera debugging and restarted so if it stops again I will post the logs. |
Do you mean the issue is in fact related to that incorrect reference to pyvera release, and fix Will be included in 0.96.0? Thanks in advance |
I can't say for sure but my guess is that some change in 0.95 is causing problems with the existing version of pyvera (0.3.1). The commit I linked updates pyvera to 0.3.2 and based on modifying my own system to use pyvera 0.3.2 with HA 0.95.4 I am concluding this will likely be automatically fixed if that commit is included in the next release. |
can you please tell us what you did and how exactly you did it ? Thank you |
@basharfaraj The version of pyvera that was included with HA 94.4 (last known working) was 0.2.45 pyvera 0.3.2 is included in my docker image so I can just make the changes in the two files referenced in the commit @InkblotAdmirer linked and it should be good to go. You may or may not have 0.3.2 installed if you are not running this in docker? To confirm you have pyvera 0.3.2 installed, run the following: Changes to make: Or alternatively wait for HA 96.x to be released. |
Thans @alanthewilf for your delailed explanation! Looks like this kind of modifications are not allowed for Hassio. Let's crossfingers with 0.96 |
Well, I did all that and... it doenst work. 10 hours later Home Assistant stoped pulling states from vera. |
I only edited the version number in homeassistant/components/vera/manifest.json -- did you restart HA after the edit? I am using hassbian and have also upgraded to python 3.7.3. No idea if this is related either but it cleaned up errors in my logs that I hadn't gotten around to troubleshooting yet so it may be possible? In any case, if you've already reverted to 0.94 no reason to mess with this -- it's probably wiser to wait until 0.96 comes out and monitor reports on that version prior to upgrading. |
After this entry in the log: Jul 13 06:45:18 raspberrypi2 hass[1571]: Exception in thread Vera Poll Thread: All automation that was based on |
Tried DEV version, still broken... |
@lielle1 How is your home assistant installed and what is it running on? When you installed the DEV version, did you confirm your version of pyvera was 0.3.2? Did you run pip install pyvera? Or like @InkblotAdmirer have you upgraded to python 3.7.3 (which I believe would update your pyvera at the same time)? I've been running this with the changes from the commit @InkblotAdmirer referenced and mine has been running happily since making those changes - 3 days so far (with a reboot about 36 hours ago to enable a new integration). My only other change was to fix an Aeotec Dual Nano Switch that kept going offline previously - no idea if that had any impact on this - though it has made all my other z-wave devices more responsive :-). |
HA runing from docker container, pyvera is 0.3.2. |
@lielle1 In that case, bugger. @brandond, any ideas on this? Appears to be affecting many people with vera. Looks like HA stops polling Vera for changes at some random interval. |
Assuming folks are running into this:
This should be fixed in pyvera 0.3.2 with this change. I hadn't noticed that the devices stopped polling after this happens, otherwise I would have requested an update to 0.3.2 sooner. I only have locks (no sensors/plugs/lights/etc) so the behavior may be different. Note that if you see the error above you're not on 0.3.2, as the fragile list comprehensions are now on lines 80 and 81, not 74 and 75 as shown in the traceback. If someone who can confirm they're on 0.3.2 is still having polling break, then please grab some debug logs: logger:
default: critical
logs:
pyvera: debug |
Thanks @brandond @lielle1 did you manage to capture any logs when yours stopped polling? |
HA stop polling from vera 1 minute after restart. |
@lielle1 those are all normal startup messages. What happens after that? It seems like it's not picking up any devices, which is odd since none of that logic has been touched. You should see a SyncWorker thread subscribing to events for one or more devices.
If possible, could you check out a copy of pyvera from https://github.com/pavoni/pyvera and run a couple test commands:
|
this is the full startup log, No poll happen after this point. |
@lielle1 are those all of your devices - it's not missing any? This is closer to what I'd expect to see. Did this not happen last time you checked the logs, or did you just not include it? I would expect to see something from the poll thread again soon after the subscriptions are complete. Can you post the full log for 5-10 minutes after startup without editing anything out? |
Wow, there are some ridiculously long posts here. Anyway, long story short, for most of us the issue is probably resolved by upgrading to 0.96.0 I’ve been running it for a while with no issues - thanks! |
I updated to 0.96.2 and I still have problems. I have power plugs that measures power consumption. They only updates with new values right after restart. |
I have all z-wave devices. Can some of you that are having issues list the devices that are connected? That might the difference. It may also be the difference between docker and a Windows installation. Let us know if you’re on windows and not having the issue. |
I have neo Coolcam zwave devices (Power plugs) and loads of rfxtrx 433 devices. Ubuntu docker install. Using hyper-v. |
Windows, Lots of Zwave sensors, switches, covers , different brands and rfxtrx devices. |
Thanks @lielle1 - it appears that some alerts are missing the |
Ok, i tried to update to 0.96.4. Before i started i commented out the VERA component in configuration.yaml and started. After that i enabled the vera component again and did a restart. Now the Vera component polls for sensors as it should. I saw one guy higher up in this thread that tried that and it worked for a while and then stopped, So we will see... but so far no exceptions from the vera component in the log. (Windows 10 platform, python 3.7) |
@lielle1 can you re-pull that docker image and test? I've added additional guards against missing data. |
@brandond the image is looking good, everything works and no exception occurred so far. |
Having the same issue on 0.96.5 (hassio on VM on Synology NAS + vera lite) |
I'm waiting on maximvelichko/pyvera#113 to be accepted and pushed to PyPi so that I can reopen my hass PR. Anyone using Docker is welcome to use docker.io/brandond/home-assistant:pyvera-debug in the mean time. |
Is the HA DEV updated with the fix? |
Thanks for your efforts @brandond and @pavoni Status changes of z-wave devices do not translate to HA states. (manual operation or via Vera interface). Polling and subscribing works. No errors. Did some debugging and I can see pyvera receives the data from the vera API. But then the event is not fired... |
I also still have the same problem, running 0.97.0.
Please investigate!
mån 12 aug. 2019 kl. 11:26 skrev MarkJ <notifications@github.com>:
… Thanks for your efforts @brandond <https://github.com/brandond> and
@pavoni <https://github.com/pavoni>
Sadly 0.97.2 (with pyvera 0.3.3) does not resolve the issue. Could someone
reopen?
Status changes of z-wave devices do not translate to HA states. (manual
operation or via Vera interface).
Polling and subscribing works. No errors. Did some debugging and I can see
pyvera receives the data from the vera API. But then the event is not
fired...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#24987>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMVIQVSQ6A4XQSC3UTRFOH3QEEUENANCNFSM4H6TUOHQ>
.
|
I found a fix! because device_id is a string and the keys in _self.devices are integers... |
because device_id is a string and the keys in _self.devices are integers... Maybe some other code should be changed so the types match, but this fixes the issue. Now the device_list is populated (is it really a list, it's always just one device, or am I missing something? )
0.97.0 has pyvera 0.3.2. |
Please open a new issue if the problem still happens. |
Uh oh!
There was an error while loading. Please reload this page.
Home Assistant release with the issue:
0.95.4
Last working Home Assistant release (if known):
0.94.4
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Component/platform:
https://www.home-assistant.io/components/vera/
Description of problem:
States not updated in Home-Assistant entities from Vera Hub since updating to 0.95. Possibly related to pyvera update #24289
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
People seeing similar behaviour.
https://community.home-assistant.io/t/0-95-adguard-life360-plaato-airlock/123665/137?u=j_io_b
https://community.home-assistant.io/t/vera-plus-z-wave-hub-stops-updating-home-assistant-with-sensors-status/124776
The text was updated successfully, but these errors were encountered: