ESPHome
2026.6.0-dev
Loading...
Searching...
No Matches
esphome
components
at581x
switch
rf_switch.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/switch/switch.h
"
4
#include "
../at581x.h
"
5
6
namespace
esphome::at581x
{
7
8
class
RFSwitch
:
public
switch_::Switch
,
public
Parented
<AT581XComponent> {
9
protected
:
10
void
write_state
(
bool
state
)
override
;
11
};
12
13
}
// namespace esphome::at581x
at581x.h
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1861
esphome::at581x::RFSwitch
Definition
rf_switch.h:8
esphome::at581x::RFSwitch::write_state
void write_state(bool state) override
Definition
rf_switch.cpp:5
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
esphome::at581x
Definition
at581x.cpp:52
switch.h
Generated by
1.12.0