Replies: 3 comments 1 reply
|
It's in your user settings. |
|
Hi, no, that's not it. My account is configured to use Celsius. I was previously using the wrong config file. I have now created a new configuration based directly on the device properties reported by the Tuya IoT Platform ( The device exposes the following DPS information: {
"result": {
"properties": [
{
"code": "switch_on",
"dp_id": 1,
"type": "bool",
"value": false
},
{
"code": "temp_current",
"dp_id": 2,
"type": "value",
"value": 23
},
{
"code": "temp_current_f",
"dp_id": 3,
"type": "value",
"value": 73
},
{
"code": "timer_func",
"dp_id": 4,
"type": "bitmap",
"value": 0
},
{
"code": "set_mode",
"dp_id": 5,
"type": "enum",
"value": "3"
},
{
"code": "set_temper",
"dp_id": 6,
"type": "value",
"value": 18
},
{
"code": "wind_speed",
"dp_id": 8,
"type": "enum",
"value": "0"
},
{
"code": "c_f_change",
"dp_id": 10,
"type": "bool",
"value": false
},
{
"code": "off_timer_min",
"dp_id": 13,
"type": "value",
"value": 0
},
{
"code": "on_timer_min",
"dp_id": 14,
"type": "value",
"value": 0
},
{
"code": "fault",
"dp_id": 15,
"type": "bitmap",
"value": 0
},
{
"code": "wind",
"dp_id": 16,
"type": "bool",
"value": true
},
{
"code": "sleep_func",
"dp_id": 17,
"type": "bool",
"value": false
},
{
"code": "f_temper",
"dp_id": 18,
"type": "value",
"value": 64
},
{
"code": "force",
"dp_id": 19,
"type": "bool",
"value": false
},
{
"code": "mute",
"dp_id": 101,
"type": "bool",
"value": false
},
{
"code": "eco",
"dp_id": 102,
"type": "bool",
"value": false
},
{
"code": "capbility",
"dp_id": 103,
"type": "bitmap",
"value": 0
},
{
"code": "light",
"dp_id": 104,
"type": "bool",
"value": false
}
]
},
"success": true
}My YAML configuration is: name: Warmtec KP35W air conditioner
products:
- id: gay9pzalzwnzr2bi
manufacturer: Warmtec
model: KP35W
entities:
- entity: climate
translation_only_key: air_conditioner
dps:
- id: 1
type: boolean
name: hvac_mode
mapping:
- dps_val: false
value: "off"
- dps_val: true
value: cool
constraint: mode
conditions:
- dps_val: "0"
value: fan_only
- dps_val: "1"
value: heat_cool
- dps_val: "2"
value: dry
- dps_val: "3"
value: cool
- id: 5
type: string
name: mode
hidden: true
mapping:
- dps_val: "0"
value: fan_only
- dps_val: "1"
value: heat_cool
- dps_val: "2"
value: dry
- dps_val: "3"
value: cool
- id: 6
type: integer
name: temperature
unit: C
range:
min: 16
max: 31
- id: 2
type: integer
name: current_temperature
unit: C
- id: 8
type: string
name: fan_mode
mapping:
- dps_val: "0"
value: high
- dps_val: "2"
value: low
- dps_val: "3"
value: auto
- id: 16
type: boolean
name: swing_mode
mapping:
- dps_val: false
value: "off"
- dps_val: true
value: "on"
- id: 19
type: boolean
name: force
- entity: switch
category: config
name: Tryb nocny
icon: mdi:sleep
dps:
- id: 17
type: boolean
name: switch
- entity: switch
category: config
name: Tryb Eco
icon: mdi:leaf
dps:
- id: 102
type: boolean
name: switch
- entity: switch
category: config
name: Wyciszenie
icon: mdi:volume-mute
dps:
- id: 101
type: boolean
name: switch
- entity: switch
category: config
name: Podświetlenie ekranu
icon: mdi:led-on
dps:
- id: 104
type: boolean
name: switch
- entity: number
category: config
name: Czas do wyłączenia
icon: mdi:timer-off-outline
dps:
- id: 13
type: integer
name: value
unit: min
range:
min: 0
max: 1440
- entity: number
category: config
name: Czas do włączenia
icon: mdi:timer-on-outline
dps:
- id: 14
type: integer
name: value
unit: min
range:
min: 0
max: 1440
- entity: binary_sensor
class: problem
category: diagnostic
name: Status błędu
dps:
- id: 15
type: bitfield
name: sensor
mapping:
- dps_val: 0
value: false
- value: trueHowever, the climate tile still shows temperatures in °F. What confuses me is that the device clearly reports both Celsius and Fahrenheit values:
Since Am I missing something in the climate definition, or is there another place in Tuya Local that determines the temperature unit for a climate entity? |
|
It works! 😊 What’s funny is that the global temperature unit setting was already set to Celsius. Out of desperation, I changed it to Fahrenheit, reloaded Home Assistant, then switched it back to Celsius — and now everything works correctly. Thank you for the help! By the way, the YAML configuration posted above is a working configuration for the Warmtec KP35W portable air conditioner, so hopefully it will save someone else some time if they come across the same issue. |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm trying to change the temperature unit in the climate control card to Celsius, but it doesn’t work. Even though the unit is set to Celsius:
…the control card still displays the temperature in Fahrenheit:
Does anyone know how to fix this? The Tuya app shows the temperature correctly in Celsius.
I'm using smartdgm_portable_air_conditioner.yaml.
All reactions