You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought I'll share an extremely simple configuration frontend that I use to switch around some settings of EVCC that are not accessible through the regular EVCC GUI. The whole work is done by OliveTin and I've only put in a dumb script.
One specialty I have in my setup is that there's a contactor for 1p/3p in my electric install that I can switch via a Shelly relay. So as a side effect every time I do a config change via OliveTin, the script checks the contactor state and sets the phases: parameter in evcc.yaml accordingly.
So here's the OliveTin configuration:
# There is a built-in micro proxy that will host the webui and REST API all on
# one port (this is called the "Single HTTP Frontend") and means you just need
# one open port in the container/firewalls/etc.
#
# Listen on all addresses available, port 1337
listenAddressSingleHTTPFrontend: 0.0.0.0:1337
# Choose from INFO (default), WARN and DEBUG
logLevel: "INFO"
# Actions (buttons) to show up on the WebUI:
actions:
- title: EVCC Konfigurieren
icon: "🚘"
arguments:
- name: mincurrent
title: Minimalstrom
choices:
- title: 6A
value: 6
- title: 7A
value: 7
- title: 8A
value: 8
- title: 9A
value: 9
- title: 10A
value: 10
- title: 11A
value: 11
- name: maxcurrent
title: Maximalstrom
choices:
- title: 16A
value: 16
- title: 21A
value: 21
- title: 32A
value: 32
timeout: 10
shell: |-
NUMPHA=$([ "$(curl --silent http://shelly-wallbox/status | jq -r .relays[0].ison)" = true ] && echo 3 || echo 1)
echo -n "Pases: "; curl -XPOST "http://localhost:7070/api/loadpoints/0/phases/${NUMPHA}" | jq .result
echo -n "Mincurrent: "; curl -XPOST "http://localhost:7070/api/loadpoints/0/mincurrent/{{mincurrent}}" | jq .result
echo -n "Maxcurrent: "; curl -XPOST "http://localhost:7070/api/loadpoints/0/maxcurrent/{{maxcurrent}}" | jq .result
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
EDIT: Simplified script and no restart necessary.
Hi,
I thought I'll share an extremely simple configuration frontend that I use to switch around some settings of EVCC that are not accessible through the regular EVCC GUI. The whole work is done by OliveTin and I've only put in a dumb script.
One specialty I have in my setup is that there's a contactor for 1p/3p in my electric install that I can switch via a Shelly relay. So as a side effect every time I do a config change via OliveTin, the script checks the contactor state and sets the
phases:
parameter in evcc.yaml accordingly.So here's the OliveTin configuration:
This is what it looks like in the browser:

Cheers
Alex
Beta Was this translation helpful? Give feedback.
All reactions