Skip to content

Commit

Permalink
Fix no state report when physically controlling TS0601_switch. #1542
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Sep 18, 2020
1 parent 553cc37 commit 92ca25a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,9 @@ const devices = [
],
configure: async (device, coordinatorEndpoint) => {
await bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
if (device.getEndpoint(2)) await bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
if (device.getEndpoint(3)) await bind(device.getEndpoint(3), coordinatorEndpoint, ['genOnOff']);
if (device.getEndpoint(4)) await bind(device.getEndpoint(4), coordinatorEndpoint, ['genOnOff']);
},
endpoint: (device) => {
// Endpoint selection is made in tuya_switch_state
Expand Down

0 comments on commit 92ca25a

Please sign in to comment.