# Températures de Clim 10 fois trop élevées

**URL:** <https://forum.hacf.fr/t/temperatures-de-clim-10-fois-trop-elevees/50295>\
**Category:** Entraide Home Assistant\
**Tags:** hacs, tuya\
**Created:** [Octobre 27, 2024, 10:14 UTC](https://forum.hacf.fr/t/temperatures-de-clim-10-fois-trop-elevees/50295 "2024-10-27T22:14:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dark\_Kermit](https://forum.hacf.fr/user_avatar/forum.hacf.fr/dark_kermit/32/8524_2.png) [@Dark\_Kermit](https://forum.hacf.fr/u/Dark_Kermit)\
**Post date:** [Octobre 27, 2024, 10:14 UTC](https://forum.hacf.fr/t/temperatures-de-clim-10-fois-trop-elevees/50295/1 "2024-10-27T22:14:23Z")

</div>

Bonjour à tous,

Je viens d'intégrer une pompe à chaleur grâce à l'excellente intégration Tuya Local.  
L'intégration Cloud fonctionnait parfaitement, je souhaitais juste une intégration locale 🙂

Problème, les valeurs remontées et la température de consignes sont dix fois trop élevées :

 ![image](https://forum.hacf.fr/uploads/default/original/3X/e/8/e84ce4f453a237b718402490e18379219b7384ec.png)

220°C c'est bien pour un four, moins pour une clim ou PAC 😉

Vous savez comment je peux tout diviser par 10 ?

Pour info, l'intégration a été faite grâce à cette excellente chaine YouTube : [https://www.youtube.com/watch?v=apWfjargTpA](https://www.youtube.com/watch?v=apWfjargTpA)

Merci pour votre aide,  
Laurent

## Ma configuration

* * *

## System Information

| version | core-2024.10.4 |
| --- | --- |
| installation\_type | Home Assistant OS |
| dev | false |
| hassio | true |
| docker | true |
| user | root |
| virtualenv | false |
| python\_version | 3.12.4 |
| os\_name | Linux |
| os\_version | 6.6.54-haos |
| arch | x86\_64 |
| timezone | Europe/Paris |
| config\_dir | /config |

> **Home Assistant Community Store**
>
> | GitHub API | ok |
> | --- | --- |
> | GitHub Content | ok |
> | GitHub Web | ok |
> | HACS Data | ok |
> | GitHub API Calls Remaining | 5000 |
> | Installed Version | 2.0.1 |
> | Stage | running |
> | Available Repositories | 1452 |
> | Downloaded Repositories | 10 |

> **Home Assistant Cloud**
>
> | logged\_in | false |
> | --- | --- |
> | can\_reach\_cert\_server | ok |
> | can\_reach\_cloud\_auth | ok |
> | can\_reach\_cloud | ok |

> **Home Assistant Supervisor**
>
> | host\_os | Home Assistant OS 13.2 |
> | --- | --- |
> | update\_channel | stable |
> | supervisor\_version | supervisor-2024.10.3 |
> | agent\_version | 1.6.0 |
> | docker\_version | 27.2.0 |
> | disk\_total | 30.8 GB |
> | disk\_used | 12.9 GB |
> | healthy | true |
> | supported | true |
> | host\_connectivity | true |
> | supervisor\_connectivity | true |
> | ntp\_synchronized | true |
> | virtualization | kvm |
> | board | ova |
> | supervisor\_api | ok |
> | version\_api | ok |
> | installed\_addons | Matter Server (6.6.0), File editor (5.8.0), Samba share (12.3.2), Advanced SSH & Web Terminal (19.0.0), Samba Backup (5.2.0), ESPHome (2024.10.2), Mosquitto broker (6.4.1), Zigbee2MQTT (1.40.2-1), Silicon Labs Multiprotocol (2.4.5), Music Assistant Server (2.3.1), Cloudflared (5.1.23), AdGuard Home (5.1.4), Z-Wave JS UI (3.16.1), Tailscale (0.23.1) |

> **Dashboards**
>
> | dashboards | 2 |
> | --- | --- |
> | resources | 5 |
> | views | 9 |
> | mode | storage |

> **Recorder**
>
> | oldest\_recorder\_run | October 18, 2024 at 17:23 |
> | --- | --- |
> | current\_recorder\_run | October 27, 2024 at 22:00 |
> | estimated\_db\_size | 2619.60 MiB |
> | database\_engine | sqlite |
> | database\_version | 3.45.3 |

\_\_\_

---

<div class="post-metadata">

**Author:** ![pascal\_ha](https://forum.hacf.fr/user_avatar/forum.hacf.fr/pascal_ha/32/10823_2.png) [@pascal\_ha](https://forum.hacf.fr/u/pascal_ha)\
**Post date:** [Octobre 27, 2024, 11:10 UTC](https://forum.hacf.fr/t/temperatures-de-clim-10-fois-trop-elevees/50295/2 "2024-10-27T23:10:10Z")

</div>

Bonsoir,

Tu peux créer une entrée template, modeliser un capteur et tu corrige ta valeur avec modèle d’état.

Exemple:

```auto
{{ (state_attr('climate.thermostat', 'current_temperature') | float /10) | round(1) }}

```

---

<div class="post-metadata">

**Author:** ![Dark\_Kermit](https://forum.hacf.fr/user_avatar/forum.hacf.fr/dark_kermit/32/8524_2.png) [@Dark\_Kermit](https://forum.hacf.fr/u/Dark_Kermit)\
**Post date:** [Octobre 29, 2024, 12:50 UTC](https://forum.hacf.fr/t/temperatures-de-clim-10-fois-trop-elevees/50295/3 "2024-10-29T12:50:32Z")

</div>

Merci @pascal_ha , cette méthode fonctionne aussi pour la température cible qui est elle aussi incorrecte ?  
Tu aurais un lien pour expliquer cela comme si j’avais trois ans 🙂

---

<div class="post-metadata">

**Author:** ![WarC0zes](https://forum.hacf.fr/user_avatar/forum.hacf.fr/warc0zes/32/137471_2.png) [@WarC0zes](https://forum.hacf.fr/u/WarC0zes)\
**Post date:** [Octobre 29, 2024, 2:52 UTC](https://forum.hacf.fr/t/temperatures-de-clim-10-fois-trop-elevees/50295/4 "2024-10-29T14:52:05Z")

</div>

Bonjour,  
si c’est tuya local que tu utilises, regarde c’est issue:

> **[Wrong temperature displayed · make-all/tuya-local · Discussion #1659](https://github.com/make-all/tuya-local/discussions/1659)**
>
> Hi! I have configured an IR heater (UK Herschel brand) in Tuya Local. The integration suggested using the klarstein\_wonderwall\_irheater.yaml configuration (only the Device id: is different id: 4aVb...

---

<div class="post-metadata">

**Author:** ![Dark\_Kermit](https://forum.hacf.fr/user_avatar/forum.hacf.fr/dark_kermit/32/8524_2.png) [@Dark\_Kermit](https://forum.hacf.fr/u/Dark_Kermit)\
**Post date:** [Octobre 29, 2024, 9:02 UTC](https://forum.hacf.fr/t/temperatures-de-clim-10-fois-trop-elevees/50295/5 "2024-10-29T21:02:51Z")

</div>

Merci @WarC0zes , c’est ça en effet !  
Je viens de changer le code comme ils suggèrent, en mettant mapping, scale 10, step 10, mais cela ne change rien pour moi :

```auto
name: Air conditioner
products:
  - id: 1dxlcglzadb1wwaxairton
    name: Idea CS1 ISP-D114 TYWE 1S
primary_entity:
  entity: climate
  dps:
    - id: 1
      type: boolean
      name: hvac_mode
      mapping:
        - dps_val: false
          value: "off"
        - dps_val: true
          constraint: mode
          conditions:
            - dps_val: cold
              value: cool
            - dps_val: hot
              value: heat
            - dps_val: wet
              value: dry
            - dps_val: wind
              value: fan_only
            - dps_val: auto
              value: heat_cool
    - id: 2
      type: integer
      name: temperature
      mapping:
        - scale: 10
        - step: 10
      unit: C
      range:
        min: 16
        max: 32
    - id: 3
      type: integer
      name: current_temperature
      mapping:
        - scale: 10
        - step: 10
    - id: 4
      type: string
      name: mode
      hidden: true
    - id: 5
      type: string
      name: fan_mode
      mapping:
        - dps_val: low
          value: low
        - dps_val: mid
          value: medium
        - dps_val: high
          value: high
        - dps_val: auto
          value: auto
    - id: 8
      type: boolean
      optional: true
      name: preset_mode
      mapping:
        - dps_val: true
          value: eco
        - dps_val: false
          value: comfort
        - dps_val: null
          value: comfort
          hidden: true
    - id: 18
      type: integer
      optional: true
      name: current_humidity
    - id: 30
      type: boolean
      optional: true
      name: swing_mode
      mapping:
        - dps_val: false
          constraint: swing_horiz
          conditions:
            - dps_val: false
              value: "off"
            - dps_val: true
              value: horizontal
            - dps_val: null
              value: "off"
              hidden: true
        - dps_val: true
          constraint: swing_horiz
          conditions:
            - dps_val: false
              value: vertical
            - dps_val: true
              value: both
            - dps_val: null
              value: vertical
              hidden: true
        - constraint: swing_horiz
          conditions:
            - dps_val: true
              value: horizontal
              hidden: true
            - dps_val: null
              value: "off"
              hidden: true
    - id: 33
      type: boolean
      optional: true
      name: swing_horiz
      hidden: true
secondary_entities:
  - entity: switch
    name: Aux heat
    icon: "mdi:fire"
    category: config
    dps:
      - id: 12
        type: boolean
        name: switch
        optional: true
  - entity: switch
    translation_key: sleep
    category: config
    dps:
      - id: 25
        type: boolean
        name: switch
        optional: true
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 22
        type: bitfield
        name: sensor
        optional: true
        mapping:
          - dps_val: 0
            value: true
            constraint: fault_code_2
            conditions:
              - dps_val: null
                value: false
              - dps_val: 0
                value: false
          - dps_val: null
            value: true
            constraint: fault_code_2
            conditions:
              - dps_val: null
                value: false
              - dps_val: 0
                value: false
          - value: true
      - id: 22
        type: bitfield
        optional: true
        name: fault_code
      - id: 101
        type: bitfield
        optional: true
        name: fault_code_2

```

Pourtant, cela devrait fonctionner, cela l’a été pour d’autres personnes.  
Si vous une idée de l’erreur commise, merci de me le dire 🙂

---

<div class="post-metadata">

**Author:** ![pascal\_ha](https://forum.hacf.fr/user_avatar/forum.hacf.fr/pascal_ha/32/10823_2.png) [@pascal\_ha](https://forum.hacf.fr/u/pascal_ha)\
**Post date:** [Octobre 29, 2024, 9:32 UTC](https://forum.hacf.fr/t/temperatures-de-clim-10-fois-trop-elevees/50295/6 "2024-10-29T21:32:52Z")

</div>

> [@Dark\_Kermit](#):
>
> ```auto
> mapping:
> - scale: 10
> - step: 10
> 
> ```

Il me semble avoir lu, qu’il faut enlever le - devant step

```auto
mapping:
        - scale: 10
          step: 10

```

---

<div class="post-metadata">

**Author:** ![Dark\_Kermit](https://forum.hacf.fr/user_avatar/forum.hacf.fr/dark_kermit/32/8524_2.png) [@Dark\_Kermit](https://forum.hacf.fr/u/Dark_Kermit)\
**Post date:** [Octobre 29, 2024, 9:50 UTC](https://forum.hacf.fr/t/temperatures-de-clim-10-fois-trop-elevees/50295/7 "2024-10-29T21:50:05Z")

</div>

Oui, c’est ça, merci @pascal_ha ! Merci à vous deux ! C’est réglé 🙂  
C’est vraiment génial ha et tout ce qui est possible de faire 🙂

---

<div class="post-metadata">

**Author:** ![pascal\_ha](https://forum.hacf.fr/user_avatar/forum.hacf.fr/pascal_ha/32/10823_2.png) [@pascal\_ha](https://forum.hacf.fr/u/pascal_ha)\
**Post date:** [Octobre 29, 2024, 9:56 UTC](https://forum.hacf.fr/t/temperatures-de-clim-10-fois-trop-elevees/50295/8 "2024-10-29T21:56:28Z")

</div>

> [@Dark\_Kermit](#):
>
> Oui, c’est ça, merci @pascal_ha !

De rien mais La solution, reviens a @WarC0zes, tout est dans son lien 😁

---

<div class="post-metadata">

**Author:** ![WarC0zes](https://forum.hacf.fr/user_avatar/forum.hacf.fr/warc0zes/32/137471_2.png) [@WarC0zes](https://forum.hacf.fr/u/WarC0zes)\
**Post date:** [Octobre 29, 2024, 11:18 UTC](https://forum.hacf.fr/t/temperatures-de-clim-10-fois-trop-elevees/50295/9 "2024-10-29T23:18:43Z")

</div>

tu as lu 😃

 ![image](https://forum.hacf.fr/uploads/default/original/3X/e/a/ea6719c349bcf0add8c375a58b807eec582ba3d0.png)
