-
Describe the bugI've setup EVCC on my local docker host, it works fine when I try to access it through my local IP. If I wait a moment, I then get connected for a moment, and then disconnected. I've other container also using websocket(through SignalR), and I've no issue with them through traefik. Steps to reproduce
EVCC Docker config:
EVCC traefik config(only traefik part):
Configuration detailsmeters:
- name: my_grid
type: template
template: enphase
usage: grid
host: 192.168.0.196 # IP address or hostname
token: X.Y.Z-A
- name: my_pv
type: template
template: enphase
usage: pv
host: 192.168.0.196 # IP address or hostname
token: X.Y.Z-A
tariffs:
currency: CHF
grid:
type: fixed
price: 0.3252 # EUR/kWh (default)
zones:
- days: Mo-So
hours: 21-0
price: 0.2216 # EUR/kWh (weekdays 2-6 hours)
- days: Mo-So
hours: 0-7
price: 0.2216 # EUR/kWh (weekdays 2-6 hours)
chargers:
- name: charger_1
type: custom
enable:
source: js
vm: shared
script: |
logState();
var lp = state.loadpoints[0];
lp.enabled = enable;
enable;
out:
- name: enable
type: bool
config:
source: js
vm: shared
script: |
if (enable) lp.chargepower = lp.maxcurrent * 230 * lp.phases; else lp.chargepower = 0;
enabled:
source: js
vm: shared
script: |
state.loadpoints[0].enabled;
status:
source: js
vm: shared
script: |
if (state.loadpoints[0].enabled) "C"; else "B";
maxcurrent:
source: js
vm: shared
script: |
logState();
var lp = state.loadpoints[0];
lp.maxcurrent = maxcurrent;
if (lp.enabled) lp.chargepower = lp.maxcurrent * 230 * lp.phases; else lp.chargepower = 0;
vehicles:
- name: vehicle_1
title: blauer e-Golf
type: custom
soc:
source: js
vm: shared
script: |
var lp = state.loadpoints[0];
if (lp.chargepower > 0) lp.vehicleSoc+=0.1; else lp.vehicleSoc-=0.1;
if (lp.vehicleSoc < 15) lp.vehicleSoc = 80;
if (lp.vehicleSoc > 80) lp.vehicleSoc = 15;
lp.vehicleSoc;
range:
source: js
vm: shared
script: |
var lp = state.loadpoints[0]
var range = (44 * lp.vehicleSoc) / 15;
range
capacity: 44
- name: vehicle_2
title: weißes Model 3
type: custom
soc:
source: js
vm: shared
script: |
var lp = state.loadpoints[1];
if (lp.chargepower > 0) lp.vehicleSoc++; else lp.vehicleSoc--;
if (lp.vehicleSoc < 15) lp.vehicleSoc = 75;
if (lp.vehicleSoc > 75) lp.vehicleSoc = 15;
lp.vehicleSoc;
range:
source: js
vm: shared
script: |
var lp = state.loadpoints[1]
var range = (80 * lp.vehicleSoc) / 17;
range
status:
source: js
vm: shared
script: |
"B"
capacity: 80
limitsoc:
source: const
value: 90
site:
title: Maison
meters:
grid: my_grid
pv: my_pv
loadpoints:
- title: Couvert
charger: charger_1
mode: pv
vehicle: vehicle_1 Log details
What type of operating system or environment does evcc run on?Docker container Nightly build
Version0.132.0 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
It's unclear how this issue relates to evcc. Converting to discussion. |
Beta Was this translation helpful? Give feedback.
-
I use also traefik for evcc. My evcc is not running inside docker. No problem with websockets. |
Beta Was this translation helpful? Give feedback.
-
I have a similar setup with the same problem. Connecting directly via SSH forward works, so it's an issue with traefik. Setting the traefik log level to debug shows the following error:
|
Beta Was this translation helpful? Give feedback.
I have a similar setup with the same problem. Connecting directly via SSH forward works, so it's an issue with traefik. Setting the traefik log level to debug shows the following error: