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

Open window on start not detected #479

Closed fierland closed 4 months ago

fierland commented 4 months ago

Version of the custom_component

6.2.6

Configuration

My VTherm attributes are the following: hvac_modes:

If it is releveant to regulation performance or optimisation some curves are needed

To have a great curves demonstrating what you think is a problem, please install and configure what is described here: Even better with Plotly to tune your Thermostat

Describe the bug

On (re) starting HA with an open window the temostat entry does not register the open window.

I'm trying to: start HA

And I expect: The termostat going into window bypass mode

But I observe this .... does not see open window and starts heating

Seems the same for motion sensor, motion was on on start , not updating

I read the documentation on the README.md file and I don't find any relevant information about this issue.

Debug log

2024-06-30 21:42:11.805 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Updating VersatileThermostat with infos {'use_window_feature': True, 'use_motion_feature': True, 'use_power_feature': False, 'use_presence_feature': True, 'use_central_boiler_feature': False, 'use_main_central_config': True, 'use_tpi_central_config': True, 'use_window_central_config': False, 'use_motion_central_config': False, 'use_power_central_config': False, 'use_presets_central_config': False, 'use_presence_central_config': True, 'use_advanced_central_config': True, 'thermostat_type': 'thermostat_over_climate', 'name': 'Bedroom Thermostat', 'temperature_sensor_entity_id': 'sensor.netatmo_bedroom_monitor_temperature', 'cycle_min': 5, 'device_power': 1.0, 'use_central_mode': True, 'used_by_controls_central_boiler': False, 'climate_entity_id': 'climate.ac_bedroom', 'ac_mode': True, 'auto_regulation_mode': 'auto_regulation_light', 'auto_regulation_dtemp': 0.5, 'auto_regulation_periode_min': 5, 'auto_fan_mode': 'auto_fan_high', 'auto_regulation_use_device_temp': False, 'window_sensor_entity_id': 'binary_sensor.bedroomwindow_access_control_window_door_is_open', 'window_delay': 10, 'window_action': 'window_turn_off', 'motion_sensor_entity_id': 'binary_sensor.bedroom_presence_occupancy', 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'presence_sensor_entity_id': None, 'central_boiler_activation_service': None, 'central_boiler_deactivation_service': None, 'motion_delay': 30, 'motion_off_delay': 300, 'motion_preset': 'comfort', 'no_motion_preset': 'eco'} 2024-06-30 21:42:11.805 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - The merged configuration is {'use_window_feature': True, 'use_motion_feature': True, 'use_power_feature': False, 'use_presence_feature': True, 'use_central_boiler_feature': False, 'use_main_central_config': True, 'use_tpi_central_config': True, 'use_window_central_config': False, 'use_motion_central_config': False, 'use_power_central_config': False, 'use_presets_central_config': False, 'use_presence_central_config': True, 'use_advanced_central_config': True, 'thermostat_type': 'thermostat_over_climate', 'name': 'Bedroom Thermostat', 'external_temperature_sensor_entity_id': 'sensor.netatmo_tuin_monitor_temperature', 'temp_min': 7.0, 'temp_max': 35.0, 'step_temperature': 0.1, 'presence_sensor_entity_id': 'binary_sensor.people_are_home', 'minimal_activation_delay': 10, 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'tpi_coef_int': 0.6, 'tpi_coef_ext': 0.01, 'temperature_sensor_entity_id': 'sensor.netatmo_bedroom_monitor_temperature', 'cycle_min': 5, 'device_power': 1.0, 'use_central_mode': True, 'used_by_controls_central_boiler': False, 'climate_entity_id': 'climate.ac_bedroom', 'ac_mode': True, 'auto_regulation_mode': 'auto_regulation_light', 'auto_regulation_dtemp': 0.5, 'auto_regulation_periode_min': 5, 'auto_fan_mode': 'auto_fan_high', 'auto_regulation_use_device_temp': False, 'window_sensor_entity_id': 'binary_sensor.bedroomwindow_access_control_window_door_is_open', 'window_delay': 10, 'window_action': 'window_turn_off', 'motion_sensor_entity_id': 'binary_sensor.bedroom_presence_occupancy', 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'central_boiler_activation_service': None, 'central_boiler_deactivation_service': None, 'motion_delay': 30, 'motion_off_delay': 300, 'motion_preset': 'comfort', 'no_motion_preset': 'eco'} 2024-06-30 21:42:11.805 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Power management is not fully configured 2024-06-30 21:42:11.806 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Creation of a new VersatileThermostat entity: unique_id=467042120468e968d20137b3ae0c29cb 2024-06-30 21:42:11.809 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.809 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.809 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.810 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.810 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.810 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.811 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.812 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.812 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.813 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.813 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.813 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.813 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.814 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.814 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.815 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.815 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:11.815 DEBUG (MainThread) [custom_components.versatile_thermostat.commons] Found VersatileThermostat-Bedroom Thermostat! 2024-06-30 21:42:12.232 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - _async_climate_changed new_state is <state climate.ac_bedroom=heat; hvac_modes=[<HVACMode.OFF: 'off'>, <HVACMode.AUTO: 'auto'>, <HVACMode.COOL: 'cool'>, <HVACMode.HEAT: 'heat'>, <HVACMode.DRY: 'dry'>, <HVACMode.FAN_ONLY: 'fan_only'>], min_temp=17, max_temp=30, target_temp_step=1, fan_modes=['Auto', 'Quiet', 'Low', 'Medium Low', 'Medium', 'Medium High', 'High'], preset_modes=['Power 50', 'Power 75', 'Power 100'], swing_modes=['Off', 'Swing Vertical'], current_temperature=23, temperature=17, fan_mode=Auto, preset_mode=Power 100, swing_mode=Off, merit_a_feature=OFF, merit_b_feature=OFF, air_pure_ion=OFF, self_cleaning=OFF, outdoor_temperature=17, friendly_name=AC_Bedroom, supported_features=441 @ 2024-06-30T21:42:12.232504+02:00> 2024-06-30 21:42:12.233 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Underlying climate climate.ac_bedroom changed. Event.new_hvac_mode is heat, current_hvac_mode=None, new_hvac_action=None, old_hvac_action=None 2024-06-30 21:42:12.233 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - last_change_time=None old_state_date_changed=None old_state_date_updated=None new_state_date_changed=2024-06-30 19:42:12.232504+00:00 new_state_date_updated=2024-06-30 19:42:12.232504+00:00 2024-06-30 21:42:12.233 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - All underlyings have the same hvac_mode, so VTherm will send the new hvac mode heat 2024-06-30 21:42:12.235 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling update_custom_attributes: {'is_on': True, 'hvac_action': None, 'hvac_mode': 'heat', 'preset_mode': 'none', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': None, 'frost_temp': 0, 'eco_temp': 0, 'boost_temp': 0, 'comfort_temp': 0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': None, 'ac_mode': True, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'none', 'saved_target_temp': 'none', 'saved_hvac_mode': None, 'motion_sensor_entity_id': 'binary_sensor.bedroom_presence_occupancy', 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'binary_sensor.people_are_home', 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': 'binary_sensor.bedroomwindow_access_control_window_door_is_open', 'window_delay_sec': 10, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-06-30T21:42:11.806349+02:00', 'last_ext_temperature_datetime': '2024-06-30T21:42:11.806351+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': None, 'last_update_datetime': '2024-06-30T21:42:12.234463+02:00', 'timezone': 'Europe/Amsterdam', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': False, 'ema_temp': None, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.ac_bedroom', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'is_regulated': True, 'regulated_target_temperature': None, 'auto_regulation_mode': 'auto_regulation_light', 'regulation_accumulated_error': 0, 'auto_fan_mode': 'auto_fan_high', 'current_auto_fan_mode': None, 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False} 2024-06-30 21:42:12.235 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=none 2024-06-30 21:42:12.235 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto is on, check the alert. last slope is 0.000 2024-06-30 21:42:12.235 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto event is ignored because bypass is ON or window auto detection is disabled 2024-06-30 21:42:12.235 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Underlying climate.ac_bedroom is not initialized. Try to initialize it 2024-06-30 21:42:12.235 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Bedroom Thermostat-climate.ac_bedroom - The underlying climate entity: have been succesfully found 2024-06-30 21:42:12.235 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - choose_auto_fan_mode founds current_auto_fan_mode=auto_fan_high auto_activated_fan_mode=None and auto_deactivated_fan_mode=None 2024-06-30 21:42:12.235 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling ThermostatClimate._send_regulated_temperature force=False 2024-06-30 21:42:12.235 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - period (0.0) min is < 5 min -> forget the regulation send 2024-06-30 21:42:14.197 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Motion changed. Event.new_state is <state binary_sensor.bedroom_presence_occupancy=unavailable; device_class=occupancy, friendly_name=Bedroom Presence Occupancy @ 2024-06-30T21:42:14.197792+02:00>, _attr_preset_mode=none, activity=activity 2024-06-30 21:42:14.414 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window changed. Event.new_state is <state binary_sensor.bedroomwindow_access_control_window_door_is_open=on; device_class=window, friendly_name=BedroomWindow Window/door is open @ 2024-06-30T21:42:14.414501+02:00>, _hvac_mode=heat, _saved_hvac_mode=None 2024-06-30 21:42:15.871 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Motion changed. Event.new_state is <state binary_sensor.bedroom_presence_occupancy=on; device_class=occupancy, friendly_name=Bedroom Presence Occupancy @ 2024-06-30T21:42:15.871276+02:00>, _attr_preset_mode=none, activity=activity 2024-06-30 21:42:15.871 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Arm delay cause i'm off and event is on and no delay is running 2024-06-30 21:42:18.099 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - external Temperature changed. Event.new_state is <state sensor.netatmo_tuin_monitor_temperature=16.3; state_class=measurement, unit_of_measurement=°C, attribution=Data provided by Netatmo, device_class=temperature, friendly_name=Netatmo Tuin Monitor Temperature @ 2024-06-30T21:42:18.099859+02:00> 2024-06-30 21:42:18.099 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - After setting _last_ext_temperature_measure 2024-06-30 21:42:18.099859+02:00 , state.last_changed.replace=2024-06-30 21:42:18.099859+02:00 2024-06-30 21:42:18.100 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - recalculate all 2024-06-30 21:42:18.115 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Temperature changed. Event.new_state is <state sensor.netatmo_bedroom_monitor_temperature=25; state_class=measurement, unit_of_measurement=°C, attribution=Data provided by Netatmo, device_class=temperature, friendly_name=Netatmo Bedroom Monitor Temperature @ 2024-06-30T21:42:18.115214+02:00> 2024-06-30 21:42:18.115 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - After setting _last_temperature_measure 2024-06-30 21:42:18.115214+02:00 , state.last_changed.replace=2024-06-30 21:42:18.115214+02:00 2024-06-30 21:42:18.115 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto is on, check the alert. last slope is 0.000 2024-06-30 21:42:18.115 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto event is ignored because bypass is ON or window auto detection is disabled 2024-06-30 21:42:18.115 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - recalculate all 2024-06-30 21:42:32.708 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Presence changed. Event.new_state is <state binary_sensor.people_are_home=off; device_class=occupancy, friendly_name=People are Home @ 2024-06-30T21:42:32.708134+02:00>, _attr_preset_mode=none, activity=activity 2024-06-30 21:42:32.708 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Updating presence. New state is off 2024-06-30 21:42:32.708 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=none 2024-06-30 21:42:32.708 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto is on, check the alert. last slope is 0.000 2024-06-30 21:42:32.708 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto event is ignored because bypass is ON or window auto detection is disabled 2024-06-30 21:42:32.708 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - power not configured. check_overpowering not available 2024-06-30 21:42:32.708 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - checking security delta_temp=0.2 delta_ext_temp=0.2 mod_cond=True temp_cond=False climate_cond=True switch_cond=False 2024-06-30 21:42:32.775 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Presence changed. Event.new_state is <state binary_sensor.people_are_home=on; device_class=occupancy, friendly_name=People are Home @ 2024-06-30T21:42:32.775299+02:00>, _attr_preset_mode=none, activity=activity 2024-06-30 21:42:32.775 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Updating presence. New state is on 2024-06-30 21:42:32.775 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=none 2024-06-30 21:42:32.775 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto is on, check the alert. last slope is 0.000 2024-06-30 21:42:32.775 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto event is ignored because bypass is ON or window auto detection is disabled 2024-06-30 21:42:32.775 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - power not configured. check_overpowering not available 2024-06-30 21:42:32.775 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - checking security delta_temp=0.2 delta_ext_temp=0.2 mod_cond=True temp_cond=False climate_cond=True switch_cond=False 2024-06-30 21:42:32.991 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Calling async_startup 2024-06-30 21:42:32.991 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Calling async_startup_internal 2024-06-30 21:42:32.991 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Calling get_my_previous_state old_state is <state climate.bedroom_thermostat=heat; hvac_modes=['off', 'auto', 'cool', 'heat', 'dry', 'fan_only'], min_temp=7.0, max_temp=35.0, target_temp_step=0.1, fan_modes=['Auto', 'Quiet', 'Low', 'Medium Low', 'Medium', 'Medium High', 'High'], preset_modes=['none', 'frost', 'eco', 'comfort', 'boost', 'activity'], swing_modes=['Off', 'Swing Vertical'], current_temperature=25.0, temperature=7.0, fan_mode=Auto, preset_mode=frost, swing_mode=Off, is_on=True, hvac_action=None, hvac_mode=heat, type=None, is_controlled_by_central_mode=True, last_central_mode=Frost protection, frost_temp=7.0, eco_temp=16.0, boost_temp=22.0, comfort_temp=20.0, frost_away_temp=7.0, eco_away_temp=7.0, boost_away_temp=7.0, comfort_away_temp=7.0, power_temp=None, target_temperature_step=0.1, ext_current_temperature=16.4, ac_mode=True, current_power=None, current_power_max=None, saved_preset_mode=eco, saved_target_temp=16.0, saved_hvac_mode=None, motion_sensor_entity_id=binary_sensor.bedroom_presence_occupancy, motion_state=on, power_sensor_entity_id=None, max_power_sensor_entity_id=None, overpowering_state=None, presence_sensor_entity_id=binary_sensor.people_are_home, presence_state=on, window_state=off, window_auto_state=off, window_bypass_state=False, window_sensor_entity_id=binary_sensor.bedroomwindow_access_control_window_door_is_open, window_delay_sec=10, window_auto_enabled=False, window_auto_open_threshold=None, window_auto_close_threshold=None, window_auto_max_duration=None, window_action=window_turn_off, security_delay_min=60, security_min_on_percent=0.5, security_default_on_percent=0.1, last_temperature_datetime=2024-06-30T21:28:22.701476+02:00, last_ext_temperature_datetime=2024-06-30T21:28:22.701476+02:00, security_state=False, minimal_activation_delay_sec=10, device_power=1.0, mean_cycle_power=None, total_energy=0, last_update_datetime=2024-06-30T21:38:05.110737+02:00, timezone=Europe/Amsterdam, temperature_unit=°C, is_device_active=True, ema_temp=25.0, is_used_by_central_boiler=False, is_over_climate=True, start_hvac_action_date=None, underlying_climate_0=climate.ac_bedroom, underlying_climate_1=None, underlying_climate_2=None, underlying_climate_3=None, is_regulated=True, regulated_target_temperature=5.5, auto_regulation_mode=auto_regulation_light, regulation_accumulated_error=-10, auto_fan_mode=auto_fan_high, current_auto_fan_mode=auto_fan_high, auto_activated_fan_mode=None, auto_deactivated_fan_mode=None, auto_regulation_use_device_temp=False, friendly_name=Bedroom Thermostat, supported_features=441 @ 2024-06-30T21:28:22.700651+02:00> 2024-06-30 21:42:32.991 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling ThermostatClimate._send_regulated_temperature force=True 2024-06-30 21:42:32.991 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - regulation calculation will be done 2024-06-30 21:42:32.991 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - usage of regulation_step: 0.50 2024-06-30 21:42:32.991 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Regulated temp have changed to 5.5. Resend it to underlyings 2024-06-30 21:42:32.991 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - The device offset temp for regulation is 0.00 - internal temp is 0.00. New target is 5.50 2024-06-30 21:42:32.991 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Bedroom Thermostat-climate.ac_bedroom - Target temp have been updated due min, max of the underlying entity. new_value=17 value=6 min=17 max=30 2024-06-30 21:42:32.991 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Old regulation accumulated_error have been restored to -10.000000 2024-06-30 21:42:32.991 INFO (MainThread) [custom_components.versatile_thermostat.const] VersatileThermostat-Bedroom Thermostat - Sending event EventType.PRESET_EVENT with data: {'preset': 'frost'} 2024-06-30 21:42:32.991 INFO (MainThread) [custom_components.versatile_thermostat.const] VersatileThermostat-Bedroom Thermostat - Sending event EventType.HVAC_MODE_EVENT with data: {'hvac_mode': 'heat'} 2024-06-30 21:42:32.991 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - restored state is target_temp=7.0, preset_mode=frost, hvac_mode=heat 2024-06-30 21:42:32.992 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - find preset temp: frost 2024-06-30 21:42:32.992 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - find preset temp: eco 2024-06-30 21:42:32.992 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - find preset temp: comfort 2024-06-30 21:42:32.992 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - find preset temp: boost 2024-06-30 21:42:32.992 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Set preset_mode: frost force=True 2024-06-30 21:42:32.992 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - find preset temp: frost 2024-06-30 21:42:32.992 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling ThermostatClimate._send_regulated_temperature force=True 2024-06-30 21:42:32.992 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - regulation calculation will be done 2024-06-30 21:42:32.992 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - usage of regulation_step: 0.50 2024-06-30 21:42:32.992 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Regulated temp have changed to 5.5. Resend it to underlyings 2024-06-30 21:42:32.992 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - The device offset temp for regulation is 0.00 - internal temp is 0.00. New target is 5.50 2024-06-30 21:42:32.992 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Bedroom Thermostat-climate.ac_bedroom - Target temp have been updated due min, max of the underlying entity. new_value=17 value=6 min=17 max=30 2024-06-30 21:42:32.992 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - recalculate all 2024-06-30 21:42:32.992 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - The config entry have been updated 2024-06-30 21:42:32.994 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling update_custom_attributes: {'is_on': True, 'hvac_action': None, 'hvac_mode': 'heat', 'preset_mode': 'frost', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': None, 'frost_temp': 7.0, 'eco_temp': 16.0, 'boost_temp': 22.0, 'comfort_temp': 20.0, 'frost_away_temp': 7.0, 'eco_away_temp': 7.0, 'boost_away_temp': 7.0, 'comfort_away_temp': 7.0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 16.3, 'ac_mode': True, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'frost', 'saved_target_temp': 7.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': 'binary_sensor.bedroom_presence_occupancy', 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'binary_sensor.people_are_home', 'presence_state': 'on', 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': 'binary_sensor.bedroomwindow_access_control_window_door_is_open', 'window_delay_sec': 10, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-06-30T21:42:32.992581+02:00', 'last_ext_temperature_datetime': '2024-06-30T21:42:32.992581+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-06-30T21:42:32.992662+02:00', 'timezone': 'Europe/Amsterdam', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 25.0, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.ac_bedroom', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'is_regulated': True, 'regulated_target_temperature': 5.5, 'auto_regulation_mode': 'auto_regulation_light', 'regulation_accumulated_error': -10, 'auto_fan_mode': 'auto_fan_high', 'current_auto_fan_mode': 'auto_fan_high', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False} 2024-06-30 21:42:32.994 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - choose_auto_fan_mode founds current_auto_fan_mode=auto_fan_high auto_activated_fan_mode=None and auto_deactivated_fan_mode=None 2024-06-30 21:42:32.994 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - temperature sensor have been retrieved: 25.0 2024-06-30 21:42:32.994 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - After setting _last_temperature_measure 2024-06-30 21:42:18.115214+02:00 , state.last_changed.replace=2024-06-30 21:42:18.115214+02:00 2024-06-30 21:42:32.994 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto is on, check the alert. last slope is 0.000 2024-06-30 21:42:32.994 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto event is ignored because bypass is ON or window auto detection is disabled 2024-06-30 21:42:32.994 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - external temperature sensor have been retrieved: 16.3 2024-06-30 21:42:32.994 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - After setting _last_ext_temperature_measure 2024-06-30 21:42:18.099859+02:00 , state.last_changed.replace=2024-06-30 21:42:18.099859+02:00 2024-06-30 21:42:32.994 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Updating presence. New state is on 2024-06-30 21:42:32.994 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Presence have been retrieved: on 2024-06-30 21:42:32.994 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - last_change_time is now 2024-06-30 21:42:32.994707+02:00 2024-06-30 21:42:33.036 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Central mode have change from None to Frost protection 2024-06-30 21:42:33.036 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Set hvac mode: heat 2024-06-30 21:42:33.036 DEBUG (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Bedroom Thermostat-climate.ac_bedroom - hvac_mode is already is requested state heat. Do not send any command 2024-06-30 21:42:33.036 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=frost 2024-06-30 21:42:33.036 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto is on, check the alert. last slope is 0.000 2024-06-30 21:42:33.036 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto event is ignored because bypass is ON or window auto detection is disabled 2024-06-30 21:42:33.036 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - power not configured. check_overpowering not available 2024-06-30 21:42:33.037 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - checking security delta_temp=0.2 delta_ext_temp=0.2 mod_cond=True temp_cond=False climate_cond=True switch_cond=False 2024-06-30 21:42:33.039 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling update_custom_attributes: {'is_on': True, 'hvac_action': None, 'hvac_mode': <HVACMode.HEAT: 'heat'>, 'preset_mode': 'frost', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Frost protection', 'frost_temp': 7.0, 'eco_temp': 16.0, 'boost_temp': 22.0, 'comfort_temp': 20.0, 'frost_away_temp': 7.0, 'eco_away_temp': 7.0, 'boost_away_temp': 7.0, 'comfort_away_temp': 7.0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 16.3, 'ac_mode': True, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'frost', 'saved_target_temp': 7.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': 'binary_sensor.bedroom_presence_occupancy', 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'binary_sensor.people_are_home', 'presence_state': 'on', 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': 'binary_sensor.bedroomwindow_access_control_window_door_is_open', 'window_delay_sec': 10, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-06-30T21:42:18.115214+02:00', 'last_ext_temperature_datetime': '2024-06-30T21:42:18.099859+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-06-30T21:42:33.037102+02:00', 'timezone': 'Europe/Amsterdam', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 25.0, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.ac_bedroom', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'is_regulated': True, 'regulated_target_temperature': 5.5, 'auto_regulation_mode': 'auto_regulation_light', 'regulation_accumulated_error': -10, 'auto_fan_mode': 'auto_fan_high', 'current_auto_fan_mode': 'auto_fan_high', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False} 2024-06-30 21:42:33.039 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling ThermostatClimate._send_regulated_temperature force=False 2024-06-30 21:42:33.039 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - period (0.0) min is < 5 min -> forget the regulation send 2024-06-30 21:42:33.039 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - last_change_time is now 2024-06-30 21:42:33.039357+02:00 2024-06-30 21:42:33.040 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling update_custom_attributes: {'is_on': True, 'hvac_action': None, 'hvac_mode': <HVACMode.HEAT: 'heat'>, 'preset_mode': 'frost', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Frost protection', 'frost_temp': 7.0, 'eco_temp': 16.0, 'boost_temp': 22.0, 'comfort_temp': 20.0, 'frost_away_temp': 7.0, 'eco_away_temp': 7.0, 'boost_away_temp': 7.0, 'comfort_away_temp': 7.0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 16.3, 'ac_mode': True, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'frost', 'saved_target_temp': 7.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': 'binary_sensor.bedroom_presence_occupancy', 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'binary_sensor.people_are_home', 'presence_state': 'on', 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': 'binary_sensor.bedroomwindow_access_control_window_door_is_open', 'window_delay_sec': 10, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-06-30T21:42:33.039355+02:00', 'last_ext_temperature_datetime': '2024-06-30T21:42:33.039355+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-06-30T21:42:33.039460+02:00', 'timezone': 'Europe/Amsterdam', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 25.0, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.ac_bedroom', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'is_regulated': True, 'regulated_target_temperature': 5.5, 'auto_regulation_mode': 'auto_regulation_light', 'regulation_accumulated_error': -10, 'auto_fan_mode': 'auto_fan_high', 'current_auto_fan_mode': 'auto_fan_high', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False} 2024-06-30 21:42:33.040 INFO (MainThread) [custom_components.versatile_thermostat.const] VersatileThermostat-Bedroom Thermostat - Sending event EventType.HVAC_MODE_EVENT with data: {'hvac_mode': <HVACMode.HEAT: 'heat'>} 2024-06-30 21:42:33.041 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Set preset_mode: frost force=False 2024-06-30 21:42:33.041 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=frost 2024-06-30 21:42:33.041 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto is on, check the alert. last slope is 0.000 2024-06-30 21:42:33.041 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto event is ignored because bypass is ON or window auto detection is disabled 2024-06-30 21:42:33.041 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - power not configured. check_overpowering not available 2024-06-30 21:42:33.041 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - checking security delta_temp=0.0 delta_ext_temp=0.0 mod_cond=True temp_cond=False climate_cond=True switch_cond=False 2024-06-30 21:42:33.042 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling update_custom_attributes: {'is_on': True, 'hvac_action': None, 'hvac_mode': <HVACMode.HEAT: 'heat'>, 'preset_mode': 'frost', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Frost protection', 'frost_temp': 7.0, 'eco_temp': 16.0, 'boost_temp': 22.0, 'comfort_temp': 20.0, 'frost_away_temp': 7.0, 'eco_away_temp': 7.0, 'boost_away_temp': 7.0, 'comfort_away_temp': 7.0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 16.3, 'ac_mode': True, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'frost', 'saved_target_temp': 7.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': 'binary_sensor.bedroom_presence_occupancy', 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'binary_sensor.people_are_home', 'presence_state': 'on', 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': 'binary_sensor.bedroomwindow_access_control_window_door_is_open', 'window_delay_sec': 10, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-06-30T21:42:33.039355+02:00', 'last_ext_temperature_datetime': '2024-06-30T21:42:33.039355+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-06-30T21:42:33.041700+02:00', 'timezone': 'Europe/Amsterdam', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 25.0, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.ac_bedroom', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'is_regulated': True, 'regulated_target_temperature': 5.5, 'auto_regulation_mode': 'auto_regulation_light', 'regulation_accumulated_error': -10, 'auto_fan_mode': 'auto_fan_high', 'current_auto_fan_mode': 'auto_fan_high', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False} 2024-06-30 21:42:33.042 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling ThermostatClimate._send_regulated_temperature force=False 2024-06-30 21:42:33.042 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - period (0.0) min is < 5 min -> forget the regulation send 2024-06-30 21:42:33.279 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Calling _check_initial_state 2024-06-30 21:42:33.280 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=frost 2024-06-30 21:42:33.280 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto is on, check the alert. last slope is 0.000 2024-06-30 21:42:33.280 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto event is ignored because bypass is ON or window auto detection is disabled 2024-06-30 21:42:33.280 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - power not configured. check_overpowering not available 2024-06-30 21:42:33.280 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - checking security delta_temp=0.0 delta_ext_temp=0.0 mod_cond=True temp_cond=False climate_cond=True switch_cond=False 2024-06-30 21:42:33.310 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling update_custom_attributes: {'is_on': True, 'hvac_action': None, 'hvac_mode': <HVACMode.HEAT: 'heat'>, 'preset_mode': 'frost', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Frost protection', 'frost_temp': 7.0, 'eco_temp': 16.0, 'boost_temp': 22.0, 'comfort_temp': 20.0, 'frost_away_temp': 7.0, 'eco_away_temp': 7.0, 'boost_away_temp': 7.0, 'comfort_away_temp': 7.0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 16.3, 'ac_mode': True, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'frost', 'saved_target_temp': 7.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': 'binary_sensor.bedroom_presence_occupancy', 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'binary_sensor.people_are_home', 'presence_state': 'on', 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': 'binary_sensor.bedroomwindow_access_control_window_door_is_open', 'window_delay_sec': 10, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-06-30T21:42:33.039355+02:00', 'last_ext_temperature_datetime': '2024-06-30T21:42:33.039355+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-06-30T21:42:33.280369+02:00', 'timezone': 'Europe/Amsterdam', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 25.0, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.ac_bedroom', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'is_regulated': True, 'regulated_target_temperature': 5.5, 'auto_regulation_mode': 'auto_regulation_light', 'regulation_accumulated_error': -10, 'auto_fan_mode': 'auto_fan_high', 'current_auto_fan_mode': 'auto_fan_high', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False} 2024-06-30 21:42:33.310 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling ThermostatClimate._send_regulated_temperature force=False 2024-06-30 21:42:33.310 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - period (0.0) min is < 5 min -> forget the regulation send 2024-06-30 21:42:45.871 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Motion delay condition is satisfied 2024-06-30 21:42:45.872 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - recalculate all 2024-06-30 21:42:45.885 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling update_custom_attributes: {'is_on': True, 'hvac_action': None, 'hvac_mode': <HVACMode.HEAT: 'heat'>, 'preset_mode': 'frost', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Frost protection', 'frost_temp': 7.0, 'eco_temp': 16.0, 'boost_temp': 22.0, 'comfort_temp': 20.0, 'frost_away_temp': 7.0, 'eco_away_temp': 7.0, 'boost_away_temp': 7.0, 'comfort_away_temp': 7.0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 16.3, 'ac_mode': True, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'frost', 'saved_target_temp': 7.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': 'binary_sensor.bedroom_presence_occupancy', 'motion_state': 'on', 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'binary_sensor.people_are_home', 'presence_state': 'on', 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': 'binary_sensor.bedroomwindow_access_control_window_door_is_open', 'window_delay_sec': 10, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-06-30T21:42:33.039355+02:00', 'last_ext_temperature_datetime': '2024-06-30T21:42:33.039355+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-06-30T21:42:45.872148+02:00', 'timezone': 'Europe/Amsterdam', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 25.0, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.ac_bedroom', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'is_regulated': True, 'regulated_target_temperature': 5.5, 'auto_regulation_mode': 'auto_regulation_light', 'regulation_accumulated_error': -10, 'auto_fan_mode': 'auto_fan_high', 'current_auto_fan_mode': 'auto_fan_high', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False} 2024-06-30 21:42:45.885 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=frost 2024-06-30 21:42:45.885 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto is on, check the alert. last slope is 0.000 2024-06-30 21:42:45.885 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto event is ignored because bypass is ON or window auto detection is disabled 2024-06-30 21:42:45.885 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - power not configured. check_overpowering not available 2024-06-30 21:42:45.885 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - checking security delta_temp=0.2 delta_ext_temp=0.2 mod_cond=True temp_cond=False climate_cond=True switch_cond=False 2024-06-30 21:42:45.899 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling update_custom_attributes: {'is_on': True, 'hvac_action': None, 'hvac_mode': <HVACMode.HEAT: 'heat'>, 'preset_mode': 'frost', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Frost protection', 'frost_temp': 7.0, 'eco_temp': 16.0, 'boost_temp': 22.0, 'comfort_temp': 20.0, 'frost_away_temp': 7.0, 'eco_away_temp': 7.0, 'boost_away_temp': 7.0, 'comfort_away_temp': 7.0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 16.3, 'ac_mode': True, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'frost', 'saved_target_temp': 7.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': 'binary_sensor.bedroom_presence_occupancy', 'motion_state': 'on', 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'binary_sensor.people_are_home', 'presence_state': 'on', 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': 'binary_sensor.bedroomwindow_access_control_window_door_is_open', 'window_delay_sec': 10, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-06-30T21:42:33.039355+02:00', 'last_ext_temperature_datetime': '2024-06-30T21:42:33.039355+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-06-30T21:42:45.885942+02:00', 'timezone': 'Europe/Amsterdam', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 25.0, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.ac_bedroom', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'is_regulated': True, 'regulated_target_temperature': 5.5, 'auto_regulation_mode': 'auto_regulation_light', 'regulation_accumulated_error': -10, 'auto_fan_mode': 'auto_fan_high', 'current_auto_fan_mode': 'auto_fan_high', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False} 2024-06-30 21:42:45.899 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling ThermostatClimate._send_regulated_temperature force=False 2024-06-30 21:42:45.899 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - period (0.2) min is < 5 min -> forget the regulation send 2024-06-30 21:47:11.808 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=frost 2024-06-30 21:47:11.808 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto is on, check the alert. last slope is 0.000 2024-06-30 21:47:11.808 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - Window auto event is ignored because bypass is ON or window auto detection is disabled 2024-06-30 21:47:11.808 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - power not configured. check_overpowering not available 2024-06-30 21:47:11.808 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - checking security delta_temp=4.6 delta_ext_temp=4.6 mod_cond=True temp_cond=False climate_cond=True switch_cond=False 2024-06-30 21:47:11.824 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling update_custom_attributes: {'is_on': True, 'hvac_action': None, 'hvac_mode': <HVACMode.HEAT: 'heat'>, 'preset_mode': 'frost', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Frost protection', 'frost_temp': 7.0, 'eco_temp': 16.0, 'boost_temp': 22.0, 'comfort_temp': 20.0, 'frost_away_temp': 7.0, 'eco_away_temp': 7.0, 'boost_away_temp': 7.0, 'comfort_away_temp': 7.0, 'power_temp': None, 'target_temperature_step': 0.1, 'ext_current_temperature': 16.3, 'ac_mode': True, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'frost', 'saved_target_temp': 7.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': 'binary_sensor.bedroom_presence_occupancy', 'motion_state': 'on', 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': 'binary_sensor.people_are_home', 'presence_state': 'on', 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': 'binary_sensor.bedroomwindow_access_control_window_door_is_open', 'window_delay_sec': 10, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_turn_off', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-06-30T21:42:33.039355+02:00', 'last_ext_temperature_datetime': '2024-06-30T21:42:33.039355+02:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-06-30T21:47:11.808938+02:00', 'timezone': 'Europe/Amsterdam', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 25.0, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.ac_bedroom', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'is_regulated': True, 'regulated_target_temperature': 5.5, 'auto_regulation_mode': 'auto_regulation_light', 'regulation_accumulated_error': -10, 'auto_fan_mode': 'auto_fan_high', 'current_auto_fan_mode': 'auto_fan_high', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False} 2024-06-30 21:47:11.824 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - Calling ThermostatClimate._send_regulated_temperature force=False 2024-06-30 21:47:11.824 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - period (4.6) min is < 5 min -> forget the regulation send 2024-06-30 21:49:14.388 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - external Temperature changed. Event.new_state is <state sensor.netatmo_tuin_monitor_temperature=16.4; state_class=measurement, unit_of_measurement=°C, attribution=Data provided by Netatmo, device_class=temperature, friendly_name=Netatmo Tuin Monitor Temperature @ 2024-06-30T21:49:14.388319+02:00> 2024-06-30 21:49:14.388 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Bedroom Thermostat - After setting _last_ext_temperature_measure 2024-06-30 21:49:14.388319+02:00 , state.last_changed.replace=2024-06-30 21:49:14.388319+02:00 2024-06-30 21:49:14.388 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Bedroom Thermostat - recalculate all

fierland commented 4 months ago

checking the code in base_thermostat.py it looks like the code on 740-771 is indented a level to deep. The check for open window and motion is only made if : if self._pmax_on:

mag2352 commented 4 months ago

I hope this can be resolved too. I also noticed that window detection does not always work, but I don't run into it often enough (happens irregularly) to justify taking a look at it myself.

jmcollin78 commented 4 months ago

Hellop, this should works because I read the window entity state at startup. I've experienced some race conditions which can lead to this behavior: VTherm is started before window sensor entity is up and then the state is not available at startup.

I implement the "HA started" event listener to avoid this but this is not always working and seems more dependant on your sensor behavior.

I will have a look at @fierland suggestion (line 740-771 too much indented).

jmcollin78 commented 4 months ago

checking the code in base_thermostat.py it looks like the code on 740-771 is indented a level to deep. The check for open window and motion is only made if : if self._pmax_on:

Oooh, I think you are right. I will fix that. Thank you for your report.

jmcollin78 commented 4 months ago

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

fierland commented 4 months ago

Looking at the code you only test at startup if energy monitoring is on. I changed the indentation of window and presence test in my local copy and it works perfect now.

Sincerely yours, Frank van Ierland 06-21391053


Van: Jean-Marc Collin @.> Verzonden: Tuesday, July 2, 2024 7:08:11 AM Aan: jmcollin78/versatile_thermostat @.> CC: Frank van Ierland @.>; Mention @.> Onderwerp: Re: [jmcollin78/versatile_thermostat] Open window on start not detected (Issue #479)

Closed #479https://github.com/jmcollin78/versatile_thermostat/issues/479 as completed.

— Reply to this email directly, view it on GitHubhttps://github.com/jmcollin78/versatile_thermostat/issues/479#event-13359689020, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AINVD64HWUCRAI6SAQELG4TZKIYTXAVCNFSM6AAAAABKEMHDSOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGM2TSNRYHEYDEMA. You are receiving this because you were mentioned.Message ID: @.***>

fierland commented 4 months ago

Oeps sorry did not read the whole tread :-( thanks for fixing !

Sincerely yours, Frank van Ierland 06-21391053


Van: Frank van Ierland @.> Verzonden: Tuesday, July 2, 2024 11:27:12 AM Aan: jmcollin78/versatile_thermostat @.>; jmcollin78/versatile_thermostat @.> CC: Mention @.> Onderwerp: Re: [jmcollin78/versatile_thermostat] Open window on start not detected (Issue #479)

Looking at the code you only test at startup if energy monitoring is on. I changed the indentation of window and presence test in my local copy and it works perfect now.

Sincerely yours, Frank van Ierland 06-21391053


Van: Jean-Marc Collin @.> Verzonden: Tuesday, July 2, 2024 7:08:11 AM Aan: jmcollin78/versatile_thermostat @.> CC: Frank van Ierland @.>; Mention @.> Onderwerp: Re: [jmcollin78/versatile_thermostat] Open window on start not detected (Issue #479)

Closed #479https://github.com/jmcollin78/versatile_thermostat/issues/479 as completed.

— Reply to this email directly, view it on GitHubhttps://github.com/jmcollin78/versatile_thermostat/issues/479#event-13359689020, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AINVD64HWUCRAI6SAQELG4TZKIYTXAVCNFSM6AAAAABKEMHDSOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGM2TSNRYHEYDEMA. You are receiving this because you were mentioned.Message ID: @.***>