HAMQTT 0.1.0
ESP-IDF component for integrating devices with Home Assistant over MQTT
|
Configuration parameters for a HAMQTT button. More...
#include <hamqtt_button.h>
Public Member Functions | |
HAMQTT_Button_Config | hamqtt_button_config_default (void) |
Returns a default-initialized button configuration. |
Public Attributes | |
char * | device_class |
The class of the button, which alters how its state and icon is rendered. | |
bool | enabled_by_default |
Set to false if the button should not be enabled when the button is first added. | |
char * | entity_picture |
URL to a picture for the button. | |
char * | icon |
Icon for the button. | |
char * | name |
The name of the button shown in Home Assistant. | |
char * | unique_id |
Unique identifier used for discovery in Home Assistant. |
Configuration parameters for a HAMQTT button.
HAMQTT_Button_Config hamqtt_button_config_default | ( | void | ) |
Returns a default-initialized button configuration.
Caller is still responsible for assigning unique_id
char* HAMQTT_Button_Config::device_class |
The class of the button, which alters how its state and icon is rendered.
char* HAMQTT_Button_Config::entity_picture |
URL to a picture for the button.
char* HAMQTT_Button_Config::icon |
Icon for the button.