|
EnigmaIOT
0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
|
Go to the documentation of this file.
14 #if SUPPORT_HA_DISCOVERY
127 capacity = JSON_OBJECT_SIZE (10) + 250;
210 static size_t getDiscoveryJson (
char* buffer,
size_t buflen,
const char* nodeName,
const char* networkName, DynamicJsonDocument* inputJSON);
221 #endif // SUPPORT_HA_DISCOVERY
223 #endif // _HA_COVER_h
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 Cover template.
void setStateOpening(const char *payload)
The payload that represents the opening state https://www.home-assistant.io/integrations/cover....
DynamicJsonDocument * entityConfig
JSON object to be sent to gateway.
void setStateClosing(const char *payload)
The payload that represents the closing state https://www.home-assistant.io/integrations/cover....
Defines an entity for Home Assistant autodiscovery.
void setPayloadClose(const char *payload)
The command payload that closes the cover https://www.home-assistant.io/integrations/cover....
size_t capacity
JSON object memory reservation length.
void setPayloadOpen(const char *payload)
The command payload that opens the cover https://www.home-assistant.io/integrations/cover....
static String deviceClassStr(haCoverClass_t sensorClass)
Gets binary sensor class name from haCoverClass_t https://www.home-assistant.io/integrations/cover....
void setDeviceClass(haCoverClass_t devClass)
Define cover class as haCoverClass_t
void setPayloadStop(const char *payload)
The command payload that stops the cover https://www.home-assistant.io/integrations/cover....
constexpr auto ha_device_type
haDeviceType_t deviceType
HomeAssistant entity device type.
HACover()
Cover constructor.
void setPayloadGoto(const char *payload)
The command that moves the cover to specific position.
void setStateStopped(const char *payload)
The payload that represents the stopped state https://www.home-assistant.io/integrations/cover....
void setStateOpen(const char *payload)
The payload that represents the open state https://www.home-assistant.io/integrations/cover....
void setStateClosed(const char *payload)
The payload that represents the closed state https://www.home-assistant.io/integrations/cover....