Closed jomach closed 3 months ago
This is all in the eebus packages, this is not part of evcc. You should not need a retry, this rather also hints at a problem of the wallbox.
I would really recommend getting it to run without a container in the first place. Because you are adding to much complexity and possible error scenarios.
Looking at the log (using macOS) in the first post:
When starting evcc the wallbox does NOT announce itself via mDNS
After 90s evcc stopps working as no connection could be established
After another 30s suddenly the mDNS announcement was published by the wallbox
The eebus stack tried to initiate a connection, and NONE worked
At the same time the wallbox initiated a connection, and only that worked
But as evcc stopped its main code, it does not function properly!
Overall: your setup does not run properly outside of a container as well.
Can it be that I need to connect the box via ehternet instead of cable ? It does not make much sense....
This is all in the eebus packages, this is not part of evcc. You should not need a retry, this rather also hints at a problem of the wallbox.
I would really recommend getting it to run without a container in the first place. Because you are adding to much complexity and possible error scenarios.
Looking at the log (using macOS) in the first post:
- When starting evcc the wallbox does NOT announce itself via mDNS
- After 90s evcc stopps working as no connection could be established
- After another 30s suddenly the mDNS announcement was published by the wallbox
- The eebus stack tried to initiate a connection, and NONE worked
- At the same time the wallbox initiated a connection, and only that worked
- But as evcc stopped its main code, it does not function properly!
Overall: your setup does not run properly outside of a container as well.
Hallo @DerAndereAndi, so I tried today with the new version with evcc and eebus in trace mode. I think the failure that you observed on the working instance is normal. The explanation for it is that I first started evcc and then I started the binding process over the wallbox app. Today I did the binding and restarted evcc and here are the logs:
[main ] INFO 2024/07/29 13:46:10 evcc 0.129.0
[main ] INFO 2024/07/29 13:46:10 using config file: evcc.yaml
[db ] INFO 2024/07/29 13:46:10 using sqlite database: /Users/jorge/.evcc/evcc.db
[mqtt ] INFO 2024/07/29 13:46:10 connecting evcc-556441454 at tcp://homeassistant.local:1883
[eebus ] INFO 2024/07/29 13:46:10 Local SKI: 9a46bcb42045efb7a5f449a89482621ca87eb4dc
[mqtt ] DEBUG 2024/07/29 13:46:10 tcp://homeassistant.local:1883 connected
[eebus ] DEBUG 2024/07/29 13:46:11 starting websocket server on :4712
[eebus ] DEBUG 2024/07/29 13:46:11 mdns: announce
[eebus ] DEBUG 2024/07/29 13:46:11 mdns: using zeroconf
[eebus ] DEBUG 2024/07/29 13:46:11 mdns: start search
[main ] INFO 2024/07/29 13:46:11 listening at :7070
[eebus ] DEBUG 2024/07/29 13:46:11 incoming connection request from a9cfa5fac0e5631cb87f09ce726103519eff0fa6
[eebus ] DEBUG 2024/07/29 13:46:11 ski a9cfa5fac0e5631cb87f09ce726103519eff0fa6 connected
[eebus ] DEBUG 2024/07/29 13:46:11 Send: read 1 NodeManagementDetailedDiscoveryData
[eebus ] DEBUG 2024/07/29 13:46:11 Recv: d:_i:47859_EVBox-Livo-EVB-500-015-503:NodeManagement to NodeManagement read 64 NodeManagementDetailedDiscoveryData
[eebus ] DEBUG 2024/07/29 13:46:11 Send: d:_i:47859_EVBox-Livo-EVB-500-015-503 reply 2 64 NodeManagementDetailedDiscoveryData
[eebus ] DEBUG 2024/07/29 13:46:12 Recv: d:_i:47859_EVBox-Livo-EVB-500-015-503:NodeManagement to NodeManagement reply 66 1 NodeManagementDetailedDiscoveryData
[eebus ] DEBUG 2024/07/29 13:46:12 Send: d:_i:47859_EVBox-Livo-EVB-500-015-503 call 3 NodeManagementSubscriptionRequestCall
[eebus ] DEBUG 2024/07/29 13:46:12 Send: d:_i:47859_EVBox-Livo-EVB-500-015-503 read 4 NodeManagementUseCaseData
[eebus ] DEBUG 2024/07/29 13:46:12 cs-lpc: 0 DeviceDiagnosis Server found
[eebus ] DEBUG 2024/07/29 13:46:12 cs-lpp: 0 DeviceDiagnosis Server found
[eebus ] DEBUG 2024/07/29 13:46:12 Send: d:_i:47859_EVBox-Livo-EVB-500-015-503 read 5 DeviceClassificationManufacturerData
[eebus ] DEBUG 2024/07/29 13:46:12 Send: d:_i:47859_EVBox-Livo-EVB-500-015-503 read 6 DeviceDiagnosisStateData
[eebus ] DEBUG 2024/07/29 13:46:12 ski a9cfa5fac0e5631cb87f09ce726103519eff0fa6 event cem-evsecc-EvseConnected
[eebus ] DEBUG 2024/07/29 13:46:12 Recv: d:_i:47859_EVBox-Livo-EVB-500-015-503:NodeManagement to NodeManagement call 68 NodeManagementSubscriptionRequestCall
[eebus ] DEBUG 2024/07/29 13:46:12 Send: d:_i:47859_EVBox-Livo-EVB-500-015-503 result 7 68 ResultData 0
[eebus ] DEBUG 2024/07/29 13:46:12 Recv: d:_i:47859_EVBox-Livo-EVB-500-015-503:NodeManagement to NodeManagement result 70 3 ResultData 0
[eebus ] DEBUG 2024/07/29 13:46:12 Recv: d:_i:47859_EVBox-Livo-EVB-500-015-503:NodeManagement to NodeManagement reply 72 4 NodeManagementUseCaseData
[eebus ] DEBUG 2024/07/29 13:46:12 ski a9cfa5fac0e5631cb87f09ce726103519eff0fa6 event cem-evsecc-UseCaseSupportUpdate
[eebus ] DEBUG 2024/07/29 13:46:12 Recv: d:_i:47859_EVBox-Livo-EVB-500-015-503:NodeManagement to NodeManagement read 76 NodeManagementDetailedDiscoveryData
[eebus ] DEBUG 2024/07/29 13:46:12 Send: d:_i:47859_EVBox-Livo-EVB-500-015-503 reply 8 76 NodeManagementDetailedDiscoveryData
[eebus ] DEBUG 2024/07/29 13:46:12 Recv: d:_i:47859_EVBox-Livo-EVB-500-015-503:NodeManagement to NodeManagement read 78 NodeManagementDestinationListData
[eebus ] DEBUG 2024/07/29 13:46:12 Send: d:_i:47859_EVBox-Livo-EVB-500-015-503 reply 9 78 NodeManagementDestinationListData
[eebus ] DEBUG 2024/07/29 13:46:13 Recv: d:_i:47859_EVBox-Livo-EVB-500-015-503:NodeManagement to NodeManagement read 80 NodeManagementUseCaseData
[eebus ] DEBUG 2024/07/29 13:46:13 Send: d:_i:47859_EVBox-Livo-EVB-500-015-503 reply 10 80 NodeManagementUseCaseData
[eebus ] DEBUG 2024/07/29 13:46:13 Recv: d:_i:47859_EVBox-Livo-EVB-500-015-503:DeviceClassification to DeviceClassification reply 82 5 DeviceClassificationManufacturerData
[eebus ] DEBUG 2024/07/29 13:46:13 ski a9cfa5fac0e5631cb87f09ce726103519eff0fa6 event cem-evsecc-DataUpdateManufacturerData
[eebus ] DEBUG 2024/07/29 13:46:13 Recv: d:_i:47859_EVBox-Livo-EVB-500-015-503:DeviceDiagnosis to DeviceDiagnosis reply 84 6 DeviceDiagnosisStateData
[eebus ] DEBUG 2024/07/29 13:46:13 ski a9cfa5fac0e5631cb87f09ce726103519eff0fa6 event cem-evsecc-DataUpdateOperatingState
[site ] INFO 2024/07/29 13:46:13 site config:
[site ] INFO 2024/07/29 13:46:13 meters: grid ✓ pv ✓ battery ✗
[site ] INFO 2024/07/29 13:46:13 grid: power ✓ energy ✓ currents ✓
[site ] INFO 2024/07/29 13:46:13 pv 1: power ✓ energy ✓ currents ✓
[site ] INFO 2024/07/29 13:46:13 vehicles:
[site ] INFO 2024/07/29 13:46:13 vehicle 1: range ✓ finish ✓ status ✓ climate ✗ wakeup ✓
[lp-1 ] INFO 2024/07/29 13:46:13 loadpoint 1:
[lp-1 ] INFO 2024/07/29 13:46:13 mode: pv
[lp-1 ] INFO 2024/07/29 13:46:13 charger: power ✓ energy ✗ currents ✓ phases ✗ wakeup ✗
[lp-1 ] INFO 2024/07/29 13:46:13 meters: charge ✓
[lp-1 ] INFO 2024/07/29 13:46:13 charge: power ✓ energy ✗ currents ✓
[lp-1 ] DEBUG 2024/07/29 13:46:13 !! active phases: 3p = min(0p measured 0p vehicle 3p physical 0p charger)
[lp-1 ] DEBUG 2024/07/29 13:46:13 phase timer inactive
[lp-1 ] DEBUG 2024/07/29 13:46:13 pv timer inactive
[lp-1 ] INFO 2024/07/29 13:46:13 vehicle updated: unknown -> MG
[lp-1 ] DEBUG 2024/07/29 13:46:13 set charge mode: pv
[lp-1 ] DEBUG 2024/07/29 13:46:13 !! active phases: 3p = min(0p measured 3p vehicle 3p physical 0p charger)
[site ] DEBUG 2024/07/29 13:46:13 ----
[lp-1 ] DEBUG 2024/07/29 13:46:13 charge power: 0W
[lp-1 ] DEBUG 2024/07/29 13:46:13 charge currents: [0 0 0]A
[site ] DEBUG 2024/07/29 13:46:13 pv power: 8254W
[site ] DEBUG 2024/07/29 13:46:13 grid meter: -8404W
[site ] DEBUG 2024/07/29 13:46:13 grid powers: [-3084 -2688 -2633]W
[site ] DEBUG 2024/07/29 13:46:13 grid currents: [-13.1 -11.3 -10.9]A
[site ] DEBUG 2024/07/29 13:46:13 site power: -8404W
[eebus ] DEBUG 2024/07/29 13:46:15 ski: a9cfa5fac0e5631cb87f09ce726103519eff0fa6 name: Livo-EVB-500-015-503 brand: EVBox model: Livo typ: ChargingStation identifier: EVBox-Livo-EVB-500-015-503 register: false host: EVB-500-015-503.local. port: 4712 addresses: [192.168.1.219]
[site ] DEBUG 2024/07/29 13:46:43 ----
Seems to me everything fine locally. Can it be that on hassio we have a issue with ipv6 ?
After hours of debugging I found the issue. The MDNS was exposing 5 hosts for the same container.
You need to add the following config so that it only advertises one IP
eebus:
URI: 192.168.1.216:4712
interfaces:
- end0
I will add the charger to the docs
Maybe better enrich the documentation for https://docs.evcc.io/docs/reference/configuration/eebus#interfaces
@goebelmeier habe es verbessert mit was ich könnte. Freue mich drauf
Hey, I got the eebus connection working locally on my mac for the evvc. When I try the same config inside of my hass then I do not get the log:
[eebus ] DEBUG 2024/07/15 13:35:20 incoming connection request from a9cfa5fac0e5631cb87f09ce726103519eXXXXX
I think the the wallbox cannot reach the evvc inside of hass due to the containers.
Logs from a working installation Local on my mac:
Logs from HA:
See the missing line "incoming connection request" on the ha logs ?