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.
@@ -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' ? 'OFF' : '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
- toZigbee: extend.switch().toZigbee.concat([tz.moes_power_on_behavior]),
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
  ];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.363",
3
+ "version": "14.0.364",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.363",
3
+ "version": "14.0.364",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [