Skip to content

Class Mycila::HA::Outlet

ClassList > Mycila > HA > Outlet

  • #include <MycilaHADiscovery.h>

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

Public Attributes

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

std::string Mycila::HA::Outlet::commandTopic;

variable payloadOff

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

variable payloadOn

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

variable stateTopic

std::string Mycila::HA::Outlet::stateTopic;

variable valueTemplate

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

Public Functions Documentation

function Outlet [1/2]

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

function Outlet [2/2]

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

function toJson

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

Implements Mycila::HA::Component::toJson


function ~Outlet

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


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