From 10850733cf603f505d00e4b0479dcb4588efd123 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Mon, 10 Jun 2024 11:40:11 +0200 Subject: [PATCH] set OnTime to 0 on offWithEffectCommand if GlobalSceneControl is true --- src/app/clusters/on-off-server/on-off-server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/clusters/on-off-server/on-off-server.cpp b/src/app/clusters/on-off-server/on-off-server.cpp index aadac6c6e2e630..b7ed6da2f085c3 100644 --- a/src/app/clusters/on-off-server/on-off-server.cpp +++ b/src/app/clusters/on-off-server/on-off-server.cpp @@ -648,6 +648,7 @@ bool OnOffServer::offWithEffectCommand(app::CommandHandler * commandObj, const a } status = setOnOffValue(endpoint, Commands::Off::Id, false); + Attributes::OnTime::Set(endpoint, 0); } else {