ESPHome
2025.5.0
Loading...
Searching...
No Matches
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::Component
Definition
component.h:70
esphome::opentherm::OpenthermSwitch
Definition
switch.h:10
esphome::opentherm::OpenthermSwitch::dump_config
void dump_config() override
Definition
switch.cpp:22
esphome::opentherm::OpenthermSwitch::setup
void setup() override
Definition
switch.cpp:10
esphome::opentherm::OpenthermSwitch::write_state
void write_state(bool state) override
Definition
switch.cpp:8
esphome::switch_::Switch
Base class for all switches.
Definition
switch.h:39
esphome::switch_::Switch::state
bool state
The current reported state of the binary sensor.
Definition
switch.h:53
component.h
log.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
switch.h
Generated by
1.12.0