Class Mycila::HA::Lock¶
ClassList > Mycila > HA > Lock
#include <MycilaHADiscovery.h>
Inherits the following classes: Mycila::HA::Component
Public Attributes¶
| Type | Name |
|---|---|
| const char * | codeFormat = nullptr |
| const char * | commandTemplate = nullptr |
| std::string | commandTopic |
| const char * | payloadLock = nullptr |
| const char * | payloadOpen = nullptr |
| const char * | payloadReset = nullptr |
| const char * | payloadUnlock = nullptr |
| const char * | stateJammed = nullptr |
| const char * | stateLocked = nullptr |
| const char * | stateLocking = nullptr |
| std::string | stateTopic |
| const char * | stateUnlocked = nullptr |
| const char * | stateUnlocking = nullptr |
| 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 |
|---|---|
| Lock (std::string id) |
|
| Lock (std::string id, std::string name, std::string commandTopic, const char * icon=nullptr, const Category category=Category::NONE) |
|
| virtual void | toJson (const JsonObject & root) override |
| virtual | ~Lock () = 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 codeFormat¶
variable commandTemplate¶
variable commandTopic¶
variable payloadLock¶
variable payloadOpen¶
variable payloadReset¶
variable payloadUnlock¶
variable stateJammed¶
variable stateLocked¶
variable stateLocking¶
variable stateTopic¶
variable stateUnlocked¶
variable stateUnlocking¶
variable valueTemplate¶
Public Functions Documentation¶
function Lock [1/2]¶
function Lock [2/2]¶
inline Mycila::HA::Lock::Lock (
std::string id,
std::string name,
std::string commandTopic,
const char * icon=nullptr,
const Category category=Category::NONE
)
function toJson¶
Implements Mycila::HA::Component::toJson
function ~Lock¶
The documentation for this class was generated from the following file src/MycilaHADiscovery.h