@@ -214,7 +214,7 @@ bool MatterEnhancedColorLight::begin(bool initialState, espHsvColor_t _colorHSV,
214
214
215
215
/* Mark deferred persistence for some attributes that might be changed rapidly */
216
216
cluster_t *level_control_cluster = cluster::get (endpoint, LevelControl::Id);
217
- attribute_t *current_level_attribute = attribute::get (level_control_cluster, LevelControl::Attributes::CurrentLevel::Id);
217
+ esp_matter:: attribute_t *current_level_attribute = attribute::get (level_control_cluster, LevelControl::Attributes::CurrentLevel::Id);
218
218
attribute::set_deferred_persistence (current_level_attribute);
219
219
220
220
started = true ;
@@ -240,7 +240,7 @@ bool MatterEnhancedColorLight::setOnOff(bool newState) {
240
240
241
241
endpoint_t *endpoint = endpoint::get (node::get (), endpoint_id);
242
242
cluster_t *cluster = cluster::get (endpoint, OnOff::Id);
243
- attribute_t *attribute = attribute::get (cluster, OnOff::Attributes::OnOff::Id);
243
+ esp_matter:: attribute_t *attribute = attribute::get (cluster, OnOff::Attributes::OnOff::Id);
244
244
245
245
esp_matter_attr_val_t val = esp_matter_invalid (NULL );
246
246
attribute::get_val (attribute, &val);
@@ -281,7 +281,7 @@ bool MatterEnhancedColorLight::setBrightness(uint8_t newBrightness) {
281
281
282
282
endpoint_t *endpoint = endpoint::get (node::get (), endpoint_id);
283
283
cluster_t *cluster = cluster::get (endpoint, LevelControl::Id);
284
- attribute_t *attribute = attribute::get (cluster, LevelControl::Attributes::CurrentLevel::Id);
284
+ esp_matter:: attribute_t *attribute = attribute::get (cluster, LevelControl::Attributes::CurrentLevel::Id);
285
285
286
286
esp_matter_attr_val_t val = esp_matter_invalid (NULL );
287
287
attribute::get_val (attribute, &val);
@@ -312,7 +312,7 @@ bool MatterEnhancedColorLight::setColorTemperature(uint16_t newTemperature) {
312
312
313
313
endpoint_t *endpoint = endpoint::get (node::get (), endpoint_id);
314
314
cluster_t *cluster = cluster::get (endpoint, ColorControl::Id);
315
- attribute_t *attribute = attribute::get (cluster, ColorControl::Attributes::ColorTemperatureMireds::Id);
315
+ esp_matter:: attribute_t *attribute = attribute::get (cluster, ColorControl::Attributes::ColorTemperatureMireds::Id);
316
316
317
317
esp_matter_attr_val_t val = esp_matter_invalid (NULL );
318
318
attribute::get_val (attribute, &val);
@@ -353,7 +353,7 @@ bool MatterEnhancedColorLight::setColorHSV(espHsvColor_t _hsvColor) {
353
353
endpoint_t *endpoint = endpoint::get (node::get (), endpoint_id);
354
354
cluster_t *cluster = cluster::get (endpoint, ColorControl::Id);
355
355
// update hue
356
- attribute_t *attribute = attribute::get (cluster, ColorControl::Attributes::CurrentHue::Id);
356
+ esp_matter:: attribute_t *attribute = attribute::get (cluster, ColorControl::Attributes::CurrentHue::Id);
357
357
esp_matter_attr_val_t val = esp_matter_invalid (NULL );
358
358
attribute::get_val (attribute, &val);
359
359
if (val.val .u8 != colorHSV.h ) {
0 commit comments