ESPHome
2026.11.0-dev
Loading...
Searching...
No Matches
esphome
components
ecocomfort2
ecocomfort2_fan.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/defines.h
"
4
#ifdef USE_ESP32
5
6
#include "
esphome/core/component.h
"
7
#include "
esphome/components/fan/fan.h
"
8
#include "
ecocomfort2_child.h
"
9
#include "
ecocomfort2_hub.h
"
10
11
namespace
esphome::ecocomfort2
{
12
13
class
Ecocomfort2Fan
:
public
fan::Fan
,
public
Ecocomfort2Client
,
public
Component
{
14
public
:
15
void
setup
()
override
;
16
void
dump_config
()
override
;
17
fan::FanTraits
get_traits
()
override
;
18
void
on_status
()
override
;
19
20
protected
:
21
void
control
(
const
fan::FanCall
&
call
)
override
;
22
};
23
24
}
// namespace esphome::ecocomfort2
25
26
#endif
// USE_ESP32
esphome::Component
Definition
component.h:147
esphome::Component::call
void call()
Definition
component.cpp:148
esphome::ecocomfort2::Ecocomfort2Client
Definition
ecocomfort2_child.h:12
esphome::ecocomfort2::Ecocomfort2Fan
Definition
ecocomfort2_fan.h:13
esphome::ecocomfort2::Ecocomfort2Fan::on_status
void on_status() override
Definition
ecocomfort2_fan.cpp:106
esphome::ecocomfort2::Ecocomfort2Fan::setup
void setup() override
Definition
ecocomfort2_fan.cpp:47
esphome::ecocomfort2::Ecocomfort2Fan::control
void control(const fan::FanCall &call) override
Definition
ecocomfort2_fan.cpp:69
esphome::ecocomfort2::Ecocomfort2Fan::dump_config
void dump_config() override
Definition
ecocomfort2_fan.cpp:59
esphome::ecocomfort2::Ecocomfort2Fan::get_traits
fan::FanTraits get_traits() override
Definition
ecocomfort2_fan.cpp:61
esphome::fan::FanCall
Definition
fan.h:37
esphome::fan::Fan
Definition
fan.h:107
esphome::fan::FanTraits
Definition
fan_traits.h:12
component.h
defines.h
ecocomfort2_child.h
ecocomfort2_hub.h
fan.h
esphome::ecocomfort2
Definition
ecocomfort2_child.h:8
Generated by
1.12.0