Skip to content

Commit

Permalink
test fix for brightness binding
Browse files Browse the repository at this point in the history
  • Loading branch information
olicooper committed Jun 14, 2020
1 parent 9384ffa commit 7d2c24b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2546,6 +2546,7 @@ bool DeRestPluginPrivate::checkSensorBindingsForClientClusters(Sensor *sensor)
makeBind(sensor, 0x01, LEVEL_CLUSTER_ID, gids[0]);
makeBind(sensor, 0x02, ONOFF_CLUSTER_ID, gids[0]);
makeBind(sensor, 0x02, LEVEL_CLUSTER_ID, gids[0]);
makeBind(sensor, 0x03, LEVEL_CLUSTER_ID, gids[0]);
ret = makeBind(sensor, 0x03, COLOR_CLUSTER_ID, gids[0]);
}
// OSRAM 4 button remote
Expand Down
3 changes: 2 additions & 1 deletion sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ static const Sensor::ButtonMap osramMiniRemoteMap[] = {
{ Sensor::ModeScenes, 0x01, 0x0008, 0x05, 0x00, S_BUTTON_1 + S_BUTTON_ACTION_HOLD, "Up long press" },
{ Sensor::ModeScenes, 0x01, 0x0008, 0x03, 0x00, S_BUTTON_1 + S_BUTTON_ACTION_LONG_RELEASED, "Up long release" },
// Button 0 (center)
{ Sensor::ModeScenes, 0x03, 0x0300, 0x0A, 0x72, S_BUTTON_3 + S_BUTTON_ACTION_SHORT_RELEASED, "0 short press" },
{ Sensor::ModeDimmer, 0x03, 0x0008, 0x04, 0xFE, S_BUTTON_3 + S_BUTTON_ACTION_SHORT_RELEASED, "0 short press (bri)" }, // test
{ Sensor::ModeScenes, 0x03, 0x0300, 0x0A, 0x72, S_BUTTON_3 + S_BUTTON_ACTION_SHORT_RELEASED, "0 short press (col)" },
{ Sensor::ModeScenes, 0x03, 0x0300, 0x03, 0xFE, S_BUTTON_3 + S_BUTTON_ACTION_HOLD, "0 long press" },
{ Sensor::ModeScenes, 0x03, 0x0300, 0x01, 0x00, S_BUTTON_3 + S_BUTTON_ACTION_LONG_RELEASED, "0 long release" },
// Button down
Expand Down

0 comments on commit 7d2c24b

Please sign in to comment.