Enabling EVSE through API

Fragen und Antworten zur Software hinter EVSE-WiFi
Antworten
vic911
Beiträge: 3
Registriert: Sa 30. Jan 2021, 19:08

Enabling EVSE through API

Beitrag von vic911 »

- Software-Version : 1.1.0
- Welcher Betriebsmodus wird verwendet (Normal / Always Active / Remote)? Normal
- Welcher Stromzähler wird verwendet (S0 / Modbus)? no power meter
- Betrieb als WLAN-A oder WLAN-Client? Client
- Welcher Ladecontroller wird verwendet? Simple EVSE DIN fw 12
- Welches Fahrzeug wird geladen? Zoe

Hello,

I'm trying to control EVSE Wifi through the API (node-red) because my meter can be reached only via mqtt.
After pushing GET http://192.168.4.1/setStatus?active=true message, charging begins, but I've receiving with
GET http://192.168.4.1/getParameters the following response:

{"type":"parameters","list":[{"vehicleState":2,"evseState":true,"maxCurrent":20,"actualCurrent":7,"actualPower":0,"duration":8000,"alwaysActive":false,"lastActionUser":"API","lastActionUID":"API","energy":0,"mileage":0,"meterReading":0,"currentP1":0,"currentP2":0,"currentP3":0,"useMeter":false}]}

after a while I'm receiving this and charging continues. (or according to vehicleState :3 it just begins actually)

{"type":"parameters","list":[{"vehicleState":3,"evseState":false,"maxCurrent":20,"actualCurrent":7,"actualPower":0,"duration":8000,"alwaysActive":false,"lastActionUser":"API","lastActionUID":"API","energy":0,"mileage":0,"meterReading":0,"currentP1":0,"currentP2":0,"currentP3":0,"useMeter":false}]}

according this also status on main screen looks strange. "Vehicle charging" but Activate EVSE turns to green again. (evseState false?)

If I send the setStatus?active=true message again things getting normal, status remain charging and button changes to red "Deactivate EVSE". (evseState also turns to true)

Can somebody help me, what I'm doing wrong?

another question, is there a way to activate alway active mode via the API?

Thanks
Dateianhänge
evse_wifi_status.jpg
evse_wifi_status.jpg (108.96 KiB) 3989 mal betrachtet

Mathias
Administrator
Beiträge: 222
Registriert: Di 12. Mai 2020, 09:12

Re: Enabling EVSE through API

Beitrag von Mathias »

That looks really strange.

Can you please share your config file?
Settings -> At the bottom in the Section "Backup" -> "Backup Settings"
Please censor your passwords before uploading!

EDIT:
Did you try a factory reset?

vic911
Beiträge: 3
Registriert: Sa 30. Jan 2021, 19:08

Re: Enabling EVSE through API

Beitrag von vic911 »

thanks for the prompt response
I've attached my config file (simple txt just had to alter the extension to be able to attach), before factory reset. Since than I could not charge my car, but next week I will try that too.
here are the register values of the wb maybe it counts too.

regards,
Viktor


EVSE Registers
1000: Configured Current 0
1001: Actual Current 14
1002: Vehicle Status 2
1003: PP-Limit 32
1004: Turn off bit 0
1005: Firmware Version 12
1006: EVSE Status 3
2000: Current after boot 0
2001: Modbus Status 1
2002: Min. Current Value 0
2003: Analog Input Config 1
2004: Amps after boot (evse-button) 0
2005: Register 2005 16416
2006: Current Sharing Mode 0
2007: PP-Detection 0

aiole
Beiträge: 1153
Registriert: Di 12. Mai 2020, 10:54

Re: Enabling EVSE through API

Beitrag von aiole »

Hey Viktor,
not sure, if this is the problem:
If you are in "normal" the start/stop is realized by reg. 2005 activated/deactivated. Register 2000 (current after boot) is 6(+), which is shown by the Amp-slider on the main page. 0 is not ok, I think.

Min current = reg.2002 = 0 is ok. It's used by openWB in remote-mode. There is another start/stop-procedure than in "normal/always active". It uses only reg.1000 with 0A for stop.

vic911
Beiträge: 3
Registriert: Sa 30. Jan 2021, 19:08

Re: Enabling EVSE through API

Beitrag von vic911 »

Hi,
resetting hasn't helped. Setting register 2000 from 0 to 6 helped a lot, at least at activating the EVSE it doesn't mess up with the statuses. The problem is definitely comes up, when I set the current to 0 in order to prevent shutting down the circuit breakers. I think switching on/off the charger very often is not a good option, so I have to find out how to handle when only less than 6A for charging is available.
Is there a way to activate always active mode via the API?
Thanks for you help
Viktor

aiole
Beiträge: 1153
Registriert: Di 12. Mai 2020, 10:54

Re: Enabling EVSE through API

Beitrag von aiole »

Oh sh... - lost the answer
in short:

In "remote" with reg 1000 and value<6A the circuit breaker will open too.
It's the same effect like "normal" and reg 2005 activated/deactivated.

The ony difference is another LED-blink on the charging controller

Antworten