Skip to content

Commit

Permalink
Merge pull request #1 from Smanar/sonoffrecompiled
Browse files Browse the repository at this point in the history
Update de_web_plugin.cpp for sonoff buttonmap
  • Loading branch information
duffbeer2000 authored Nov 18, 2024
2 parents c644485 + 4110c35 commit dad115b
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 dad115b

Please sign in to comment.