Changes to availability topic
This commit is contained in:
parent
469af4820e
commit
f5ea07c90a
@ -64,6 +64,8 @@ Adjust the name and topics to suite your configuration
|
|||||||
state_topic: light/bedlamp/relay/0
|
state_topic: light/bedlamp/relay/0
|
||||||
command_topic: light/bedlamp/relay/0/set
|
command_topic: light/bedlamp/relay/0/set
|
||||||
availability_topic: light/bedlamp/status
|
availability_topic: light/bedlamp/status
|
||||||
|
payload_available: 1
|
||||||
|
payload_not_available: 0
|
||||||
brightness: true
|
brightness: true
|
||||||
rgb: true
|
rgb: true
|
||||||
```
|
```
|
@ -138,7 +138,7 @@ void mqttPublishState()
|
|||||||
myLed.get().c_str());
|
myLed.get().c_str());
|
||||||
mqttClient.publish(
|
mqttClient.publish(
|
||||||
config.getMqttTopic(Config::MqttTopic::AvailabilityTopic).c_str(),
|
config.getMqttTopic(Config::MqttTopic::AvailabilityTopic).c_str(),
|
||||||
"online");
|
"1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user