@@ -1006,7 +1006,7 @@ void DeRestPluginPrivate::apsdeDataIndicationDevice(const deCONZ::ApsDataIndicat
1006
1006
return;
1007
1007
}
1008
1008
1009
- if (!device->item(RAttrSleeper )->toBool())
1009
+ if (!device->item(RCapSleeper )->toBool())
1010
1010
{
1011
1011
auto *item = device->item(RStateReachable);
1012
1012
if (!item->toBool())
@@ -2991,7 +2991,7 @@ void DeRestPluginPrivate::addLightNode(const deCONZ::Node *node)
2991
2991
2992
2992
if (existDevicesWithVendorCodeForMacPrefix(node->address(), VENDOR_DDEL) && i->deviceId() != DEV_ID_CONFIGURATION_TOOL && node->nodeDescriptor().manufacturerCode() == VENDOR_DDEL)
2993
2993
{
2994
- ResourceItem *item = lightNode.addItem(DataTypeUInt32, RConfigPowerup );
2994
+ ResourceItem *item = lightNode.addItem(DataTypeUInt32, RAttrPowerup );
2995
2995
DBG_Assert(item != 0);
2996
2996
item->setValue(R_POWERUP_RESTORE | R_POWERUP_RESTORE_AT_DAYLIGHT | R_POWERUP_RESTORE_AT_NO_DAYLIGHT);
2997
2997
}
@@ -3251,29 +3251,29 @@ void DeRestPluginPrivate::setLightNodeStaticCapabilities(LightNode *lightNode)
3251
3251
{
3252
3252
item->setValue(QVariant("Color temperature light"));
3253
3253
}
3254
- if (lightNode->item(RConfigColorCapabilities ) != nullptr)
3254
+ if (lightNode->item(RCapColorCapabilities ) != nullptr)
3255
3255
{
3256
3256
return; // already initialized
3257
3257
}
3258
3258
lightNode->addItem(DataTypeUInt16, RStateCt);
3259
- lightNode->addItem(DataTypeUInt16, RConfigCtMin )->setValue(142);
3260
- lightNode->addItem(DataTypeUInt16, RConfigCtMax )->setValue(666);
3261
- lightNode->addItem(DataTypeUInt16, RConfigColorCapabilities )->setValue(0x0001 | 0x0008 | 0x0010);
3259
+ lightNode->addItem(DataTypeUInt16, RCapColorCtMin )->setValue(142);
3260
+ lightNode->addItem(DataTypeUInt16, RCapColorCtMax )->setValue(666);
3261
+ lightNode->addItem(DataTypeUInt16, RCapColorCapabilities )->setValue(0x0001 | 0x0008 | 0x0010);
3262
3262
lightNode->addItem(DataTypeString, RStateColorMode)->setValue(QVariant("ct"));
3263
3263
}
3264
3264
else if (lightNode->modelId() == QLatin1String("LIGHTIFY A19 RGBW"))
3265
3265
{
3266
- if (lightNode->item(RConfigColorCapabilities ) != nullptr)
3266
+ if (lightNode->item(RCapColorCapabilities ) != nullptr)
3267
3267
{
3268
3268
return; // already initialized
3269
3269
}
3270
3270
lightNode->addItem(DataTypeUInt16, RStateCt);
3271
3271
// the light doesn't provide ctmin, ctmax and color capabilities attributes
3272
3272
// however it supports the 'Move To Color Temperature' command and Color Temperature attribute
3273
- lightNode->addItem(DataTypeUInt16, RConfigCtMin )->setValue(152);
3274
- lightNode->addItem(DataTypeUInt16, RConfigCtMax )->setValue(689);
3273
+ lightNode->addItem(DataTypeUInt16, RCapColorCtMin )->setValue(152);
3274
+ lightNode->addItem(DataTypeUInt16, RCapColorCtMax )->setValue(689);
3275
3275
// hue, saturation, color mode, xy, ct
3276
- lightNode->addItem(DataTypeUInt16, RConfigColorCapabilities )->setValue(0x0001 | 0x0008 | 0x0010);
3276
+ lightNode->addItem(DataTypeUInt16, RCapColorCapabilities )->setValue(0x0001 | 0x0008 | 0x0010);
3277
3277
}
3278
3278
else if (lightNode->modelId() == QLatin1String("LIGHTIFY A19 Tunable White") ||
3279
3279
lightNode->modelId() == QLatin1String("LIGHTIFY Conv Under Cabinet TW") ||
@@ -3299,17 +3299,17 @@ void DeRestPluginPrivate::setLightNodeStaticCapabilities(LightNode *lightNode)
3299
3299
item->setValue(QVariant("Color temperature light"));
3300
3300
}
3301
3301
3302
- if (lightNode->item(RConfigColorCapabilities ) != nullptr)
3302
+ if (lightNode->item(RCapColorCapabilities ) != nullptr)
3303
3303
{
3304
3304
return; // already initialized
3305
3305
}
3306
3306
lightNode->addItem(DataTypeUInt16, RStateCt);
3307
3307
// these lights don't provide ctmin, ctmax and color capabilities attributes
3308
3308
// however they support the 'Move To Color Temperature' command and Color Temperature attribute
3309
- lightNode->addItem(DataTypeUInt16, RConfigCtMin )->setValue(153); // 6500K
3310
- lightNode->addItem(DataTypeUInt16, RConfigCtMax )->setValue(370); // 2700K
3309
+ lightNode->addItem(DataTypeUInt16, RCapColorCtMin )->setValue(153); // 6500K
3310
+ lightNode->addItem(DataTypeUInt16, RCapColorCtMax )->setValue(370); // 2700K
3311
3311
// color mode, xy, ct
3312
- lightNode->addItem(DataTypeUInt16, RConfigColorCapabilities )->setValue(0x0008 | 0x0010);
3312
+ lightNode->addItem(DataTypeUInt16, RCapColorCapabilities )->setValue(0x0008 | 0x0010);
3313
3313
lightNode->addItem(DataTypeString, RStateColorMode)->setValue(QVariant("ct"));
3314
3314
lightNode->removeItem(RStateHue);
3315
3315
lightNode->removeItem(RStateSat);
@@ -3326,14 +3326,14 @@ void DeRestPluginPrivate::setLightNodeStaticCapabilities(LightNode *lightNode)
3326
3326
{
3327
3327
item->setValue(QVariant("Color temperature light"));
3328
3328
}
3329
- if (lightNode->item(RConfigColorCapabilities ) != nullptr)
3329
+ if (lightNode->item(RCapColorCapabilities ) != nullptr)
3330
3330
{
3331
3331
return; // already initialized
3332
3332
}
3333
3333
lightNode->addItem(DataTypeUInt16, RStateCt);
3334
- lightNode->addItem(DataTypeUInt16, RConfigCtMin )->setValue(153);
3335
- lightNode->addItem(DataTypeUInt16, RConfigCtMax )->setValue(370);
3336
- lightNode->addItem(DataTypeUInt16, RConfigColorCapabilities )->setValue(0x0001 | 0x0008 | 0x0010);
3334
+ lightNode->addItem(DataTypeUInt16, RCapColorCtMin )->setValue(153);
3335
+ lightNode->addItem(DataTypeUInt16, RCapColorCtMax )->setValue(370);
3336
+ lightNode->addItem(DataTypeUInt16, RCapColorCapabilities )->setValue(0x0001 | 0x0008 | 0x0010);
3337
3337
lightNode->addItem(DataTypeString, RStateColorMode)->setValue(QVariant("ct"));
3338
3338
}
3339
3339
else if (isXmasLightStrip(lightNode))
@@ -3348,7 +3348,7 @@ void DeRestPluginPrivate::setLightNodeStaticCapabilities(LightNode *lightNode)
3348
3348
else if (modelId.startsWith(QLatin1String("KADRILJ")) ||
3349
3349
modelId.startsWith(QLatin1String("FYRTUR")))
3350
3350
{
3351
- item = lightNode->addItem(DataTypeBool, RAttrSleeper );
3351
+ item = lightNode->addItem(DataTypeBool, RCapSleeper );
3352
3352
if (item)
3353
3353
{
3354
3354
item->setValue(false);
@@ -3753,7 +3753,7 @@ LightNode *DeRestPluginPrivate::updateLightNode(const deCONZ::NodeEvent &event)
3753
3753
}
3754
3754
3755
3755
{
3756
- ResourceItem *item = lightNode->item(RConfigColorCapabilities );
3756
+ ResourceItem *item = lightNode->item(RCapColorCapabilities );
3757
3757
if (item && item->toNumber() > 0)
3758
3758
{
3759
3759
const auto cap = item->toNumber();
@@ -3790,17 +3790,17 @@ LightNode *DeRestPluginPrivate::updateLightNode(const deCONZ::NodeEvent &event)
3790
3790
else if (ia->id() == 0x400a) // color capabilities
3791
3791
{
3792
3792
quint16 cap = ia->numericValue().u16;
3793
- lightNode->setValue(RConfigColorCapabilities , cap);
3793
+ lightNode->setValue(RCapColorCapabilities , cap);
3794
3794
}
3795
3795
else if (ia->id() == 0x400b) // color temperature min
3796
3796
{
3797
3797
quint16 cap = ia->numericValue().u16;
3798
- lightNode->setValue(RConfigCtMin , cap);
3798
+ lightNode->setValue(RCapColorCtMin , cap);
3799
3799
}
3800
3800
else if (ia->id() == 0x400c) // color temperature max
3801
3801
{
3802
3802
quint16 cap = ia->numericValue().u16;
3803
- lightNode->setValue(RConfigCtMax , cap);
3803
+ lightNode->setValue(RCapColorCtMax , cap);
3804
3804
}
3805
3805
}
3806
3806
}
@@ -11841,7 +11841,7 @@ void DeRestPluginPrivate::handleXalClusterIndication(const deCONZ::ApsDataIndica
11841
11841
{
11842
11842
quint8 id;
11843
11843
stream >> id;
11844
- ResourceItem *item = lightNode->addItem(DataTypeUInt32, RConfigId );
11844
+ ResourceItem *item = lightNode->addItem(DataTypeUInt32, RAttrConfigId );
11845
11845
if (!item->lastSet().isValid() || item->toNumber() != id)
11846
11846
{
11847
11847
item->setValue(id);
@@ -11853,7 +11853,7 @@ void DeRestPluginPrivate::handleXalClusterIndication(const deCONZ::ApsDataIndica
11853
11853
{
11854
11854
quint8 minLevel;
11855
11855
stream >> minLevel;
11856
- ResourceItem *item = lightNode->addItem(DataTypeUInt8, RConfigLevelMin );
11856
+ ResourceItem *item = lightNode->addItem(DataTypeUInt8, RAttrLevelMin );
11857
11857
if (!item->lastSet().isValid() || item->toNumber() != minLevel)
11858
11858
{
11859
11859
item->setValue(minLevel);
@@ -11865,7 +11865,7 @@ void DeRestPluginPrivate::handleXalClusterIndication(const deCONZ::ApsDataIndica
11865
11865
{
11866
11866
quint8 powerOnLevel;
11867
11867
stream >> powerOnLevel;
11868
- ResourceItem *item = lightNode->addItem(DataTypeUInt8, RConfigPowerOnLevel );
11868
+ ResourceItem *item = lightNode->addItem(DataTypeUInt8, RAttrPowerOnLevel );
11869
11869
if (!item->lastSet().isValid() || item->toNumber() != powerOnLevel)
11870
11870
{
11871
11871
item->setValue(powerOnLevel);
@@ -11877,7 +11877,7 @@ void DeRestPluginPrivate::handleXalClusterIndication(const deCONZ::ApsDataIndica
11877
11877
{
11878
11878
quint16 powerOnTemp;
11879
11879
stream >> powerOnTemp;
11880
- ResourceItem *item = lightNode->addItem(DataTypeUInt16, RConfigPowerOnCt );
11880
+ ResourceItem *item = lightNode->addItem(DataTypeUInt16, RAttrPowerOnCt );
11881
11881
if (!item->lastSet().isValid() || item->toNumber() != powerOnTemp)
11882
11882
{
11883
11883
item->setValue(powerOnTemp);
@@ -12079,7 +12079,7 @@ bool DeRestPluginPrivate::flsNbMaintenance(LightNode *lightNode)
12079
12079
return false;
12080
12080
}
12081
12081
12082
- item = lightNode->item(RConfigPowerup );
12082
+ item = lightNode->item(RAttrPowerup );
12083
12083
quint32 powerup = item ? item->toNumber() : 0;
12084
12084
12085
12085
if ((powerup & R_POWERUP_RESTORE) == 0)
0 commit comments