Class Mycila::HA::Cover¶
ClassList > Mycila > HA > Cover
#include <MycilaHADiscovery.h>
Inherits the following classes: Mycila::HA::Component
Public Attributes¶
| Type | Name |
|---|---|
| std::string | commandTopic |
| const char * | payloadClose = nullptr |
| const char * | payloadOpen = nullptr |
| const char * | payloadStop = nullptr |
| const char * | payloadStopTilt = nullptr |
| std::optional< int > | positionClosed |
| std::optional< int > | positionOpen |
| const char * | positionTemplate = nullptr |
| std::string | positionTopic |
| const char * | setPositionTemplate = nullptr |
| std::string | setPositionTopic |
| const char * | stateClosed = nullptr |
| const char * | stateClosing = nullptr |
| const char * | stateOpen = nullptr |
| const char * | stateOpening = nullptr |
| const char * | stateStopped = nullptr |
| std::string | stateTopic |
| std::optional< int > | tiltClosedValue |
| const char * | tiltCommandTemplate = nullptr |
| std::string | tiltCommandTopic |
| std::optional< int > | tiltMax |
| std::optional< int > | tiltMin |
| std::optional< int > | tiltOpenedValue |
| const char * | tiltStatusTemplate = nullptr |
| std::string | tiltStatusTopic |
| const char * | valueTemplate = nullptr |
Public Attributes inherited from Mycila::HA::Component¶
| Type | Name |
|---|---|
| const char * | availabilityTemplate = nullptr |
| std::string | availabilityTopic |
| Category | category |
| std::string | configTopic |
| std::string | defaultEntityId |
| const char * | deviceClass |
| std::optional< bool > | enabledByDefault |
| const char * | icon |
| std::string | id |
| std::string | name |
| const char * | payloadAvailable = nullptr |
| const char * | payloadNotAvailable = nullptr |
| const char * | type |
| std::string | uniqueId |
| bool | useDeviceAvailability = true |
Public Functions¶
| Type | Name |
|---|---|
| Cover (std::string id) |
|
| Cover (std::string id, std::string name, const char * deviceClass=nullptr, const char * icon=nullptr, const Category category=Category::NONE) |
|
| virtual void | toJson (const JsonObject & root) override |
| virtual | ~Cover () = default |
Public Functions inherited from Mycila::HA::Component¶
| Type | Name |
|---|---|
| Component (const char * type, std::string id, std::string name, const char * deviceClass=nullptr, const char * icon=nullptr, const Category category=Category::NONE) |
|
| Component (const char * type, std::string id) |
|
| virtual void | toJson (const JsonObject & root) |
| virtual | ~Component () = default |
Public Attributes Documentation¶
variable commandTopic¶
variable payloadClose¶
variable payloadOpen¶
variable payloadStop¶
variable payloadStopTilt¶
variable positionClosed¶
variable positionOpen¶
variable positionTemplate¶
variable positionTopic¶
variable setPositionTemplate¶
variable setPositionTopic¶
variable stateClosed¶
variable stateClosing¶
variable stateOpen¶
variable stateOpening¶
variable stateStopped¶
variable stateTopic¶
variable tiltClosedValue¶
variable tiltCommandTemplate¶
variable tiltCommandTopic¶
variable tiltMax¶
variable tiltMin¶
variable tiltOpenedValue¶
variable tiltStatusTemplate¶
variable tiltStatusTopic¶
variable valueTemplate¶
Public Functions Documentation¶
function Cover [1/2]¶
function Cover [2/2]¶
inline Mycila::HA::Cover::Cover (
std::string id,
std::string name,
const char * deviceClass=nullptr,
const char * icon=nullptr,
const Category category=Category::NONE
)
function toJson¶
Implements Mycila::HA::Component::toJson
function ~Cover¶
The documentation for this class was generated from the following file src/MycilaHADiscovery.h