From 2b85f92a0e88677a88fc474ae31a64b5350f7829 Mon Sep 17 00:00:00 2001 From: ok1bpn <85903326+ok1bpn@users.noreply.github.com> Date: Wed, 2 Oct 2024 08:41:19 +0200 Subject: [PATCH] Update const.py Correction of very likely copu-paste error. EV Charger mode has 3 statuses Manual - manually can be switched ON regardless of any other Auto - automatic mode, charger starts charging when enough solar power is available Scheduled - accordingly to defined scheduled window it switch on charger ON - similar to manul mode, solar power availability is irrelevant. --- custom_components/victron/const.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/custom_components/victron/const.py b/custom_components/victron/const.py index bd19267..ecfa0f9 100644 --- a/custom_components/victron/const.py +++ b/custom_components/victron/const.py @@ -999,10 +999,12 @@ class generator_error(Enum): "evcharger_productid": RegisterInfo(3800, UINT16) } +# *** correction by OK1BPN class evcharger_mode(Enum): - AC_INPUT_1 = 0 - AC_OUTPUT = 1 - AC_INPUT_2 = 2 + MANUAL = 0 + AUTO = 1 + SCHEDULED = 2 +# *** end of correction class evcharger_status(Enum): DISCONNECTED = 0