@@ -5601,9 +5601,9 @@ const definitions: DefinitionWithExtend[] = [
5601
5601
'system_mode',
5602
5602
tuya.valueConverter.thermostatSystemModeAndPresetMap({
5603
5603
toMap: {
5604
- auto: new tuya.Enum(0), // auto
5605
- heat: new tuya.Enum(1), // manual
5606
- off: new tuya.Enum(2), // off
5604
+ auto: new tuya.Enum(0), // auto
5605
+ heat: new tuya.Enum(1), // manual
5606
+ off: new tuya.Enum(2), // off
5607
5607
},
5608
5608
}),
5609
5609
],
@@ -5612,10 +5612,10 @@ const definitions: DefinitionWithExtend[] = [
5612
5612
'preset',
5613
5613
tuya.valueConverter.thermostatSystemModeAndPresetMap({
5614
5614
toMap: {
5615
- none: new tuya.Enum(1), // manual
5616
- eco: new tuya.Enum(3), // eco
5617
- comfort: new tuya.Enum(4), // comfort
5618
- boost: new tuya.Enum(5), // boost
5615
+ none: new tuya.Enum(1), // manual
5616
+ eco: new tuya.Enum(3), // eco
5617
+ comfort: new tuya.Enum(4), // comfort
5618
+ boost: new tuya.Enum(5), // boost
5619
5619
},
5620
5620
}),
5621
5621
],
@@ -13389,9 +13389,45 @@ const definitions: DefinitionWithExtend[] = [
13389
13389
],
13390
13390
meta: {
13391
13391
tuyaDatapoints: [
13392
- [2, null, tuya.valueConverter.thermostatGtz10SystemModeAndPreset(null)],
13393
- [2, 'preset', tuya.valueConverter.thermostatGtz10SystemModeAndPreset('preset')],
13394
- [2, 'system_mode', tuya.valueConverter.thermostatGtz10SystemModeAndPreset('system_mode')],
13392
+ [
13393
+ 2,
13394
+ null,
13395
+ tuya.valueConverter.thermostatSystemModeAndPresetMap({
13396
+ fromMap: {
13397
+ 0: {device_mode: 'manual', system_mode: 'heat', preset: 'manual'},
13398
+ 1: {device_mode: 'auto', system_mode: 'auto', preset: 'auto'},
13399
+ 2: {device_mode: 'holiday', system_mode: 'heat', preset: 'holiday'},
13400
+ 3: {device_mode: 'comfort', system_mode: 'heat', preset: 'comfort'},
13401
+ 4: {device_mode: 'eco', system_mode: 'heat', preset: 'eco'},
13402
+ 5: {device_mode: 'off', system_mode: 'off', preset: 'off'},
13403
+ },
13404
+ }),
13405
+ ],
13406
+ [
13407
+ 2,
13408
+ 'preset',
13409
+ tuya.valueConverter.thermostatSystemModeAndPresetMap({
13410
+ toMap: {
13411
+ manual: new tuya.Enum(0),
13412
+ auto: new tuya.Enum(1),
13413
+ holiday: new tuya.Enum(2),
13414
+ comfort: new tuya.Enum(3),
13415
+ eco: new tuya.Enum(4),
13416
+ off: new tuya.Enum(5),
13417
+ },
13418
+ }),
13419
+ ],
13420
+ [
13421
+ 2,
13422
+ 'system_mode',
13423
+ tuya.valueConverter.thermostatSystemModeAndPresetMap({
13424
+ toMap: {
13425
+ heat: new tuya.Enum(0),
13426
+ auto: new tuya.Enum(1),
13427
+ off: new tuya.Enum(5),
13428
+ },
13429
+ }),
13430
+ ],
13395
13431
[4, 'current_heating_setpoint', tuya.valueConverter.divideBy10],
13396
13432
[5, 'local_temperature', tuya.valueConverter.divideBy10],
13397
13433
[6, 'battery', tuya.valueConverter.raw],
0 commit comments