Skip to content

Commit

Permalink
Add SISW01 (#5749)
Browse files Browse the repository at this point in the history
* Add converter for SISW01

* Update tuya.js

* Update mercator.js

---------

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
  • Loading branch information
sbeca and Koenkk authored May 14, 2023
1 parent 63d0217 commit 7409a06
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions devices/tuya.js
Original file line number Diff line number Diff line change
Expand Up @@ -1527,13 +1527,20 @@ module.exports = [
exposes: [e.water_leak(), e.battery_low(), e.battery()],
},
{
fingerprint: tuya.fingerprint('TS0101', ['_TYZB01_ijihzffk', '_TZ3210_tfxwxklq']),
fingerprint: tuya.fingerprint('TS0101', ['_TYZB01_ijihzffk', '_TZ3210_tfxwxklq', '_TZ3210_2dfy6tol']),
model: 'TS0101',
vendor: 'TuYa',
description: 'Zigbee Socket',
whiteLabel: [{vendor: 'Larkkey', model: 'PS080'}, {vendor: 'Mercator', model: 'SPBS01G'}],
whiteLabel: [
{vendor: 'Larkkey', model: 'PS080'}, {vendor: 'Mercator', model: 'SPBS01G'},
tuya.whitelabel('Mercator', 'SISW01', 'Ikuü inline switch', ['_TZ3210_2dfy6tol']),
],
extend: tuya.extend.switch(),
meta: {disableDefaultResponse: true},
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(endpoint);
},
},
{
fingerprint: [{modelID: 'TS0108', manufacturerName: '_TYZB01_7yidyqxd'}],
Expand Down

0 comments on commit 7409a06

Please sign in to comment.