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

[Feature request] - Decrease the power used by a Vtherm which wants to stop in power management #890

Open
djacomy opened this issue Feb 7, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@djacomy
Copy link

djacomy commented Feb 7, 2025

Consider the alternative to create a free discusssion before making a feature request
Discussions hacf forum is here.

Is your feature request related to a problem? Please describe.

While I have a central configuration in which maximum heater power involved does not exceed the maximum subscribed power of the home, the use of the versatile thermostat leads to an abnormally rapid growth of its cumulative meter, and frequent power shedding which has no reason to be

Image

Describe the solution you'd like
The solution consists of implementing a subtraction of the maximum power of the heater from the cumulative power meter of the thermostat when it is turned off.

Describe alternatives you've considered
Alternative solution need inactivate the power management or increase drastically the power max input to let the home power management reset the thermostat to avoid power shedding. It's shame!

Additional context

Central thermostat configuration:

  • Home power max (subscribed power): 9KW
  • Delay between two update of the global used power : 30 min
  • Heaters involved:
    • heater with 2000W max
    • heater with 1000W max
  • cycle time: 5min
  • Minimal delay activation: 5s
  • Maximal delay between two measure of temperature: 1h
  • Percentage minimal power bolow security preset is not activated: 50%
  • Percentage power in security mode: 10%
  • TPI coeff int: 0.6
  • TPI coef ext: 0.01

Scenario example with radiator of 2000W

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}
@djacomy djacomy changed the title Refing of power management Refining of power management Feb 7, 2025
@djacomy djacomy changed the title Refining of power management [Feature request] - Refining of power management Feb 7, 2025
@djacomy djacomy changed the title [Feature request] - Refining of power management [Feature request] - Memory leak in power management Feb 7, 2025
@djacomy djacomy changed the title [Feature request] - Memory leak in power management [Feature request] - Remove the memory leak in power management Feb 7, 2025
@jmcollin78 jmcollin78 changed the title [Feature request] - Remove the memory leak in power management [Feature request] - Decrease the power used by a Vtherm which wants to stop in power management Feb 7, 2025
@jmcollin78
Copy link
Owner

Hello @djacomy

thank you for your report. Indeed when an active Vtherm request to stop, its power in not decrease of the total used. This can lead to abnormal poser shedding specially if the delay between two total power consumption is high.

As reminder, to be efficient this feature needs a small delay (some seconds) between two measurment of the total power consumed by the house, so that when a heater starts/stops, it is reflected in the next power value.

@jmcollin78 jmcollin78 added the enhancement New feature or request label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants