ESPHome
2024.12.2
esphome
esphome
components
opentherm
switch
switch.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/switch/switch.h
"
5
#include "
esphome/core/log.h
"
6
7
namespace
esphome
{
8
namespace
opentherm {
9
10
class
OpenthermSwitch
:
public
switch_::Switch
,
public
Component
{
11
protected
:
12
void
write_state
(
bool
state
)
override
;
13
14
public
:
15
void
setup
()
override
;
16
void
dump_config
()
override
;
17
};
18
19
}
// namespace opentherm
20
}
// namespace esphome
esphome::switch_::Switch
Base class for all switches.
Definition:
switch.h:39
esphome::opentherm::OpenthermSwitch::dump_config
void dump_config() override
Definition:
switch.cpp:22
switch.h
esphome::Component
Definition:
component.h:68
esphome::opentherm::OpenthermSwitch::write_state
void write_state(bool state) override
Definition:
switch.cpp:8
esphome::opentherm::OpenthermSwitch
Definition:
switch.h:10
esphome::opentherm::OpenthermSwitch::setup
void setup() override
Definition:
switch.cpp:10
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
log.h
esphome::switch_::Switch::state
bool state
The current reported state of the binary sensor.
Definition:
switch.h:53
Generated by
1.8.13