Skip to content

Commit

Permalink
feat(add): Push_ME (#8399)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Hosse <[email protected]>
Co-authored-by: Koen Kanters <[email protected]>
  • Loading branch information
3 people authored Nov 30, 2024
1 parent 6fd1c15 commit 91d4798
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/devices/cleverio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import fz from '../converters/fromZigbee';
import tz from '../converters/toZigbee';
import * as exposes from '../lib/exposes';
import * as reporting from '../lib/reporting';
import * as tuya from '../lib/tuya';
import {DefinitionWithExtend} from '../lib/types';

const e = exposes.presets;
Expand All @@ -28,16 +27,6 @@ const definitions: DefinitionWithExtend[] = [
await reporting.bind(endpoint, coordinatorEndpoint, bindClusters);
},
},
{
fingerprint: [{modelID: 'TS0041A', manufacturerName: '_TYZB01_4qw4rl1u'}],
model: 'SB100',
vendor: 'Cleverio',
description: 'Wireless switch with 1 button',
exposes: [e.battery(), e.action(['single', 'double', 'hold'])],
fromZigbee: [tuya.fz.on_off_action, fz.battery],
toZigbee: [],
configure: tuya.configureMagicPacket,
},
{
fingerprint: [{modelID: 'SM0201', manufacturerName: '_TYZB01_lzrhtcxu'}],
model: 'SS300',
Expand Down
20 changes: 20 additions & 0 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3236,6 +3236,26 @@ const definitions: DefinitionWithExtend[] = [
* Initially wrapped in a try catch: https://github.com/Koenkk/zigbee2mqtt/issues/6313
*/
},
{
zigbeeModel: ['TS0041A'],
model: 'TS0041A',
vendor: 'Tuya',
description: 'Wireless switch with 1 button',
whiteLabel: [
tuya.whitelabel('Cleverio', 'SB100', 'Wireless switch with 1 button', ['_TYZB01_4qw4rl1u']),
tuya.whitelabel('Marmitek', 'Push_ME', 'Wireless switch with 1 button', ['_TYZB01_1xktopx6']),
],
exposes: [e.battery(), e.battery_voltage(), e.action(['single', 'double', 'hold'])],
fromZigbee: [tuya.fz.on_off_action, fz.battery],
toZigbee: [],
configure: tuya.configureMagicPacket,
/*
* reporting.batteryPercentageRemaining removed as it was causing devices to fall of the network
* every 1 hour, with light flashing when it happened, extremely short battery life, 2 presses for
* action to register: https://github.com/Koenkk/zigbee2mqtt/issues/8072
* Initially wrapped in a try catch: https://github.com/Koenkk/zigbee2mqtt/issues/6313
*/
},
{
zigbeeModel: ['TS0042'],
model: 'TS0042',
Expand Down

0 comments on commit 91d4798

Please sign in to comment.