zigbee-herdsman-converters 14.0.363 → 14.0.364
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/converters/toZigbee.js +1 -1
- package/devices/tuya.js +10 -3
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/converters/toZigbee.js
CHANGED
|
@@ -805,7 +805,7 @@ const converters = {
|
|
|
805
805
|
if (state === 'toggle' || state === 'off' || (brightness === undefined && state === 'on')) {
|
|
806
806
|
if (transition.specified) {
|
|
807
807
|
if (state === 'toggle') {
|
|
808
|
-
state = meta.state.state === 'ON' ? '
|
|
808
|
+
state = meta.state.state === 'ON' ? 'off' : 'on';
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
if (state === 'off' && meta.state.brightness && meta.state.state === 'ON') {
|
package/devices/tuya.js
CHANGED
|
@@ -138,9 +138,7 @@ module.exports = [
|
|
|
138
138
|
model: 'ZN231392',
|
|
139
139
|
vendor: 'TuYa',
|
|
140
140
|
description: 'Smart water/gas valve',
|
|
141
|
-
|
|
142
|
-
fromZigbee: extend.switch().fromZigbee.concat([fz.moes_power_on_behavior]),
|
|
143
|
-
exposes: extend.switch().exposes.concat([exposes.presets.power_on_behavior()]),
|
|
141
|
+
extend: extend.switch(),
|
|
144
142
|
},
|
|
145
143
|
{
|
|
146
144
|
fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_1hwjutgo'}, {modelID: 'TS011F', manufacturerName: '_TZ3000_lnggrqqi'}],
|
|
@@ -1794,4 +1792,13 @@ module.exports = [
|
|
|
1794
1792
|
exposes.enum('clear_device_data', ea.SET, ['clear']),
|
|
1795
1793
|
],
|
|
1796
1794
|
},
|
|
1795
|
+
{
|
|
1796
|
+
fingerprint: [{modelID: 'TS004F', manufacturerName: '_TZ3000_4fjiwweb'}],
|
|
1797
|
+
model: 'ERS-10TZBVK-AA',
|
|
1798
|
+
vendor: 'TuYa',
|
|
1799
|
+
description: 'Smart knob',
|
|
1800
|
+
fromZigbee: [fz.command_step, fz.command_toggle, fz.command_move_hue],
|
|
1801
|
+
toZigbee: [],
|
|
1802
|
+
exposes: [e.action(['toggle', 'brightness_step_up', 'brightness_step_down'])],
|
|
1803
|
+
},
|
|
1797
1804
|
];
|
package/npm-shrinkwrap.json
CHANGED