core: Sense API Errors
The problem
Random error 500’s are happening multiple times a day. Started about last week. Just cleared the log a few hours beforehand and it happened again
What version of Home Assistant Core has the issue?
core-2023.11.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Sense
Link to integration documentation on our website
https://www.home-assistant.io/integrations/sense
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.sense
Source: helpers/update_coordinator.py:290
Integration: Sense (documentation, issues)
First occurred: 9:55:28 PM (1 occurrences)
Last logged: 9:55:28 PM
Unexpected error fetching Sense Trends **REDACTED** data: API Return Code: 500
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 246, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sense/__init__.py", line 107, in _async_update_trend
await gateway.update_trend_data()
File "/usr/local/lib/python3.11/site-packages/sense_energy/asyncsenseable.py", line 233, in update_trend_data
await self.get_trend_data(scale, dt)
File "/usr/local/lib/python3.11/site-packages/sense_energy/asyncsenseable.py", line 227, in get_trend_data
self._trend_data[scale] = await json
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sense_energy/asyncsenseable.py", line 209, in _api_call
raise SenseAPIException(f"API Return Code: {resp.status}")
sense_energy.sense_exceptions.SenseAPIException: API Return Code: 500
Additional information
No response
About this issue
- Original URL
- State: open
- Created 7 months ago
- Reactions: 1
- Comments: 23 (4 by maintainers)
same error here to for the last few days Logger: homeassistant.components.sense Source: helpers/update_coordinator.py:313 Integration: Sense (documentation, issues) First occurred: 1:43:49 PM (1 occurrences) Last logged: 1:43:49 PM
Unexpected error fetching Sense Trends stevehoyt@comcast.net data: API Return Code: 500 Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 313, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 269, in _async_update_data return await self.update_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/components/sense/init.py”, line 107, in _async_update_trend await gateway.update_trend_data() File “/usr/local/lib/python3.12/site-packages/sense_energy/asyncsenseable.py”, line 233, in update_trend_data await self.get_trend_data(scale, dt) File “/usr/local/lib/python3.12/site-packages/sense_energy/asyncsenseable.py”, line 227, in get_trend_data self._trend_data[scale] = await json ^^^^^^^^^^ File “/usr/local/lib/python3.12/site-packages/sense_energy/asyncsenseable.py”, line 209, in _api_call raise SenseAPIException(f"API Return Code: {resp.status}") sense_energy.sense_exceptions.SenseAPIException: API Return Code: 500
Ok, after doing some more digging it appears that the only data that is having problem for me getting it from Sense is the Daily, Weekly, Monthly, and Yearly data. I was watching several of the other data points provided by Sense in the States view of the developer tools and the only information not updating were those. All the other entities for things like my washer, the L1 and L2 voltage, etc… are still working.