ESPHome
2026.5.0b1
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_ESP32
5
#include "
zigbee_esp32.h
"
6
#endif
7
#ifdef USE_NRF52
8
#include "
zigbee_zephyr.h
"
9
#endif
10
namespace
esphome::zigbee
{
11
12
template
<
typename
... Ts>
class
FactoryResetAction
:
public
Action
<Ts...>,
public
Parented
<ZigbeeComponent> {
13
public
:
14
void
play
(
const
Ts &...
x
)
override
{ this->
parent_
->factory_reset(); }
15
};
16
17
}
// namespace esphome::zigbee
18
19
#endif
esphome::Action
Definition
automation.h:508
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1861
esphome::Parented< ZigbeeComponent >::parent_
ZigbeeComponent * parent_
Definition
helpers.h:1872
esphome::zigbee::FactoryResetAction
Definition
automation.h:12
esphome::zigbee::FactoryResetAction::play
void play(const Ts &...x) override
Definition
automation.h:14
defines.h
esphome::zigbee
Definition
automation.h:10
x
uint16_t x
Definition
tt21100.cpp:5
zigbee_esp32.h
zigbee_zephyr.h
Generated by
1.12.0