dolezsa / thermal_comfort

Thermal Comfort sensor for HA (absolute humidity, heat index, dew point, thermal perception)
Other
552 stars 106 forks source link

Info message-spam on startup #285

Open enkama opened 1 year ago

enkama commented 1 year ago

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?

rautesamtr commented 1 year ago

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.

enkama commented 1 year ago

That would be neat! But not sure how everyone else using thermal_comfort thinks about that.

diamant-x commented 11 months ago

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?