Skip to content

Class Mycila::HA::Date

ClassList > Mycila > HA > Date

  • #include <MycilaHADiscovery.h>

Inherits the following classes: Mycila::HA::Component

Public Attributes

Type Name
const char * commandTemplate = nullptr
std::string commandTopic
std::string stateTopic
const char * valueTemplate = 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
Date (std::string id)
Date (std::string id, std::string name, std::string commandTopic, std::string stateTopic, const char * icon=nullptr, const Category category=Category::NONE)
virtual void toJson (const JsonObject & root) override
virtual ~Date () = 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 commandTemplate

const char* Mycila::HA::Date::commandTemplate;

variable commandTopic

std::string Mycila::HA::Date::commandTopic;

variable stateTopic

std::string Mycila::HA::Date::stateTopic;

variable valueTemplate

const char* Mycila::HA::Date::valueTemplate;

Public Functions Documentation

function Date [1/2]

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

function Date [2/2]

inline Mycila::HA::Date::Date (
    std::string id,
    std::string name,
    std::string commandTopic,
    std::string stateTopic,
    const char * icon=nullptr,
    const Category category=Category::NONE
) 

function toJson

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

Implements Mycila::HA::Component::toJson


function ~Date

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


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