Skip to content

Commit

Permalink
Update window_covering.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Smanar authored and manup committed Oct 21, 2019
1 parent 64fd134 commit f4702c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions window_covering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ void DeRestPluginPrivate::handleWindowCoveringClusterIndication(const deCONZ::Ap

// also change on-state if bri changes to/from 0
bool on = (attrValue > 0 ? true : false) ;

//Reverse it for Legrand
if (lightNode->modelId() == QLatin1String("Shutter switch with neutral"))
{
on = !on;
}

ResourceItem *itemOn = lightNode->item(RStateOn);
if (itemOn && itemOn->toBool() != on)
{
Expand Down

0 comments on commit f4702c3

Please sign in to comment.