Skip to content

Commit

Permalink
fix: PRO-900Z: Removed valve_state and added climate running_state (
Browse files Browse the repository at this point in the history
#8588)

Co-authored-by: Nick Sills <[email protected]>
  • Loading branch information
Nick-Sills and NickSills1 authored Jan 11, 2025
1 parent 973f11b commit e8b0a37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12198,15 +12198,15 @@ const definitions: DefinitionWithExtend[] = [
.withValueStep(1)
.withUnit('°C')
.withDescription('Max temperature in ECO mode. Default: 20'),
e.binary('valve_state', ea.STATE, false, true).withLabel('Heating in process'),
e
.climate()
.withSystemMode(['off', 'heat'], ea.STATE_SET)
.withPreset(['manual', 'auto'])
.withSetpoint('current_heating_setpoint', 5, 35, 0.5, ea.STATE_SET)
.withLocalTemperature(ea.STATE)
.withLocalTemperatureCalibration(-9, 9, 1, ea.STATE_SET)
.withDescription('Default: -3'),
.withDescription('Default: -3')
.withRunningState(['idle', 'heat'], ea.STATE),
e
.numeric('deadzone_temperature', ea.STATE_SET)
.withValueMin(1)
Expand Down Expand Up @@ -12298,7 +12298,7 @@ const definitions: DefinitionWithExtend[] = [
[26, 'min_temperature', tuya.valueConverter.divideBy10],
[27, 'local_temperature_calibration', tuya.valueConverter.raw],
[28, 'factory_reset', tuya.valueConverterBasic.lookup({factory_reset: true})],
[36, 'valve_state', tuya.valueConverter.trueFalseInvert],
[36, 'running_state', tuya.valueConverterBasic.lookup({idle: tuya.enum(1), heat: tuya.enum(0)})],
[39, 'child_lock', tuya.valueConverterBasic.lookup({ON: true, OFF: false})],
[40, 'eco_mode', tuya.valueConverterBasic.lookup({ON: true, OFF: false})],
[43, 'sensor', tuya.valueConverterBasic.lookup({IN: tuya.enum(0), OU: tuya.enum(2), AL: tuya.enum(1)})],
Expand Down

0 comments on commit e8b0a37

Please sign in to comment.