Pulsares: guest vehicle reported as connected even if there is none
Describe the bug
Using evcc v0.122.1 on Home Asisstent (not verified on diferent system) reports a connected vehicle.
even if no one is connected!
Steps to reproduce
1.start evcc, and wait 2.start evcc, connect car e.g. Zoe, disconnect car, wait
pulsares wallbox is V3 software. Sleep disabled. connected via wafeshare rs485 to eth gateway. Connectione verified, current is changing in PV mode.
Configuration details
# open evcc at http://evcc.local:7070
network:
schema: http
host: evcc.local # .local suffix announces the hostname on MDNS
port: 7070
log: debug
levels:
cache: error
# unique installation id
plant: yy
interval: 30s # control cycle interval war 10
# mqtt message broker
mqtt:
broker: 192.168.yy:1883
topic: evcc # root topic for publishing, set empty to disable
user:
password:
meters:
- name: grid1
type: custom
power: #Power # default value, optionally override # Leistung (W)
source: mqtt
topic: Solax/gridimport
timeout: 70s
scale: -1
energy: #Sum # default value, optionally override # Energiemenge (kWh)
source: mqtt
topic: Solax/grid_energy #
timeout: 70s
scale: -1
- name: pv # Leistung PV
type: custom
power:
source: mqtt
topic: Solax/pvleistung
timeout: 70s
- name: battery
type: custom
capacity: 11 # Akkukapazität in kWh # Optional
power:
source: mqtt
topic: Solax/batterieladung
timeout: 70s
scale: -1
soc: # Batterie SOC (%)
source: mqtt
topic: Solax/batterysoc
chargers:
- name: my_charger
type: template
template: pulsares
# RS485 via TCP/IP (Modbus RTU)
modbus: tcpip #rs485tcpip
id: 2
host: 192.168.xx.yy # Hostname
port: yy # Port
vehicles:
- type: template
template: renault
title: Zoe
user: yyy
password: yyy
vin:
capacity: 50
phases: 3
name: ev4
- type: template
template: bmw
title: x3
user: xxx
password: xxx
vin:
capacity: 11
phases: 1
name: ev5
loadpoints:
- title: Garage
charger: my_charger
mode: pv
phases: 1
mincurrent: 6
maxcurrent: 16
resetOnDisconnect: true
site:
title: Mein Zuhause
meters:
grid: grid1
pv:
- pv
battery:
- battery
Log details
not yet avaiable
What type of operating system are you running?
HomeAssistant Add-on
Version
0.122.1
We need the output of
evcc charger
For this case. Closing until available.
I moved the setup to a debian PC: kai@debian:~$ evcc charger [main ] INFO 2023/11/18 18:39:42 evcc 0.122.1 [main ] INFO 2023/11/18 18:39:42 using config file: /home/kai/evcc.yaml [db ] INFO 2023/11/18 18:39:42 using sqlite database: /home/kai/.evcc/evcc.db [mqtt ] INFO 2023/11/18 18:39:42 connecting evcc-879769307 at tcp://192.168.13.30:1883 [mqtt ] DEBUG 2023/11/18 18:39:42 tcp://192.168.13.30:1883 connected Charge status: B Enabled: false
evcc -c evcc.yaml kommen diese ausgaben: [site ] DEBUG 2023/11/18 18:47:53 ---- [lp-1 ] DEBUG 2023/11/18 18:47:53 charge power: 0W [site ] DEBUG 2023/11/18 18:47:53 pv power: 0W [site ] DEBUG 2023/11/18 18:47:53 battery soc: 15% [site ] DEBUG 2023/11/18 18:47:53 battery power: 858W [site ] DEBUG 2023/11/18 18:47:53 grid power: -0W [site ] DEBUG 2023/11/18 18:47:53 site power: 858W [lp-1 ] DEBUG 2023/11/18 18:47:53 charger status: B [main ] DEBUG 2023/11/18 18:47:53 vehicle status: A (Zoe) [main ] DEBUG 2023/11/18 18:47:53 vehicle status: A (x3) [lp-1 ] DEBUG 2023/11/18 18:47:53 pv charge current: 0A = 0A + -3.73A (858W @ 1p)
Bitte lesbar formatieren. Danke 🙏
kai@debian:~$ evcc charger
[main ] INFO 2023/11/18 19:55:50 evcc 0.122.1
[main ] INFO 2023/11/18 19:55:50 using config file: /home/kai/evcc.yaml
[db ] INFO 2023/11/18 19:55:50 using sqlite database: /home/kai/.evcc/evcc.db
[db ] TRACE 2023/11/18 19:55:50 SELECT count() FROM sqlite_master WHERE type='table' AND name="settings" -1 settings LIMIT 1 -1 settings 11 configs LIMIT 1 -1 config_details LIMIT 1 -1 fk_configs_details%" OR sql LIKE "%CONSTRAINT [fk_configs_details]%" OR sql LIKE "%CONSTRAINT fk_configs_details %") -1 fk_devices_details%" OR sql LIKE "%CONSTRAINT [fk_devices_details]%" OR sql LIKE "%CONSTRAINT fk_devices_details %") -1 device_id%" OR sql LIKE "%[device_id]%" OR sql LIKE "% device_id %") -1 configs WHERE configs.class = 1 ORDER BY id 0
sorry, so besser
[pulsares] TRACE 2023/11/18 19:25:26 modbus: send 00 14 00 00 00 06 02 03 00 1f 00 01
[pulsares] TRACE 2023/11/18 19:25:26 modbus: recv 00 14 00 00 00 05 02 03 02 00 01
[lp-1 ] DEBUG 2023/11/18 19:25:26 charger status: B
Hier kommt aus Register 1F eine 1, was bedeutet, dass der Ladevorgang aktuell gesperrt ist. Für die Info bezüglich Fahrzeug an- oder abgesteckt ist Register 1B notwendig. Siehe: https://www.pulsares.shop/medien/dokumente/Modbus_Map_EV_EasyCharge.pdf
Charge status: B Enabled: false
Stimmt doch, oder? 1 ist Status B1. Verbunden, keine Ladefreigabe.
Aus meiner Sicht ist es durch mein szenario dazu gekommen das in der Wallbox der Status Ladestecker und der Status Ladevorgang out of sync sind. Der Ladestecker ist zweifelsfrei abgezogen, somit stimmt Status Ladestecker(1d). Da kein Stecker somit auch kein Ladevorgang. Somit müsste die WB den status in Status Ladevorgang (1f) auf 0 zurücksetzen, auch wenn ladestrom auf 0 ist.
Allerding dürfte evcc auch robuster sein und auch den Status Ladestecker auswerten. Nur was ist dann richtig der Status Ladestecker (1d) oder der Status Ladevorgang (1f)
Ich sehe hier die WB software in der besseren situation den Fehler zu vermeiden.
@Manu7788 @premultiply bitte PR anschauen. Ich denke das war einfach völlig falsch?
Ich habe nur gesehen wie ich die evcc version auf nighly umstellen kann, sagt bescheid sobald die änderung dort testbar sein sollte. Dann mache ich das gerne.
Ich denke da hat es einen Bug in der Firmware. Die Implementierung war eigentlich einfach und richtig (nach Doku).
Testted with nighly build, now OK. Pulsares will improve documentation.
Ich denke da hat es einen Bug in der Firmware. Die Implementierung war eigentlich einfach und richtig (nach Doku).
Der Zustand 0 (Modbus-Map) war schlecht von mir formuliert und hat für Missverständnis gesorgt. Werd ich bei dem nächsten Update anpassen.