JBHaMqttDiscovery
Loading...
Searching...
No Matches
HaButtonConfig Struct Reference

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).

Detailed Description

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.

Member Data Documentation

◆ command_topic_override

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.


The documentation for this struct was generated from the following file: