Class Mycila::HA::Valve¶
ClassList > Mycila > HA > Valve
#include <MycilaHADiscovery.h>
Inherits the following classes: Mycila::HA::Component
Public Attributes¶
| Type | Name |
|---|---|
| const char * | commandTemplate = nullptr |
| std::string | commandTopic |
| const char * | payloadClose = nullptr |
| const char * | payloadOpen = nullptr |
| const char * | payloadStop = nullptr |
| std::optional< int > | positionClosed |
| std::optional< int > | positionOpen |
| std::optional< bool > | reportsPosition |
| const char * | stateClosed = nullptr |
| const char * | stateClosing = nullptr |
| const char * | stateOpen = nullptr |
| const char * | stateOpening = nullptr |
| std::string | stateTopic |
| 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 |
|---|---|
| Valve (std::string id) |
|
| Valve (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 | ~Valve () = 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 commandTemplate¶
variable commandTopic¶
variable payloadClose¶
variable payloadOpen¶
variable payloadStop¶
variable positionClosed¶
variable positionOpen¶
variable reportsPosition¶
variable stateClosed¶
variable stateClosing¶
variable stateOpen¶
variable stateOpening¶
variable stateTopic¶
variable valueTemplate¶
Public Functions Documentation¶
function Valve [1/2]¶
function Valve [2/2]¶
inline Mycila::HA::Valve::Valve (
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 ~Valve¶
The documentation for this class was generated from the following file src/MycilaHADiscovery.h