serkri / SmartEVSE-3

Smart Electric Vehicle Charging Station (EVSE)
MIT License
68 stars 28 forks source link

Control via IoBroker using API #183

Closed Elektrofix-OL closed 1 year ago

Elektrofix-OL commented 1 year ago

I am trying to control the SmartEVSE with the IoBroker. Since the SunnyHomemanger is not directly supported, I would like to send the data from the eHZ to the EVSE. I'm trying a url call http://192.168.5.23/currents?L1=15&L2=-10&L3=-11 but the EVSE shows nothing in the browser. In the EVSE I set the MainMeter to API. Firmware SERKRI-1.7.1

What am I doing wrong?

dingo35 commented 1 year ago

You should send values in Amps x 10; so if you want to send 1.5A you should send 15.

You could try using curl, like: curl -X POST http://etc. , if that works than your system is either sending a GET or not the right syntax...

Also note you should send the info every few seconds, and it takes the webserver UI 6secs to refresh

Elektrofix-OL commented 1 year ago

I got it. It is important that it is not a „request“ but an „exec“ as curl with ' character, otherwise nothing arrives. Here is my Blockly: IMG_0598