From e835bdb3262d60d41ecb97fc211d7024b8697e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 30 Nov 2020 17:45:29 +0100 Subject: [PATCH] Add smooth brightness change for dimmable zigbee lights --- .../integrationpluginzigbeegenericlights.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zigbee-generic-lights/integrationpluginzigbeegenericlights.cpp b/zigbee-generic-lights/integrationpluginzigbeegenericlights.cpp index 47872aef..7721ee3c 100644 --- a/zigbee-generic-lights/integrationpluginzigbeegenericlights.cpp +++ b/zigbee-generic-lights/integrationpluginzigbeegenericlights.cpp @@ -705,7 +705,7 @@ void IntegrationPluginZigbeeGenericLights::executeBrightnessAction(ThingActionIn return; } - ZigbeeClusterReply *reply = levelCluster->commandMoveToLevelWithOnOff(level); + ZigbeeClusterReply *reply = levelCluster->commandMoveToLevelWithOnOff(level, 5); connect(reply, &ZigbeeClusterReply::finished, info, [=](){ // Note: reply will be deleted automatically if (reply->error() != ZigbeeClusterReply::ErrorNoError) { @@ -755,7 +755,7 @@ void IntegrationPluginZigbeeGenericLights::executeColorAction(ThingActionInfo *i // Note: time unit is 1/10 s QPoint colorXyInt = ZigbeeUtils::convertColorToXYInt(color); - ZigbeeClusterReply *reply = colorCluster->commandMoveToColor(colorXyInt.x(), colorXyInt.y(), 2); + ZigbeeClusterReply *reply = colorCluster->commandMoveToColor(colorXyInt.x(), colorXyInt.y(), 5); connect(reply, &ZigbeeClusterReply::finished, info, [=](){ // Note: reply will be deleted automatically if (reply->error() != ZigbeeClusterReply::ErrorNoError) {