|
EnigmaIOT
0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
|
Go to the documentation of this file.
15 #if SUPPORT_HA_DISCOVERY
95 "button_short_release",
97 "button_long_release",
98 "button_double_press",
99 "button_triple_press",
100 "button_quadruple_press",
101 "button_quintuple_press"
133 capacity = JSON_OBJECT_SIZE (10) + 250;
179 (*entityConfig)[
ha_type] = type;
188 (*entityConfig)[
ha_type] = type;
218 static size_t getDiscoveryJson (
char* buffer,
size_t buflen,
const char* nodeName,
const char* networkName, DynamicJsonDocument* inputJSON);
222 #endif // SUPPORT_HA_DISCOVERY
224 #endif // _HA_TRIGGER_h
static const char * getTriggerSubtypeStr(int subtype)
Returns string that correspond with trigger subtype in ha_triggerSubtype_t format https://www....
void setPayload(const char *payload)
Optional payload to match the payload being sent over the topic https://www.home-assistant....
DynamicJsonDocument * entityConfig
JSON object to be sent to gateway.
Defines an entity for Home Assistant autodiscovery.
void setSubtype(const char *subtype)
Set trigger subtype as char string https://www.home-assistant.io/integrations/device_trigger....
void setSubtype(ha_triggerSubtype_t subtype)
Set trigger subtype as ha_triggerSubtype_t https://www.home-assistant.io/integrations/device_trigger....
static const char * ha_triggerTypeStr[]
size_t capacity
JSON object memory reservation length.
constexpr auto ha_subtype
constexpr auto ha_device_type
haDeviceType_t deviceType
HomeAssistant entity device type.
static size_t getDiscoveryJson(char *buffer, size_t buflen, const char *nodeName, const char *networkName, DynamicJsonDocument *inputJSON)
Allows Gateway to get Home Assistant discovery message using Trigger template.
void setType(const char *type)
Set trigger type as char string https://www.home-assistant.io/integrations/device_trigger....
HATrigger()
Trigger constructor.
static const char * getTriggerTypeStr(int type)
Returns string that correspond with trigger type in ha_triggerType_t format https://www....
static const char * ha_triggerSubtypeStr[]
void setType(ha_triggerType_t type)
Set trigger type as ha_triggerType_t https://www.home-assistant.io/integrations/device_trigger....