Skip to content

Commit

Permalink
Fix Zemismart TB25 not controllable. Koenkk/zigbee2mqtt#15386
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Dec 11, 2022
1 parent 106e1e9 commit c31ea78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devices/zemismart.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ module.exports = [
description: 'Smart light switch and socket - 2 gang with neutral wire',
extend: tuya.extend.switch({endpoints: ['left', 'center', 'right']}),
meta: {multiEndpoint: true},
endpoint: () => {
return {'left': 1, 'center': 2, 'right': 3};
},
configure: async (device, coordinatorEndpoint, logger) => {
await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
for (const endpointID of [1, 2, 3]) {
Expand Down

0 comments on commit c31ea78

Please sign in to comment.