File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -43,16 +43,15 @@ void ZigbeeAnalog::addAnalogOutput() {
43
43
44
44
// set attribute method -> method overridden in child class
45
45
void ZigbeeAnalog::zbAttributeSet (const esp_zb_zcl_set_attr_value_message_t *message) {
46
- // check the data and call right method
47
46
if (message->info .cluster == ESP_ZB_ZCL_CLUSTER_ID_ANALOG_OUTPUT) {
48
47
if (message->attribute .id == ESP_ZB_ZCL_ATTR_ANALOG_OUTPUT_PRESENT_VALUE_ID && message->attribute .data .type == ESP_ZB_ZCL_ATTR_TYPE_SINGLE) {
49
48
float analog_output = *(float *)message->attribute .data .value ;
50
49
analogOutputChanged (analog_output);
51
50
} else {
52
- log_w (" Received message ignored. Attribute ID: %d not supported for On/Off Light " , message->attribute .id );
51
+ log_w (" Received message ignored. Attribute ID: %d not supported for Analog Output " , message->attribute .id );
53
52
}
54
53
} else {
55
- log_w (" Received message ignored. Cluster ID: %d not supported for On/Off Light " , message->info .cluster );
54
+ log_w (" Received message ignored. Cluster ID: %d not supported for Analog endpoint " , message->info .cluster );
56
55
}
57
56
}
58
57
You can’t perform that action at this time.
0 commit comments