diff --git a/charger/openwb.go b/charger/openwb.go index 01c3c248f..0e719fe7a 100644 --- a/charger/openwb.go +++ b/charger/openwb.go @@ -99,7 +99,7 @@ func NewOpenWB(log *util.Logger, mqttconf mqtt.Config, id int, topic string, p1p // setters enableS := provider.NewMqtt(log, client, fmt.Sprintf("%s/set/lp%d/%s", topic, id, openwb.EnabledTopic), - 1, timeout).BoolSetter("enable") + 1, timeout).WithPayload("${enable:%d}").BoolSetter("enable") maxcurrentS := provider.NewMqtt(log, client, fmt.Sprintf("%s/set/lp%d/%s", topic, id, openwb.MaxCurrentTopic), 1, timeout).IntSetter("maxcurrent")