zigbee-herdsman-converters 15.0.86 → 15.0.87
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/tuya.js +36 -1
- package/lib/tuya.js +1 -0
- package/package.json +1 -1
package/devices/tuya.js
CHANGED
|
@@ -2128,7 +2128,6 @@ module.exports = [
|
|
|
2128
2128
|
{modelID: 'TS0601', manufacturerName: '_TZE200_udank5zs'},
|
|
2129
2129
|
{modelID: 'TS0601', manufacturerName: '_TZE200_zuz7f94z'},
|
|
2130
2130
|
{modelID: 'TS0601', manufacturerName: '_TZE200_nv6nxo0c'},
|
|
2131
|
-
{modelID: 'TS0601', manufacturerName: '_TZE200_68nvbio9'},
|
|
2132
2131
|
{modelID: 'TS0601', manufacturerName: '_TZE200_3ylew7b4'},
|
|
2133
2132
|
{modelID: 'TS0601', manufacturerName: '_TZE200_llm0epxg'},
|
|
2134
2133
|
{modelID: 'TS0601', manufacturerName: '_TZE200_n1aauwb4'},
|
|
@@ -2239,6 +2238,42 @@ module.exports = [
|
|
|
2239
2238
|
.withFeature(exposes.text('workdays_schedule', ea.STATE_SET))
|
|
2240
2239
|
.withFeature(exposes.text('holidays_schedule', ea.STATE_SET))],
|
|
2241
2240
|
},
|
|
2241
|
+
{
|
|
2242
|
+
fingerprint: tuya.fingerprint('TS0601', ['_TZE200_68nvbio9']),
|
|
2243
|
+
model: 'TS0601_cover_3',
|
|
2244
|
+
vendor: 'TuYa',
|
|
2245
|
+
description: 'Cover motor',
|
|
2246
|
+
fromZigbee: [tuya.fz.datapoints],
|
|
2247
|
+
toZigbee: [tuya.tz.datapoints],
|
|
2248
|
+
onEvent: tuya.onEventSetTime,
|
|
2249
|
+
options: [exposes.options.invert_cover()],
|
|
2250
|
+
configure: tuya.configureMagicPacket,
|
|
2251
|
+
exposes: [
|
|
2252
|
+
e.battery(), e.cover_position(),
|
|
2253
|
+
exposes.enum('reverse_direction', ea.STATE_SET, ['forward', 'back']).withDescription('Reverse the motor direction'),
|
|
2254
|
+
exposes.enum('border', ea.STATE_SET, ['up', 'down', 'up_delete', 'down_delete', 'remove_top_bottom']),
|
|
2255
|
+
exposes.enum('click_control', ea.STATE_SET, ['up', 'down']).withDescription('Single motor steps'),
|
|
2256
|
+
exposes.binary('motor_fault', ea.STATE, true, false),
|
|
2257
|
+
],
|
|
2258
|
+
whiteLabel: [
|
|
2259
|
+
{vendor: 'Zemismart', model: 'ZM16EL-03/33'}, // _TZE200_68nvbio
|
|
2260
|
+
],
|
|
2261
|
+
meta: {
|
|
2262
|
+
// All datapoints go in here
|
|
2263
|
+
tuyaDatapoints: [
|
|
2264
|
+
[1, 'state', tuya.valueConverterBasic.lookup({'OPEN': tuya.enum(0), 'STOP': tuya.enum(1), 'CLOSE': tuya.enum(2)})],
|
|
2265
|
+
[2, 'position', tuya.valueConverter.coverPosition],
|
|
2266
|
+
[3, 'position', tuya.valueConverter.raw],
|
|
2267
|
+
[5, 'reverse_direction', tuya.valueConverterBasic.lookup({'forward': tuya.enum(0), 'back': tuya.enum(1)})],
|
|
2268
|
+
[12, 'motor_fault', tuya.valueConverter.trueFalse1],
|
|
2269
|
+
[13, 'battery', tuya.valueConverter.raw],
|
|
2270
|
+
[16, 'border', tuya.valueConverterBasic.lookup({
|
|
2271
|
+
'up': tuya.enum(0), 'down': tuya.enum(1), 'up_delete': tuya.enum(2), 'down_delete': tuya.enum(3),
|
|
2272
|
+
'remove_top_bottom': tuya.enum(4)})],
|
|
2273
|
+
[20, 'click_control', tuya.valueConverterBasic.lookup({'up': tuya.enum(0), 'down': tuya.enum(1)})],
|
|
2274
|
+
],
|
|
2275
|
+
},
|
|
2276
|
+
},
|
|
2242
2277
|
{
|
|
2243
2278
|
fingerprint: tuya.fingerprint('TS0601', [
|
|
2244
2279
|
'_TZE200_sur6q7ko', /* model: '3012732', vendor: 'LSC Smart Connect' */
|
package/lib/tuya.js
CHANGED
|
@@ -1637,6 +1637,7 @@ const tuyaTz = {
|
|
|
1637
1637
|
'schedule_wednesday', 'schedule_thursday', 'schedule_friday', 'schedule_saturday', 'schedule_sunday', 'clear_fault',
|
|
1638
1638
|
'scale_protection', 'error', 'radar_scene', 'radar_sensitivity', 'tumble_alarm_time', 'tumble_switch', 'fall_sensitivity',
|
|
1639
1639
|
'min_temperature', 'max_temperature', 'window_detection', 'boost_heating', 'alarm_ringtone', 'alarm_time', 'fan_speed',
|
|
1640
|
+
'reverse_direction', 'border', 'click_control',
|
|
1640
1641
|
],
|
|
1641
1642
|
convertSet: async (entity, key, value, meta) => {
|
|
1642
1643
|
// A set converter is only called once; therefore we need to loop
|