zigbee-herdsman-converters 14.0.384 → 14.0.385
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/devices/cleode.js +2 -4
- package/devices/xiaomi.js +3 -3
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/devices/cleode.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
const exposes = require('../lib/exposes');
|
|
2
|
-
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
-
const tz = require('../converters/toZigbee');
|
|
4
2
|
const reporting = require('../lib/reporting');
|
|
5
3
|
const e = exposes.presets;
|
|
4
|
+
const extend = require('../lib/extend');
|
|
6
5
|
|
|
7
6
|
module.exports = [
|
|
8
7
|
{
|
|
@@ -10,8 +9,7 @@ module.exports = [
|
|
|
10
9
|
model: 'ZPLUG_Boost',
|
|
11
10
|
vendor: 'CLEODE',
|
|
12
11
|
description: 'ZPlug boost',
|
|
13
|
-
|
|
14
|
-
toZigbee: [tz.on_off],
|
|
12
|
+
extend: extend.switch(),
|
|
15
13
|
exposes: [e.switch(), e.power()],
|
|
16
14
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
17
15
|
const endpoint = device.getEndpoint(1);
|
package/devices/xiaomi.js
CHANGED
|
@@ -81,11 +81,11 @@ module.exports = [
|
|
|
81
81
|
model: 'ZNLDP12LM',
|
|
82
82
|
vendor: 'Xiaomi',
|
|
83
83
|
description: 'Aqara smart LED bulb',
|
|
84
|
-
toZigbee: xiaomiExtend.light_onoff_brightness_colortemp().toZigbee.concat([
|
|
84
|
+
toZigbee: xiaomiExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}).toZigbee.concat([
|
|
85
85
|
tz.xiaomi_light_power_outage_memory]),
|
|
86
|
-
fromZigbee: xiaomiExtend.light_onoff_brightness_colortemp().fromZigbee,
|
|
86
|
+
fromZigbee: xiaomiExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}).fromZigbee,
|
|
87
87
|
// power_on_behavior 'toggle' does not seem to be supported
|
|
88
|
-
exposes: xiaomiExtend.light_onoff_brightness_colortemp().exposes.concat([
|
|
88
|
+
exposes: xiaomiExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}).exposes.concat([
|
|
89
89
|
e.power_outage_memory().withAccess(ea.STATE_SET)]),
|
|
90
90
|
ota: ota.zigbeeOTA,
|
|
91
91
|
},
|
package/npm-shrinkwrap.json
CHANGED