zigbee-herdsman-converters 20.43.0 → 20.45.0

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 CHANGED
@@ -6795,7 +6795,7 @@ const definitions = [
6795
6795
  tuya.valueConverterBasic.lookup((_, device) => {
6796
6796
  // https://github.com/Koenkk/zigbee2mqtt/issues/21353#issuecomment-1938328429
6797
6797
  if (device.manufacturerName === '_TZE200_viy9ihs7') {
6798
- return { auto: tuya.enum(1), manual: tuya.enum(0), temporary_manual: tuya.enum(2) };
6798
+ return { auto: tuya.enum(0), manual: tuya.enum(1), temporary_manual: tuya.enum(2) };
6799
6799
  }
6800
6800
  else {
6801
6801
  return { auto: tuya.enum(0), manual: tuya.enum(1), temporary_manual: tuya.enum(2) };
@@ -12166,6 +12166,25 @@ const definitions = [
12166
12166
  ],
12167
12167
  },
12168
12168
  },
12169
+ {
12170
+ zigbeeModel: ['TS0105'],
12171
+ model: 'TS0105',
12172
+ vendor: 'TuYa',
12173
+ description: '3 gang switch',
12174
+ extend: [tuyaBase({ dp: true }), (0, modernExtend_1.deviceEndpoints)({ endpoints: { l1: 1, l2: 1, l3: 1 } })],
12175
+ exposes: [
12176
+ e.switch().withEndpoint('l1').setAccess('state', ea.STATE_SET),
12177
+ e.switch().withEndpoint('l2').setAccess('state', ea.STATE_SET),
12178
+ e.switch().withEndpoint('l3').setAccess('state', ea.STATE_SET),
12179
+ ],
12180
+ meta: {
12181
+ tuyaDatapoints: [
12182
+ [1, 'state_l1', tuya.valueConverter.onOff],
12183
+ [2, 'state_l2', tuya.valueConverter.onOff],
12184
+ [3, 'state_l3', tuya.valueConverter.onOff],
12185
+ ],
12186
+ },
12187
+ },
12169
12188
  {
12170
12189
  fingerprint: tuya.fingerprint('TS0601', ['_TZE200_iba1ckek', '_TZE200_hggxgsjj']),
12171
12190
  model: 'ZG-103Z',