ESPHome
2026.1.4
Loading...
Searching...
No Matches
esphome
components
zigbee
automation.h
Go to the documentation of this file.
1
#pragma once
2
#include "
esphome/core/defines.h
"
3
#ifdef USE_ZIGBEE
4
#ifdef USE_NRF52
5
#include "
zigbee_zephyr.h
"
6
#endif
7
namespace
esphome::zigbee
{
8
9
template
<
typename
... Ts>
class
FactoryResetAction
:
public
Action
<Ts...>,
public
Parented
<ZigbeeComponent> {
10
public
:
11
void
play
(
const
Ts &...
x
)
override
{ this->
parent_
->factory_reset(); }
12
};
13
14
}
// namespace esphome::zigbee
15
16
#endif
esphome::Action
Definition
automation.h:264
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1246
esphome::Parented< ZigbeeComponent >::parent_
ZigbeeComponent * parent_
Definition
helpers.h:1257
esphome::zigbee::FactoryResetAction
Definition
automation.h:9
esphome::zigbee::FactoryResetAction::play
void play(const Ts &...x) override
Definition
automation.h:11
defines.h
esphome::zigbee
Definition
automation.h:7
x
uint16_t x
Definition
tt21100.cpp:5
zigbee_zephyr.h
Generated by
1.12.0