Skip to content

Commit

Permalink
Mark TS0011 as AC powered (not battery). Koenkk/zigbee2mqtt#6190
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Feb 9, 2021
1 parent 6d41ccd commit b5049b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -1763,6 +1763,12 @@ const devices = [
extend: preset.switch(),
whiteLabel: [{vendor: 'Vrey', model: 'VR-X712U-0013'}, {vendor: 'TUYATEC', model: 'GDKES-01TZXD'},
{vendor: 'Lonsonho', model: 'QS-Zigbee-S05-L', description: '1 gang smart switch module without neutral wire'}],
meta: {configureKey: 2},
configure: async (device, coordinatorEndpoint, logger) => {
// Reports itself as battery which is not correct: https://github.com/Koenkk/zigbee2mqtt/issues/6190
device.powerSource = 'Mains (single phase)';
device.save();
},
},
{
zigbeeModel: ['TS0012'],
Expand Down

0 comments on commit b5049b3

Please sign in to comment.