Skip to content

Commit

Permalink
Add ZP-LZ-FR2U (_TZ3000_cymsnfvf). Koenkk/zigbee2mqtt#10812
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jan 16, 2022
1 parent 5151fe6 commit fb516f9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
21 changes: 21 additions & 0 deletions devices/moes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,27 @@ const e = exposes.presets;
const ea = exposes.access;

module.exports = [
{
fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_cymsnfvf'}],
model: 'ZP-LZ-FR2U',
vendor: 'Moes',
description: 'Zigbee 3.0 dual USB wireless socket plug',
fromZigbee: [fz.on_off, fz.tuya_switch_power_outage_memory],
toZigbee: [tz.on_off, tz.tuya_switch_power_outage_memory],
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2'),
exposes.enum('power_outage_memory', ea.STATE_SET, ['on', 'off', 'restore'])
.withDescription('Recover state after power outage')],
endpoint: (device) => {
return {'l1': 1, 'l2': 2};
},
meta: {multiEndpoint: true},
configure: async (device, coordinatorEndpoint, logger) => {
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(device.getEndpoint(1));
await reporting.onOff(device.getEndpoint(2));
},
},
{
fingerprint: [{modelID: 'TS0121', manufacturerName: '_TYZB01_iuepbmpv'}, {modelID: 'TS011F', manufacturerName: '_TZ3000_zmy1waw6'},
{modelID: 'TS011F', manufacturerName: '_TZ3000_bkfe0bab'}],
Expand Down
1 change: 0 additions & 1 deletion devices/tuya.js
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,6 @@ module.exports = [
{
fingerprint: [
{modelID: 'TS011F', manufacturerName: '_TZ3000_hyfvrar3'},
{modelID: 'TS011F', manufacturerName: '_TZ3000_cymsnfvf'},
{modelID: 'TS011F', manufacturerName: '_TZ3000_bfn1w0mm'}],
model: 'TS011F_plug_2',
description: 'Smart plug (without power monitoring)',
Expand Down

0 comments on commit fb516f9

Please sign in to comment.