# Bouton augmenter / diminuer température

**URL:** <https://forum.hacf.fr/t/bouton-augmenter-diminuer-temperature/53558>\
**Category:** Entraide Home Assistant\
**Tags:** interface-lovelace, aide\
**Created:** [Décembre 14, 2024, 4:49 UTC](https://forum.hacf.fr/t/bouton-augmenter-diminuer-temperature/53558 "2024-12-14T16:49:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![WarC0zes](https://forum.hacf.fr/user_avatar/forum.hacf.fr/warc0zes/32/62511_2.png) [@WarC0zes](https://forum.hacf.fr/u/WarC0zes)\
**Post date:** [Décembre 16, 2024, 3:45 UTC](https://forum.hacf.fr/t/bouton-augmenter-diminuer-temperature/53558/4 "2024-12-16T03:45:30Z")

</div>

> [@18yt8zhg](#):
>
> ```auto
> tap_action:
> action: call-service
> service: input_number.increment
> target:
> entity_id:
> - climate.climatisation_salon
> data:
> amount: 1
> 
> ```

Salut,  
dans ton tuto, il utilise une entité `input_number` et non, une entité climate.

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

chez moi, j’utilise un script.  
Pour le + (script.thermostat\_salon\_up\_temp):

```auto
data:
  temperature: >-
    {{ state_attr('climate.versatile_thermostat_salon', 'temperature') + value |
    float(0) }}
target:
  entity_id: climate.versatile_thermostat_salon
action: climate.set_temperature

```

Pour le - (script.thermostat\_salon\_down\_temp):

```auto
data:
  temperature: >-
    {{ state_attr('climate.versatile_thermostat_salon', 'temperature') - value |
    float(0) }}
target:
  entity_id: climate.versatile_thermostat_salon
action: climate.set_temperature

```

dans button-card:  
pour le button + :

```auto
tap_action:
  action: call-service
  service: script.thermostat_salon_up_temp
  data:
    climate_id: climate.versatile_thermostat_salon
    value: 1

```

pour le button - :

```auto
tap_action:
  action: call-service
  service: script.thermostat_salon_down_temp
  data:
    climate_id: climate.versatile_thermostat_salon
    value: 1

```

---

_[View the full topic](https://forum.hacf.fr/t/bouton-augmenter-diminuer-temperature/53558)._
