Skip to content

Commit

Permalink
feat: map Basic CC Set to appropriate CCs for Remote Switch devices (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Mar 16, 2022
1 parent 11bcfc9 commit 7a8c70f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/zwave-js/src/lib/node/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2786,6 +2786,21 @@ protocol version: ${this.protocolVersion}`;
CommandClasses["Multilevel Switch"],
);
break;
case 0x12: // Remote Switch
switch (sourceEndpoint.deviceClass.specific.key) {
case 0x01: // Binary Remote Switch
mappedTargetCC =
sourceEndpoint.createCCInstanceUnsafe(
CommandClasses["Binary Switch"],
);
break;
case 0x02: // Multilevel Remote Switch
mappedTargetCC =
sourceEndpoint.createCCInstanceUnsafe(
CommandClasses["Multilevel Switch"],
);
break;
}
}
}

Expand Down

0 comments on commit 7a8c70f

Please sign in to comment.