Skip to content

Commit

Permalink
Caldo Up T: changes from review
Browse files Browse the repository at this point in the history
- Move preset mode into climate entity
- Follow naming convention.
- allow fan_only to be selected from hvac_mode
  • Loading branch information
make-all committed Nov 25, 2023
1 parent 30245a5 commit b48e5fe
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions custom_components/tuya_local/devices/caldo_up_t_wifi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CALDO UP T WIFI
name: Fan heater
products:
- id: dqy0z9997a18rkaw
name: Olimpia Splendid Caldo Up T
primary_entity:
entity: climate
dps:
Expand All @@ -9,7 +10,13 @@ primary_entity:
name: hvac_mode
mapping:
- dps_val: true
value: "heat"
constraint: preset_mode
conditions:
- dps_val: "0"
value: fan_only
- dps_val: "1"
value: heat
- value: heat
- dps_val: false
value: "off"
- id: 2
Expand All @@ -21,6 +28,16 @@ primary_entity:
- id: 3
type: integer
name: current_temperature
- id: 5
type: string
name: preset_mode
mapping:
- dps_val: "0"
value: none
- dps_val: "1"
value: comfort
- dps_val: "2"
value: boost
- id: 8
type: boolean
name: swing_mode
Expand All @@ -30,21 +47,6 @@ primary_entity:
- dps_val: true
value: "on"
secondary_entities:
- entity: select
name: Heating mode
icon: "mdi:gauge"
category: config
dps:
- id: 5
type: string
name: option
mapping:
- dps_val: 0
value: "Fan"
- dps_val: 1
value: "Low"
- dps_val: 2
value: "High"
- entity: switch
name: Window detection
icon: "mdi:window-open-variant"
Expand All @@ -53,4 +55,3 @@ secondary_entities:
- id: 101
type: boolean
name: switch

1 comment on commit b48e5fe

@marsal-75
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hvac_mode selection is not working.

Please sign in to comment.