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

In auto-start/stop with a Slow level, the device turn on, a few minutes after it turns off. #625

Open jmcollin78 opened 1 week ago

jmcollin78 commented 1 week ago

Discussed in https://github.com/jmcollin78/versatile_thermostat/discussions/603

Originally posted by **t0mb080** November 4, 2024 See original post at the end. There is logs : ``` Sorry to throw more issues in, but maybe it's worth some slower parameters? Or maybe some expert mode parameters, like for the self-regulation because below is a case where it was on 'slow' start/stop but it still started and stopped within two minutes. 2024-11-10 15:38:29.566 DEBUG (MainThread) [custom_components.versatile_thermostat.auto_start_stop_algorithm] AutoStartStopDetectionAlgorithm-Office thermostat - calculate_action: hvac_mode=off, saved_hvac_mode=heat, target_temp=20.0, current_temp=20.4, slope_min=-0.04616666666666667 at 2024-11-10 15:38:29.566666+00:00 2024-11-10 15:38:29.566 INFO (MainThread) [custom_components.versatile_thermostat.auto_start_stop_algorithm] AutoStartStopDetectionAlgorithm-Office thermostat - We need to start, because it will be time to heat 2024-11-10 15:38:29.566 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - Turning ON the Vtherm due to auto-start-stop conditions 2024-11-10 15:38:29.568 DEBUG (MainThread) [custom_components.versatile_thermostat.auto_start_stop_algorithm] AutoStartStopDetectionAlgorithm-Office thermostat - calculate_action: hvac_mode=heat, saved_hvac_mode=heat, target_temp=20.0, current_temp=20.4, slope_min=-0.04616666666666667 at 2024-11-10 15:38:29.568827+00:00 2024-11-10 15:38:29.568 DEBUG (MainThread) [custom_components.versatile_thermostat.auto_start_stop_algorithm] AutoStartStopDetectionAlgorithm-Office thermostat - new calculation of auto_start_stop (2024-11-10 15:38:29.568827+00:00) is too near of the last one (2024-11-10 15:38:29.566666+00:00). Forget it 2024-11-10 15:38:29.569 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - Calling ThermostatClimate._send_regulated_temperature force=False 2024-11-10 15:38:29.569 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - regulation calculation will be done 2024-11-10 15:38:29.569 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - Regulated temp have changed to 15.6. Resend it to underlyings 2024-11-10 15:38:29.570 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - Calling ThermostatClimate._send_regulated_temperature force=True 2024-11-10 15:38:29.570 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - regulation calculation will be done 2024-11-10 15:38:29.570 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - Regulated temp have changed to 15.5. Resend it to underlyings 2024-11-10 15:38:29.573 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - Calling ThermostatClimate._send_regulated_temperature force=False 2024-11-10 15:38:29.573 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - period (0.0) min is < 5 min -> forget the regulation send 2024-11-10 15:38:31.516 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - Underlying climate climate.office have changed. new_hvac_mode is heat (vs heat), new_hvac_action=off (vs off), new_target_temp=17 (vs 20.0), new_fan_mode=Auto (vs Auto) 2024-11-10 15:38:31.516 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - underlying event is received less than 10 sec after command. Forget it to avoid loop 2024-11-10 15:39:01.246 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - Underlying climate climate.office have changed. new_hvac_mode is heat (vs heat), new_hvac_action=idle (vs off), new_target_temp=16.0 (vs 20.0), new_fan_mode=Auto (vs Auto) 2024-11-10 15:40:10.961 DEBUG (MainThread) [custom_components.versatile_thermostat.auto_start_stop_algorithm] AutoStartStopDetectionAlgorithm-Office thermostat - calculate_action: hvac_mode=heat, saved_hvac_mode=heat, target_temp=20.0, current_temp=20.6, slope_min=-0.014 at 2024-11-10 15:40:10.961700+00:00 2024-11-10 15:40:10.961 DEBUG (MainThread) [custom_components.versatile_thermostat.auto_start_stop_algorithm] AutoStartStopDetectionAlgorithm-Office thermostat - nothing to do, we are heating 2024-11-10 15:40:10.961 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - Calling ThermostatClimate._send_regulated_temperature force=False 2024-11-10 15:40:10.962 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - period (1.7) min is < 5 min -> forget the regulation send 2024-11-10 15:40:30.005 DEBUG (MainThread) [custom_components.versatile_thermostat.auto_start_stop_algorithm] AutoStartStopDetectionAlgorithm-Office thermostat - calculate_action: hvac_mode=heat, saved_hvac_mode=heat, target_temp=20.0, current_temp=20.7, slope_min=-0.0028333333333333335 at 2024-11-10 15:40:30.005585+00:00 2024-11-10 15:40:30.005 DEBUG (MainThread) [custom_components.versatile_thermostat.auto_start_stop_algorithm] AutoStartStopDetectionAlgorithm-Office thermostat - new calculation of auto_start_stop (2024-11-10 15:40:30.005585+00:00) is too near of the last one (2024-11-10 15:40:10.961700+00:00). Forget it 2024-11-10 15:40:30.005 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - Calling ThermostatClimate._send_regulated_temperature force=False 2024-11-10 15:40:30.005 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - period (2.0) min is < 5 min -> forget the regulation send 2024-11-10 15:40:50.058 DEBUG (MainThread) [custom_components.versatile_thermostat.auto_start_stop_algorithm] AutoStartStopDetectionAlgorithm-Office thermostat - calculate_action: hvac_mode=heat, saved_hvac_mode=heat, target_temp=20.0, current_temp=20.8, slope_min=-0.0005 at 2024-11-10 15:40:50.058521+00:00 2024-11-10 15:40:50.058 INFO (MainThread) [custom_components.versatile_thermostat.auto_start_stop_algorithm] AutoStartStopDetectionAlgorithm-Office thermostat - We need to stop, there is no need for heating for a long time. 2024-11-10 15:40:50.058 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Office thermostat - Turning OFF the Vtherm due to auto-start-stop conditions ``` Thanks to @jmcollin78 and anyone else that might be able to shed light on this.