Class Mycila::HA::Siren¶
ClassList > Mycila > HA > Siren
#include <MycilaHADiscovery.h>
Inherits the following classes: Mycila::HA::Component
Public Attributes¶
| Type | Name |
|---|---|
| std::vector< const char * > | availableTones |
| const char * | commandOffTemplate = nullptr |
| const char * | commandTemplate = nullptr |
| std::string | commandTopic |
| const char * | payloadOff = nullptr |
| const char * | payloadOn = nullptr |
| const char * | stateOff = nullptr |
| const char * | stateOn = nullptr |
| std::string | stateTopic |
| const char * | stateValueTemplate = nullptr |
| std::optional< bool > | supportDuration |
| std::optional< bool > | supportVolumeSet |
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 |
|---|---|
| Siren (std::string id) |
|
| Siren (std::string id, std::string name, const char * icon=nullptr, const Category category=Category::NONE) |
|
| virtual void | toJson (const JsonObject & root) override |
| virtual | ~Siren () = 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 availableTones¶
variable commandOffTemplate¶
variable commandTemplate¶
variable commandTopic¶
variable payloadOff¶
variable payloadOn¶
variable stateOff¶
variable stateOn¶
variable stateTopic¶
variable stateValueTemplate¶
variable supportDuration¶
variable supportVolumeSet¶
Public Functions Documentation¶
function Siren [1/2]¶
function Siren [2/2]¶
inline Mycila::HA::Siren::Siren (
std::string id,
std::string name,
const char * icon=nullptr,
const Category category=Category::NONE
)
function toJson¶
Implements Mycila::HA::Component::toJson
function ~Siren¶
The documentation for this class was generated from the following file src/MycilaHADiscovery.h