nobl / ioBroker.senec

ioBroker adapter for Senec Home
Other
27 stars 7 forks source link

Control for Wallbox #191

Open esusxunil opened 11 months ago

esusxunil commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

Ich habe unter https://github.com/evcc-io/evcc/discussions/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 commented 10 months ago

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

Jokerx3 commented 9 months ago

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