# Carte pour Thermostat Netatmo

**URL:** <https://forum.hacf.fr/t/carte-pour-thermostat-netatmo/4531>\
**Category:** Interface / Lovelace / Thème / Custom Card\
**Created:** [Mai 4, 2021, 1:05 UTC](https://forum.hacf.fr/t/carte-pour-thermostat-netatmo/4531 "2021-05-04T13:05:00Z")\
**Posts on this page:** 1\
**Showing post:** 290

<div class="post-metadata">

**Author:** ![telenaze](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@telenaze](https://forum.hacf.fr/u/telenaze)\
**Post date:** [Février 1, 2023, 9:12 UTC](https://forum.hacf.fr/t/carte-pour-thermostat-netatmo/4531/290 "2023-02-01T09:12:21Z")

</div>

Effectivement cela est possible, mais j'y vois quelques inconvénients.  
si tu clique sur V2 par exemple, tu va te retrouver avec une carte dont certaines informations seront liées à la carte master et d'autres à la carte vanne, je pense que cela va apporter des confusion à la longue.  
Ensuite, le code de la carte va vraiment s'alourdir déjà qu"il est pas mal riche...  
Donc l'idéal serait de passer d'une carte à une autre facilement et pour cela je te propose la carte [[CARTE] Swiper card](https://forum.hacf.fr/t/carte-swiper-card/926).  
Voici un autre lien avec un peu plus d'explications.  
[https://community.home-assistant.io/t/lovelace-swiper-card/72447](https://community.home-assistant.io/t/lovelace-swiper-card/72447)  
et voici ce que cela donne avec notre carte.  
 ![Carte Netatmo swipe](https://forum.hacf.fr/uploads/default/original/3X/b/d/bdd078b1b8e68e45510aef056efa0f3355d57598.gif)

> **Code de la carte**
>
> ```auto
> type: custom:swipe-card
> parameters:
> spaceBetween: 8
> scrollbar:
> hide: false
> draggable: true
> snapOnRelease: true
> cards:
> - type: picture-elements
> image: /local/netatmo/Netatmo_background_409x762_2.png
> elements:
> - type: image
> entity: climate.netatmo_entree
> image: /local/netatmo/Engie.png
> title: null
> tap_action:
> action: none
> style:
> top: 10%
> left: 90%
> width: 10%
> - type: image
> entity: climate.netatmo_entree
> title: Up Consigne
> tap_action:
> action: call-service
> service: Script.netatmo_increment_consigne
> hold_action:
> action: more-info
> image: /local/netatmo/Netatmo_up.png
> style:
> top: 52.6%
> left: 76.5%
> width: 6%
> - type: image
> entity: climate.netatmo_entree
> title: Down Consigne
> tap_action:
> action: call-service
> service: Script.netatmo_decrement_consigne
> hold_action:
> action: more-info
> image: /local/netatmo/Netatmo_down.png
> style:
> top: 52.6%
> left: 56.5%
> width: 6%
> - type: image
> entity: sensor.netatmo_hvac_action
> title: Temoin Chauffe
> tap_action:
> action: none
> image: /local/netatmo/Netatmo_chauffe.png
> style:
> top: 58%
> left: 25.5%
> width: 7%
> state_filter:
> heating: brightness(100%) saturate(1)
> idle: opacity(0%)
> - type: image
> entity: sensor.netatmo_preset_mode
> title: Mode de fonctionnement
> style:
> top: 29.9%
> left: 39%
> width: 11%
> state_image:
> manual: /local/netatmo/Netatmo_manual.png
> Schedule: /local/netatmo/Automatique.png
> away: /local/netatmo/Absent.png
> Frost Guard: /local/netatmo/Hors Gel.png
> tap_action:
> action: none
> - type: state-label
> entity: climate.netatmo_entree
> attribute: current_temperature
> unit_of_measurement: .
> title: Température Actuelle
> tap_action:
> action: null
> style:
> top: 48%
> left: 25.5%
> font-size: 1.6em
> color: black
> font-weight: 600
> - type: state-label
> entity: sensor.netatmo_temperature_consigne
> title: Température de consigne
> tap_action:
> action: null
> style:
> top: 25%
> left: 25.5%
> font-size: 1em
> color: white
> font-weight: 600
> - type: state-label
> entity: climate.netatmo_entree
> attribute: friendly_name
> style:
> top: 25%
> left: 66%
> font-size: 1.4em
> color: black
> font-weight: 400
> - type: state-label
> entity: sensor.thermostat_entree_battery_percent
> title: '% Batterie'
> tap_action:
> action: none
> style:
> top: 79%
> left: 8.3%
> font-size: 0.7em
> color: grey
> font-weight: 600
> - type: state-icon
> entity: sensor.thermostat_entree_battery_percent
> title: Niveau Batterie
> icon: mdi:battery-high
> tap_action:
> action: more-info
> style:
> top: 86%
> left: 8%
> '--paper-item-icon-color': grey
> - type: image
> entity: climate.netatmo_entree
> title: null
> tap_action:
> action: none
> image: /local/netatmo/bouton_fond-300x98.png
> style:
> top: 83.2%
> left: 71%
> width: 58%
> - type: image
> entity: climate.netatmo_entree
> title: Passer en Mode Absent
> tap_action:
> action: call-service
> service: Script.netatmo_mode_absent
> image: /local/netatmo/Absent.png
> style:
> top: 83%
> left: 53%
> width: 12%
> - type: image
> entity: climate.netatmo_entree
> title: Passer en Mode Hors Gel
> tap_action:
> action: call-service
> service: Script.netatmo_mode_hors_gel
> image: /local/netatmo/Hors Gel.png
> style:
> top: 83.2%
> left: 79.5%
> width: 14.5%
> - type: image
> entity: climate.netatmo_entree
> title: Passer en Mode Automatique
> tap_action:
> action: call-service
> service: Script.netatmo_mode_schedule
> image: /local/netatmo/Automatique.png
> style:
> top: 83.2%
> left: 67%
> width: 10%
> - type: state-label
> entity: select.netatmo_domicile
> title: Planning
> icon: mdi:calendar
> style:
> top: 85%
> left: 27%
> '--paper-item-icon-color': rgb(68,68,68)
> - type: image
> entity: climate.netatmo_entree
> title: On / Off
> style:
> top: 10%
> left: 8%
> width: 07%
> state_image:
> 'off': /local/netatmo/netatmo-off.png
> auto: /local/netatmo/netatmo-on.png
> tap_action:
> action: call-service
> service: Script.netatmo_on_off
> - type: picture-elements
> image: /local/netatmo/Netatmo_background_409x762_2.png
> elements:
> - type: image
> entity: climate.netatmo_entree
> image: /local/netatmo/Engie.png
> title: null
> tap_action:
> action: none
> style:
> top: 10%
> left: 90%
> width: 10%
> - type: image
> entity: climate.netatmo_entree
> title: Up Consigne
> tap_action:
> action: call-service
> service: Script.netatmo_increment_consigne
> hold_action:
> action: more-info
> image: /local/netatmo/Netatmo_up.png
> style:
> top: 52.6%
> left: 76.5%
> width: 6%
> - type: image
> entity: climate.netatmo_entree
> title: Down Consigne
> tap_action:
> action: call-service
> service: Script.netatmo_decrement_consigne
> hold_action:
> action: more-info
> image: /local/netatmo/Netatmo_down.png
> style:
> top: 52.6%
> left: 56.5%
> width: 6%
> - type: image
> entity: sensor.netatmo_hvac_action
> title: Temoin Chauffe
> tap_action:
> action: none
> image: /local/netatmo/Netatmo_chauffe.png
> style:
> top: 58%
> left: 25.5%
> width: 7%
> state_filter:
> heating: brightness(100%) saturate(1)
> idle: opacity(0%)
> - type: image
> entity: sensor.netatmo_preset_mode
> title: Mode de fonctionnement
> style:
> top: 29.9%
> left: 39%
> width: 11%
> state_image:
> manual: /local/netatmo/Netatmo_manual.png
> Schedule: /local/netatmo/Automatique.png
> away: /local/netatmo/Absent.png
> Frost Guard: /local/netatmo/Hors Gel.png
> tap_action:
> action: none
> - type: state-label
> entity: climate.netatmo_entree
> attribute: current_temperature
> unit_of_measurement: .
> title: Température Actuelle
> tap_action:
> action: null
> style:
> top: 48%
> left: 25.5%
> font-size: 1.6em
> color: black
> font-weight: 600
> - type: state-label
> entity: sensor.netatmo_temperature_consigne
> title: Température de consigne
> tap_action:
> action: null
> style:
> top: 25%
> left: 25.5%
> font-size: 1em
> color: white
> font-weight: 600
> - type: state-label
> entity: climate.netatmo_entree
> attribute: friendly_name
> style:
> top: 25%
> left: 66%
> font-size: 1.4em
> color: black
> font-weight: 400
> - type: state-label
> entity: sensor.thermostat_entree_battery_percent
> title: '% Batterie'
> tap_action:
> action: none
> style:
> top: 79%
> left: 8.3%
> font-size: 0.7em
> color: grey
> font-weight: 600
> - type: state-icon
> entity: sensor.thermostat_entree_battery_percent
> title: Niveau Batterie
> icon: mdi:battery-high
> tap_action:
> action: more-info
> style:
> top: 86%
> left: 8%
> '--paper-item-icon-color': grey
> - type: image
> entity: climate.netatmo_entree
> title: null
> tap_action:
> action: none
> image: /local/netatmo/bouton_fond-300x98.png
> style:
> top: 83.2%
> left: 71%
> width: 58%
> - type: image
> entity: climate.netatmo_entree
> title: Passer en Mode Absent
> tap_action:
> action: call-service
> service: Script.netatmo_mode_absent
> image: /local/netatmo/Absent.png
> style:
> top: 83%
> left: 53%
> width: 12%
> - type: image
> entity: climate.netatmo_entree
> title: Passer en Mode Hors Gel
> tap_action:
> action: call-service
> service: Script.netatmo_mode_hors_gel
> image: /local/netatmo/Hors Gel.png
> style:
> top: 83.2%
> left: 79.5%
> width: 14.5%
> - type: image
> entity: climate.netatmo_entree
> title: Passer en Mode Automatique
> tap_action:
> action: call-service
> service: Script.netatmo_mode_schedule
> image: /local/netatmo/Automatique.png
> style:
> top: 83.2%
> left: 67%
> width: 10%
> - type: state-label
> entity: select.netatmo_domicile
> title: Planning
> icon: mdi:calendar
> style:
> top: 85%
> left: 27%
> '--paper-item-icon-color': rgb(68,68,68)
> - type: image
> entity: climate.netatmo_entree
> title: On / Off
> style:
> top: 10%
> left: 8%
> width: 07%
> state_image:
> 'off': /local/netatmo/netatmo-off.png
> auto: /local/netatmo/netatmo-on.png
> tap_action:
> action: call-service
> service: Script.netatmo_on_off
> - type: picture-elements
> image: /local/netatmo/Netatmo_background_409x762_2.png
> elements:
> - type: image
> entity: climate.netatmo_entree
> image: /local/netatmo/Engie.png
> title: null
> tap_action:
> action: none
> style:
> top: 10%
> left: 90%
> width: 10%
> - type: image
> entity: climate.netatmo_entree
> title: Up Consigne
> tap_action:
> action: call-service
> service: Script.netatmo_increment_consigne
> hold_action:
> action: more-info
> image: /local/netatmo/Netatmo_up.png
> style:
> top: 52.6%
> left: 76.5%
> width: 6%
> - type: image
> entity: climate.netatmo_entree
> title: Down Consigne
> tap_action:
> action: call-service
> service: Script.netatmo_decrement_consigne
> hold_action:
> action: more-info
> image: /local/netatmo/Netatmo_down.png
> style:
> top: 52.6%
> left: 56.5%
> width: 6%
> - type: image
> entity: sensor.netatmo_hvac_action
> title: Temoin Chauffe
> tap_action:
> action: none
> image: /local/netatmo/Netatmo_chauffe.png
> style:
> top: 58%
> left: 25.5%
> width: 7%
> state_filter:
> heating: brightness(100%) saturate(1)
> idle: opacity(0%)
> - type: image
> entity: sensor.netatmo_preset_mode
> title: Mode de fonctionnement
> style:
> top: 29.9%
> left: 39%
> width: 11%
> state_image:
> manual: /local/netatmo/Netatmo_manual.png
> Schedule: /local/netatmo/Automatique.png
> away: /local/netatmo/Absent.png
> Frost Guard: /local/netatmo/Hors Gel.png
> tap_action:
> action: none
> - type: state-label
> entity: climate.netatmo_entree
> attribute: current_temperature
> unit_of_measurement: .
> title: Température Actuelle
> tap_action:
> action: null
> style:
> top: 48%
> left: 25.5%
> font-size: 1.6em
> color: black
> font-weight: 600
> - type: state-label
> entity: sensor.netatmo_temperature_consigne
> title: Température de consigne
> tap_action:
> action: null
> style:
> top: 25%
> left: 25.5%
> font-size: 1em
> color: white
> font-weight: 600
> - type: state-label
> entity: climate.netatmo_entree
> attribute: friendly_name
> style:
> top: 25%
> left: 66%
> font-size: 1.4em
> color: black
> font-weight: 400
> - type: state-label
> entity: sensor.thermostat_entree_battery_percent
> title: '% Batterie'
> tap_action:
> action: none
> style:
> top: 79%
> left: 8.3%
> font-size: 0.7em
> color: grey
> font-weight: 600
> - type: state-icon
> entity: sensor.thermostat_entree_battery_percent
> title: Niveau Batterie
> icon: mdi:battery-high
> tap_action:
> action: more-info
> style:
> top: 86%
> left: 8%
> '--paper-item-icon-color': grey
> - type: image
> entity: climate.netatmo_entree
> title: null
> tap_action:
> action: none
> image: /local/netatmo/bouton_fond-300x98.png
> style:
> top: 83.2%
> left: 71%
> width: 58%
> - type: image
> entity: climate.netatmo_entree
> title: Passer en Mode Absent
> tap_action:
> action: call-service
> service: Script.netatmo_mode_absent
> image: /local/netatmo/Absent.png
> style:
> top: 83%
> left: 53%
> width: 12%
> - type: image
> entity: climate.netatmo_entree
> title: Passer en Mode Hors Gel
> tap_action:
> action: call-service
> service: Script.netatmo_mode_hors_gel
> image: /local/netatmo/Hors Gel.png
> style:
> top: 83.2%
> left: 79.5%
> width: 14.5%
> - type: image
> entity: climate.netatmo_entree
> title: Passer en Mode Automatique
> tap_action:
> action: call-service
> service: Script.netatmo_mode_schedule
> image: /local/netatmo/Automatique.png
> style:
> top: 83.2%
> left: 67%
> width: 10%
> - type: state-label
> entity: select.netatmo_domicile
> title: Planning
> icon: mdi:calendar
> style:
> top: 85%
> left: 27%
> '--paper-item-icon-color': rgb(68,68,68)
> - type: image
> entity: climate.netatmo_entree
> title: On / Off
> style:
> top: 10%
> left: 8%
> width: 07%
> state_image:
> 'off': /local/netatmo/netatmo-off.png
> auto: /local/netatmo/netatmo-on.png
> tap_action:
> action: call-service
> service: Script.netatmo_on_off
> 
> ```

Je pense qu'il doit aussi être possible d'ajouter 4 boutons master, v1, v2, v3 et d'utiliser la carte condition, mais ces boutons vont alourdir la carte. si tu souhaite vraiment ces boutons, je peux regarder la faisabilité.  
@+

---

_[View the full topic](https://forum.hacf.fr/t/carte-pour-thermostat-netatmo/4531)._
