4#if defined(USE_ESP32) && defined(USE_ZIGBEE) && defined(USE_NUMBER)
14 explicit FlagGuard(
bool &flag) : flag_(flag) { this->flag_ =
true; }
15 ~FlagGuard() { this->flag_ =
false; }
16 FlagGuard(
const FlagGuard &) =
delete;
17 FlagGuard &operator=(
const FlagGuard &) =
delete;
34 EZB_ZCL_ATTR_ANALOG_OUTPUT_MIN_PRESENT_VALUE_ID, 0, EZB_ZCL_ATTR_TYPE_SINGLE, 0,
37 EZB_ZCL_ATTR_ANALOG_OUTPUT_MAX_PRESENT_VALUE_ID, 0, EZB_ZCL_ATTR_TYPE_SINGLE, 0,
55 if (attribute.data.type == this->attr_type() && attribute.data.value) {
56 const float incoming_value = *
static_cast<float *
>(attribute.data.value);
57 this->
value_ = incoming_value;
NumberCall & set_value(float value)
void add_on_state_callback(F &&callback)
float get_min_value() const
float get_max_value() const
void set_attr(const T &value)
void add_attr(uint8_t attr_access, T value)
void add_attr(ZigbeeAttributeInterface *attr, uint8_t endpoint_id, uint16_t cluster_id, uint8_t role, uint16_t attr_id, uint8_t max_size, uint8_t attr_type, uint8_t attr_access, T value)
bool synchronizing_from_zigbee_
void on_value(ezb_zcl_attribute_t attribute) override
ESPHOME_LOG_TAG(TAG, "zigbee.time")