jmcollin78 / versatile_thermostat

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

AC unit swithing off for no appaernet reason #329

Closed dizzydnallov closed 10 months ago

dizzydnallov commented 10 months ago

This issue started to occur while troubleshooting the other issue I had (#299), which was resolved, but this new issue persists.

VTherm is switching off my AC at random times for no apparent reason; after my previous troubleshooting exchanges, I'm fairly sure this is VTherm calling this action, NOT any other service, such as the AC itself.

Looking at the logs (see below), it occurs after an "EventType.WINDOW_AUTO_EVENT" event; however, as you can see in my VTherm attributes, my window_state is set to off, and I have no window sensors.

-->

Version of the custom_component

5.2.0

-->

My VTherm attributes are the following:

hvac_modes: off, auto, cool, dry, heat, fan_only
min_temp: 10
max_temp: 32
fan_modes: auto, 1 Lowest, 2 Low, 3 High, 4 Highest
preset_modes: none, frost, eco, comfort, boost
swing_modes: Up/Down Auto, Highest, Middle, Normal, Lowest, 3D Auto
current_temperature: 17.3
temperature: 16
fan_mode: auto
preset_mode: none
swing_mode: Up/Down Auto
is_on: true
hvac_action: null
hvac_mode: heat
type: null
is_controlled_by_central_mode: false
last_central_mode: null
frost_temp: 12
eco_temp: 18
boost_temp: 25
comfort_temp: 21.5
frost_away_temp: 17
eco_away_temp: 17
boost_away_temp: 17
comfort_away_temp: 17
power_temp: 13
target_temperature_step: null
ext_current_temperature: 2
ac_mode: false
current_power: null
current_power_max: null
saved_preset_mode: none
saved_target_temp: 16
saved_hvac_mode: heat
window_state: off
motion_state: null
overpowering_state: null
presence_state: null
window_auto_state: off
window_bypass_state: false
security_delay_min: 60
security_min_on_percent: 0.5
security_default_on_percent: 0.1
last_temperature_datetime: 2024-01-08T21:48:51.016155+00:00
last_ext_temperature_datetime: 2024-01-08T21:48:05.683784+00:00
security_state: false
minimal_activation_delay_sec: 10
device_power: 1
mean_cycle_power: null
total_energy: 0
last_update_datetime: 2024-01-08T21:48:51.023959+00:00
timezone: Europe/London
window_sensor_entity_id: null
window_delay_sec: 30
window_auto_enabled: true
window_auto_open_threshold: 3
window_auto_close_threshold: 0
window_auto_max_duration: 30
motion_sensor_entity_id: null
presence_sensor_entity_id: null
power_sensor_entity_id: null
max_power_sensor_entity_id: null
temperature_unit: °C
is_device_active: true
ema_temp: 16.81
is_over_climate: true
start_hvac_action_date: null
underlying_climate_0: climate.dads_bedroom
underlying_climate_1: null
underlying_climate_2: null
underlying_climate_3: null
is_regulated: true
regulated_target_temperature: 16.5
auto_regulation_mode: auto_regulation_light
regulation_accumulated_error: -2.5999999999999996
auto_fan_mode: auto_fan_none
current_auto_fan_mode: auto_fan_none
auto_activated_fan_mode: null
auto_deactivated_fan_mode: null
friendly_name: Master Bedroom AC
supported_features: 57

2024-01-08 09:21:38.915 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Versatile Master Bedroom AC - Calling ThermostatClimate._send_regulated_temperature force=False
2024-01-08 09:21:38.916 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Versatile Master Bedroom AC - period (2.6) min is < 5 min -> forget the regulation send
2024-01-08 09:22:34.604 WARNING (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Versatile Master Bedroom AC - Start auto detection of open window slope=-3.140
2024-01-08 09:22:34.605 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Versatile Master Bedroom AC - Sending event EventType.WINDOW_AUTO_EVENT with data: {'type': 'start', 'cause': 'slope alert', 'curve_slope': -3.14}
2024-01-08 09:22:34.606 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Versatile Master Bedroom AC - Set hvac mode: off
2024-01-08 09:22:34.611 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Versatile Master Bedroom AC - Sending event EventType.HVAC_MODE_EVENT with data: {'hvac_mode': <HVACMode.OFF: 'off'>}
2024-01-08 09:22:36.461 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Versatile Master Bedroom AC - Underlying climate changed. Event.new_hvac_mode is off, current_hvac_mode=off, new_hvac_action=None, old_hvac_action=None
2024-01-08 09:22:36.461 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Versatile Master Bedroom AC - underlying event is received less than 10 sec after command. Forget it to avoid loop
jmcollin78 commented 10 months ago

There is a bug already referenced : #324 .

Waiting for the fix you can set the threshold to 10 (instead of 3) and that will shutdown the algo.