Skip to content

Class Mycila::HA::Fan

ClassList > Mycila > HA > Fan

  • #include <MycilaHADiscovery.h>

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

Public Attributes

Type Name
const char * commandTemplate = nullptr
std::string commandTopic
const char * directionCommandTemplate = nullptr
std::string directionCommandTopic
std::string directionStateTopic
const char * directionValueTemplate = nullptr
const char * oscillationCommandTemplate = nullptr
std::string oscillationCommandTopic
std::string oscillationStateTopic
const char * oscillationValueTemplate = nullptr
const char * payloadOff = nullptr
const char * payloadOn = nullptr
const char * payloadOscillationOff = nullptr
const char * payloadOscillationOn = nullptr
const char * payloadResetPercentage = nullptr
const char * payloadResetPresetMode = nullptr
const char * percentageCommandTemplate = nullptr
std::string percentageCommandTopic
std::string percentageStateTopic
const char * percentageValueTemplate = nullptr
const char * presetModeCommandTemplate = nullptr
std::string presetModeCommandTopic
std::string presetModeStateTopic
const char * presetModeValueTemplate = nullptr
std::vector< const char * > presetModes
std::optional< int > speedRangeMax
std::optional< int > speedRangeMin
std::string stateTopic
const char * stateValueTemplate = 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
Fan (std::string id)
Fan (std::string id, std::string name, const char * icon=nullptr, const Category category=Category::NONE)
virtual void toJson (const JsonObject & root) override
virtual ~Fan () = 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::Fan::commandTemplate;

variable commandTopic

std::string Mycila::HA::Fan::commandTopic;

variable directionCommandTemplate

const char* Mycila::HA::Fan::directionCommandTemplate;

variable directionCommandTopic

std::string Mycila::HA::Fan::directionCommandTopic;

variable directionStateTopic

std::string Mycila::HA::Fan::directionStateTopic;

variable directionValueTemplate

const char* Mycila::HA::Fan::directionValueTemplate;

variable oscillationCommandTemplate

const char* Mycila::HA::Fan::oscillationCommandTemplate;

variable oscillationCommandTopic

std::string Mycila::HA::Fan::oscillationCommandTopic;

variable oscillationStateTopic

std::string Mycila::HA::Fan::oscillationStateTopic;

variable oscillationValueTemplate

const char* Mycila::HA::Fan::oscillationValueTemplate;

variable payloadOff

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

variable payloadOn

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

variable payloadOscillationOff

const char* Mycila::HA::Fan::payloadOscillationOff;

variable payloadOscillationOn

const char* Mycila::HA::Fan::payloadOscillationOn;

variable payloadResetPercentage

const char* Mycila::HA::Fan::payloadResetPercentage;

variable payloadResetPresetMode

const char* Mycila::HA::Fan::payloadResetPresetMode;

variable percentageCommandTemplate

const char* Mycila::HA::Fan::percentageCommandTemplate;

variable percentageCommandTopic

std::string Mycila::HA::Fan::percentageCommandTopic;

variable percentageStateTopic

std::string Mycila::HA::Fan::percentageStateTopic;

variable percentageValueTemplate

const char* Mycila::HA::Fan::percentageValueTemplate;

variable presetModeCommandTemplate

const char* Mycila::HA::Fan::presetModeCommandTemplate;

variable presetModeCommandTopic

std::string Mycila::HA::Fan::presetModeCommandTopic;

variable presetModeStateTopic

std::string Mycila::HA::Fan::presetModeStateTopic;

variable presetModeValueTemplate

const char* Mycila::HA::Fan::presetModeValueTemplate;

variable presetModes

std::vector<const char*> Mycila::HA::Fan::presetModes;

variable speedRangeMax

std::optional<int> Mycila::HA::Fan::speedRangeMax;

variable speedRangeMin

std::optional<int> Mycila::HA::Fan::speedRangeMin;

variable stateTopic

std::string Mycila::HA::Fan::stateTopic;

variable stateValueTemplate

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

Public Functions Documentation

function Fan [1/2]

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

function Fan [2/2]

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

function toJson

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

Implements Mycila::HA::Component::toJson


function ~Fan

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


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