Skip to content

Commit

Permalink
feat(add): ZG-101Z (#6586)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirovilya committed Nov 30, 2023
1 parent 14dbb1a commit 4ce6450
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4883,6 +4883,9 @@ const definitions: Definition[] = [
model: 'ERS-10TZBVB-AA',
vendor: 'TuYa',
description: 'Smart button',
whiteLabel: [
tuya.whitelabel('Loginovo', 'ZG-101ZL', 'Smart button', ['_TZ3000_ja5osu5g']),
],
fromZigbee: [
fz.command_step, fz.command_on, fz.command_off, fz.command_move_to_color_temp, fz.command_move_to_level,
fz.tuya_multi_action, fz.tuya_operation_mode, fz.battery,
Expand Down Expand Up @@ -6781,6 +6784,21 @@ const definitions: Definition[] = [
],
},
},
{
fingerprint: tuya.fingerprint('TS0601', ['_TZE200_nojsjtj2']),
model: 'ZG-101Z',
vendor: 'Loginovo',
description: 'SOS button',
fromZigbee: [tuya.fz.datapoints, fz.battery],
toZigbee: [],
exposes: [e.action(['emergency', 'sos']), e.battery_low()],
meta: {
tuyaDatapoints: [
[26, 'action', tuya.valueConverter.static('sos')],
[29, 'action', tuya.valueConverter.static('emergency')],
],
},
},
];

export default definitions;
Expand Down

0 comments on commit 4ce6450

Please sign in to comment.