Class Mycila::HA::Light¶
ClassList > Mycila > HA > Light
#include <MycilaHADiscovery.h>
Inherits the following classes: Mycila::HA::Component
Public Attributes¶
| Type | Name |
|---|---|
| const char * | brightnessCommandTemplate = nullptr |
| std::string | brightnessCommandTopic |
| std::optional< int > | brightnessScale |
| std::string | brightnessStateTopic |
| const char * | brightnessValueTemplate = nullptr |
| std::string | colorModeStateTopic |
| const char * | colorModeValueTemplate = nullptr |
| const char * | colorTempCommandTemplate = nullptr |
| std::string | colorTempCommandTopic |
| std::optional< bool > | colorTempKelvin |
| std::string | colorTempStateTopic |
| const char * | colorTempValueTemplate = nullptr |
| std::string | commandTopic |
| const char * | effectCommandTemplate = nullptr |
| std::string | effectCommandTopic |
| std::vector< const char * > | effectList |
| std::string | effectStateTopic |
| const char * | effectValueTemplate = nullptr |
| const char * | hsCommandTemplate = nullptr |
| std::string | hsCommandTopic |
| std::string | hsStateTopic |
| const char * | hsValueTemplate = nullptr |
| std::optional< int > | maxKelvin |
| std::optional< int > | maxMireds |
| std::optional< int > | minKelvin |
| std::optional< int > | minMireds |
| const char * | onCommandType = nullptr |
| const char * | payloadOff = nullptr |
| const char * | payloadOn = nullptr |
| const char * | rgbCommandTemplate = nullptr |
| std::string | rgbCommandTopic |
| std::string | rgbStateTopic |
| const char * | rgbValueTemplate = nullptr |
| const char * | rgbwCommandTemplate = nullptr |
| std::string | rgbwCommandTopic |
| std::string | rgbwStateTopic |
| const char * | rgbwValueTemplate = nullptr |
| const char * | rgbwwCommandTemplate = nullptr |
| std::string | rgbwwCommandTopic |
| std::string | rgbwwStateTopic |
| const char * | rgbwwValueTemplate = nullptr |
| std::string | stateTopic |
| const char * | stateValueTemplate = nullptr |
| std::string | whiteCommandTopic |
| std::optional< int > | whiteScale |
| const char * | xyCommandTemplate = nullptr |
| std::string | xyCommandTopic |
| std::string | xyStateTopic |
| const char * | xyValueTemplate = 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 |
|---|---|
| Light (std::string id) |
|
| Light (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 | ~Light () = 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 brightnessCommandTemplate¶
variable brightnessCommandTopic¶
variable brightnessScale¶
variable brightnessStateTopic¶
variable brightnessValueTemplate¶
variable colorModeStateTopic¶
variable colorModeValueTemplate¶
variable colorTempCommandTemplate¶
variable colorTempCommandTopic¶
variable colorTempKelvin¶
variable colorTempStateTopic¶
variable colorTempValueTemplate¶
variable commandTopic¶
variable effectCommandTemplate¶
variable effectCommandTopic¶
variable effectList¶
variable effectStateTopic¶
variable effectValueTemplate¶
variable hsCommandTemplate¶
variable hsCommandTopic¶
variable hsStateTopic¶
variable hsValueTemplate¶
variable maxKelvin¶
variable maxMireds¶
variable minKelvin¶
variable minMireds¶
variable onCommandType¶
variable payloadOff¶
variable payloadOn¶
variable rgbCommandTemplate¶
variable rgbCommandTopic¶
variable rgbStateTopic¶
variable rgbValueTemplate¶
variable rgbwCommandTemplate¶
variable rgbwCommandTopic¶
variable rgbwStateTopic¶
variable rgbwValueTemplate¶
variable rgbwwCommandTemplate¶
variable rgbwwCommandTopic¶
variable rgbwwStateTopic¶
variable rgbwwValueTemplate¶
variable stateTopic¶
variable stateValueTemplate¶
variable whiteCommandTopic¶
variable whiteScale¶
variable xyCommandTemplate¶
variable xyCommandTopic¶
variable xyStateTopic¶
variable xyValueTemplate¶
Public Functions Documentation¶
function Light [1/2]¶
function Light [2/2]¶
inline Mycila::HA::Light::Light (
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 ~Light¶
The documentation for this class was generated from the following file src/MycilaHADiscovery.h