Hi All,
Running hass.io 0.116.4,
I have the efergy component and using it for a long long time with not many problems.
Now since upgrading to 0.116, i notice my log is filled with thousands of lines of efergy errors:
homeassistant.log
2020-10-20 15:23:35 WARNING (SyncWorker_42) [homeassistant.components.efergy.sensor] Could not update status for Energy Usage
2020-10-20 15:23:41 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.efergy_731383 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
await self.hass.async_add_executor_job(self.update) # type: ignore
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/efergy/sensor.py", line 154, in update
if self.sid == sensor["sid"]:
TypeError: string indices must be integers
2020-10-20 15:23:43 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.efergy_784577 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
await self.hass.async_add_executor_job(self.update) # type: ignore
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/efergy/sensor.py", line 154, in update
if self.sid == sensor["sid"]:
TypeError: string indices must be integers
2020-10-20 15:23:44 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.per_device_usage fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 471, in async_device_update
await self.hass.async_add_executor_job(self.update) # type: ignore
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/efergy/sensor.py", line 154, in update
if self.sid == sensor["sid"]:
TypeError: string indices must be integers
Eventually it becomes too much for Hass.io and it crashes and reboots itself, sometimes this can take 2 days or a few hours.
Has anyone else got the efergy component installed and has same issue or is it just me ?
i think it could be because of the python 3.8 update, but not sure.