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

Nexia Integration doesn't work with wireless sensors #33968

Closed
jspayneii opened this issue Apr 10, 2020 · 5 comments · Fixed by #33979
Closed

Nexia Integration doesn't work with wireless sensors #33968

jspayneii opened this issue Apr 10, 2020 · 5 comments · Fixed by #33979
Assignees

Comments

@jspayneii
Copy link

jspayneii commented Apr 10, 2020

The problem

The Integration is not populating any of the data into home assistant. It seems to only create the sensors.

Environment

  • Home Assistant Core release with the issue: 108.2
  • Last working Home Assistant Core release (if known):
  • Operating environment (Home Assistant/Supervised/Docker/venv): Docker
  • Integration causing this issue: Nexia
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/nexia/

Problem-relevant configuration.yaml

Traceback/Error logs

Traceback (most recent call last):                                              
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", lin
    self.data = await self._async_update_data()                                 
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", lin
    return await self.update_method()                                           
  File "/usr/src/homeassistant/homeassistant/components/nexia/__init__.py", line
    return await hass.async_add_job(nexia_home.update)                          
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run 
    result = self.fn(*self.args, **self.kwargs)                                 
  File "/usr/local/lib/python3.7/site-packages/nexia/home.py", line 225, in upda
    self._update_devices()                                                      
  File "/usr/local/lib/python3.7/site-packages/nexia/home.py", line 245, in _upd
    thermostat_updates_by_id[thermostat.thermostat_id]                          
  File "/usr/local/lib/python3.7/site-packages/nexia/thermostat.py", line 637, i
    for zone_json in thermostat_json["zones"]:                                  
KeyError: 'zones'

Additional information

I downloaded the Nexia interface from Github and have been poking around. I was able to download the json from dump_home_json.py. The main.py program crashes. I was able to trace this to the fact that the wireless sensors are appearing in the json as thermostats. I changed the code to only pull up the one actual thermostat id, and that helped. I am still not getting all the relevant data.

@springstan
Copy link
Member

Please fill out the issue template, you can find it by clicking on New Issue and then selecting Report a bug with Home Assistant. Copy and paste the provided template into this already created issue, click preview to take a look at the empty template and then fill out as much as you can. Any additional information can be helpful!

Thanks for understanding :)

@jspayneii
Copy link
Author

I apologize. I have corrected the original.

@probot-home-assistant
Copy link

Hey there @ryannazaretian, @bdraco, mind taking a look at this issue as its been labeled with a integration (nexia) you are listed as a codeowner for? Thanks!

@rmertz3282
Copy link

rmertz3282 commented Apr 10, 2020

I have the exact same issue

Unexpected error fetching Nexia update data: 'zones'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 129, in async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 117, in _async_update_data
return await self.update_method()
File "/usr/src/homeassistant/homeassistant/components/nexia/init.py", line 87, in _async_update_data
return await hass.async_add_job(nexia_home.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/nexia/home.py", line 225, in update
self._update_devices()
File "/usr/local/lib/python3.7/site-packages/nexia/home.py", line 245, in _update_devices
thermostat_updates_by_id[thermostat.thermostat_id]
File "/usr/local/lib/python3.7/site-packages/nexia/thermostat.py", line 634, in update_thermostat_json
for zone_json in thermostat_json["zones"]:
KeyError: 'zones'

@bdraco
Copy link
Member

bdraco commented Apr 10, 2020

@jspayneii If you email the thermostat json you got from dump_home_json.py to nick@koston.org I should be able to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants