Skip to content

Commit

Permalink
Update light_node.cpp
Browse files Browse the repository at this point in the history
Don't expose `state.bri` for innr SP120 plug.
  • Loading branch information
ebaauw committed Apr 16, 2019
1 parent b3f4487 commit 364ce0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions light_node.cpp
Expand Up @@ -357,9 +357,9 @@ void LightNode::setHaEndpoint(const deCONZ::SimpleDescriptor &endpoint)
{
if (i->id() == LEVEL_CLUSTER_ID)
{
if (manufacturerCode() == VENDOR_IKEA && endpoint.deviceId() == DEV_ID_Z30_ONOFF_PLUGIN_UNIT) // IKEA Tradfri control outlet
if ((manufacturerCode() == VENDOR_IKEA && endpoint.deviceId() == DEV_ID_Z30_ONOFF_PLUGIN_UNIT) || // IKEA Tradfri control outlet
(manufacturerCode() == VENDOR_INNR && endpoint.deviceId() == DEV_ID_ZLL_ONOFF_PLUGIN_UNIT)) // innr SP120 smart plug
{ } // skip state.bri not supported
else
{
addItem(DataTypeUInt8, RStateBri);
}
Expand Down

0 comments on commit 364ce0d

Please sign in to comment.