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] Set Parameters via webconnect #10

Closed
littleyoda opened this issue Jul 25, 2024 · 13 comments
Closed

[Feature Request] Set Parameters via webconnect #10

littleyoda opened this issue Jul 25, 2024 · 13 comments

Comments

@littleyoda
Copy link
Owner

https://community.home-assistant.io/t/feature-to-set-power-limit-of-sma-stp-inverter-from-home-assistant/585408/

@littleyoda
Copy link
Owner Author

littleyoda commented Sep 28, 2024

The next version (0.4.5) will have improved support for parameters when using the webconnect interface. The feature set should now match that of the enneox interface.
Unfortunately, all untested because I don't have an inverter with webconnect. Test at your own risk.

grafik


grafik


grafik

@KimCarlsen
Copy link

tried it on my STP 8.0 inverter with webconnect.
using plugin version 4.5.1

Trying to set value Active power limitation to 0 and then get the value afterwards where it still shows 8000w

2024-10-12 18:08:39.232 INFO (MainThread) [custom_components.pysmaplus] Update pysma 192.168.x.x/webconnect/3xxxxx
2024-10-12 18:08:39.374 DEBUG (MainThread) [custom_components.pysmaplus] Finished fetching pysmaplus data in 0.142 seconds (success: True)
2024-10-12 18:08:43.466 DEBUG (MainThread) [custom_components.pysmaplus.services] Setting 3xxxxx / SN: 3xxxxx Active Power Limitation to 0
2024-10-12 18:08:44.232 INFO (MainThread) [custom_components.pysmaplus] Update pysma 192.168.x.x/webconnect/3xxxxx
2024-10-12 18:08:44.319 DEBUG (MainThread) [custom_components.pysmaplus] Finished fetching pysmaplus data in 0.087 seconds (success: True)
2024-10-12 18:08:49.233 INFO (MainThread) [custom_components.pysmaplus] Update pysma 192.168.x.x/webconnect/3xxxxx
2024-10-12 18:08:49.309 DEBUG (MainThread) [custom_components.pysmaplus] Finished fetching pysmaplus data in 0.076 seconds (success: True)
2024-10-12 18:08:54.233 INFO (MainThread) [custom_components.pysmaplus] Update pysma 192.168.x.x/webconnect/3xxxxx
2024-10-12 18:08:54.386 DEBUG (MainThread) [custom_components.pysmaplus] Finished fetching pysmaplus data in 0.152 seconds (success: True)
2024-10-12 18:08:59.232 INFO (MainThread) [custom_components.pysmaplus] Update pysma 192.168.x.x/webconnect/3xxxx
2024-10-12 18:08:59.308 DEBUG (MainThread) [custom_components.pysmaplus] Finished fetching pysmaplus data in 0.076 seconds (success: True)

Let me know if i can assist in troubleshooting

@littleyoda
Copy link
Owner Author

Please check whether you can change the value directly on the inverter's website.
What kind of account are you using?

@KimCarlsen
Copy link

I'm connecting to inverter as installer.

In Inverter I've set those for testing purpose:
"Active power limitation P, active power configuration" = 345W
"Set active power limit at grid connection point" = 123W

In HA both "Active power limit" and "Inverter power limit" shows 8000W

@littleyoda
Copy link
Owner Author

Can you please send me the diagostic inforamtion with these values?
https://github.com/littleyoda/ha-pysmaplus/blob/main/docs/diagnosticsinformation.md

@littleyoda
Copy link
Owner Author

I checked the diagnostic-file.

In the end, we are talking about different parameters.


1.) I have implemented the following, as suggested in the following https://community.home-assistant.io/t/feature-to-set-power-limit-of-sma-stp-inverter-from-home-assistant/585408/9

"6802_00832B00", Identifier.active_power_limitation
Inverter.WMax

Interestingly, in your case, only values between 4000 and 8050 are allowed for this parameter.

        "6802_00832B00": {
          "9": [
            {
              "low": 4000,
              "high": 8050,
              "val": 8000
            }
          ]
        },

You have tested:

2.) 6800_0092D70
PCC.WMax
German: Eingestellte Wirkleistungsgrenze am Netzanschlusspunkt
English: "Set active power limit at grid connection point"

{
  "9": [
    {
      "low": 0,
      "high": 500000,
      "val": 123
    }
  ]
}

3.) 6802_00924200
Inverter.WModCfg.WCnstCfg.W
Germain: "Wirkleistungsbegrenzung in W"
Egnlish: Active power limitation P, active power configuration"

{
  "9": [
    {
      "low": 0,
      "high": 8000,
      "val": 345
    }
  ]
}

It is completely unclear to me why in your case active_power_limit has 4000 as the lower limit.
I'll have to think about what I'm doing. But I'll probably just add your two parameters.

@KimCarlsen
Copy link

KimCarlsen commented Oct 14, 2024 via email

@littleyoda
Copy link
Owner Author

I added the following sensor:

"Active Power Limitation (GCP)" in v.0.4.6
webconnect: 6800_0092D70
PCC.WMax
German: Eingestellte Wirkleistungsgrenze am Netzanschlusspunkt
English: "Set active power limit at grid connection point"

@KimCarlsen
Copy link

Hmm. I'm not able to see any of the new sensors.
After upgrade i tried to remove old device and readd it, reboot HA. but i do not see them, nor as device entities or in action parameters

@littleyoda
Copy link
Owner Author

Please try the v0.4.6.1. It should be fixed now.
You don't have to remove the old device. The new sensor should be added automatically.

@KimCarlsen
Copy link

Sorry. no new sensors. still 70 entities.
image

image

@littleyoda
Copy link
Owner Author

strange ... can you please send me a new diagnostic file?

@littleyoda
Copy link
Owner Author

the problem was solved in the latest version.

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

2 participants