Skip to content

Commit e8b0a37

Browse files
fix: PRO-900Z: Removed valve_state and added climate running_state (#8588)
Co-authored-by: Nick Sills <[email protected]>
1 parent 973f11b commit e8b0a37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/devices/tuya.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -12198,15 +12198,15 @@ const definitions: DefinitionWithExtend[] = [
1219812198
.withValueStep(1)
1219912199
.withUnit('°C')
1220012200
.withDescription('Max temperature in ECO mode. Default: 20'),
12201-
e.binary('valve_state', ea.STATE, false, true).withLabel('Heating in process'),
1220212201
e
1220312202
.climate()
1220412203
.withSystemMode(['off', 'heat'], ea.STATE_SET)
1220512204
.withPreset(['manual', 'auto'])
1220612205
.withSetpoint('current_heating_setpoint', 5, 35, 0.5, ea.STATE_SET)
1220712206
.withLocalTemperature(ea.STATE)
1220812207
.withLocalTemperatureCalibration(-9, 9, 1, ea.STATE_SET)
12209-
.withDescription('Default: -3'),
12208+
.withDescription('Default: -3')
12209+
.withRunningState(['idle', 'heat'], ea.STATE),
1221012210
e
1221112211
.numeric('deadzone_temperature', ea.STATE_SET)
1221212212
.withValueMin(1)
@@ -12298,7 +12298,7 @@ const definitions: DefinitionWithExtend[] = [
1229812298
[26, 'min_temperature', tuya.valueConverter.divideBy10],
1229912299
[27, 'local_temperature_calibration', tuya.valueConverter.raw],
1230012300
[28, 'factory_reset', tuya.valueConverterBasic.lookup({factory_reset: true})],
12301-
[36, 'valve_state', tuya.valueConverter.trueFalseInvert],
12301+
[36, 'running_state', tuya.valueConverterBasic.lookup({idle: tuya.enum(1), heat: tuya.enum(0)})],
1230212302
[39, 'child_lock', tuya.valueConverterBasic.lookup({ON: true, OFF: false})],
1230312303
[40, 'eco_mode', tuya.valueConverterBasic.lookup({ON: true, OFF: false})],
1230412304
[43, 'sensor', tuya.valueConverterBasic.lookup({IN: tuya.enum(0), OU: tuya.enum(2), AL: tuya.enum(1)})],

0 commit comments

Comments
 (0)