Since the last Hassio update my filter sensors aren’t working anymore.
In the Lovelace UI the text “enitity not available: sensor.filtered_power_consumption” appears.
The error logging shows this:
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 400, in _async_add_entity
await entity.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/filter/sensor.py", line 244, in async_added_to_hass
history_list.extend([state for state in filter_history[self._entity]])
KeyError: 'sensor.power_consumption
I can’t find any related issues and in the Hassio changelog there’s nothing mentioned about de sensor filter.
I’m using filters because this data is refreshed every 5 seconds, so I disabled the graph on the sensor value. And I use the filtered data for a graph.
No they don’t. The filtered value has a prefix of “filtered_”.
Somehow thing got working again yesterday.
I’ve been looking thru all the files. And did some cleaning up in de configuration.yaml file.
After restarting home-assistant the logging wasn’t showing any errors and the filtered values re-appeared.
One off the things I’ve done, was deleting:
discovery:
ignore:
- igd
I don’t know if its related, but now things are working again.