zigbee-herdsman-converters
Version:
Collection of device converters to be used with zigbee-herdsman
25 lines (23 loc) • 699 B
JavaScript
const exposes = require('../lib/exposes');
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
const e = exposes.presets;
module.exports = [
{
zigbeeModel: ['Windows switch '],
model: 'M415-6C',
vendor: 'BYUN',
description: 'Smoke sensor',
fromZigbee: [fz.byun_smoke_true, fz.byun_smoke_false],
toZigbee: [],
exposes: [e.smoke()],
},
{
zigbeeModel: ['GAS SENSOR '],
model: 'M415-5C',
vendor: 'BYUN',
description: 'Gas sensor',
fromZigbee: [fz.byun_gas_true, fz.byun_gas_false],
toZigbee: [],
exposes: [e.gas()],
},
];