Skip to content

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

See 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

See 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

const char* Mycila::HA::Light::brightnessCommandTemplate;

variable brightnessCommandTopic

std::string Mycila::HA::Light::brightnessCommandTopic;

variable brightnessScale

std::optional<int> Mycila::HA::Light::brightnessScale;

variable brightnessStateTopic

std::string Mycila::HA::Light::brightnessStateTopic;

variable brightnessValueTemplate

const char* Mycila::HA::Light::brightnessValueTemplate;

variable colorModeStateTopic

std::string Mycila::HA::Light::colorModeStateTopic;

variable colorModeValueTemplate

const char* Mycila::HA::Light::colorModeValueTemplate;

variable colorTempCommandTemplate

const char* Mycila::HA::Light::colorTempCommandTemplate;

variable colorTempCommandTopic

std::string Mycila::HA::Light::colorTempCommandTopic;

variable colorTempKelvin

std::optional<bool> Mycila::HA::Light::colorTempKelvin;

variable colorTempStateTopic

std::string Mycila::HA::Light::colorTempStateTopic;

variable colorTempValueTemplate

const char* Mycila::HA::Light::colorTempValueTemplate;

variable commandTopic

std::string Mycila::HA::Light::commandTopic;

variable effectCommandTemplate

const char* Mycila::HA::Light::effectCommandTemplate;

variable effectCommandTopic

std::string Mycila::HA::Light::effectCommandTopic;

variable effectList

std::vector<const char*> Mycila::HA::Light::effectList;

variable effectStateTopic

std::string Mycila::HA::Light::effectStateTopic;

variable effectValueTemplate

const char* Mycila::HA::Light::effectValueTemplate;

variable hsCommandTemplate

const char* Mycila::HA::Light::hsCommandTemplate;

variable hsCommandTopic

std::string Mycila::HA::Light::hsCommandTopic;

variable hsStateTopic

std::string Mycila::HA::Light::hsStateTopic;

variable hsValueTemplate

const char* Mycila::HA::Light::hsValueTemplate;

variable maxKelvin

std::optional<int> Mycila::HA::Light::maxKelvin;

variable maxMireds

std::optional<int> Mycila::HA::Light::maxMireds;

variable minKelvin

std::optional<int> Mycila::HA::Light::minKelvin;

variable minMireds

std::optional<int> Mycila::HA::Light::minMireds;

variable onCommandType

const char* Mycila::HA::Light::onCommandType;

variable payloadOff

const char* Mycila::HA::Light::payloadOff;

variable payloadOn

const char* Mycila::HA::Light::payloadOn;

variable rgbCommandTemplate

const char* Mycila::HA::Light::rgbCommandTemplate;

variable rgbCommandTopic

std::string Mycila::HA::Light::rgbCommandTopic;

variable rgbStateTopic

std::string Mycila::HA::Light::rgbStateTopic;

variable rgbValueTemplate

const char* Mycila::HA::Light::rgbValueTemplate;

variable rgbwCommandTemplate

const char* Mycila::HA::Light::rgbwCommandTemplate;

variable rgbwCommandTopic

std::string Mycila::HA::Light::rgbwCommandTopic;

variable rgbwStateTopic

std::string Mycila::HA::Light::rgbwStateTopic;

variable rgbwValueTemplate

const char* Mycila::HA::Light::rgbwValueTemplate;

variable rgbwwCommandTemplate

const char* Mycila::HA::Light::rgbwwCommandTemplate;

variable rgbwwCommandTopic

std::string Mycila::HA::Light::rgbwwCommandTopic;

variable rgbwwStateTopic

std::string Mycila::HA::Light::rgbwwStateTopic;

variable rgbwwValueTemplate

const char* Mycila::HA::Light::rgbwwValueTemplate;

variable stateTopic

std::string Mycila::HA::Light::stateTopic;

variable stateValueTemplate

const char* Mycila::HA::Light::stateValueTemplate;

variable whiteCommandTopic

std::string Mycila::HA::Light::whiteCommandTopic;

variable whiteScale

std::optional<int> Mycila::HA::Light::whiteScale;

variable xyCommandTemplate

const char* Mycila::HA::Light::xyCommandTemplate;

variable xyCommandTopic

std::string Mycila::HA::Light::xyCommandTopic;

variable xyStateTopic

std::string Mycila::HA::Light::xyStateTopic;

variable xyValueTemplate

const char* Mycila::HA::Light::xyValueTemplate;

Public Functions Documentation

function Light [1/2]

inline explicit Mycila::HA::Light::Light (
    std::string id
) 

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

inline virtual void Mycila::HA::Light::toJson (
    const JsonObject & root
) override

Implements Mycila::HA::Component::toJson


function ~Light

virtual Mycila::HA::Light::~Light () = default


The documentation for this class was generated from the following file src/MycilaHADiscovery.h