Skip to content

Commit

Permalink
Handling action 1 and 17 for sinope switch.
Browse files Browse the repository at this point in the history
  • Loading branch information
onixx committed Jan 3, 2024
1 parent 807c248 commit 3e171e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/sinope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ const fzLocal = {
result.minimum_brightness = msg.data['minimumBrightness'];
}
if (msg.data.hasOwnProperty('actionReport')) {
const lookup = {2: 'up_single', 3: 'up_hold', 4: 'up_double',
18: 'down_single', 19: 'down_hold', 20: 'down_double'};
const lookup = {1: 'up_clickdown', 2: 'up_single', 3: 'up_hold', 4: 'up_double',
17: 'down_clickdown', 18: 'down_single', 19: 'down_hold', 20: 'down_double'};
result.action = utils.getFromLookup(msg.data['actionReport'], lookup);
}
if (msg.data.hasOwnProperty('keypadLockout')) {
Expand Down

0 comments on commit 3e171e0

Please sign in to comment.