|
JBHaMqttDiscovery
|
Configuration for a Home Assistant MQTT Discovery button. More...
#include <HaDiscovery.h>
Public Attributes | |
| HaEntityCommon | common |
| const char * | command_topic_override = nullptr |
| Optional override for command_topic. | |
| const char * | payload_press = nullptr |
| Optional payload to trigger the button (default "PRESS" if nullptr). | |
Configuration for a Home Assistant MQTT Discovery button.
A button is a stateless entity that triggers an action when a payload is published to its command topic.
| const char* HaButtonConfig::command_topic_override = nullptr |
Optional override for command_topic.
If nullptr, the default topic scheme is used: <baseTopicPrefix>/<node_id>/<object_id>/set.