'Connection Refused' when using DSMR template to integrate slimmelezer+
Describe the bug
I've used the template described here to integrate a Slimmelezer+ (wireless variant of the serial P1 reader)
i keep on getting a 'connection refused' error. in HA it's running fine, so my issue must be in evcc.yaml i think.
i'm using the latest version of EVCC. i've also read this thread which discusses the same issue but couldn't find an answer
I've shut down the HA integration when trying to connect from EVCC, same result. I've changed the port to the port that home assistant is talking to (6053) and then I get an IO timeout
Steps to reproduce
- check if Slimmelezer+ is sending data to HA 2.add DSMR template to evcc.yaml 3.change IP number, comment out the port 4.start up evcc add-on from HA ...
Configuration details
sponsortoken: *************
network:
# schema is the HTTP schema
# setting to `https` does not enable https, it only changes the way URLs are generated
schema: http
# host is the hostname or IP address
# if the host name contains a `.local` suffix, the name will be announced on MDNS
# docker: MDNS announcements don't work. host must be set to the docker host's name.
host: evcc.local
# port is the listening port for UI and api
# evcc will listen on all available interfaces
port: 7070
interval: 10s # control cycle interval
# database configuration for persisting charge sessions and settings
# database:
# type: sqlite
# dsn: <path-to-db-file>
# sponsor token enables optional features (request at https://sponsor.evcc.io)
# sponsortoken:
# telemetry enables aggregated statistics
#
# Telemetry allows collecting usage data (grid and green energy, charge power).
# Data is aggregated, no individual charging sessions are tracked. The collected,
# anonymous data can be retrieved using https://api.evcc.io.
#
# See https://github.com/evcc-io/evcc/pull/4343 or details.
#
# For time being, this is only available to sponsors, hence data is associated with
# the sponsor token's identity.
#
# telemetry: true
# log settings
log: info
levels:
site: debug
lp-1: debug
lp-2: debug
cache: error
db: error
meters:
- name: slimmelezer
type: template
template: dsmr
usage: grid
host: 10.10.10.46 # IP-Adresse oder Hostname
# port: 6053 # Port (Optional)
chargers:
- name: alfeneve
type: template # Wallbe charger
template: alfen
# Modbus TCP
modbus: tcpip
id: 1
host: 10.10.10.48 # Hostname
port: 502 # Port
site:
title: VA35 # display name for UI
meters:
grid: slimmelezer # grid meter
pv:
- pv # list of pv inverters/ meters
residualPower: 0 # additional household usage margin
prioritySoc: 0 # give home battery priority up to this soc (empty to disable)
bufferSoc: 0 # continue charging on battery above soc (0 to disable)
bufferStartSoc: 0 # start charging on battery above soc (0 to disable)
maxGridSupplyWhileBatteryCharging: 0 # ignore battery charging if AC consumption is above this value
smartCostLimit: 0 # set cost limit for automatic charging in PV mode
loadpoints:
- title: Oprit # display name for UI
charger: alfeneve # charger
meter: slimmelezer # charge meter
mode: "off" # set default charge mode, use "off" to disable by default if charger is publicly available
# vehicle: car1 # set default vehicle (disables vehicle detection)
resetOnDisconnect: true # set defaults when vehicle disconnects
phases: 3 # electrical connection (normal charger: default 3 for 3 phase, 1p3p charger: 0 for "auto" or 1/3 for fixed phases)
minCurrent: 6 # minimum charge current (default 6A)
maxCurrent: 32 # maximum charge current (default 16A)
Log details
sing config file: /config/evcc.yaml
starting evcc: 'EVCC_DATABASE_DSN=/data/evcc.db evcc --config /config/evcc.yaml'
[main ] INFO 2023/06/20 20:48:57 evcc 0.118.1
[main ] INFO 2023/06/20 20:48:57 using config file: /config/evcc.yaml
[main ] INFO 2023/06/20 20:48:57 starting ui and api at :7070
[main ] FATAL 2023/06/20 20:48:57 cannot create meter 'slimmelezer': cannot create meter 'template': cannot create meter 'dsmr': dial tcp 10.10.10.46:1502: connect: connection refused
[main ] FATAL 2023/06/20 20:48:57 will attempt restart in: 5m0s
What type of operating system are you running?
HomeAssistant Add-on
Version
0.118.1
dial tcp 10.10.10.46:1502: connect: connection refused
Nothing we can do about that :/ Is 1502 even the right port?
Hi @andig thanks for replying.
1502 is the port that is specified in the template, I did not configure it. I have understood that the DSMR template was specifically made for and tested on a Slimmelezer from zuidwijk.com, which is the P1 reader that I am using. I do mention in my post that I can see HA connecting to 6053. I already tested this port by setting it in evcc.yaml but then I get an IO timeout.
I do not know your meter and without logfile can't say anything about the timeout.
Hi @andig ,
I might be incorrect but I don't think you need to worry about what type of meter I have exactly. you are talking to my P1 reader, Slimmelezer+. the data you need is always on the same address (in this post you say which one) since it's the DSMR format. and in this post it is confirmed that the template you created works with the Slimmelezer P1 reader.
as for the logs, I changed the config again to get evcc to talk to 6053 instead of the port you configured in the DSMR template, this is the logs that I get:
Using config file: /config/evcc.yaml
starting evcc: 'EVCC_DATABASE_DSN=/data/evcc.db evcc --config /config/evcc.yaml'
[main ] INFO 2023/06/20 22:24:15 evcc 0.118.1
[main ] INFO 2023/06/20 22:24:15 using config file: /config/evcc.yaml
[main ] INFO 2023/06/20 22:24:15 starting ui and api at :7070
[main ] FATAL 2023/06/20 22:24:33 cannot create meter 'slimmelezer': cannot create meter 'template': cannot create meter 'dsmr': i/o timeout
[main ] FATAL 2023/06/20 22:24:33 will attempt restart in: 5m0s
I'm running it as an HA add-on and because the container shuts down right after running into this error, it's hard to sh into it and run evcc in debug mode. any tips there?
thanks again L
From the bug Formular:
NOTE if you're using HomeAssistant or Docker we ask you to reproduce the problem on plain Linux or Windows first.
So try if it works from you PC and turn debug level up.
i/o timeout
Is just that- device doesn't send data in expected time. Default is 15s, maybe try higher value?
From the bug Formular:
NOTE if you're using HomeAssistant or Docker we ask you to reproduce the problem on plain Linux or Windows first.
So try if it works from you PC and turn debug level up.
thanks for that, sorry i missed it
i/o timeout
Is just that- device doesn't send data in expected time. Default is 15s, maybe try higher value?
okay, where can i set the timeout value? it isn't mentioned here
and also, can anyone please confirm what the port is supposed to be? 1502 of 6053?
I do not know your meter and without logfile can't say anything about the timeout.
here is the output when running evcc --log trace and the port set to 6053
C:\Users\stere\Downloads\evcc_0.118.1_windows-amd64>evcc.exe --log trace
[main ] INFO 2023/06/21 19:46:19 evcc 0.118.1
[main ] INFO 2023/06/21 19:46:19 using config file: C:\Users\stere\Downloads\evcc_0.118.1_windows-amd64\evcc.yaml
[main ] INFO 2023/06/21 19:46:19 starting ui and api at :7070
[main ] FATAL 2023/06/21 19:46:44 cannot create meter 'slimmelezer': cannot create meter 'template': cannot create meter 'dsmr': i/o timeout
[main ] FATAL 2023/06/21 19:46:44 will attempt restart in: 5m0s
here is the output when running evcc --log trace and the port set to 1502
C:\Users\stere\Downloads\evcc_0.118.1_windows-amd64>evcc.exe --log trace
[main ] INFO 2023/06/21 19:48:09 evcc 0.118.1
[main ] INFO 2023/06/21 19:48:09 using config file: C:\Users\stere\Downloads\evcc_0.118.1_windows-amd64\evcc.yaml
[main ] INFO 2023/06/21 19:48:09 starting ui and api at :7070
[main ] FATAL 2023/06/21 19:48:11 cannot create meter 'slimmelezer': cannot create meter 'template': cannot create meter 'dsmr': dial tcp 10.10.10.46:1502: connectex: No connection could be made because the target machine actively refused it.
[main ] FATAL 2023/06/21 19:48:11 will attempt restart in: 5m0s
I don't see any additional information in these traces...
hi guys, I'm still stuck. is there anyone in here who has managed to get the slimmelezer+ to work with evcc?
Dear EVCC community, can anyone help me out here? I'm at the end of my wits and I'll I don't see any other option than abondoning this project entirely if I can get this to work
Looks like you are using a template that is no designed for this type of product.
I wouldn't say that but nobody knows why that meter doesn't answer or even which port it should answer on. Nothing we could do.
Maybe try other firmware? 🤷🏻♂️ https://www.zuidwijk.com/using-esp-link/
Looks like you are using a template that is no designed for this type of product.
it looks like that, but this thread it says that the DSMR template was designed for Slimmelezer+
what can I do to use the data from the P1 slimmelezer+ into evcc if I can't use that template? I have the data in HA, can I publish them to mqtt and then read them again with evcc? is that the best option?
Maybe try other firmware? 🤷🏻♂️ https://www.zuidwijk.com/using-esp-link/
can someone (andig?) just confirm what the DSMR template was tested on?
P1 Reader Ethernet https://www.zuidwijk.com/product/p1-reader-ethernet/
P1 Reader Ethernet https://www.zuidwijk.com/product/p1-reader-ethernet/
thanks for confirming that. I have the wireless version, slimmelezer+ https://www.zuidwijk.com/product/slimmelezer-plus/
@andig should it work for that one too?
No, it's something different.
@andig can you add support for slimmelezer+ or do I need to find a different solution?