12#include "esp_zigbee_core.h"
18#ifdef USE_BINARY_SENSOR
33 uint8_t
attr_type,
float scale, uint8_t max_size)
43 template<
typename T>
void add_attr(T value);
45 template<
typename T>
void set_attr(
const T &value);
51#ifdef USE_BINARY_SENSOR
82 *
static_cast<T *
>(this->
value_p_) = value;
92#ifdef USE_BINARY_SENSOR
void enable_loop()
Enable this component's loop.
void add_on_state_callback(F &&callback)
Base class for all binary_sensor-type classes.
Base-class for all sensors.
void add_on_state_callback(F &&callback)
Add a callback that will be called every time a filtered value arrives.
esp_zb_zcl_reporting_info_t get_reporting_info()
void report_(bool has_lock)
void connect(sensor::Sensor *sensor)
ZigbeeAttribute(ZigbeeComponent *parent, uint8_t endpoint_id, uint16_t cluster_id, uint8_t role, uint16_t attr_id, uint8_t attr_type, float scale, uint8_t max_size)
void set_attr(const T &value)
void set_report(bool force)
void add_attr(ZigbeeAttribute *attr, uint8_t endpoint_id, uint16_t cluster_id, uint8_t role, uint16_t attr_id, uint8_t max_size, T value)
@ ZIGBEE_REPORT_COORDINATOR