jmcollin78 / versatile_thermostat

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

Vtherm Aqara Thermostat E1 as underlining: Can't use vtherm presets #534

Closed cpktmpkt closed 1 month ago

cpktmpkt commented 1 month ago

Version of the custom_component

Configuration

My VTherm attributes are the following:

hvac_modes:
  - "off"
  - heat
min_temp: 7
max_temp: 26
target_temp_step: 0.5
preset_modes:
  - none
  - frost
  - eco
  - comfort
  - boost
current_temperature: 20.9
temperature: 21
preset_mode: comfort
is_on: true
hvac_action: null
hvac_mode: heat
type: null
is_controlled_by_central_mode: true
last_central_mode: Heat only
frost_temp: 7
eco_temp: 18
boost_temp: 7
comfort_temp: 21
frost_away_temp: 0
eco_away_temp: 0
boost_away_temp: 0
comfort_away_temp: 0
power_temp: null
target_temperature_step: 0.5
ext_current_temperature: 14.4
ac_mode: false
current_power: null
current_power_max: null
saved_preset_mode: comfort
saved_target_temp: 19
saved_hvac_mode: null
motion_sensor_entity_id: null
motion_state: null
power_sensor_entity_id: null
max_power_sensor_entity_id: null
overpowering_state: null
presence_sensor_entity_id: null
presence_state: null
window_state: "off"
window_auto_state: "off"
window_bypass_state: false
window_sensor_entity_id: null
window_delay_sec: 1
window_auto_enabled: false
window_auto_open_threshold: null
window_auto_close_threshold: null
window_auto_max_duration: null
window_action: window_frost_temp
security_delay_min: 60
security_min_on_percent: 0.5
security_default_on_percent: 0.1
last_temperature_datetime: "2024-10-10T11:02:02.778191+02:00"
last_ext_temperature_datetime: "2024-10-10T11:02:02.778191+02:00"
security_state: false
minimal_activation_delay_sec: 300
device_power: 1
mean_cycle_power: null
total_energy: 0
last_update_datetime: "2024-10-10T11:07:15.214187+02:00"
timezone: Europe/Berlin
temperature_unit: °C
is_device_active: true
ema_temp: 20.94
is_used_by_central_boiler: false
is_over_climate: true
start_hvac_action_date: null
underlying_climate_0: climate.trv_test
underlying_climate_1: null
underlying_climate_2: null
underlying_climate_3: null
auto_fan_mode: auto_fan_none
current_auto_fan_mode: auto_fan_none
auto_activated_fan_mode: null
auto_deactivated_fan_mode: null
auto_regulation_use_device_temp: false
friendly_name: VTherm Büro
supported_features: 401

Describe the bug

I'm not able to change the temperature of my underlying TRV by using the presets.

my Setting: TRV: Aqara Thermostat E1 (SRTS-A01) integrated to HA via zigbee2mqtt.

I'm trying to:

changing the VTherm temperature manually and not using the preset works normally, without that issue.

And I expect: a change on the presets should change the TRV to the configured temperature

But I observe this ....

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

Debug log


2024-10-10 10:39:15.281 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - Set preset_mode: eco force=False
2024-10-10 10:39:15.281 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - find preset temp: eco
2024-10-10 10:39:15.282 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - Calling ThermostatClimate._send_regulated_temperature force=True
2024-10-10 10:39:15.282 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - regulation calculation will be done
2024-10-10 10:39:15.282 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - usage of regulation_step: 0.30 
2024-10-10 10:39:15.282 DEBUG (MainThread) [custom_components.versatile_thermostat.pi_algorithm] PITemperatureRegulator - Error: -3.10 accumulated_error: 0.00 offset: 0.00 offset_ext: 0.00 target_tem: 18.0 regulatedTemp: 18.0
2024-10-10 10:39:15.282 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - Regulated temp have changed to 18.0. Resend it to underlyings
2024-10-10 10:39:15.282 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - The device offset temp for regulation is 0.00 - internal temp is 0.00. New target is 18.00
2024-10-10 10:39:15.283 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - recalculate all
2024-10-10 10:39:15.284 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - Calling update_custom_attributes: {'is_on': True, 'hvac_action': None, 'hvac_mode': 'heat', 'preset_mode': 'eco', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Heat only', 'frost_temp': 7.0, 'eco_temp': 18.0, 'boost_temp': 7.0, 'comfort_temp': 21.0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.5, 'ext_current_temperature': 14.4, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'eco', 'saved_target_temp': 18.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': None, 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': None, 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': None, 'window_delay_sec': 1, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_frost_temp', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-10-10T10:39:15.283216+02:00', 'last_ext_temperature_datetime': '2024-10-10T10:39:15.283216+02:00', 'security_state': False, 'minimal_activation_delay_sec': 300, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-10-10T10:39:15.283489+02:00', 'timezone': 'Europe/Berlin', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 20.97, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.trv_test', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'auto_fan_mode': 'auto_fan_none', 'current_auto_fan_mode': 'auto_fan_none', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False}
2024-10-10 10:39:15.284 INFO (MainThread) [custom_components.versatile_thermostat.const] VersatileThermostat-VTherm Büro - Sending event EventType.PRESET_EVENT with data: {'preset': 'eco'}
2024-10-10 10:39:15.284 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=eco
2024-10-10 10:39:15.284 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - Window auto is on, check the alert. last slope is 1.320
2024-10-10 10:39:15.284 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - Window auto event is ignored because bypass is ON or window auto detection is disabled
2024-10-10 10:39:15.285 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - power not configured. check_overpowering not available
2024-10-10 10:39:15.285 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - checking security delta_temp=0.0 delta_ext_temp=0.0 mod_cond=True temp_cond=False climate_cond=True switch_cond=False
2024-10-10 10:39:15.285 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - Calling update_custom_attributes: {'is_on': True, 'hvac_action': None, 'hvac_mode': 'heat', 'preset_mode': 'eco', 'type': None, 'is_controlled_by_central_mode': True, 'last_central_mode': 'Heat only', 'frost_temp': 7.0, 'eco_temp': 18.0, 'boost_temp': 7.0, 'comfort_temp': 21.0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.5, 'ext_current_temperature': 14.4, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'eco', 'saved_target_temp': 18.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': None, 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': None, 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': None, 'window_delay_sec': 1, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_frost_temp', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-10-10T10:39:15.283216+02:00', 'last_ext_temperature_datetime': '2024-10-10T10:39:15.283216+02:00', 'security_state': False, 'minimal_activation_delay_sec': 300, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-10-10T10:39:15.285276+02:00', 'timezone': 'Europe/Berlin', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 20.97, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.trv_test', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'auto_fan_mode': 'auto_fan_none', 'current_auto_fan_mode': 'auto_fan_none', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False}
2024-10-10 10:39:15.285 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - Calling ThermostatClimate._send_regulated_temperature force=False
2024-10-10 10:39:15.286 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - regulation calculation will be done
2024-10-10 10:39:15.286 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - usage of regulation_step: 0.30 
2024-10-10 10:39:15.286 DEBUG (MainThread) [custom_components.versatile_thermostat.pi_algorithm] PITemperatureRegulator - Error: -3.10 accumulated_error: 0.00 offset: 0.00 offset_ext: 0.00 target_tem: 18.0 regulatedTemp: 18.0
2024-10-10 10:39:15.286 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - dtemp (0.0) is < 0.3 -> forget the regulation send
2024-10-10 10:39:15.286 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] VTherm Büro_last_temp_datetime - climate state change
2024-10-10 10:39:15.287 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] VTherm Büro_last_ext_temp_datetime - climate state change
2024-10-10 10:39:15.287 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] VTherm Büro_temperature_slope - climate state change
2024-10-10 10:39:15.287 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] VTherm Büro_ema_temperature - climate state change
2024-10-10 10:39:15.287 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] VTherm Büro_energy - climate state change
2024-10-10 10:39:15.287 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] VTherm Büro_regulated_temperature - climate state change
2024-10-10 10:39:15.287 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] VTherm Büro_security_state - climate state change
2024-10-10 10:39:15.288 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] VTherm Büro_window_bypass_state - climate state change
2024-10-10 10:39:15.288 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] VTherm Büro_last_temp_datetime - climate state change
2024-10-10 10:39:15.288 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] VTherm Büro_last_ext_temp_datetime - climate state change
2024-10-10 10:39:15.288 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] VTherm Büro_temperature_slope - climate state change
2024-10-10 10:39:15.288 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] VTherm Büro_ema_temperature - climate state change
2024-10-10 10:39:15.288 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] VTherm Büro_energy - climate state change
2024-10-10 10:39:15.288 DEBUG (MainThread) [custom_components.versatile_thermostat.sensor] VTherm Büro_regulated_temperature - climate state change
2024-10-10 10:39:15.288 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] VTherm Büro_security_state - climate state change
2024-10-10 10:39:15.288 DEBUG (MainThread) [custom_components.versatile_thermostat.binary_sensor] VTherm Büro_window_bypass_state - climate state change
2024-10-10 10:39:16.142 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'system_mode' when rendering '{{ value_json.system_mode }}'
2024-10-10 10:39:16.143 WARNING (MainThread) [homeassistant.components.mqtt.climate] Invalid modes mode: 
2024-10-10 10:39:16.147 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - _async_climate_changed new_state is <state climate.trv_test=heat; hvac_modes=['off', 'heat'], min_temp=5.0, max_temp=30.0, target_temp_step=0.5, preset_modes=['none', 'manual', 'away', 'auto'], current_temperature=20.8, temperature=21.0, preset_mode=manual, away_preset_temperature=None, battery=100, calibrate=None, calibrated=None, child_lock=None, device_temperature=24, external_temperature_input=None, internal_heating_setpoint=21, last_seen=2024-10-10T10:39:16+02:00, linkquality=32, local_temperature=20.8, occupied_heating_setpoint=21, power_outage_count=0, preset=manual, schedule=None, schedule_settings=None, sensor=None, setup=False, update=installed_version=-1, latest_version=-1, state=None, update_available=None, valve_alarm=False, valve_detection=None, voltage=None, window_detection=None, window_open=None, friendly_name=TRV Test, supported_features=401 @ 2024-10-10T10:13:16.107261+02:00>
2024-10-10 10:39:16.147 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - Underlying climate climate.trv_test changed. Event.new_hvac_mode is heat, current_hvac_mode=heat, new_hvac_action=None, old_hvac_action=None
2024-10-10 10:39:16.147 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - last_change_time=2024-10-10 10:37:09.130753+02:00 old_state_date_changed=2024-10-10 08:13:16.107261+00:00 old_state_date_updated=2024-10-10 08:39:11.928700+00:00 new_state_date_changed=2024-10-10 08:13:16.107261+00:00 new_state_date_updated=2024-10-10 08:39:16.144563+00:00
2024-10-10 10:39:16.147 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] Do temperature check. temperature is 18.0, new_state.attributes is {'hvac_modes': ['off', 'heat'], 'min_temp': 5.0, 'max_temp': 30.0, 'target_temp_step': 0.5, 'preset_modes': ['none', 'manual', 'away', 'auto'], 'current_temperature': 20.8, 'temperature': 21.0, 'preset_mode': 'manual', 'away_preset_temperature': None, 'battery': 100, 'calibrate': None, 'calibrated': None, 'child_lock': None, 'device_temperature': 24, 'external_temperature_input': None, 'internal_heating_setpoint': 21, 'last_seen': '2024-10-10T10:39:16+02:00', 'linkquality': 32, 'local_temperature': 20.8, 'occupied_heating_setpoint': 21, 'power_outage_count': 0, 'preset': 'manual', 'schedule': None, 'schedule_settings': None, 'sensor': None, 'setup': False, 'update': {'installed_version': -1, 'latest_version': -1, 'state': None}, 'update_available': None, 'valve_alarm': False, 'valve_detection': None, 'voltage': None, 'window_detection': None, 'window_open': None, 'friendly_name': 'TRV Test', 'supported_features': <ClimateEntityFeature.TARGET_TEMPERATURE|PRESET_MODE|TURN_OFF|TURN_ON: 401>}
2024-10-10 10:39:16.147 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - Target :515:
2024-10-10 10:39:16.148 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - regulation calculation will be done
2024-10-10 10:39:16.148 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - usage of regulation_step: 0.30 
2024-10-10 10:39:16.148 DEBUG (MainThread) [custom_components.versatile_thermostat.pi_algorithm] PITemperatureRegulator - Error: -0.10 accumulated_error: 0.00 offset: 0.00 offset_ext: 0.00 target_tem: 21.0 regulatedTemp: 21.0
2024-10-10 10:39:16.148 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - Regulated temp have changed to 21.0. Resend it to underlyings
2024-10-10 10:39:16.148 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - The device offset temp for regulation is 0.00 - internal temp is 0.00. New target is 21.00
2024-10-10 10:39:16.150 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - recalculate all
2024-10-10 10:39:16.151 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - 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': 'Heat only', 'frost_temp': 7.0, 'eco_temp': 18.0, 'boost_temp': 7.0, 'comfort_temp': 21.0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.5, 'ext_current_temperature': 14.4, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'eco', 'saved_target_temp': 18.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': None, 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': None, 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': None, 'window_delay_sec': 1, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_frost_temp', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-10-10T10:39:15.283216+02:00', 'last_ext_temperature_datetime': '2024-10-10T10:39:15.283216+02:00', 'security_state': False, 'minimal_activation_delay_sec': 300, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-10-10T10:39:16.150835+02:00', 'timezone': 'Europe/Berlin', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 20.97, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.trv_test', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'auto_fan_mode': 'auto_fan_none', 'current_auto_fan_mode': 'auto_fan_none', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False}
2024-10-10 10:39:16.151 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - last_change_time is now 2024-10-10 10:39:16.151876+02:00
2024-10-10 10:39:16.152 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=none
2024-10-10 10:39:16.152 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - Window auto is on, check the alert. last slope is 1.320
2024-10-10 10:39:16.152 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - Window auto event is ignored because bypass is ON or window auto detection is disabled
2024-10-10 10:39:16.152 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - power not configured. check_overpowering not available
2024-10-10 10:39:16.152 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - checking security delta_temp=0.0 delta_ext_temp=0.0 mod_cond=True temp_cond=False climate_cond=True switch_cond=False
2024-10-10 10:39:16.153 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - 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': 'Heat only', 'frost_temp': 7.0, 'eco_temp': 18.0, 'boost_temp': 7.0, 'comfort_temp': 21.0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.5, 'ext_current_temperature': 14.4, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'eco', 'saved_target_temp': 18.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': None, 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': None, 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': None, 'window_delay_sec': 1, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_frost_temp', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-10-10T10:39:15.283216+02:00', 'last_ext_temperature_datetime': '2024-10-10T10:39:15.283216+02:00', 'security_state': False, 'minimal_activation_delay_sec': 300, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-10-10T10:39:16.152569+02:00', 'timezone': 'Europe/Berlin', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 20.97, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.trv_test', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'auto_fan_mode': 'auto_fan_none', 'current_auto_fan_mode': 'auto_fan_none', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False}
2024-10-10 10:39:16.153 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - Calling ThermostatClimate._send_regulated_temperature force=False
2024-10-10 10:39:16.153 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - regulation calculation will be done
2024-10-10 10:39:16.153 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - usage of regulation_step: 0.30 
2024-10-10 10:39:16.153 DEBUG (MainThread) [custom_components.versatile_thermostat.pi_algorithm] PITemperatureRegulator - Error: -0.10 accumulated_error: 0.00 offset: 0.00 offset_ext: 0.00 target_tem: 21.0 regulatedTemp: 21.0
2024-10-10 10:39:16.153 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - dtemp (0.0) is < 0.3 -> forget the regulation send
2024-10-10 10:39:16.154 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - 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': 'Heat only', 'frost_temp': 7.0, 'eco_temp': 18.0, 'boost_temp': 7.0, 'comfort_temp': 21.0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.5, 'ext_current_temperature': 14.4, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'eco', 'saved_target_temp': 18.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': None, 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': None, 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': None, 'window_delay_sec': 1, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_frost_temp', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-10-10T10:39:15.283216+02:00', 'last_ext_temperature_datetime': '2024-10-10T10:39:15.283216+02:00', 'security_state': False, 'minimal_activation_delay_sec': 300, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-10-10T10:39:16.153948+02:00', 'timezone': 'Europe/Berlin', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 20.97, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.trv_test', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'auto_fan_mode': 'auto_fan_none', 'current_auto_fan_mode': 'auto_fan_none', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False}
2024-10-10 10:39:16.154 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=none
2024-10-10 10:39:16.154 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - Window auto is on, check the alert. last slope is 1.320
2024-10-10 10:39:16.154 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - Window auto event is ignored because bypass is ON or window auto detection is disabled
2024-10-10 10:39:16.155 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - power not configured. check_overpowering not available
2024-10-10 10:39:16.155 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-VTherm Büro - checking security delta_temp=0.0 delta_ext_temp=0.0 mod_cond=True temp_cond=False climate_cond=True switch_cond=False
2024-10-10 10:39:16.160 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - 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': 'Heat only', 'frost_temp': 7.0, 'eco_temp': 18.0, 'boost_temp': 7.0, 'comfort_temp': 21.0, 'frost_away_temp': 0, 'eco_away_temp': 0, 'boost_away_temp': 0, 'comfort_away_temp': 0, 'power_temp': None, 'target_temperature_step': 0.5, 'ext_current_temperature': 14.4, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'eco', 'saved_target_temp': 18.0, 'saved_hvac_mode': None, 'motion_sensor_entity_id': None, 'motion_state': None, 'power_sensor_entity_id': None, 'max_power_sensor_entity_id': None, 'overpowering_state': None, 'presence_sensor_entity_id': None, 'presence_state': None, 'window_state': 'off', 'window_auto_state': 'off', 'window_bypass_state': False, 'window_sensor_entity_id': None, 'window_delay_sec': 1, 'window_auto_enabled': False, 'window_auto_open_threshold': None, 'window_auto_close_threshold': None, 'window_auto_max_duration': None, 'window_action': 'window_frost_temp', 'security_delay_min': 60, 'security_min_on_percent': 0.5, 'security_default_on_percent': 0.1, 'last_temperature_datetime': '2024-10-10T10:39:15.283216+02:00', 'last_ext_temperature_datetime': '2024-10-10T10:39:15.283216+02:00', 'security_state': False, 'minimal_activation_delay_sec': 300, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 0, 'last_update_datetime': '2024-10-10T10:39:16.160054+02:00', 'timezone': 'Europe/Berlin', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'ema_temp': 20.97, 'is_used_by_central_boiler': False, 'is_over_climate': True, 'start_hvac_action_date': None, 'underlying_climate_0': 'climate.trv_test', 'underlying_climate_1': None, 'underlying_climate_2': None, 'underlying_climate_3': None, 'auto_fan_mode': 'auto_fan_none', 'current_auto_fan_mode': 'auto_fan_none', 'auto_activated_fan_mode': None, 'auto_deactivated_fan_mode': None, 'auto_regulation_use_device_temp': False}
2024-10-10 10:39:16.161 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - Calling ThermostatClimate._send_regulated_temperature force=False
2024-10-10 10:39:16.161 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - regulation calculation will be done
2024-10-10 10:39:16.161 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-VTherm Büro - usage of regulation_step: 0.30 
2024-10-10 10:39:16.161 DEBUG (MainThread) [custom_components.versatile_thermostat.pi_algorithm] PITemperatureRegulator - Error: -0.10 accumulated_error: 0.00 offset: 0.00 offset_ext: 0.00 target_tem: 21.0 regulatedTemp: 21.0
jmcollin78 commented 1 month ago

Hello @cpktmpkt ,

Your problem is the following:

  1. when you change the target temp, VTherm tries to send the new calculated temp,
  2. this new temperature is not send to the underlying climate because you have a threshold configured to 0.3 (usage of regulation_step: 0.30) and the delta temp is < 0.3 dtemp (0.0) is < 0.3 -> forget the regulation send,
  3. so the underlying have not been change,
  4. then the underlying change itself: Underlying climate climate.trv_test changed.,
  5. because VTherm is following the changes coming from the underlying, it sets itself to the value of the underlying (which is the old value)

So what you can do, is to avoid using the regulation_step or set it to a lower value. There is no so much I can do to avoid this case.

cpktmpkt commented 1 month ago

Hello @jmcollin78,

thank you for you reply. i changed the regulation_step: 0 so the target temperature will sent.

But I still have the problem, that i have to set the preset twice before it will change the underlying TRV- Do you have any ideas why the TRV change itself? Or do you have an advice what I can try from Vtherm side to avoid that?

Because its just in case i youse tre presets by changing the temperature manually for about 0,5°C the change on Vtherm will immanently take place on the trv

Is there a general incompatibility of VTherm and Aqara E1 TRV via z2m?

Best regards

CpktMpkt

jmcollin78 commented 1 month ago

Is there a general incompatibility of VTherm and Aqara E1 TRV via z2m?

This is difficult to say but it seems to be difficult to deal with. Did you try the 6.3.4 release which have change some behavior around your particular point ?

cpktmpkt commented 1 month ago

Thanks for you reply. I will do some more checks and will give you more feedback but I'm not at home the next days. So it will take some time.

Is my problem related to #519?

cpktmpkt commented 1 month ago

i tried VTherm Version 6.4.0 but it shows the same behaviour.

jmcollin78 commented 1 month ago

i changed the regulation_step: 0 so the target temperature will sent.

Maybe you change the wrong parameter, there is no regulation_step. The correct one is auto_regulation_dtemp which is configurable here: Capture d’écran 2024-10-16 à 07 48 43

But warning, if you change this, you have the risk to drawn your battery because each temperature change will be send. Give it a try to see if your problem is there.

cpktmpkt commented 1 month ago

Thank you.

I’ve tried that. But unfortunately the problem with the presets are still present. With this situation.

Could you please take a look a that? Presets are an important feature of your integration.

Preset will only be used by the interlaying TRVs if I sent it twice within a short time.

manual temperature change will sent immediately with the same settings and hardware….

Christian

jmcollin78 commented 4 weeks ago

It seems to be a specific behavior of your TRV and then it is very difficult for me to debug something I cannot reproduce myself.

VTherm over_climate have this limitation and are bound to the underlying behavior which can be specific from vendor to vendor.

The best advice I can give you, is to install TRV in which valve openness can be controlled directly by VTherm. Shelly TRV and Sonoff TRV (please check) does this.