Skip to content

Commit

Permalink
feat(add): SBTZB-110 (#6088)
Browse files Browse the repository at this point in the history
* Add support for SBTZB-110

* Update develco.ts

---------

Co-authored-by: DevDoesOps <carlos@onewaylife.co.uk>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
  • Loading branch information
3 people committed Aug 19, 2023
1 parent 8efc71b commit 7910e32
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/devices/develco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,23 @@ const definitions: Definition[] = [
return {'l1': 112, 'l2': 113, 'l3': 114, 'l4': 115, 'l11': 116, 'l12': 117};
},
},
{
zigbeeModel: ['SBTZB-110'],
model: 'SBTZB-110',
vendor: 'Develco',
description: 'Smart button',
fromZigbee: [fz.ewelink_action, fz.battery],
toZigbee: [],
exposes: [e.battery(), e.battery_voltage(), e.action(['single'])],
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(32);
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'genOnOff', 'genIdentify']);
await reporting.batteryVoltage(endpoint);
},
endpoint: (device) => {
return {default: 32};
},
},
];

module.exports = definitions;

0 comments on commit 7910e32

Please sign in to comment.