Skip to content

Class Mycila::HA::Notify

ClassList > Mycila > HA > Notify

  • #include <MycilaHADiscovery.h>

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

Public Attributes

Type Name
const char * commandTemplate = nullptr
std::string commandTopic

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

variable commandTopic

std::string Mycila::HA::Notify::commandTopic;

Public Functions Documentation

function Notify [1/2]

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

function Notify [2/2]

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

function toJson

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

Implements Mycila::HA::Component::toJson


function ~Notify

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


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