jmcollin78 / versatile_thermostat

A full featured Thermostat for Home Assistant: presets, window, motion, presence and overpowering management
MIT License
327 stars 34 forks source link

Flood of warning messages on startup of HA core #408

Closed mleiber closed 8 months ago

mleiber commented 8 months ago

I´m seeing a flood of Versatile Thermostat warning messages in the logbook every time HA core restarts. The warnings do not seem to be causing any problems further downstream, so I wonder if they could be moved into an even lower logging category (INFO). It seems as this is some sort of startup dependency/order/race condition - it seems to me that I see these messages now more often in the 2024.3.x release which claims improvements in startup time - maybe those improvements caused this to appear more often.

I am seeing this in core 2024.3.1.

2024-03-16 08:59:22.767 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_elternbad_last_temperature_date=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.771 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_elternbad_last_external_temperature_date=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.778 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_elternbad_temperature_slope=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.792 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_elternbad_ema_temperature=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.801 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_elternbad_power_percent=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.805 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_elternbad_on_time=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.815 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_elternbad_off_time=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.867 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity binary_sensor.heating_elternbad_security_state=off> - no entity to listen. Try later
2024-03-16 08:59:22.875 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity binary_sensor.heating_elternbad_window_bypass=off> - no entity to listen. Try later
2024-03-16 08:59:22.883 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity binary_sensor.heating_elternbad_window_state=off> - no entity to listen. Try later
2024-03-16 08:59:22.895 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_wohnhalle_last_temperature_date=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.902 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_wohnhalle_last_external_temperature_date=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.903 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_wohnhalle_temperature_slope=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.905 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_wohnhalle_ema_temperature=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.910 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_wohnhalle_power_percent=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.912 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_wohnhalle_on_time=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.913 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity sensor.heating_wohnhalle_off_time=unknown> - no entity to listen. Try later
2024-03-16 08:59:22.930 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity binary_sensor.heating_wohnhalle_security_state=off> - no entity to listen. Try later
2024-03-16 08:59:22.931 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity binary_sensor.heating_wohnhalle_window_bypass=off> - no entity to listen. Try later
2024-03-16 08:59:22.950 WARNING (MainThread) [custom_components.versatile_thermostat.commons] <entity binary_sensor.heating_wohnhalle_window_state=off> - no entity to listen. Try later
jmcollin78 commented 8 months ago

Hello @mleiber ,

This warning will be suppressed in V6.0 in which should be released today.

jmcollin78 commented 8 months ago

https://github.com/jmcollin78/versatile_thermostat/releases/tag/6.0.0