Hello @Jean-Marc_Collin
J’ai refait un test cette nuit et ce matin en mettant les logs info et debug approprie et en corrigeant ma config central . Je me suis appercu que dans mes premier test un de mes vtem n’avait pas la case « Autoriser le controle par une entity centrale » coché. A priori, ca n’ as pas d’incidence car la montée de la puissance cumule est toujours aussi rapide et entraine le delestage.
Exemple d’une situation avec seulement le radiateur 2000W recute.
2025-02-07 08:00:09.010 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] <Event state_changed[L]: entity_id=sensor.lixee_zlinky_tic_puissance, old_state=<state sensor.lixee_zlinky_tic_puissance=668; state_class=measurement, active_power_max=3131, measurement_type=, unit_of_measurement=W, device_class=power, friendly_name=Puissance @ 2025-02-07T07:56:04.703186+01:00>, new_state=<state sensor.lixee_zlinky_tic_puissance=1068; state_class=measurement, active_power_max=3131, measurement_type=, unit_of_measurement=W, device_class=power, friendly_name=Puissance @ 2025-02-07T08:00:09.003913+01:00>>
2025-02-07 08:00:09.038 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] New current power has been retrieved: 1068.000
2025-02-07 08:00:09.045 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] New current max power has been retrieved: 9000.000
2025-02-07 08:00:29.049 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] Do the shedding calculation
2025-02-07 08:00:29.050 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] -------- Start of calculate_shedding
2025-02-07 08:00:29.051 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] The available power is is > 0 (7932.0). Do a complete shedding/un-shedding calculation for list: [<entity climate.thermostat_chambre=heat>, <entity climate.thermostat_salon=heat>]
2025-02-07 08:00:29.052 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] vtherm Thermostat chambre power_consumption_max is 1000.0 (device_power=1000.0, overclimate=False)
2025-02-07 08:00:29.057 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] after vtherm Thermostat chambre total_power_added=0, available_power=7932.0
=> radiateur chambre n'est pas en chauffe, du coup sa puissance n'est pas ajoute
2025-02-07 08:00:29.058 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] vtherm Thermostat salon power_consumption_max is 2000.0 (device_power=2000.0, overclimate=False)
2025-02-07 08:00:29.059 INFO (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] vtherm Thermostat salon should not be in overpowering state (power_consumption_max=2000.00)
2025-02-07 08:00:29.059 WARNING (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - end of overpowering is detected. Heater preset will be restored to 'comfort'
2025-02-07 08:00:29.060 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat salon - Set preset_mode: comfort force=False
2025-02-07 08:00:29.070 INFO (MainThread) [custom_components.versatile_thermostat.const] VersatileThermostat-Thermostat salon - Sending event EventType.POWER_EVENT with data: {'type': 'end', 'current_power': 1068.0, 'device_power': 2000.0, 'current_max_power': 9000.0}
2025-02-07 08:00:29.075 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] after vtherm Thermostat salon total_power_added=2000.0, available_power=7932.0
Radiateur de 200W est en chauffe => sa puisse max est ajoute
2025-02-07 08:00:29.076 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] -------- End of calculate_shedding
2025-02-07 08:00:29.118 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - start heating for 3 min 23 sec
2025-02-07 08:00:29.118 DEBUG (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - overpowering check: power=1068.000, max_power=9000.000 heater power=2000.000
2025-02-07 08:00:29.119 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] CentralPowerManager - started_vtherm_total_power is now 0
=> la radiateur 200W est en start heating, on s'attend a ce que started_vtherm_total_power soit 2000W
2025-02-07 08:03:52.137 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - stop heating for 1 min 36 sec
=> la radiateur 2000W est en stop heating, on s'attend a ce que started_vtherm_total_power soit 0W
(le check n'est pas fait - feature request que tu m'a demande de creer)
2025-02-07 08:05:28.154 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - start heating for 3 min 23 sec
2025-02-07 08:05:28.155 DEBUG (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - overpowering check: power=1068.000, max_power=9000.000 heater power=2000.000
2025-02-07 08:05:28.156 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] CentralPowerManager - started_vtherm_total_power is now 2000.0
=> la radiateur 2000W est en start heating, started_vtherm_total_power est a 2000 W comme attendu
2025-02-07 08:08:51.178 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - stop heating for 1 min 36 sec
=> la radiateur 2000W est en stop heating, started_vtherm_total_power devrait etre a 0W
(le check n'est pas fait - feature request que tu m'a demande de creer)
2025-02-07 08:10:27.196 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - start heating for 3 min 23 sec
2025-02-07 08:10:27.197 DEBUG (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - overpowering check: power=1068.000, max_power=9000.000 heater power=2000.000
2025-02-07 08:10:27.198 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] CentralPowerManager - started_vtherm_total_power is now 4000.0
=> la radiateur 2000W est en start heating, started_vtherm_total_power devrait etre a 2000W , et non 4000 W comme indiqué
2025-02-07 08:13:50.223 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - stop heating for 1 min 37 sec
=> la radiateur 2000W est en stop heating, started_vtherm_total_power devrait etre a 0W
(le check n'est pas fait - feature request que tu m'a demande de creer)
2025-02-07 08:15:27.248 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - start heating for 3 min 22 sec
2025-02-07 08:15:27.249 DEBUG (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - overpowering check: power=1068.000, max_power=9000.000 heater power=2000.000
2025-02-07 08:15:27.249 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] CentralPowerManager - started_vtherm_total_power is now 6000.0
=> la radiateur 2000W est en start heating, started_vtherm_total_power devrait etre a 2000W , et non 6000 W comme indiqué
2025-02-07 08:18:49.273 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - stop heating for 1 min 37 sec
=> la radiateur 2000W est en stop heating, started_vtherm_total_power devrait etre a 0W
(le check n'est pas fait - feature request que tu m'a demande de creer)
2025-02-07 08:20:26.291 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - start heating for 3 min 22 sec
2025-02-07 08:20:26.292 DEBUG (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - overpowering check: power=1068.000, max_power=9000.000 heater power=2000.000
2025-02-07 08:20:26.292 INFO (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - there is not enough power available power=1068.000, max_power=9000.000 heater power=2000.000
=> la radiateur 2000W est en demarage de chauffe, started_vtherm_total_power devrait etre egale à 2000W, alors que dans la situation presente la puissance maximale du logement est atteinte et le delestage activé. On est parti pour au moins 5 min d'arret correspondant à la période minimal d'activation, alors qu'on est en pleine montee en température de la piece.
2025-02-07 08:20:26.293 WARNING (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - overpowering is detected. Heater preset will be set to 'power'
2025-02-07 08:20:26.312 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat salon - Set preset_mode: power force=True
2025-02-07 08:20:26.315 INFO (MainThread) [custom_components.versatile_thermostat.const] VersatileThermostat-Thermostat salon - Sending event EventType.PRESET_EVENT with data: {'preset': 'power'}
2025-02-07 08:20:26.316 INFO (MainThread) [custom_components.versatile_thermostat.const] VersatileThermostat-Thermostat salon - Sending event EventType.POWER_EVENT with data: {'type': 'start', 'current_power': 1068.0, 'device_power': 2000.0, 'current_max_power': 9000.0, 'current_power_consumption': 0}
2eme exemple meme situation:
l’absence d’ajout du premier 2000W de l’exemple precedent n’est pas reproduit, seul l’effet cumumatif du fait de l’absence de retrachement lors du stop event est reproduit. Sans doute lie a l’absence restart de home assistant.
2025-02-07 08:30:07.923 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] Receive new Power event
2025-02-07 08:30:07.924 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] <Event state_changed[L]: entity_id=sensor.lixee_zlinky_tic_puissance, old_state=<state sensor.lixee_zlinky_tic_puissance=1068; state_class=measurement, active_power_max=3131, measurement_type=, unit_of_measurement=W, device_class=power, friendly_name=Puissance @ 2025-02-07T08:00:09.003913+01:00>, new_state=<state sensor.lixee_zlinky_tic_puissance=1080; state_class=measurement, active_power_max=3131, measurement_type=, unit_of_measurement=W, device_class=power, friendly_name=Puissance @ 2025-02-07T08:30:07.922172+01:00>>
2025-02-07 08:30:07.926 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] New current power has been retrieved: 1080.000
2025-02-07 08:30:27.928 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] Do the shedding calculation
2025-02-07 08:30:27.929 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] -------- Start of calculate_shedding
2025-02-07 08:30:27.930 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] The available power is is > 0 (7920.0). Do a complete shedding/un-shedding calculation for list: [<entity climate.thermostat_chambre=heat>, <entity climate.thermostat_salon=heat>]
2025-02-07 08:30:27.931 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] vtherm Thermostat salon power_consumption_max is 2000.0 (device_power=2000.0, overclimate=False)
2025-02-07 08:30:27.931 INFO (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] vtherm Thermostat salon should not be in overpowering state (power_consumption_max=2000.00)
2025-02-07 08:30:27.932 WARNING (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - end of overpowering is detected. Heater preset will be restored to 'comfort'
2025-02-07 08:30:27.932 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat salon - Set preset_mode: comfort force=False
2025-02-07 08:30:27.933 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat salon - find preset temp: comfort
2025-02-07 08:30:27.936 INFO (MainThread) [custom_components.versatile_thermostat.const] VersatileThermostat-Thermostat salon - Sending event EventType.PRESET_EVENT with data: {'preset': 'comfort'}
2025-02-07 08:30:27.943 INFO (MainThread) [custom_components.versatile_thermostat.const] VersatileThermostat-Thermostat salon - Sending event EventType.POWER_EVENT with data: {'type': 'end', 'current_power': 1080.0, 'device_power': 2000.0, 'current_max_power': 9000.0}
2025-02-07 08:30:27.953 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] after vtherm Thermostat salon total_power_added=2000.0, available_power=7920.0
=> la radiateur 2000W est en chauffe a la mise a jour de la puissance du logement, started_vtherm_total_power est egale 2000W comme attendu.
2025-02-07 08:30:27.954 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] -------- End of calculate_shedding
2025-02-07 08:30:27.986 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - start heating for 2 min 46 sec
2025-02-07 08:30:27.987 DEBUG (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - overpowering check: power=1080.000, max_power=9000.000 heater power=2000.000
2025-02-07 08:30:27.987 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] CentralPowerManager - started_vtherm_total_power is now 2000.0
=> la radiateur 2000W est en chauffe, started_vtherm_total_power reste egale 2000W comme attendu.
2025-02-07 08:33:14.008 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - stop heating for 2 min 13 sec
=> la radiateur 2000W est en idle, started_vtherm_total_power devrait etre egale à 0W et non 2000W
2025-02-07 08:35:27.022 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - start heating for 2 min 46 sec
2025-02-07 08:35:27.023 DEBUG (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - overpowering check: power=1080.000, max_power=9000.000 heater power=2000.000
2025-02-07 08:35:27.023 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] CentralPowerManager - started_vtherm_total_power is now 4000.0
=> la radiateur 2000W est en chauff, started_vtherm_total_power devrait etre egale à 2000W et non 4000W
2025-02-07 08:38:13.041 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - stop heating for 2 min 13 sec
=> la radiateur 2000W est en idle, started_vtherm_total_power devrait etre egale à 0W et non 4000W
2025-02-07 08:40:26.060 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - start heating for 2 min 46 sec
2025-02-07 08:40:26.061 DEBUG (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - overpowering check: power=1080.000, max_power=9000.000 heater power=2000.000
2025-02-07 08:40:26.061 DEBUG (MainThread) [custom_components.versatile_thermostat.central_feature_power_manager] CentralPowerManager - started_vtherm_total_power is now 6000.0
=> la radiateur 2000W est en chauffe, started_vtherm_total_power devrait etre egale à 2000W et non 6000W
2025-02-07 08:43:12.079 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - stop heating for 2 min 49 sec
=> la radiateur 2000W est en idle, started_vtherm_total_power devrait etre egale à 0W et non 6000W
2025-02-07 08:46:01.096 INFO (MainThread) [custom_components.versatile_thermostat.underlyings] VersatileThermostat-Thermostat salon-switch.nodon_sin_4_fp_21_commutateur - start heating for 2 min 10 sec
2025-02-07 08:46:01.097 DEBUG (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - overpowering check: power=1080.000, max_power=9000.000 heater power=2000.000
2025-02-07 08:46:01.098 INFO (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - there is not enough power available power=1080.000, max_power=9000.000 heater power=2000.000
=> la radiateur 2000W est en demarage de chauffe, started_vtherm_total_power devrait etre egale à 2000W, alors que dans la situation presente la puissance maximale du logement est atteinte et le delestage activé. On est parti pour au moins 5 min d'arret correspondant à la période minimal d'activation, alors qu'on est en pleine montee en température de la piece.
2025-02-07 08:46:01.098 WARNING (MainThread) [custom_components.versatile_thermostat.feature_power_manager] PowerManager-Thermostat salon - overpowering is detected. Heater preset will be set to 'power'
2025-02-07 08:46:01.113 INFO (MainThread) [custom_components.versatile_thermostat.base_thermostat] VersatileThermostat-Thermostat salon - Set preset_mode: power force=True
2025-02-07 08:46:01.117 INFO (MainThread) [custom_components.versatile_thermostat.const] VersatileThermostat-Thermostat salon - Sending event EventType.PRESET_EVENT with data: {'preset': 'power'}
2025-02-07 08:46:01.127 INFO (MainThread) [custom_components.versatile_thermostat.const] VersatileThermostat-Thermostat salon - Sending event EventType.POWER_EVENT with data: {'type': 'start', 'current_power': 1080.0, 'device_power': 2000.0, 'current_max_power': 9000.0, 'current_power_consumption': 0}
Avec le 2eme exemple, je tiens la un scenario reproductible et comprehensible.
Je vais donc créer le ticket feature request avec celui-ci. Et mon problème devrait etre resolu. Youpi! 