I have configured a Thermostat endpoint (8).
When I change the occupied heating temperature in the Smartthings app, I get the following message on the console of the ESP32-H2 module:
Code: Select all
[316724][V][ZigbeeHandlers.cpp:37] zb_attribute_set_handler(): Received message: endpoint(8), cluster(0x201), attribute(0x12), data size(2)
Code: Select all
zbAttributeRead
Code: Select all
class ZigbeeAirco : public ZigbeeEP {
public:
ZigbeeAirco(uint8_t endpoint);
~ZigbeeAirco() {}
...
void zbAttributeRead(uint16_t cluster_id, const esp_zb_zcl_attribute_t *attribute) override;
};
Code: Select all
ZigbeeAirco::ZigbeeAirco(uint8_t endpoint)
: ZigbeeEP(endpoint) {
...
void ZigbeeAirco::zbAttributeRead(uint16_t cluster_id, const esp_zb_zcl_attribute_t *attribute) {
log_v("zbAttributeRead: %d", attribute->id);
}
...
}
What do I need to do to be able to handle the received message (in zbAttributeRead?).
Thanks!