From 9ed40dcef8de7166a77c59d87c4693da5bdee7b5 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 6 Jan 2025 19:03:22 +0100 Subject: [PATCH] EEBus: make device code configurable (#18083) --- server/eebus/types.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/server/eebus/types.go b/server/eebus/types.go index 6ad124803..1da233e5e 100644 --- a/server/eebus/types.go +++ b/server/eebus/types.go @@ -1,11 +1,15 @@ package eebus +import "github.com/evcc-io/evcc/util" + const ( - BrandName string = "EVCC" - Model string = "HEMS" - DeviceCode string = "EVCC_HEMS_01" // used as common name in cert generation + BrandName string = "EVCC" + Model string = "HEMS" ) +// used as common name in cert generation +var DeviceCode = util.Getenv("EEBUS_DEVICE_CODE", "EVCC_HEMS_01") + type Config struct { URI string ShipID string