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

Implemented power limitation, #306

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

Codectory
Copy link

visibilities.Unknown_Parameter_357 is related to power limitation, not silent mode, added undefined_24 & 25 in switch off reasons

…elated to power limitation, not silent mode, added undefined_24 & 25 in switch off reasons
@stefanovich1
Copy link

Great implementation! I Hope BenPru finds the time soon to approve this commit!
Did you find out, whether another Parameter is related to silent mode?
Also the power_limitation is only available/working when smart grid is active.
Do you think integrating the smart grid switch in this commit makes sense?

@Codectory
Copy link
Author

I can only control the settings, power limitation does not work for me. When I open EVU, the heat pump is locked and will not start heating, whether power limitation is on or off. When I bridge EVU2 and enable smart grid, power limitation will be ignored

@stefanovich1
Copy link

Sorry I can't follow.
My EVU is open, as it should be from stock.
I activate smart grid in the Luxtronik interface.
Afterwards I can activate power limitation and set a value.

So you wrote this without having the benefit from it?

@Codectory
Copy link
Author

What to you mean with "open"? Bridged? When EVU is bridged and I activate power limitation, the heat pump will not be limited, it is not working.

@stefanovich1
Copy link

OK I double checked and you are right. The EVU must be bridged, since I had no EVU limitations prior to my activation of smart grid. On the hardware wiring part of view, my machine is stock.
EVU = bridged (no EVU
smart grid = on
power limitation = on
power limitation value = set to 1.2kW (can't be too little)

@Codectory
Copy link
Author

And this is working for you?

@stefanovich1
Copy link

stefanovich1 commented Dec 18, 2024

Well in the controler it says:
EVU = "Ein"
Smart Grid = "1"
EVU 2 = "Aus"

And with this setting power limitation is working

@Codectory
Copy link
Author

But than you also have reduced target temperature right?

@stefanovich1
Copy link

Nope, regular target temperature.
But my machine is oversized for my house. Therefore I only need those 1.2kW (electrical) in rare conditions.

@stefanovich1
Copy link

stefanovich1 commented Dec 18, 2024

So with my setup I get the smart grid working condition "EVU locked". (out of the 4 possible conditions)
https://www.novelan.com/download/18.6d7c19c518cfe26c3038e52/1709107004949/Betriebsanleitung_WPR-NET-2-1.pdf (page 37)
But due to activation of power limitation, it does not lock the machine completely but is respecting the limitation.

@Codectory
Copy link
Author

And it is really heating?

Copy link

@blue-bean blue-bean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleting lines 229-240 in const.py and re-adding lines for undefined_24 and undefined_25 is unnecessary and should be dropped.
And maybe after "UnitOfPower" in number_entities_predefined.py there should be a comma

The rest of the changes work fine.

Copy link

@blue-bean blue-bean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with the second commit

@Codectory
Copy link
Author

@blue-bean Is the power limitation working for you? When it's enable while EVU is not bridged or Smart Grid is enabled, the status message "power limitation" will show up, but the heat pump never starts heating.

@blue-bean
Copy link

blue-bean commented Dec 19, 2024

@blue-bean Is the power limitation working for you? When it's enable while EVU is not bridged or Smart Grid is enabled, the status message "power limitation" will show up, but the heat pump never starts heating.

It's working for me like @stefanovich1 mentioned.
Activating Smart Grid to 'On' without activated power limit gives me a blocked WP:
Zwischenablage08

If power limit is 'on' when i activate Smart Grid, the WP is working respecting the power limit (see the marked symbol in the screenshots):
Zwischenablage07
and
Zwischenablage06

If Smart Grid is 'off' and i activate the power limit, nothing happens, the WP is working as usual.

@Codectory
Copy link
Author

Codectory commented Dec 19, 2024

I see the symbol, but when I enable Smart Grid, the heat pump immediatley stops heating and won't start again, although power limitation is enabled.

@blue-bean
Copy link

Did you try to increase the power limit in several steps?

@Codectory
Copy link
Author

Status was always blocked
image

When I set ist to 30kW it changed to No Limit. I lowered the value step by step and it changed to blocked at 1,5kW, but not changed back to no limit, when I increased the value.

@blue-bean
Copy link

blue-bean commented Dec 19, 2024

And when status is not blocked - was the external flow out temperature really lower than (flow out temperature target - hysteresis)? How long did you wait after setting a new limit?

@Codectory
Copy link
Author

Yes of course. Now, I managed to get power limitation activated while it is heating. After the start phase, (I don't know how long it takes), is shows "REDUCED", then I lowered the limit step by step from 1,5 to 0,6kW and it stops heating on 0,6kW, but the consumption was all the time above the limit. This feature feels a little bit buggy for me

@blue-bean
Copy link

Now, I managed to get power limitation activated while it is heating.

In another forum, a user wrote that the heat pump does not start when the power limit is activated. The power limit can only be activated when the pump is already running. This is probably to prevent the pump from exceeding the limit when starting up, as the pump always has to start at medium power.
I don't know whether this applies to all power limits or just to the values ​​that are in the lower power range of the pump.

@stefanovich1
Copy link

This happend with me when the Limit is too low. Especially during Start or water heating a too little value can cause Problems.
Here comes your commit into play. Now you can adjust the Limitaccording Status, time or some Thing else

@Codectory
Copy link
Author

Codectory commented Dec 20, 2024 via email

@stefanovich1
Copy link

I can confirm your commit working.... Cool job!
Although the namens are little mixed up.... It does not Show up as "Leistungslimit".
Any idea to fix this minor cosmetical issue?

@Codectory
Copy link
Author

Codectory commented Dec 20, 2024 via email

@blue-bean
Copy link

It does not Show up as "Leistungslimit".

It does for me - did you have the changes in de.json?

@stefanovich1
Copy link

stefanovich1 commented Dec 20, 2024

It does not Show up as "Leistungslimit".

It does for me - did you have the changes in de.json?

Sorry, my bad. By manually copying the files to the HA I missed the translations folder. Everything works and translates fine.
Thanks for the great work.

But then, this feature is completely useless or buggy. The heat pump should ignore the limit on start up. stefanovich1 @.> schrieb am Fr. 20. Dez. 2024 um 09:07:

This happend with me when the Limit is too low. Especially during Start or water heating a too little value can cause Problems. Here comes your commit into play. Now you can adjust the Limitaccording Status, time or some Thing else — Reply to this email directly, view it on GitHub <#306 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOWXFIOOLCHL7IY2UGZPRLT2GPF5PAVCNFSM6AAAAABTZPEIMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJWGQ4DINZWGI . You are receiving this because you authored the thread.Message ID: @.
>

I think the original implementation was to meet a goverment requirement. You must be able to limit big electrical machines to 4,2kW. With this limit 99% of the heat pumps are not impaired in any way.
I had a limit earlier at 0,9kW and heating worked fine...even the start up. But at low temperatures the heat pump aborted the hot water cycle. I am currently at a steday limit of 1,3kW and have no implications at all. I have the benefit, that with this limit I can flatten the ramp up at start up. I also read about users having problems with deicing at a too low limit.

btw: The Limit IS ignored during deicing

@Mehli12
Copy link

Mehli12 commented Dec 22, 2024

Hi guys. Thank you for working on this topic. As I understood, we can use the power limitation then out of HA. Right? Great! I would like to install it on my test system. But unfortunately I have no idea how GitHub works. So I don't know how to "copy" the modified girls to my HA config. Any easy tip? :)

@AJediIAm
Copy link
Contributor

Reading the comments so far, it seems this functionality needs good documentation.
If I understand correctly:

  1. the power limit only has effect if smart grid is turned on.
  2. power limit will set the maximum amount of power the heatpump is allowed to use.
  3. in some cases, hot water will not work if the power limit is set to low.
  4. in some cases, the heatpump doesn't start I'd the power limit and/or smart grid is turned on.

I'm not about to test this at this moment, but I'll check how my heat pump reacts next week.
Please correct/confirm.

@Mehli12
Copy link

Mehli12 commented Dec 22, 2024

I'm not about to test this at this moment, but I'll check how my heat pump reacts next week. Please correct/confirm.

I would like to test it. But don#t know how to implement the changes in my HA system

@stefanovich1
Copy link

Reading the comments so far, it seems this functionality needs good documentation. If I understand correctly:

1. the power limit only has effect if smart grid is turned on.

2. power limit will set the maximum amount of power the heatpump is allowed to use.

3. in some cases, hot water will not work if the power limit is set to low.

4. in some cases, the heatpump doesn't start I'd the power limit and/or smart grid is turned on.

I'm not about to test this at this moment, but I'll check how my heat pump reacts next week. Please correct/confirm.

I can confirm this behavior.
Tested with changing between hot water and heating and it works flawless so far.

Hi guys. Thank you for working on this topic. As I understood, we can use the power limitation then out of HA. Right? Great! I would like to install it on my test system. But unfortunately I have no idea how GitHub works. So I don't know how to "copy" the modified girls to my HA config. Any easy tip? :)

[cudos to blue-bean aka Frogman]
Download the git desktop app.
Copy BenPru's code to your lokal machine.
Then on the top --> current branch --> main --> Pull requests --> Choose a branch to merge into main (on the bottom)
I merged all open pull requests and all of them work ideal
Then you have to replace the changed files on the HomeAssistant with the new files on your lokal machine.
I did that by installing SmabaShare AddOn on HomeAssistant. You can then replacy all files on your Home assistant (dont forget the translation folder)
Restart Home Assistant and done

If you are german speaking, have a look to the following threads:
https://www.haustechnikdialog.de/Forum/t/260333/Luxtronik-Anbindung-mit-HomeAssistant?page=5
https://www.haustechnikdialog.de/Forum/t/272274/Alpha-Innotec-Firmware?page=22

@Mehli12
Copy link

Mehli12 commented Dec 25, 2024

I can confirm this behavior. Tested with changing between hot water and heating and it works flawless so far.

I can confirm as well. After turning on Smart Grid, the heat pump stoped, and just start running again, when I set the power limit above 1,2 kW or so. Afterwards I'm able to set the power limit as low as I like to and the pump runs. Maybe warm water is not going to reach the set temperature.
For now, I just set the power limit up to 1,3 kW to reach warm water set temp.
Now the heat pump starts even with a power limit as low as 0,9 kW. I can confirm the heat pump is ignoring the power limit during start up.

Bildschirmfoto 2024-12-25 um 16 40 36

It's great work, now I'm able to adjust the heat pump according to PV Überschuss at a certain time.

Apart from this, I realized, that the heat pump is running much more smooth. Like more or less on the same power level (below the power limit). Before my heat pump was pulsing up and down. For example between 0,5 kW and 1,4 kW within 30 minutes. I guess this is not very efficent.

Another strange thing I realized, after installing the "updated" files to custom components in my HA test system and switching Smart Grid to on, some sensors disappeared in my working system. Even after a restart they did not appear again until I copied the "updated" files also to my working system. Now it works and all sensors are online.

[cudos to blue-bean aka Frogman] Download the git desktop app. Copy BenPru's code to your lokal machine. Then on the top --> current branch --> main --> Pull requests --> Choose a branch to merge into main (on the bottom) I merged all open pull requests and all of them work ideal Then you have to replace the changed files on the HomeAssistant with the new files on your lokal machine. I did that by installing SmabaShare AddOn on HomeAssistant. You can then replacy all files on your Home assistant (dont forget the translation folder) Restart Home Assistant and done

If you are german speaking, have a look to the following threads: https://www.haustechnikdialog.de/Forum/t/260333/Luxtronik-Anbindung-mit-HomeAssistant?page=5 https://www.haustechnikdialog.de/Forum/t/272274/Alpha-Innotec-Firmware?page=22

Thank you for your information regarding merging the different branches. I works as described! Great!

@Mehli12
Copy link

Mehli12 commented Jan 9, 2025

Hi guys, in the new version 2025.01.04 Beta is the power limitation also implemented? I guess not, right?

@phagemann
Copy link
Contributor

@Mehli12 Nope, waiting to be merged.

@blue-bean
Copy link

blue-bean commented Jan 9, 2025

Unfortunately not, BenPru hasn't merged it up to now.

@BenPru
Can you merge it please?

@Codectory
Copy link
Author

Codectory commented Jan 9, 2025 via email

@phagemann
Copy link
Contributor

phagemann commented Jan 9, 2025

I'm running V3.90.3. According to the Luxtronik-UI the power limit is set correctly.
When more power is required to achieve configured temperatures (e.g. domestic water), the power limit seems to be ignored, but consumption is reduced compared to non power limited mode.

@BenPru
Copy link
Owner

BenPru commented Jan 22, 2025

@Codectory Please Provider a changelog Text with breaking Changes and new Sensors.

@Codectory
Copy link
Author

@BenPru Where should I provide it? Specific file? Here, as comment? ;-)

@BenPru
Copy link
Owner

BenPru commented Jan 22, 2025

Comment

@Codectory
Copy link
Author

  • New switch to enable/disable power limitation
  • New number entity to set power limitation value
  • New switch to enable/disable Smart Grid
  • Added german and englisch translation for new sensors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants