Changes to availability topic

This commit is contained in:
Philip Johansson 2020-07-15 12:14:19 +02:00
parent 469af4820e
commit f5ea07c90a
2 changed files with 3 additions and 1 deletions

View File

@ -64,6 +64,8 @@ Adjust the name and topics to suite your configuration
state_topic: light/bedlamp/relay/0
command_topic: light/bedlamp/relay/0/set
availability_topic: light/bedlamp/status
payload_available: 1
payload_not_available: 0
brightness: true
rgb: true
```

View File

@ -138,7 +138,7 @@ void mqttPublishState()
myLed.get().c_str());
mqttClient.publish(
config.getMqttTopic(Config::MqttTopic::AvailabilityTopic).c_str(),
"online");
"1");
}
}