From 4110c352866d6e9a45e96c098c313f3eb1d0dda0 Mon Sep 17 00:00:00 2001 From: Smanar Date: Fri, 15 Nov 2024 17:19:42 +0100 Subject: [PATCH] Update de_web_plugin.cpp --- de_web_plugin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/de_web_plugin.cpp b/de_web_plugin.cpp index 1ae078f593..0023ec6d6a 100644 --- a/de_web_plugin.cpp +++ b/de_web_plugin.cpp @@ -4880,6 +4880,13 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A { ok = false; } + // SonOff + if (sensor->manufacturer() == QLatin1String("SONOFF")) + { + // payload: u16 attrId, u8 datatype, u8 data + // Comparing only data + ok = buttonMap.zclParam0 == zclFrame.payload().at(3); + } else if (ind.clusterId() == ONOFF_CLUSTER_ID && sensor->manufacturer() == QLatin1String("LUMI")) { quint8 value;