|
JBHaMqttDiscovery
|
Configuration for a Home Assistant MQTT Discovery switch. More...
#include <HaDiscovery.h>
Public Attributes | |
| HaEntityCommon | common |
| const char * | command_topic_override = nullptr |
| Optional override for command_topic. | |
| const char * | payload_on = nullptr |
| Payload representing ON state/command (default "ON" if nullptr). | |
| const char * | payload_off = nullptr |
| Payload representing OFF state/command (default "OFF" if nullptr). | |
Configuration for a Home Assistant MQTT Discovery switch.
| const char* HaSwitchConfig::command_topic_override = nullptr |
Optional override for command_topic.
If nullptr, the default topic scheme is used: <baseTopicPrefix>/<node_id>/<object_id>/set.