The below error is generated every 20 seconds when used with a Eufy G30 Edge RoboVac (model T2251)
Logger: homeassistant
Source: custom_components/eufy_vacuum/property.py:36
Integration: Integration to Eufy Vacuum (documentation, issues)
First occurred: 17:41:09 (1 occurrences)
Last logged: 17:41:09
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 673, in _update_entity_states
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 321, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 370, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 279, in state_attributes
data = super().state_attributes
File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 179, in state_attributes
data[ATTR_BATTERY_ICON] = self.battery_icon
File "/usr/src/homeassistant/homeassistant/components/vacuum/__init__.py", line 269, in battery_icon
if self.status is not None:
File "/config/custom_components/eufy_vacuum/vacuum.py", line 116, in status
if self.robovac.error_code != robovac.ErrorCode.NO_ERROR:
File "/config/custom_components/eufy_vacuum/property.py", line 36, in __get__
value = self.type_cast(value)
File "/usr/local/lib/python3.8/enum.py", line 339, in __call__
return cls.__new__(cls, value)
File "/usr/local/lib/python3.8/enum.py", line 662, in __new__
raise ve_exc
ValueError: 0 is not a valid ErrorCode
The outcome (failure to read the battery state) can be seen from the entity when added to Lovelace (vacuum is named Lilo in this example)