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

Control for Wallbox #191

Open
esusxunil opened this issue Oct 17, 2023 · 7 comments
Open

Control for Wallbox #191

esusxunil opened this issue Oct 17, 2023 · 7 comments
Labels
enhancement New feature or request help wanted Extra attention is needed notabug Not a bug

Comments

@esusxunil
Copy link

First of thank you for this great adapter, I use it a lot and I really enjoy the new ForceloadBattery button - it just came at the time when I started implementing this in JS to load my battery in Winter in combination with Tibber, so it saved me some time.

My question is now: Are there any plans to make the Wallbox controllable as well? I would like to switch the mode (Off/Solar/Fast) based on the price at Tibber. The Solar Mode of the Wallbox does what it should, so I do not need a granular control, just switching the mode. I saw the local API should be capable of doing this.

@nobl nobl added enhancement New feature or request help wanted Extra attention is needed notabug Not a bug labels Oct 18, 2023
@nobl
Copy link
Owner

nobl commented Oct 18, 2023

We can make that happen - but as I don't have a Senec Wallbox (and never will) I do need input on what exactly is sent to the appliance in these situations via the local webinterface.

If you can supply me with the correct post/get calls I can arrange that :)

(We might even be able to add Wallboxes to the AppAPI calls and control them via that - but I cannot test that for the same reasons. In fact the AppAPI throws an error if I even try to poll the Wallbox data while not having one.)

@Kirmesboxer24
Copy link

I just wanted to say thanks too!
I also have a Senec wallbox (the Senec-branded ABL), and I could help as well. Since the combination of the car and the wallbox can lead to quite different results, having at least two samples could help. To provide the data, it would be helpful to know:

– What exactly you need.
– How I can collect the data in an appropriate form.
Feel free to ask any questions or provide additional information.

@nobl
Copy link
Owner

nobl commented Oct 18, 2023

I first need to know the options provided by the local internal interface (screenshot might be easiest).

Then the exact post/get requests when pressing any of the buttons. (usually you can track those when hitting F12 in the browser - but it can be tedious locating the correct one)

I could help with that if I can get access to a machine (computer able to access the local interface). If someone would care to provide me with that - please drop a private message and we can arrange something (teamviewer or whatever you might have available).

@Kirmesboxer24
Copy link

Well, unfortunately there are no options in local interface as far as I can see. Even when logged in as service, you can’t do much. All communication with the wallbox’s features is limited to the crappy app and changes apply with the 5 minute delay (including PV optimized load management). Which is the biggest pain point. It would be a terrific improvement to get rid of that.
Bildschirmfoto 2023-10-20 um 08 57 21
Bildschirmfoto 2023-10-20 um 08 53 32

@esusxunil
Copy link
Author

esusxunil commented Oct 27, 2023

Ich habe unter evcc-io/evcc#6242 fuer die Anbindung bei EVCC folgendes gefunden:

Die Steuerung der Wallbox ist eigentlich ziemlich einfach:

curl -L -X POST 'http://x.x.x.x/lala.cgi' -H 'Content-Type: application/json' --data-raw '{"WALLBOX" : {"PROHIBIT_USAGE":["u8_01","u8_00","u8_00","u8_00"]}}' für AUS und

curl -L -X POST 'http://x.x.x.x/lala.cgi' -H 'Content-Type: application/json' --data-raw '{"WALLBOX" : {"PROHIBIT_USAGE":["u8_00","u8_00","u8_00","u8_00"]}}' für AN

Zusätzlich kann man die Amperezahl als IEEE-754 Float Wert setzen (https://g2384.github.io/collection/Hex_Calc_IEEE754_conversion.html). Hier ein Beispiel für 6: curl -X POST http://x.x.x.x/lala.cgi -d '{ "WALLBOX" : {"SET_ICMAX": ["fl_40E00000","fl_00000000","fl_00000000","fl_00000000"]} }'

Problem ist wohl, dass die lokale EInstellung von den Cloud EInstellungen beim naechesten Update uebersteuert werden.

Unter https://documenter.getpostman.com/view/10329335/UVCB9ihW scheint aber die API der APP dokumentiert zu sein, dort gibt es Funtionen um den Mode der Wallbox umzustellen und auch die Amperezahl einzustellen.

@nobl
Copy link
Owner

nobl commented Nov 12, 2023

Ich werde mir das nochmal anschauen, wenn ich die aktuelle API integriere :)

@Jokerx3
Copy link

Jokerx3 commented Dec 21, 2023

Biete mich als Tester an, falls gewünscht - habe 2 Senec Wallboxen. Vielen Dank @nobl !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed notabug Not a bug
Projects
None yet
Development

No branches or pull requests

4 participants