OpenWB: fix enable/disable
This commit is contained in:
parent
ad0211e9c6
commit
e019112489
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue