Skip to content

Commit

Permalink
Owon PCT513: change the handling for C/F temperatures
Browse files Browse the repository at this point in the history
The way scale was defined in the default case and overridden for F may
be making it work incorrectly. Define scale separately for C instead.

Issue #1948
  • Loading branch information
make-all committed Jun 10, 2024
1 parent 87c1fab commit 4e37821
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions custom_components/tuya_local/devices/owon_pct513_thermostat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,23 @@ primary_entity:
type: integer
name: temperature
range:
min: 1500
min: 41
max: 4500
mapping:
- scale: 100
step: 50
constraint: temperature_unit
- constraint: temperature_unit
conditions:
- dps_val: f
value_redirect: temp_f
mapping:
- scale: 1
step: 1
range:
min: 41
max: 90
- dps_val: c
range:
min: 1500
max: 4500
mapping:
- scale: 100
step: 50
- id: 17
type: integer
name: temp_f
Expand Down

0 comments on commit 4e37821

Please sign in to comment.