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

Vera Hub Sensor States Not Updating in Home-Assistant #24987

Closed
JIOB opened this issue Jul 6, 2019 · 70 comments · Fixed by maximvelichko/pyvera#113, #25820 or #25986
Closed

Vera Hub Sensor States Not Updating in Home-Assistant #24987

JIOB opened this issue Jul 6, 2019 · 70 comments · Fixed by maximvelichko/pyvera#113, #25820 or #25986

Comments

@JIOB
Copy link

JIOB commented Jul 6, 2019

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):

vera:
  vera_controller_url: http://192.168.1.XX:3480/

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

@fgsalvador
Copy link

fgsalvador commented Jul 7, 2019

+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}
2019-07-07 11:15:30 DEBUG (Vera Poll Thread) [pyvera.subscribe] Poll returned

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?

@basharfaraj
Copy link

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

@hmmz77
Copy link

hmmz77 commented Jul 8, 2019

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.

@jeroenjoosse
Copy link

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.

@fgsalvador
Copy link

@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
logs:
pyvera: debug

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!

@hmmz77
Copy link

hmmz77 commented Jul 9, 2019

Unfortunately I've already rolled back to 0.94. I'll have to see when I have some free time to update and troubleshoot.

@jeroenjoosse
Copy link

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.

@fgsalvador
Copy link

@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

@hmmz77
Copy link

hmmz77 commented Jul 10, 2019

@JIOB Can we label this as integration:vera?

@InkblotAdmirer
Copy link

This one may fix itself by just waiting for the next release. See this commit:

5be695c

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.

@alanthewild
Copy link

Same problem here. I've turned on pyvera debugging and restarted so if it stops again I will post the logs.

@fgsalvador
Copy link

@InkblotAdmirer

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

@InkblotAdmirer
Copy link

@InkblotAdmirer

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?

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.

@basharfaraj
Copy link

@InkblotAdmirer
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?

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

@alanthewild
Copy link

@basharfaraj The version of pyvera that was included with HA 94.4 (last known working) was 0.2.45
The change for HA 95.x bumped pyvera to 0.3.1. Based on the commit that @InkblotAdmirer references, from what the pyvera project updates mention, seems there is a bug in 0.3.1 which is resolved in 0.3.2 (presumably it is able to handle null/missing values better). The change to 0.3.2 looks like it will be included in HA 96.x whenever that is available.

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:
pip install pyvera
This should update/install 0.3.2 if you don't have it - no idea if this would break anything else though so try this at your own risk.

Changes to make:
Edit the two files referenced and change the pyvera version number from 0.3.1 to 0.3.2
homeassistant/components/vera/manifest.json
requirements_all.txt (this is in the parent folder next with the home assistant directory in my Docker image)

Or alternatively wait for HA 96.x to be released.
No guarantee the changes above will actually work but seems highly likely.

@fgsalvador
Copy link

Thans @alanthewilf for your delailed explanation!

Looks like this kind of modifications are not allowed for Hassio. Let's crossfingers with 0.96

@lielle1
Copy link

lielle1 commented Jul 12, 2019

Well, I did all that and... it doenst work. 10 hours later Home Assistant stoped pulling states from vera.
Reverting to 0.94.

@InkblotAdmirer
Copy link

Well, I did all that and... it doenst work. 10 hours later Home Assistant stoped pulling states from vera.
Reverting to 0.94.

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.

@pensionado
Copy link

After this entry in the log:

Jul 13 06:45:18 raspberrypi2 hass[1571]: Exception in thread Vera Poll Thread:
Jul 13 06:45:18 raspberrypi2 hass[1571]: Traceback (most recent call last):
Jul 13 06:45:18 raspberrypi2 hass[1571]: File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
Jul 13 06:45:18 raspberrypi2 hass[1571]: self.run()
Jul 13 06:45:18 raspberrypi2 hass[1571]: File "/usr/lib/python3.5/threading.py", line 862, in run
Jul 13 06:45:18 raspberrypi2 hass[1571]: self._target(*self._args, **self._kwargs)
Jul 13 06:45:18 raspberrypi2 hass[1571]: File "/srv/homeassistant/lib/python3.5/site-packages/pyvera/subscribe.py", line 192, in _run_poll_server
Jul 13 06:45:18 raspberrypi2 hass[1571]: self._event(device_data, alert_data)
Jul 13 06:45:18 raspberrypi2 hass[1571]: File "/srv/homeassistant/lib/python3.5/site-packages/pyvera/subscribe.py", line 74, in _event
Jul 13 06:45:18 raspberrypi2 hass[1571]: [device_ids.add(int(device_data['id'])) for device_data in device_data_list]
Jul 13 06:45:18 raspberrypi2 hass[1571]: TypeError: 'NoneType' object is not iterable

All automation that was based on Vera device states were broken, including security devices. reverted back to 0.94.4

@lielle1
Copy link

lielle1 commented Jul 13, 2019

Tried DEV version, still broken...

@alanthewild
Copy link

@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)?
As mentioned, mine is in a docker container so when HA is updated, the container contents are all updated at the same time so I'm always running the latest/correct versions of components (in theory).

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 :-).

@lielle1
Copy link

lielle1 commented Jul 14, 2019

@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)?
As mentioned, mine is in a docker container so when HA is updated, the container contents are all updated at the same time so I'm always running the latest/correct versions of components (in theory).

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.

@alanthewild
Copy link

@lielle1 In that case, bugger.
May be co-incidental that @InkblotAdmirer and I aren't having issues after making those changes to 0.3.2. I'm still on 95.4 and my vera sensors and switches are still updating at this point.

@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.

@brandond
Copy link
Contributor

brandond commented Jul 15, 2019

Assuming folks are running into this:

Jul 13 06:45:18 raspberrypi2 hass[1571]: File "/srv/homeassistant/lib/python3.5/site-packages/pyvera/subscribe.py", line 192, in _run_poll_server
Jul 13 06:45:18 raspberrypi2 hass[1571]: self._event(device_data, alert_data)
Jul 13 06:45:18 raspberrypi2 hass[1571]: File "/srv/homeassistant/lib/python3.5/site-packages/pyvera/subscribe.py", line 74, in _event
Jul 13 06:45:18 raspberrypi2 hass[1571]: [device_ids.add(int(device_data['id'])) for device_data in device_data_list]
Jul 13 06:45:18 raspberrypi2 hass[1571]: TypeError: 'NoneType' object is not iterable

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

@alanthewild
Copy link

Thanks @brandond
Mine was actually working happily on 0.95.4 for a week or so until a reboot at which point it all went tits up almost immediately. Updating to 0.3.2 (based on the change you mention) for me seems to have resolved it. If it stops again I have debugging on so will share the logs. Fingers crossed it doesn't break again.

@lielle1 did you manage to capture any logs when yours stopped polling?
@pensionado your issue is definitely the one that @brandond mentions is fixed with 0.3.2

@lielle1
Copy link

lielle1 commented Jul 15, 2019

@alanthewild

2019-07-15 17:28:00 DEBUG (Vera Poll Thread) [pyvera] get_changed_devices() requesting payload {'timeout': 30, 'minimumdelay': 200, 'id': 'lu_sdata', 'dataversion': 1, 'loadtime': 0}
2019-07-15 17:28:00 DEBUG (Vera Poll Thread) [pyvera] get_alerts() requesting payload {'LoadTime': 0, 'DataVersion': 1, 'id': 'status'}
2019-07-15 17:28:05 DEBUG (Vera Poll Thread) [pyvera.subscribe] Poll returned

HA stop polling from vera 1 minute after restart.
no problems on 0.94.4 install.

@brandond
Copy link
Contributor

brandond commented Jul 15, 2019

@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.

2019-07-15 12:14:46 DEBUG (SyncWorker_12) [pyvera] DEBUG logging is ON
2019-07-15 12:14:46 DEBUG (Vera Poll Thread) [pyvera.subscribe] Polling for Vera changes
2019-07-15 12:14:46 DEBUG (Vera Poll Thread) [pyvera] get_changed_devices() requesting payload {'timeout': 30, 'minimumdelay': 200, 'id': 'lu_sdata', 'dataversion': 1, 'loadtime': 0}
2019-07-15 12:14:46 DEBUG (Vera Poll Thread) [pyvera] get_alerts() requesting payload {'LoadTime': 0, 'DataVersion': 1, 'id': 'status'}
2019-07-15 12:14:46 DEBUG (Vera Poll Thread) [pyvera.subscribe] Poll returned
2019-07-15 12:14:46 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for Front Door
2019-07-15 12:14:46 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for Back Door
2019-07-15 12:14:47 DEBUG (Vera Poll Thread) [pyvera.subscribe] Polling for Vera changes
2019-07-15 12:14:47 DEBUG (Vera Poll Thread) [pyvera] get_changed_devices() requesting payload {'timeout': 30, 'minimumdelay': 200, 'id': 'lu_sdata', 'loadtime': 1562921515, 'dataversion': 921515940}
2019-07-15 12:15:17 DEBUG (Vera Poll Thread) [pyvera.subscribe] Poll returned
2019-07-15 12:15:17 DEBUG (Vera Poll Thread) [pyvera.subscribe] No changes in poll interval
2019-07-15 12:15:18 DEBUG (Vera Poll Thread) [pyvera.subscribe] Polling for Vera changes
2019-07-15 12:15:18 DEBUG (Vera Poll Thread) [pyvera] get_changed_devices() requesting payload {'timeout': 30, 'minimumdelay': 200, 'id': 'lu_sdata', 'loadtime': 1562921515, 'dataversion': 921515940}
2019-07-15 12:15:48 DEBUG (Vera Poll Thread) [pyvera.subscribe] Poll returned
2019-07-15 12:15:48 DEBUG (Vera Poll Thread) [pyvera.subscribe] No changes in poll interval

If possible, could you check out a copy of pyvera from https://github.com/pavoni/pyvera and run a couple test commands:

  • PYVERA_LOGLEVEL=DEBUG ./examples/list-devices.py -u http://YOUR_VERA_IP:3480/
  • curl -s 'http://YOUR_VERA_IP:3480/data_request?id=lu_sdata&dataversion=1&loadtime=0&minimumdelay=200&timeout=30'

@lielle1
Copy link

lielle1 commented Jul 16, 2019

@brandond

2019-07-16 07:01:24 DEBUG (SyncWorker_17) [pyvera] DEBUG logging is ON
2019-07-16 07:01:24 DEBUG (Vera Poll Thread) [pyvera.subscribe] Polling for Vera changes
2019-07-16 07:01:24 DEBUG (Vera Poll Thread) [pyvera] get_changed_devices() requesting payload {'timeout': 30, 'minimumdelay': 200, 'id': 'lu_sdata', 'dataversion': 1, 'loadtime': 0}
2019-07-16 07:01:24 DEBUG (Vera Poll Thread) [pyvera] get_alerts() requesting payload {'LoadTime': 0, 'DataVersion': 1, 'id': 'status'}
2019-07-16 07:01:28 DEBUG (Vera Poll Thread) [pyvera.subscribe] Poll returned
2019-07-16 07:01:31 DEBUG (SyncWorker_3) [pyvera.subscribe] Subscribing to events for zxt120
2019-07-16 07:01:31 DEBUG (SyncWorker_9) [pyvera.subscribe] Subscribing to events for roof sensor
2019-07-16 07:01:32 DEBUG (SyncWorker_14) [pyvera.subscribe] Subscribing to events for 3 in 1 sensor (temperature)
2019-07-16 07:01:32 DEBUG (SyncWorker_14) [pyvera.subscribe] Subscribing to events for 3 in 1 sensor (light)
2019-07-16 07:01:32 DEBUG (SyncWorker_14) [pyvera.subscribe] Subscribing to events for indoorx - Humidity
2019-07-16 07:01:32 DEBUG (SyncWorker_14) [pyvera.subscribe] Subscribing to events for indoorx - Pressure
2019-07-16 07:01:32 DEBUG (SyncWorker_14) [pyvera.subscribe] Subscribing to events for indoorx - Temperature
2019-07-16 07:01:32 DEBUG (SyncWorker_14) [pyvera.subscribe] Subscribing to events for outdoorx - Humidity
2019-07-16 07:01:32 DEBUG (SyncWorker_14) [pyvera.subscribe] Subscribing to events for outdoorx - Temperature
2019-07-16 07:01:32 DEBUG (SyncWorker_2) [pyvera.subscribe] Subscribing to events for Doorm
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for roof carbon light
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for ex
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for Dining ledx
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for Living Led
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for salon
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for led roof
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for Fibaro Dimmer 2 1
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for rgbx
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for Blue
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for Brightness
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for Green
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for Red
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for White
2019-07-16 07:01:32 DEBUG (SyncWorker_8) [pyvera.subscribe] Subscribing to events for Stairway
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for roof sensor
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for game light
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for Harmony Control
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for HRM: Yes DVR
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for vSwitch
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for box light
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for East Projector
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for East top light
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for East wall
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for North wall light
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for kitchen
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for dining room light
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for kitchen light
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for Kitchen Led one
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for Kitchen Led two
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for Top North
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for Washing machine
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for Top projectors
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for camera
2019-07-16 07:01:33 DEBUG (SyncWorker_18) [pyvera.subscribe] Subscribing to events for Roof in

this is the full startup log, No poll happen after this point.
pyvera react if i change state in HA not from vera.
I will try to run the pyvera commands later this day

@brandond
Copy link
Contributor

@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?

@jwater7
Copy link
Contributor

jwater7 commented Jul 20, 2019

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!

@surfarn
Copy link

surfarn commented Jul 20, 2019

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.

@jwater7
Copy link
Contributor

jwater7 commented Jul 20, 2019

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.

@surfarn
Copy link

surfarn commented Jul 20, 2019

I have neo Coolcam zwave devices (Power plugs) and loads of rfxtrx 433 devices. Ubuntu docker install. Using hyper-v.

@lassej01
Copy link

Windows, Lots of Zwave sensors, switches, covers , different brands and rfxtrx devices.

@brandond
Copy link
Contributor

Thanks @lielle1 - it appears that some alerts are missing the PK_Device attribute that ties the alert to a device ID. The fact that the traceback wasn't going into the log you were looking at made this harder to diagnose. I'll put in a PR to fix this, but I'm curious what is generating these deviceless alerts.

@lassej01
Copy link

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)

@brandond
Copy link
Contributor

@lielle1 can you re-pull that docker image and test? I've added additional guards against missing data.

@lielle1
Copy link

lielle1 commented Jul 25, 2019

@brandond the image is looking good, everything works and no exception occurred so far.

@MarkJenniskens
Copy link

Having the same issue on 0.96.5 (hassio on VM on Synology NAS + vera lite)

@brandond
Copy link
Contributor

brandond commented Jul 29, 2019

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.

@lielle1
Copy link

lielle1 commented Aug 4, 2019

Is the HA DEV updated with the fix?

brandond added a commit to brandond/home-assistant that referenced this issue Aug 9, 2019
@brandond brandond mentioned this issue Aug 9, 2019
4 tasks
balloob pushed a commit that referenced this issue Aug 9, 2019
balloob pushed a commit that referenced this issue Aug 12, 2019
@MarkJenniskens
Copy link

Thanks for your efforts @brandond and @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...

@surfarn
Copy link

surfarn commented Aug 12, 2019 via email

@MarkJenniskens
Copy link

I found a fix!
this code on line 98 of subscribe.py:
device_list = self._devices.get(device_id, ())
to:
device_list = self._devices.get(int(device_id), ())

because device_id is a string and the keys in _self.devices are integers...
i'll put in a PR on pyvera.

MarkJenniskens added a commit to MarkJenniskens/pyvera that referenced this issue Aug 12, 2019
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? )
@MarkJenniskens
Copy link

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?email_source=notifications&email_token=AMVIQVX3LKKEB6I35NYYV4DQEEUENA5CNFSM4H6TUOH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4B7XZQ#issuecomment-520354790>, or mute the thread https://github.com/notifications/unsubscribe-auth/AMVIQVSQ6A4XQSC3UTRFOH3QEEUENANCNFSM4H6TUOHQ .

0.97.0 has pyvera 0.3.2.
Version 0.97.2 has pyvera 0.3.3.

@balloob
Copy link
Member

balloob commented Aug 12, 2019

Please open a new issue if the problem still happens.

@home-assistant home-assistant locked as resolved and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.