Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The update of the setpoint in TRV doesn't change the VTherm target temperature when lastSeen is activated #690

Closed
msd3287 opened this issue Dec 8, 2024 · 18 comments
Labels
bug Something isn't working developed When development is done and tested P1 Priority 1

Comments

@msd3287
Copy link

msd3287 commented Dec 8, 2024

Lorsque je modifie la consigne de température sur la vanne directement (Sonoff TRVZB), la nouvelle consigne n'est pas répercutée sur le Vtherm associé à cette vanne alors que le paramètre " Follow underlying temp change" est bien activé (voir print screen ci-dessous).
Dans le print screen, la température cible de la vanne est positionnée à 23° mais celle du Vtherm reste à 19° :
image

J'ai ce problème sur le HA chez ma fille ainsi que chez moi (instances HA différentes) alors que j'ai bien fait la mise à jour de VT des 2 côtés aujourd'hui.
J'ai aussi testé en désactivant la "compensation de température interne du sous-jacent" et l'auto-régulation mais sans plus de succès.

Est-ce que j'ai omis quelque chose ?
Merci


Version of the custom_component

6.8.0

Configuration

hvac_modes:

  • "off"
  • auto
  • heat
    min_temp: 0
    max_temp: 25
    target_temp_step: 0.5
    preset_modes:
  • none
  • frost
  • eco
  • comfort
  • boost
    current_temperature: 19.8
    temperature: 19
    hvac_action: heating
    preset_mode: none
    is_on: true
    hvac_mode: heat
    type: null
    is_controlled_by_central_mode: false
    last_central_mode: null
    frost_temp: 14
    eco_temp: 17.5
    boost_temp: 22
    comfort_temp: 20.5
    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: 6.8
    ac_mode: false
    current_power: null
    current_power_max: null
    saved_preset_mode: none
    saved_target_temp: 19.5
    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: null
    window_auto_enabled: false
    window_auto_open_threshold: null
    window_auto_close_threshold: null
    window_auto_max_duration: null
    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-12-08T10:01:40.400663+01:00"
    last_ext_temperature_datetime: "2024-12-08T09:40:31.158374+01:00"
    security_state: false
    minimal_activation_delay_sec: 10
    device_power: 1
    mean_cycle_power: null
    total_energy: 78.78
    last_update_datetime: "2024-12-08T10:01:40.497733+01:00"
    timezone: Europe/Brussels
    temperature_unit: °C
    is_device_active: true
    nb_device_actives: 1
    ema_temp: 19.3
    is_used_by_central_boiler: false
    temperature_slope: 4.71
    hvac_off_reason: null
    max_on_percent: null
    have_valve_regulation: false
    is_over_climate: true
    start_hvac_action_date: "2024-12-08T10:01:40.380315+01:00"
    underlying_entities:
  • climate.radiateur_cuisine
    is_regulated: true
    regulated_target_temperature: 19.5
    auto_regulation_mode: auto_regulation_light
    regulation_accumulated_error: 2.049999999999999
    auto_fan_mode: auto_fan_high
    current_auto_fan_mode: auto_fan_high
    auto_activated_fan_mode: null
    auto_deactivated_fan_mode: null
    auto_regulation_use_device_temp: true
    auto_start_stop_enable: false
    auto_start_stop_level: auto_start_stop_none
    auto_start_stop_dtmin: null
    auto_start_stop_accumulated_error: 0
    auto_start_stop_accumulated_error_threshold: null
    follow_underlying_temp_change: true
    friendly_name: Thermostat cuisine (V)
    supported_features: 401
@jmcollin78
Copy link
Owner

Hello @msd3287 ,

(In English).

I try to reproduce with 6.8.0 and (of course) it works on my test environment (I don't have any Sonoff TRVZB at home).

The proof:

  1. before state

Capture d’écran 2024-12-08 à 12 50 28

I change the temperature on the the underlying Sonoff TRVZB1 directly:

Capture d’écran 2024-12-08 à 12 51 16

And the target temperature have correctly been changed on VTherm and the preset have been set to None (manual mode).

So there is something on your environment which prevent this to work.

I give a look at your configuration and it seems correct.

Do you have seen the change on the climate.radiateur_cuisine ?

@jmcollin78 jmcollin78 added question Further information is requested not reproduced Not reproduced labels Dec 8, 2024
@msd3287
Copy link
Author

msd3287 commented Dec 8, 2024

Yes:
image

@jmcollin78
Copy link
Owner

Is there something in the logs around this time ?

@msd3287
Copy link
Author

msd3287 commented Dec 8, 2024

En fr car plus facile pour moi ;)
j'ai activé le log dans l'interface de Versatile.
A 17h27 j'ai adapté la consigne de température sur l'entité de la vanne (climate.radiateur_cuisine)
Voici ce qu'il y a dans le home_assistant.log à 17h27, et il semble bien que VT a bien été notifié du changement de consigne à 17:27:09.574 mais, si je ne me trompe pas, que vu une tempo, il ne réagit pas pour éviter une boucle :

2024-12-08 17:27:09.463 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - Last seen temperature changed. Event.new_state is <state sensor.radiateur_cuisine_last_seen=2024-12-08T16:27:09+00:00; device_class=timestamp, icon=mdi:clock, friendly_name=Radiateur cuisine Last seen @ 2024-12-08T17:27:09.462838+01:00>
2024-12-08 17:27:09.464 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - last_change_time is now 2024-12-08 17:27:09.464893+01:00
2024-12-08 17:27:09.465 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - new last_temperature_measure is now: 2024-12-08 17:27:09.462838+01:00
2024-12-08 17:27:09.573 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - _async_climate_changed new_state is <state climate.radiateur_cuisine=heat; hvac_modes=['off', 'auto', 'heat'], min_temp=4.0, max_temp=35.0, target_temp_step=0.5, current_temperature=18.3, temperature=24.5, hvac_action=heating, friendly_name=Radiateur cuisine, supported_features=385 @ 2024-12-08T08:53:41.133763+01:00>
2024-12-08 17:27:09.574 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - Underlying climate climate.radiateur_cuisine have changed. new_hvac_mode is heat (vs heat), new_hvac_action=heating (vs heating), new_target_temp=24.5 (vs 19.0), new_fan_mode=None (vs None)
2024-12-08 17:27:09.574 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - last_change_time=2024-12-08 17:27:09.464893+01:00 old_state_date_changed=2024-12-08 07:53:41.133763+00:00 old_state_date_updated=2024-12-08 16:20:03.299021+00:00 new_state_date_changed=2024-12-08 07:53:41.133763+00:00 new_state_date_updated=2024-12-08 16:27:09.524105+00:00
2024-12-08 17:27:09.575 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - underlying event is received less than 10 sec after command. Forget it to avoid loop
2024-12-08 17:27:10.409 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - Last seen temperature changed. Event.new_state is <state sensor.radiateur_cuisine_last_seen=2024-12-08T16:27:10+00:00; device_class=timestamp, icon=mdi:clock, friendly_name=Radiateur cuisine Last seen @ 2024-12-08T17:27:10.405563+01:00>
2024-12-08 17:27:10.410 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - last_change_time is now 2024-12-08 17:27:10.410055+01:00
2024-12-08 17:27:10.410 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - new last_temperature_measure is now: 2024-12-08 17:27:10.405563+01:00
2024-12-08 17:27:12.613 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - Last seen temperature changed. Event.new_state is <state sensor.radiateur_cuisine_last_seen=2024-12-08T16:27:12+00:00; device_class=timestamp, icon=mdi:clock, friendly_name=Radiateur cuisine Last seen @ 2024-12-08T17:27:12.611540+01:00>
2024-12-08 17:27:12.614 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - last_change_time is now 2024-12-08 17:27:12.614157+01:00
2024-12-08 17:27:12.614 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - new last_temperature_measure is now: 2024-12-08 17:27:12.611540+01:00
2024-12-08 17:27:12.637 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - _async_climate_changed new_state is <state climate.radiateur_cuisine=heat; hvac_modes=['off', 'auto', 'heat'], min_temp=4.0, max_temp=35.0, target_temp_step=0.5, current_temperature=18.5, temperature=24.5, hvac_action=heating, friendly_name=Radiateur cuisine, supported_features=385 @ 2024-12-08T08:53:41.133763+01:00>
2024-12-08 17:27:12.640 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - Underlying climate climate.radiateur_cuisine have changed. new_hvac_mode is heat (vs heat), new_hvac_action=heating (vs heating), new_target_temp=24.5 (vs 19.0), new_fan_mode=None (vs None)
2024-12-08 17:27:12.640 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - last_change_time=2024-12-08 17:27:12.614157+01:00 old_state_date_changed=2024-12-08 07:53:41.133763+00:00 old_state_date_updated=2024-12-08 16:27:09.524105+00:00 new_state_date_changed=2024-12-08 07:53:41.133763+00:00 new_state_date_updated=2024-12-08 16:27:12.612596+00:00
2024-12-08 17:27:12.640 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - underlying event is received less than 10 sec after command. Forget it to avoid loop
2024-12-08 17:27:12.690 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - Temperature changed. Event.new_state is <state sensor.temperature_cuisine_vanne=18.5; state_class=measurement, unit_of_measurement=°C, device_class=temperature, friendly_name=Température cuisine (vanne) @ 2024-12-08T17:27:12.637429+01:00>
2024-12-08 17:27:12.691 DEBUG (MainThread) [custom_components.versatile_thermostat.ema] EMA-Thermostat cuisine (V) - timestamp=2024-12-08 17:27:12.637429+01:00 alpha=0.50 measurement=18.50 current_ema=18.44 new_ema=18.44
2024-12-08 17:27:12.691 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - After setting _last_temperature_measure 2024-12-08 17:27:12.637429+01:00 , state.last_changed.replace=2024-12-08 17:27:12.637429+01:00
2024-12-08 17:27:12.691 DEBUG (MainThread) [custom_components.versatile_thermostat.open_window_algorithm] We are already initialized slope=-0.45 last_temp=18.38
2024-12-08 17:27:12.691 DEBUG (MainThread) [custom_components.versatile_thermostat.open_window_algorithm] delta_t=7.155 delta_temp=0.060 new_slope=0.503 last_slope=-0.45 slope=0.310 nb_point=4
2024-12-08 17:27:12.691 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - Window auto is on, check the alert. last slope is 0.310
2024-12-08 17:27:12.692 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - Window auto event is ignored because bypass is ON or window auto detection is disabled
2024-12-08 17:27:12.692 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - recalculate all
2024-12-08 17:27:12.693 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - update_custom_attributes saved energy is 79.31
2024-12-08 17:27:12.693 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - async_write_ha_state written state energy is 79.31
2024-12-08 17:27:12.745 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - Calling update_custom_attributes: {'is_on': True, 'hvac_action': <HVACAction.HEATING: 'heating'>, 'hvac_mode': 'heat', 'preset_mode': 'none', 'type': None, 'is_controlled_by_central_mode': False, 'last_central_mode': None, 'frost_temp': 14.0, 'eco_temp': 17.5, 'boost_temp': 22.0, 'comfort_temp': 20.5, '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': 7.0, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'none', 'saved_target_temp': 19.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': None, '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-12-08T17:27:12.637429+01:00', 'last_ext_temperature_datetime': '2024-12-08T16:48:10.636014+01:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 79.31, 'last_update_datetime': '2024-12-08T17:27:12.692800+01:00', 'timezone': 'Europe/Brussels', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'nb_device_actives': 1, 'ema_temp': 18.44, 'is_used_by_central_boiler': False, 'temperature_slope': 0.31, 'hvac_off_reason': None, 'max_on_percent': None, 'have_valve_regulation': False, 'is_over_climate': True, 'start_hvac_action_date': datetime.datetime(2024, 12, 8, 17, 11, 38, 745314, tzinfo=zoneinfo.ZoneInfo(key='Europe/Brussels')), 'underlying_entities': ['climate.radiateur_cuisine'], '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, 'auto_start_stop_enable': False, 'auto_start_stop_level': 'auto_start_stop_none', 'auto_start_stop_dtmin': None, 'auto_start_stop_accumulated_error': 0, 'auto_start_stop_accumulated_error_threshold': None, 'follow_underlying_temp_change': True}
2024-12-08 17:27:12.746 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - async_write_ha_state written state energy is 79.31
2024-12-08 17:27:12.749 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - Checking new cycle. hvac_mode=heat, security_state=False, preset_mode=none
2024-12-08 17:27:12.750 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - Window auto is on, check the alert. last slope is 0.310
2024-12-08 17:27:12.750 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - Window auto event is ignored because bypass is ON or window auto detection is disabled
2024-12-08 17:27:12.750 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - power not configured. check_overpowering not available
2024-12-08 17:27:12.751 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - checking security delta_temp=0.0 delta_ext_temp=39.0 mod_cond=True temp_cond=False climate_cond=True switch_cond=False
2024-12-08 17:27:12.752 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - update_custom_attributes saved energy is 79.31
2024-12-08 17:27:12.752 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - async_write_ha_state written state energy is 79.31
2024-12-08 17:27:12.803 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - Calling update_custom_attributes: {'is_on': True, 'hvac_action': <HVACAction.HEATING: 'heating'>, 'hvac_mode': 'heat', 'preset_mode': 'none', 'type': None, 'is_controlled_by_central_mode': False, 'last_central_mode': None, 'frost_temp': 14.0, 'eco_temp': 17.5, 'boost_temp': 22.0, 'comfort_temp': 20.5, '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': 7.0, 'ac_mode': False, 'current_power': None, 'current_power_max': None, 'saved_preset_mode': 'none', 'saved_target_temp': 19.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': None, '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-12-08T17:27:12.637429+01:00', 'last_ext_temperature_datetime': '2024-12-08T16:48:10.636014+01:00', 'security_state': False, 'minimal_activation_delay_sec': 10, 'device_power': 1.0, 'mean_cycle_power': None, 'total_energy': 79.31, 'last_update_datetime': '2024-12-08T17:27:12.751902+01:00', 'timezone': 'Europe/Brussels', 'temperature_unit': <UnitOfTemperature.CELSIUS: '°C'>, 'is_device_active': True, 'nb_device_actives': 1, 'ema_temp': 18.44, 'is_used_by_central_boiler': False, 'temperature_slope': 0.31, 'hvac_off_reason': None, 'max_on_percent': None, 'have_valve_regulation': False, 'is_over_climate': True, 'start_hvac_action_date': datetime.datetime(2024, 12, 8, 17, 11, 38, 745314, tzinfo=zoneinfo.ZoneInfo(key='Europe/Brussels')), 'underlying_entities': ['climate.radiateur_cuisine'], '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, 'auto_start_stop_enable': False, 'auto_start_stop_level': 'auto_start_stop_none', 'auto_start_stop_dtmin': None, 'auto_start_stop_accumulated_error': 0, 'auto_start_stop_accumulated_error_threshold': None, 'follow_underlying_temp_change': True}
2024-12-08 17:27:12.803 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - auto start/stop is disabled
2024-12-08 17:27:12.804 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - Calling ThermostatClimate._send_regulated_temperature force=False
2024-12-08 17:27:12.804 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - regulation calculation will be done
2024-12-08 17:27:12.804 DEBUG (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - usage regulation_step: 0.50
2024-12-08 17:27:12.805 DEBUG (MainThread) [custom_components.versatile_thermostat.pi_algorithm] PITemperatureRegulator - Error: 0.50 accumulated_error: 0.00 offset: 0.00 offset_ext: 0.00 target_tem: 19.0 regulatedTemp: 19.0
2024-12-08 17:27:12.807 INFO (MainThread) [custom_components.versatile_thermostat.thermostat_climate] VersatileThermostat-Thermostat cuisine (V) - dtemp (0.0) is < 0.5 -> forget the regulation send
2024-12-08 17:27:13.608 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - Last seen temperature changed. Event.new_state is <state sensor.radiateur_cuisine_last_seen=2024-12-08T16:27:13+00:00; device_class=timestamp, icon=mdi:clock, friendly_name=Radiateur cuisine Last seen @ 2024-12-08T17:27:13.603667+01:00>
2024-12-08 17:27:13.608 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - last_change_time is now 2024-12-08 17:27:13.608753+01:00
2024-12-08 17:27:13.609 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - new last_temperature_measure is now: 2024-12-08 17:27:13.603667+01:00
2024-12-08 17:27:14.607 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - Last seen temperature changed. Event.new_state is <state sensor.radiateur_cuisine_last_seen=2024-12-08T16:27:14+00:00; device_class=timestamp, icon=mdi:clock, friendly_name=Radiateur cuisine Last seen @ 2024-12-08T17:27:14.605559+01:00>
2024-12-08 17:27:14.607 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - last_change_time is now 2024-12-08 17:27:14.607698+01:00
2024-12-08 17:27:14.607 DEBUG (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat cuisine (V) - new last_temperature_measure is now: 2024-12-08 17:27:14.605559+01:00

@jmcollin78
Copy link
Owner

Hello,

Oui c'est ça.
Le changement est bien vu dans VTherm :
Underlying climate climate.radiateur_cuisine have changed. new_hvac_mode is heat (vs heat), new_hvac_action=heating (vs heating), new_target_temp=24.5 (vs 19.0), new_fan_mode=None (vs None)

mais ignoré car VTherm venait juste de lui envoyer une commande moins de 10 sec avant :
Underlying event is received less than 10 sec after command. Forget it to avoid loop

Je suppose que si tu tournes ton TRV alors que VTherm après plus de 10 sec sans commande du VTherm, ca fonctionne du coup.

Le suivi du sous-jacent est un vrai nid à ennuis et j'ai été obligé de mettre ce genre de contrôle sinon ca fait des boucles : le user change, ca fait changer VTherm, qui renvoie une consigne, qui fait rechanger le sous-jacent, ... ce qui peut totalement mettre HA par terre.

Le mieux c'est de ne pas avoir à faire ça. Chez moi, je ne touche plus jamais aux températures de consignes mais uniquement aux presets et je laisse faire le Scheduler et la détection des ouvertures / presence / mouvement. C'est le but de VTherm : ne plus avoir à s'en occuper jamais. Si tu as besoin d'un peu plus de chaud, passe en Boost. Le Scheduler remettra tout seul le bon programme. C'est comme ça que je fais.

Tu as un peu plus d'explications ici https://github.com/jmcollin78/versatile_thermostat/blob/main/documentation/fr/over-climate.md#suivre-les-changements-de-temp%C3%A9rature-du-sous-jacent

J'ai pas de solutions propres j'ai tellement galéré avec cette hiestoire que je ne vais pas y toucher.
Donc note que ca marche à 95% mais que des fois, il ne prendra pas ta consigne.

@jmcollin78 jmcollin78 added wontfix This will not be worked on and removed question Further information is requested not reproduced Not reproduced labels Dec 9, 2024
@msd3287
Copy link
Author

msd3287 commented Dec 10, 2024 via email

@jmcollin78
Copy link
Owner

Huuum, curieux. La seule chose qu'on voit juste avant le changement de température c'est la remontée d'un lastSeen (dans la même seconde). Y aurait-il un lien ?

Est-ce que tu peux, le temps du test, enlever le capteur lastSeen ? Je vais regarder si je vois un rapport de mon coté.

@jmcollin78
Copy link
Owner

Clairement je pense que c'est ça le soucis. Lors de la réception du lastSeen, je remets à zero le compteur qui compte les 10 sec. Donc comme le changement arrive dans la même seconde il se fait jeter.

Si tu sais modifier le code de l'intégration, je te propose de simplement mettre la ligne 1523 du fichier base_thermostat.py en commentaire. Comme ça:

            self._last_temperature_measure = self.get_last_updated_date_or_now(
                new_state
            )
            # self.reset_last_change_time()                <---- mettre un # devant cette ligne. Comme ça tu pourras me dire si ok
            _LOGGER.debug(

@jmcollin78 jmcollin78 added bug Something isn't working developed When development is done and tested P1 Priority 1 and removed wontfix This will not be worked on labels Dec 10, 2024
@jmcollin78 jmcollin78 reopened this Dec 11, 2024
@jmcollin78
Copy link
Owner

Hello suite à #696, j'ai trouvé une régression par rapport à la version précédente. Ca ressemble beaucoup à ton problème.

Je fais une release 6.8.2 j'aimerai bien que tu la testes et que tu me dises si elle résout ton soucis. Je pense que oui.

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

@msd3287
Copy link
Author

msd3287 commented Dec 11, 2024 via email

@TTLucian
Copy link

Hi. I had the same problem. Previous versions of vtherm were working ok. Seems the update to 6.8.2 fixed it but quick changes in TRV setpoint still don't sync with vtherm. I have to wait for about 10 seconds before changing the setpoint on the TRV again. If I change the setpoint on the TRV too quickly, vtherm setpoint doesn't change and the TRV setpoint remains set at latest value.

@jmcollin78
Copy link
Owner

  • Après désactivation du « Last seen » pour la Sonoff, cela a fonctionné : le chgt sur l’entité climate.radiateur_cuisine a maintenant bien été répercutée sur le Vtherm (test 12h04).

Ok y a certainement aussi un lien avec le LastSeen. Je vais regarder ça ce soir.

@AliveDevil

This comment was marked as off-topic.

@jmcollin78 jmcollin78 removed the developed When development is done and tested label Dec 21, 2024
@jmcollin78 jmcollin78 changed the title La modification de la consigne de température sur la vanne même ne modifuie pas la consigne de température sur le Vtherm The update of the setpoint in TRV doesn't change the VTherm target temperature when lastSeen is activated Dec 22, 2024
@jmcollin78

This comment was marked as off-topic.

@jmcollin78
Copy link
Owner

Good news, I have found the bug. It was correlated with the last seen feature. It will be in the next release (coming soon)

@jmcollin78 jmcollin78 added the developed When development is done and tested label Dec 22, 2024
@AliveDevil

This comment was marked as off-topic.

@jmcollin78

This comment was marked as off-topic.

jmcollin78 added a commit that referenced this issue Dec 22, 2024
…vated (#732)

* Issue #690 - VTherm don't follow underlying change with lastSeen activated

* Fix tests warnings

* Add a lastSeen test

---------

Co-authored-by: Jean-Marc Collin <jean-marc.collin-extern@renault.com>
@jmcollin78
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working developed When development is done and tested P1 Priority 1
Projects
None yet
Development

No branches or pull requests

4 participants