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 May 30, 2020
1 parent 371d2d8 commit b02ae14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions de_web_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ void DeRestPluginPrivate::apsdeDataIndication(const deCONZ::ApsDataIndication &i
sensorNode = getSensorNodeForAddressAndEndpoint(ind.srcAddress(), 0x01);
}
else if (sensorNode->modelId().startsWith(QLatin1String("Switch 4x EU-LIGHTIFY")) || //Osram 4 button
sensorNode->modelId().startsWith(QLatin1String("Lightify Switch Mini")) ) //Osram 3 button
sensorNode->modelId().startsWith(QLatin1String("Lightify Switch Mini")) ) //Osram mini switch
{
sensorNode = getSensorNodeForAddressAndEndpoint(ind.srcAddress(), 0x01);
}
Expand Down Expand Up @@ -3769,7 +3769,8 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A
(zclFrame.commandId() == 0x01 ) ) // Move hue command
{
//just used by !osram device ATM
if (sensor->modelId()== QLatin1String("Switch 4x EU-LIGHTIFY"))
if (sensor->modelId()== QLatin1String("Switch 4x EU-LIGHTIFY") ||
sensor->modelId()== QLatin1String("Lightify Switch Mini") )
{
quint8 pl0 = zclFrame.payload().isEmpty() ? 0 : zclFrame.payload().at(0);
if ( buttonMap->zclParam0 != pl0)
Expand Down

0 comments on commit b02ae14

Please sign in to comment.