ESPHome
2026.5.0b1
Loading...
Searching...
No Matches
esphome
components
opentherm
switch
opentherm_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::opentherm
{
8
9
class
OpenthermSwitch
:
public
switch_::Switch
,
public
Component
{
10
protected
:
11
void
write_state
(
bool
state
)
override
;
12
13
public
:
14
void
setup
()
override
;
15
void
dump_config
()
override
;
16
};
17
18
}
// namespace esphome::opentherm
esphome::Component
Definition
component.h:145
esphome::opentherm::OpenthermSwitch
Definition
opentherm_switch.h:9
esphome::opentherm::OpenthermSwitch::dump_config
void dump_config() override
Definition
opentherm_switch.cpp:21
esphome::opentherm::OpenthermSwitch::setup
void setup() override
Definition
opentherm_switch.cpp:9
esphome::opentherm::OpenthermSwitch::write_state
void write_state(bool state) override
Definition
opentherm_switch.cpp:7
esphome::switch_::Switch
Base class for all switches.
Definition
switch.h:38
esphome::switch_::Switch::state
bool state
The current reported state of the binary sensor.
Definition
switch.h:55
component.h
log.h
esphome::opentherm
Definition
automation.h:7
switch.h
Generated by
1.12.0