Warn when status needs be re-synced due to charger not being controllable (#441)

This commit is contained in:
andig 2020-11-16 14:53:08 +01:00 • committed by GitHub
parent 1bc6a661e4
commit 24db2aabf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -160,7 +160,7 @@ Charger is responsible for handling EV state and adjusting charge current. Avail
- `keba`: KEBA KeContact P20/P30 and BMW chargers (see [Preparation](#keba-preparation))
- `mcc`: Mobile Charger Connect devices (Audi, Bentley, Porsche)
- `openWB`: openWB chargers using openWB's MQTT interface
- `phoenix-emcp`: chargers with Phoenix EM-CP-PP-ETH controllers like the ESL Walli (Ethernet connection).
- `phoenix-emcp`: chargers with Phoenix EM-CP-PP-ETH controllers like the ESL Walli (Ethernet connection, see [Preparation](#phoenix-em-cp-preparation)).
- `phoenix-evcc`: chargers with Phoenix EV-CC-AC1-M controllers (ModBus connection)
- `nrgkick-bluetooth`: NRGkick chargers with Bluetooth connector (Linux only, not supported on Docker)
- `nrgkick-connect`: NRGkick chargers with additional NRGkick Connect module
@ -172,7 +172,11 @@ Configuration examples are documented at [andig/evcc-config#chargers](https://gi
#### KEBA preparation
KEBA chargers require UDP function to be enabled with DIP switch 1.3 = `ON`, see KEBA installation manual.
KEBA chargers require UDP function to be enabled with DIP 1.3 = `ON`, see KEBA installation manual.
#### Phoenix EM-CP preparation
The EM-CP controller requires DIP 10 = `ON` be controlled by ModBus, see controller manual.
#### Wallbe preparation

View file

@ -90,7 +90,7 @@ func (lp *ChargerHandler) Prepare() {
func (lp *ChargerHandler) SyncEnabled() {
enabled, err := lp.charger.Enabled()
if err == nil && enabled != lp.enabled {
lp.log.DEBUG.Printf("sync enabled state to %s", status[lp.enabled])
lp.log.WARN.Printf("sync enabled state to %s", status[lp.enabled])
err = lp.charger.Enable(lp.enabled)
}