thermal_comfort
thermal_comfort copied to clipboard
Info message-spam on startup
Hey!
I am running thermal-comfort 2.1.1.
I am getting this info messages spammed on every startup. But when clicking on the entities in the thermal comfort integration in homeassistant it shows all the states and its also getting updated.
2023-03-18 18:42:15.451 INFO (MainThread) [custom_components.thermal_comfort.sensor] Temperature has an invalid value: None. Can't calculate new states.
2023-03-18 18:42:15.451 INFO (MainThread) [custom_components.thermal_comfort.sensor] Relative humidity has an invalid value: None. Can't calculate new states.
2023-03-18 18:42:15.453 INFO (MainThread) [custom_components.thermal_comfort.sensor] Temperature has an invalid value: None. Can't calculate new states.
2023-03-18 18:42:15.453 INFO (MainThread) [custom_components.thermal_comfort.sensor] Relative humidity has an invalid value: None. Can't calculate new states.
2023-03-18 18:42:15.457 INFO (MainThread) [custom_components.thermal_comfort.sensor] Temperature has an invalid value: None. Can't calculate new states.
2023-03-18 18:42:15.458 INFO (MainThread) [custom_components.thermal_comfort.sensor] Relative humidity has an invalid value: None. Can't calculate new states.
2023-03-18 18:42:15.462 INFO (MainThread) [custom_components.thermal_comfort.sensor] Temperature has an invalid value: None. Can't calculate new states.
2023-03-18 18:42:15.462 INFO (MainThread) [custom_components.thermal_comfort.sensor] Relative humidity has an invalid value: None. Can't calculate new states.
2023-03-18 18:42:15.466 INFO (MainThread) [custom_components.thermal_comfort.sensor] Temperature has an invalid value: None. Can't calculate new states.
2023-03-18 18:42:15.466 INFO (MainThread) [custom_components.thermal_comfort.sensor] Relative humidity has an invalid value: None. Can't calculate new states.
Whats going wrong?
This usualy just means that thermal comfort sets up its sensors before your temperature or humidity sensors have a valid value (None in this case). The idea was to keep this as info message so people know why thermal comfort isn't updating it's values in such cases. We could degrade it to debug if it's to annoying.
That would be neat! But not sure how everyone else using thermal_comfort thinks about that.
Just to add another PoV, I'm not having that log on my startup. I'm using Zigbee battery-powered sensors through ZHA as source, so I guess only internet-related sensors would be slower.. What sensors are you using?