A couple of days ago, before I upgraded to 0.50.2, I started noticing that some sensors were not showing history (mostly temperature/humidity, etc). All sensors are working/reporting properly, because I have their values being updated in prometheus, just no history appears either on the ‘History’ tab or the sensor.
Clicking over ANY value sensor (temp/humidity, for instance), shows message ‘No state history found.’ instead of the graph with the history of values.
I had done some changes in the history component, but after going back to the same configuration I had before, it still didn’t work. Here it is how it is now:
history:
include:
domains:
- light
- sensor
- switch
entities:
- binary_sensor.motion_sensor_158xxxxxxxxxxx
- binary_sensor.motion_sensor_158xxxxxxxxxxx
- sensor.illumination_158dxxxxxxxxxxx
exclude:
entities:
- sensor.wake
- sensor.time
- sensor.time_from
- sensor.time_to
- sensor.free_space_mbln
- sensor.free_space_mbl
- sensor.free_space_media
- sensor.ndionisios_iphone_battery_level
- sensor.ndionisios_iphone_battery_state
- sensor.nmdionisios_ipad_battery_level
- sensor.nmdionisios_ipad_battery_state
- sensor.pecinha_iphone_battery_level
- sensor.pecinha_iphone_battery_state
- sensor.battery_bedroom_temp_sensor
- sensor.battery_living_room_button
- sensor.battery_living_room_temp_sensor
- sensor.battery_motion_sensor_hall
- sensor.battery_motion_sensor_dispensa
- sensor.battery_office_temp_sensor
- sensor.battery_bedroom_button
- sensor.battery_fridge_door_sensor
- sensor.battery_spare_temp_sensor
- sensor.battery_aqara_temp_sensor
- sensor.battery_cube
- sensor.bedroom_sensor_battery_low
- sensor.bedroom_button_battery_low
- sensor.living_room_button_battery_low
- sensor.living_room_sensor_battery_low
- sensor.office_sensor_battery_low
- sensor.motion_sensor_hall_battery_low
- sensor.motion_sensor_dispensa_battery_low
- sensor.fridge_door_sensor_battery_low
- sensor.spare_sensor_battery_low
- sensor.aqara_sensor_battery_low
- sensor.cube_battery_low
- sensor.cube_state
- sensor.pws_weather
- sensor.time_machine_backup
- sensor.nas_backup
- sensor.before_sunset
- sensor.before_sunrise
- sensor.brown
- sensor.green
- sensor.yellow
- sensor.blue
- sensor.red
- sensor.white
- switch.nothome
- sensor.kodi_temp_c
- sensor.current_ha_version
- sensor.installed_version
Clicking over switch sensors now shows a red message saying ‘Cannot read property ‘v’ of undefined’, with an X to close. Closing does nothing except making the message disappear.
I already tried to stop HASS, deleting file home-assistant_v2.db and then starting HASS again, to get the file recreated. Nothing seems to improve this situation.
Can anyone help understand what’s wrong with my HASS installation? Issue seems generic and not specific to any sensor, but if you think it is useful, let me know and I can share any relevant configuration.
Thanks in advance.