diff --git a/src/devices/cleverio.js b/src/devices/cleverio.js index 08d60af53dd20..cad1034f415de 100644 --- a/src/devices/cleverio.js +++ b/src/devices/cleverio.js @@ -33,18 +33,4 @@ module.exports = [ toZigbee: [], configure: tuya.configureMagicPacket, }, - { - fingerprint: [{modelID: 'SM0202', manufacturerName: '_TYZB01_z2umiwvq'}], - model: 'SS200', - vendor: 'Cleverio', - description: 'Smart motion sensor', - fromZigbee: [fz.ias_occupancy_alarm_1_with_timeout, fz.battery, fz.ignore_basic_report], - toZigbee: [], - exposes: [e.occupancy(), e.battery_low(), e.linkquality(), e.battery(), e.battery_voltage()], - configure: async (device, coordinatorEndpoint, logger) => { - const endpoint = device.getEndpoint(1); - await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']); - await reporting.batteryPercentageRemaining(endpoint); - }, - }, ]; diff --git a/src/devices/tuya.js b/src/devices/tuya.js index bb4319aeee9d1..78b5f5ec10bd9 100644 --- a/src/devices/tuya.js +++ b/src/devices/tuya.js @@ -5305,4 +5305,22 @@ module.exports = [ tuya.whitelabel('UseeLink', 'SM-O301-AZ', 'AU 4 plug 10A power board + USB', ['_TZ3000_o005nuxx']), ], }, + { + zigbeeModel: ['SM0202'], + model: 'SM0202', + vendor: 'TuYa', + description: 'Motion sensor', + fromZigbee: [fz.ias_occupancy_alarm_1_with_timeout, fz.battery], + toZigbee: [], + exposes: [e.occupancy(), e.battery_low(), e.linkquality(), e.battery(), e.battery_voltage()], + configure: async (device, coordinatorEndpoint, logger) => { + const endpoint = device.getEndpoint(1); + await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']); + await reporting.batteryPercentageRemaining(endpoint); + }, + whiteLabel: [ + tuya.whitelabel('Cleverio', 'SS200', 'Motion sensor', ['_TYZB01_z2umiwvq']), + tuya.whitelabel('Marmitek', 'SM0202_1', 'Motion sensor', ['_TYZB01_yr95mpib']), + ], + }, ];