I’ve been using Home Assistant Docker for a few weeks and have been adding and learning over the past few weeks. Yesterday I added some things and also updated the Home Assistant to the latest version and my OS also updated Docker and Docker compose. Somewhere along the way, some of my sensors quit working. I’m not seeing anything obvious form the yaml file as far as spacing and I’m not getting any errors when I check but most of the sensors listed in my sensors.yaml file simply will not pull up. Below is my sensors.yaml file. Does anyone see anything obvious? I can add my configuration.yaml file if needed.
Because I’m not sure exactly when they quit working, it’s hard to find an event that leads me to it but I do see messages with a yellow icon beside each sensor saying idle.
please post a few of those error messages. Without any indication on why, we can’t start to figure it out. As you said most of those look fine but its possible something took out your include for the entire sensor file and NONE of them load… (In which case the sensor file itself is useless because they’ll all be good) We just dont have enough to go on without error logs. Feel free to pick out the completely obviously irrelevant stuff and redact secrets but - gotta have a log - please use the preformatted text option above when you post it
First, my apologies. I was looking at the logbook and not the log files. Here are some log file entires. The issues seem to be centered around my Ecobee thermostat related entities.
File "/usr/src/homeassistant/homeassistant/components/ecobee/weather.py", line 173, in forecast
forecast = _process_forecast(self.weather["forecasts"][day])
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
IndexError: list index out of range
2023-07-13 15:02:20.230 ERROR (MainThread) [homeassistant.helpers.event] Error while dispatching event for 74eb194c6f3e7062116fa2359edafc49 to <Job track device_registry_updated event ['74eb194c6f3e7062116fa2359edafc49'] HassJobType.Callback <bound method Entity._async_device_registry_updated of <entity weather.my_home_2=unknown>>>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 458, in _async_dispatch_device_id_event
hass.async_run_hass_job(job, event)
File "/usr/src/homeassistant/homeassistant/core.py", line 619, in async_run_hass_job
hassjob.target(*args)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1155, in _async_device_registry_updated
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 742, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 811, in _async_write_ha_state
attr.update(self.state_attributes or {})
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/weather/__init__.py", line 747, in state_attributes
if self.forecast is not None:
^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/ecobee/weather.py", line 173, in forecast
forecast = _process_forecast(self.weather["forecasts"][day])
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
IndexError: list index out of range
2023-07-13 15:02:20.244 ERROR (MainThread) [homeassistant.helpers.event] Error while dispatching event for 74eb194c6f3e7062116fa2359edafc49 to <Job track device_registry_updated event ['74eb194c6f3e7062116fa2359edafc49'] HassJobType.Callback <bound method Entity._async_device_registry_updated of <entity weather.my_home_2=unknown>>>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 458, in _async_dispatch_device_id_event
hass.async_run_hass_job(job, event)
File "/usr/src/homeassistant/homeassistant/core.py", line 619, in async_run_hass_job
hassjob.target(*args)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1155, in _async_device_registry_updated
When I select an Ecobee specific error, it also shows the following:
Logger: homeassistant.helpers.event
Source: components/ecobee/weather.py:173
First occurred: 3:23:56 PM (1 occurrences)
Last logged: 3:23:56 PM
Error while dispatching event for 74eb194c6f3e7062116fa2359edafc49 to <Job track device_registry_updated event ['74eb194c6f3e7062116fa2359edafc49'] HassJobType.Callback <bound method Entity._async_device_registry_updated of <entity weather.my_home_2=unknown>>>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 458, in _async_dispatch_device_id_event
hass.async_run_hass_job(job, event)
File "/usr/src/homeassistant/homeassistant/core.py", line 619, in async_run_hass_job
hassjob.target(*args)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1155, in _async_device_registry_updated
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 742, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 811, in _async_write_ha_state
attr.update(self.state_attributes or {})
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/weather/__init__.py", line 747, in state_attributes
if self.forecast is not None:
^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/ecobee/weather.py", line 173, in forecast
forecast = _process_forecast(self.weather["forecasts"][day])
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
IndexError: list index out of range
Something with your ecobee is not returning what it expects. It’s related to pulling some kind of weather forecast.
Considering template sensors become unavailable if the data they are sourced from become unavailable. I’d bet the sensors you derive from your ecobee are the ones not working?
Id start by figuring out what’s up with those sensors you were templating from around your climate section up top. I’d bet one or more are unavailable for one reason or another
They all show correctly when I query the state of the thermostat but the sensors derived from it are the problem. I even deleted it and reinstalled it with no change.
check your entities , they seems to have _2 at the end, can be caused by, “duplicates” caused by faulty installation/loss of power(rediscovering the devices) or so
The _2 is because I replaced one thermostat with another and it assigned the same name, so that’s not new to the problem. I’ll attempt another value template and see what I get.
I created a new one on fan_mode and it made no difference. The thermostat is called My Home 2 and when I pull up climate.my_home_2, on the states tab it shows me everything about it. So Home Assist knows it called that but the template sensors are no longer pulling up.
I think I have mostly worked through this. The issue seems to be unicode values for degrees F that has worked flawlessly but, for some reason is flagging errors now.