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

Allowing switching between 1-line or 3-line charging #49

Open
Schaussi opened this issue Sep 16, 2021 · 3 comments
Open

Allowing switching between 1-line or 3-line charging #49

Schaussi opened this issue Sep 16, 2021 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@Schaussi
Copy link

Schaussi commented Sep 16, 2021

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

Describe the solution you'd like
In addition to being able to service.set_max_current it would be great to also have an option like service.set_lines (1 or 3 phases).

Describe alternatives you've considered
Setting it manually via go-e app.

Additional context
Would give a good effort if you are using it in combination with PV. Switching to "one line mode" allows charging with lower power like 1000W (1 line) if there is not enough PV energy available, and dynamically increase up to 22 kW (3 lines), usually done via HA automation or Node Red.

Thank you!

Edit: I guess the params are not available in API v1 but in v2, maybe pwm/lfspt/fsptws/spl3.

@cathiele
Copy link
Owner

I don't have a charger with v2 API Support. But if someone would implement it i would merge/integrate it.

@cathiele cathiele added the help wanted Extra attention is needed label Sep 17, 2021
@cathiele
Copy link
Owner

See #40

@kolossboss
Copy link

Hi,
I have the same problem.

I'm not a programmer or similar :-) butAs a workaround, you can create a command_line switch in HA to switch the between phases. You need to activate http v2 api in the app.
Its far away from a perfect solution, but it works nearly for my need right now.

In the next release, you can create a manual button entity I think, that works better as a switch.

- platform: command_line
  switches:
    goe_rechts_1phase:
      command_on: "curl 'http://192.168.x.x/api/set?psm=1'"
    goe_rechts_3phasen:
      command_on: "curl 'http://192.168.x.x/api/set?psm=2'"

OR (not sure what works better)

- platform: command_line
  switches:
    goe_rechts_phases:
      command_on: "curl 'http://192.168.x.x/api/set?psm=1'"
      command_off: "curl 'http://192.168.x.x/api/set?psm=2'"

You can also create a command_line sensor to get a feedback. But its not a very useful value. I'm not sure how to do it.

- platform: command_line
  name: goe_status_phasen
  command: "curl http://192.168.x.x/api/status?filter=fsp"
  scan_interval: 30
  command_timeout: 60

If anyone had an idea how to do it better, you are welcome to share :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants