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: control active power #120

Open
gigatexel opened this issue Apr 27, 2023 · 6 comments
Open

Feature request: control active power #120

gigatexel opened this issue Apr 27, 2023 · 6 comments

Comments

@gigatexel
Copy link
Contributor

gigatexel commented Apr 27, 2023

As dynamic electricity pricing is getting more and more available, the need to be able to controle the inverter output power is also rising.
For instance, it might not be feasible to generate more power than your own consumption during negative prices (or maybe no generation at all).
Simply switching off the convertor on the AC or DC side is offcourse possible, but not optimal.

The SMA web interface enables you to define the maximum active power, as a value in W and or a percentage (you have to choose the appropriate setting).
Would it be possible to control this using PySMA and later on using Home Assistant?

image

@krispek
Copy link

krispek commented Aug 2, 2023

I'm interested in this as well.

@thestonewell
Copy link

There's an additional configuration parameter that would be interesting: to force charge/force discharge the battery. A good example is to charge the battery over night - especially in winter - when electricity prices are low.

My SUNNY TRIPOWER 10.0 SE provides the necessary Battery Installer Mode (search for Installation mode or Bat.IstlMod):

dynamic

While this does not relate to active power it relates because of the same use case of dynamic energy pricing.

I did look at the code too. It will be a more difficult change as

@littleyoda from https://github.com/littleyoda/pysma/tree/tripowerX any ideas?

@littleyoda
Copy link

littleyoda commented May 26, 2024

Oh dear. The next person to ask about this function.

The effort involved should not be underestimated.
As you may know, my fork supports several interfaces. (Besides Webconnect also Speedwire and EnnoxOS-based devices) Each interface would have to be implemented and tested separately.

For Speedwire, nobody has figured out how to set values yet.
I already have an approach for ennexOS.
For Webconnect I would need someone who is willing to support me.
This person must be able to install the library and at least run the example.py. As a first step, I would need an HDR file (see below) with "Open the relevant web page" and "change a value". Then I could check if something like this can be realized with reasonable costs.

The topic of HA comes at the very end for me.
For a first version, I would use a service call.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0647719
or
https://www.ibm.com/support/pages/capture-network-traffic-browsers-developer-tools

@thestonewell
Copy link

thestonewell commented May 26, 2024 via email

@littleyoda
Copy link

sounds like 'challenge accepted'

You can find my E-Mail here:
https://littleyoda.github.io/

@gigatexel
Copy link
Contributor Author

sounds like 'challenge accepted'

You can find my E-Mail here: https://littleyoda.github.io/

Same for me. I've been running this feature modbus-based for now.

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

No branches or pull requests

4 participants