Skip to content

Commit

Permalink
Update de_web_plugin.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Smanar committed Nov 15, 2024
1 parent 5b3162b commit 4110c35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions de_web_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4110c35

Please sign in to comment.