1min sensors unavailable since the backing API change
See original GitHub issueI updated to 0.6.4, but not everything is working for me yet. I have a Vue Utility connect, and 4 plugs. All of them report the 1 day and 1 month sensor.
I tried uninstalling the integration completely, and reinstalling. That didn’t fix the issue either. I see this in the logs:
This error originated from a custom integration.
Logger: homeassistant
Source: custom_components/emporia_vue/sensor.py:158
Integration: Emporia Vue (documentation)
First occurred: 12:40:21 PM (1 occurrences)
Last logged: 12:40:21 PM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 134, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 265, in _async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 325, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 464, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 498, in _async_write_ha_state
state = self._stringify_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in _stringify_state
state = self.state
File "/config/custom_components/emporia_vue/sensor.py", line 91, in state
return self.scale_usage(usage)
File "/config/custom_components/emporia_vue/sensor.py", line 158, in scale_usage
usage = round(usage, 3)
TypeError: type NoneType doesn't define __round__ method
and also:
This error originated from a custom integration.
Logger: homeassistant
Source: custom_components/emporia_vue/sensor.py:150
Integration: Emporia Vue (documentation)
First occurred: 12:40:20 PM (1 occurrences)
Last logged: 12:40:20 PM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 134, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 265, in _async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 325, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 464, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 498, in _async_write_ha_state
state = self._stringify_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in _stringify_state
state = self.state
File "/config/custom_components/emporia_vue/sensor.py", line 91, in state
return self.scale_usage(usage)
File "/config/custom_components/emporia_vue/sensor.py", line 150, in scale_usage
usage = round(60 * 1000 * usage) # convert from kwh to w rate
TypeError: unsupported operand type(s) for *: 'int' and 'NoneType'
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (5 by maintainers)
Top Results From Across the Web
2022.11: A heck of a release! - Home Assistant
This change ceases creating battery sensors for hardwired shades. Existing sensor entities need to be manually deleted. The backing unit and ...
Read more >Weatherlink Live - Davis Weather Stations Knowledgebase - 1
This appears to be the only method for setting up WLL since the ... to backing up memory, ie to receiving and saving/queuing...
Read more >Gateway API to fetch online status - The Things Network
I have connected the Laird gateway to TTN console and i can see the sensor data coming in from the sensors. On the...
Read more >How can I export raw sensor data automatically from PRTG?
Last change on Mar 9, 2022 2:52:24 PM by Frank Hadasch [Paessler Support] (0) ... The PRTG API allows you to export historic...
Read more >xDrip+ settings — AndroidAPS 3.0 documentation
New Sensor¶ · Set time inserted. To use G6 Native mode you must wait for the 2 hour warm up (i.e insertion time...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The home assistant energy dashboard only works with energy sensors and not power sensors. You should choose the 1 Day sensors for the most accuracy.
The dashboard looks like the Tesla energy flow diagram but doesn’t work the same, it just shows daily totals.
Hi @magico13, I want to thank you for all your work on this!!! I just signed up on GitHub to ask about the 1m with my custom_integrations install, but as with every other time something on this didn’t work right (due to Emporia changing stuff on you), you are already on it! Thank you!