-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathled_spalnia.js
26 lines (24 loc) · 1.24 KB
/
led_spalnia.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3210_leyz4rju'}],
model: 'TS0505B',
vendor: 'Tuya',
description: 'Downlight',
toZigbee: extend.light_onoff_brightness_colortemp_color().toZigbee.concat([
tz.tuya_do_not_disturb, tz.tuya_color_power_on_behavior,
]),
meta: {applyRedFix: true, enhancedHue: false},
fromZigbee: extend.light_onoff_brightness_colortemp_color().fromZigbee,
exposes: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500], disableColorTempStartup: true}).exposes.concat([
exposes.binary('do_not_disturb', ea.STATE_SET, true, false)
.withDescription('Do not disturb mode'),
]),
};
module.exports = definition;