Bonjour,
Merci @jerome6994 pour la confirmation.
J’ai donc créer une carte par vanne soit 7 en tout et une carte deédie pour les modes et programme.
J’ai du adapter dans mon ficher /config/scripts.yaml les consignes increment (+) et decrement (-) pour qu’elle soient spécific a chaque vanne, ex:
Citation
netatmo_increment_consigne_salon:
alias: netatmo_increment_consigne_salon
…
netatmo_decrement_consigne_salon:
alias: netatmo_decrement_consigne_salon
Citation
Tout marche, il me reste un point ou je bloque c’est lorsque justement j’utilise le + ou le - et que je check dans l’app netatmo la vannne se met a jour correctement sur la vanne ciblée.
En revanche sur la carte la temperature de consique se met à jour sur toute les vannes !
J’ai essayé d’individualisé les variables sur le base des fonctions increment / decrement mais sans succès.
Auriez-vous une idée d’ou cela peut provenir ?
Merci par avance pour votre aide
Voici une partie de ma config :
#################################
#### NETATMO-SCRIPTS ############
#### Mode ##########
#################################
netatmo_mode_absent:
alias: netatmo_mode_absent
sequence:
- service: climate.set_preset_mode
target:
# Remplacer "netatmo_entree" par le nom de votre thermostat
entity_id: select.segny
data:
preset_mode: away
- service: python_script.set_state
data_template:
entity_id: sensor.netatmo_preset_mode
state: away
mode: single
netatmo_mode_hors_gel:
alias: netatmo_mode_hors_gel
sequence:
- service: climate.set_preset_mode
target:
# Remplacer "netatmo_entree" par le nom de votre thermostat
entity_id: select.segny
data:
preset_mode: Frost Guard
- service: python_script.set_state
data_template:
entity_id: sensor.netatmo_preset_mode
state: Frost Guard
mode: single
netatmo_mode_schedule:
alias: netatmo_mode_schedule
sequence:
- service: climate.set_preset_mode
target:
# Remplacer "netatmo_entree" par le nom de votre thermostat
entity_id: select.segny
data:
preset_mode: Schedule
- service: python_script.set_state
data_template:
entity_id: sensor.netatmo_preset_mode
state: Schedule
mode: single
#################################
#### NETATMO-SCRIPTS ############
#### climate.chambre_ambre ######
#################################
netatmo_increment_consigne_ambre:
alias: netatmo_increment_consigne_ambre
sequence:
- service: climate.set_temperature
data:
temperature: '{{(states.sensor.netatmo_temperature_consigne.state | float +
0.5)}}'
target:
# Remplacer "netatmo_entree" par le nom de votre thermostat
entity_id: climate.chambre_ambre
- service: python_script.set_state
data_template:
entity_id: sensor.netatmo_temperature_consigne_ambre
state: '{{(states.sensor.netatmo_temperature_consigne.state | float + 0.5)}}'
mode: single
netatmo_decrement_consigne_ambre:
alias: netatmo_decrement_consigne_ambre
sequence:
- service: climate.set_temperature
data:
temperature: '{{(states.sensor.netatmo_temperature_consigne.state | float -
0.5)}}'
target:
# Remplacer "netatmo_entree" par le nom de votre thermostat
entity_id: climate.chambre_ambre
- service: python_script.set_state
data_template:
entity_id: sensor.netatmo_temperature_consigne_ambre
state: '{{(states.sensor.netatmo_temperature_consigne.state | float - 0.5)}}'
mode: single
#################################
#### climate.salon ##############
#################################
netatmo_increment_consigne_salon:
alias: netatmo_increment_consigne_salon
sequence:
- service: climate.set_temperature
data:
temperature: '{{(states.sensor.netatmo_temperature_consigne.state | float +
0.5)}}'
target:
# Remplacer "netatmo_entree" par le nom de votre thermostat
entity_id: climate.salon
- service: python_script.set_state
data_template:
entity_id: sensor.netatmo_temperature_consigne
state: '{{(states.sensor.netatmo_temperature_consigne.state | float + 0.5)}}'
mode: single
netatmo_decrement_consigne_salon:
alias: netatmo_decrement_consigne_salon
sequence:
- service: climate.set_temperature
data:
temperature: '{{(states.sensor.netatmo_temperature_consigne.state | float -
0.5)}}'
target:
# Remplacer "netatmo_entree" par le nom de votre thermostat
entity_id: climate.salon
- service: python_script.set_state
data_template:
entity_id: sensor.netatmo_temperature_consigne
state: '{{(states.sensor.netatmo_temperature_consigne.state | float - 0.5)}}'
mode: single
sensors.yaml :
#####climate.chambre_ambre#######
- platform: template
sensors:
netatmo_temperature_consigne:
# Remplacer "Entrée" par le nom de votre thermostat
friendly_name: température consigne Chambre de Ambre
device_class: temperature
unit_of_measurement: '°C'
# Remplacer "netatmo_entree" par le nom de votre thermostat
value_template: >
{% set tempcon = state_attr('climate.chambre_ambre', 'temperature') %}
{% if tempcon == 0 %}
OFF
{% else %}
{{ state_attr('climate.chambre_ambre', 'temperature') }}
{% endif %}
netatmo_hvac_action:
# Remplacer "Entrée" par le nom de votre thermostat
friendly_name: Hvac action Chambre de Ambre
# Remplacer "netatmo_entree" par le nom de votre thermostat
value_template: "{{ state_attr('climate.chambre_ambre', 'hvac_action') }}"
netatmo_preset_mode:
# Remplacer "Entrée" par le nom de votre thermostat
friendly_name: Preset mode Chambre de Ambre
# Remplacer "netatmo_entree" par le nom de votre thermostat
value_template: "{{ state_attr('climate.chambre_ambre', 'preset_mode') }}"
#####climate.salon#######
- platform: template
sensors:
netatmo_temperature_consigne:
# Remplacer "Entrée" par le nom de votre thermostat
friendly_name: température consigne Salon
device_class: temperature
unit_of_measurement: '°C'
# Remplacer "netatmo_entree" par le nom de votre thermostat
value_template: >
{% set tempcon = state_attr('climate.salon', 'temperature') %}
{% if tempcon == 0 %}
OFF
{% else %}
{{ state_attr('climate.salon', 'temperature') }}
{% endif %}
netatmo_hvac_action:
# Remplacer "Entrée" par le nom de votre thermostat
friendly_name: Hvac action Salon
# Remplacer "netatmo_entree" par le nom de votre thermostat
value_template: "{{ state_attr('climate.salon', 'hvac_action') }}"
netatmo_preset_mode:
# Remplacer "Entrée" par le nom de votre thermostat
friendly_name: Preset mode Salon
# Remplacer "netatmo_entree" par le nom de votre thermostat
value_template: "{{ state_attr('climate.salon', 'preset_mode') }}"
[center]type: picture-elements[/center]
[center]image: /local/netatmo/Netatmo_background_409x762_2.png[/center]
[center]elements:[/center]
[center] - type: image[/center]
[center] entity: climate.chambre_ambre[/center]
[center] title: Up Consigne[/center]
[center] tap_action:[/center]
[center] action: call-service[/center]
[center] service: Script.netatmo_increment_consigne_ambre[/center]
[center] hold_action:[/center]
[center] action: more-info[/center]
[center] image: /local/netatmo/Netatmo_up.png[/center]
[center] style:[/center]
[center] top: 52.6%[/center]
[center] left: 76.5%[/center]
[center] width: 6%[/center]
[center] - type: image[/center]
[center] entity: climate.chambre_ambre[/center]
[center] title: Down Consigne[/center]
[center] tap_action:[/center]
[center] action: call-service[/center]
[center] service: Script.netatmo_decrement_consigne_ambre[/center]
[center] hold_action:[/center]
[center] action: more-info[/center]
[center] image: /local/netatmo/Netatmo_down.png[/center]
[center] style:[/center]
[center] top: 52.6%[/center]
[center] left: 56.5%[/center]
[center] width: 6%[/center]
[center] - type: image[/center]
[center] entity: sensor.netatmo_hvac_action[/center]
[center] title: Temoin Chauffe[/center]
[center] tap_action:[/center]
[center] action: none[/center]
[center] image: /local/netatmo/Netatmo_chauffe.png[/center]
[center] style:[/center]
[center] top: 58%[/center]
[center] left: 25.5%[/center]
[center] width: 7%[/center]
[center] state_filter:[/center]
[center] heating: brightness(100%) saturate(1)[/center]
[center] idle: opacity(0%)[/center]
[center] - type: image[/center]
[center] entity: sensor.netatmo_preset_mode[/center]
[center] title: Mode de fonctionnement[/center]
[center] style:[/center]
[center] top: 29.9%[/center]
[center] left: 39%[/center]
[center] width: 11%[/center]
[center] state_image:[/center]
[center] manual: /local/netatmo/Netatmo_manual.png[/center]
[center] Schedule: /local/netatmo/Automatique.png[/center]
[center] away: /local/netatmo/Absent.png[/center]
[center] Frost Guard: /local/netatmo/Hors Gel.png[/center]
[center] tap_action:[/center]
[center] action: none[/center]
[center] - type: state-label[/center]
[center] entity: climate.chambre_ambre[/center]
[center] attribute: current_temperature[/center]
[center] unit_of_measurement: .[/center]
[center] title: Température Actuelle[/center]
[center] tap_action:[/center]
[center] action: null[/center]
[center] style:[/center]
[center] top: 48%[/center]
[center] left: 25.5%[/center]
[center] font-size: 1.6em[/center]
[center] color: black[/center]
[center] font-weight: 600[/center]
[center] - type: state-label[/center]
[center] entity: sensor.netatmo_temperature_consigne[/center]
[center] title: Température de consigne[/center]
[center] tap_action:[/center]
[center] action: null[/center]
[center] style:[/center]
[center] top: 25%[/center]
[center] left: 25.5%[/center]
[center] font-size: 1em[/center]
[center] color: white[/center]
[center] font-weight: 600[/center]
[center] - type: state-label[/center]
[center] entity: climate.chambre_ambre[/center]
[center] attribute: friendly_name[/center]
[center] style:[/center]
[center] top: 25%[/center]
[center] left: 66%[/center]
[center] font-size: 1.4em[/center]
[center] color: black[/center]
[center] font-weight: 400[/center]
[center] - type: state-label[/center]
[center] entity: sensor.vanne_chambre_ambre_battery_percent[/center]
[center] title: '% Batterie'[/center]
[center] tap_action:[/center]
[center] action: none[/center]
[center] style:[/center]
[center] top: 79%[/center]
[center] left: 8.3%[/center]
[center] font-size: 0.7em[/center]
[center] color: grey[/center]
[center] font-weight: 600[/center]
[center] - type: state-icon[/center]
[center] entity: sensor.vanne_chambre_ambre_battery_percent[/center]
[center] title: Niveau Batterie[/center]
[center] icon: mdi:battery-high[/center]
[center] tap_action:[/center]
[center] action: more-info[/center]
[center] style:[/center]
[center] top: 86%[/center]
[center] left: 8%[/center]
[center] '--paper-item-icon-color': grey[/center]
[center]type: picture-elements[/center]
[center]image: /local/netatmo/Netatmo_background_409x762_2.png[/center]
[center]elements:[/center]
[center] - type: image[/center]
[center] entity: climate.salon[/center]
[center] title: Up Consigne[/center]
[center] tap_action:[/center]
[center] action: call-service[/center]
[center] service: Script.netatmo_increment_consigne_salon[/center]
[center] hold_action:[/center]
[center] action: more-info[/center]
[center] image: /local/netatmo/Netatmo_up.png[/center]
[center] style:[/center]
[center] top: 52.6%[/center]
[center] left: 76.5%[/center]
[center] width: 6%[/center]
[center] - type: image[/center]
[center] entity: climate.salon[/center]
[center] title: Down Consigne[/center]
[center] tap_action:[/center]
[center] action: call-service[/center]
[center] service: Script.netatmo_decrement_consigne_salon[/center]
[center] hold_action:[/center]
[center] action: more-info[/center]
[center] image: /local/netatmo/Netatmo_down.png[/center]
[center] style:[/center]
[center] top: 52.6%[/center]
[center] left: 56.5%[/center]
[center] width: 6%[/center]
[center] - type: image[/center]
[center] entity: sensor.netatmo_hvac_action[/center]
[center] title: Temoin Chauffe[/center]
[center] tap_action:[/center]
[center] action: none[/center]
[center] image: /local/netatmo/Netatmo_chauffe.png[/center]
[center] style:[/center]
[center] top: 58%[/center]
[center] left: 25.5%[/center]
[center] width: 7%[/center]
[center] state_filter:[/center]
[center] heating: brightness(100%) saturate(1)[/center]
[center] idle: opacity(0%)[/center]
[center] - type: image[/center]
[center] entity: sensor.netatmo_preset_mode[/center]
[center] title: Mode de fonctionnement[/center]
[center] style:[/center]
[center] top: 29.9%[/center]
[center] left: 39%[/center]
[center] width: 11%[/center]
[center] state_image:[/center]
[center] manual: /local/netatmo/Netatmo_manual.png[/center]
[center] Schedule: /local/netatmo/Automatique.png[/center]
[center] away: /local/netatmo/Absent.png[/center]
[center] Frost Guard: /local/netatmo/Hors Gel.png[/center]
[center] tap_action:[/center]
[center] action: none[/center]
[center] - type: state-label[/center]
[center] entity: climate.salon[/center]
[center] attribute: current_temperature[/center]
[center] unit_of_measurement: .[/center]
[center] title: Température Actuelle[/center]
[center] tap_action:[/center]
[center] action: null[/center]
[center] style:[/center]
[center] top: 48%[/center]
[center] left: 25.5%[/center]
[center] font-size: 1.6em[/center]
[center] color: black[/center]
[center] font-weight: 600[/center]
[center] - type: state-label[/center]
[center] entity: sensor.netatmo_temperature_consigne[/center]
[center] title: Température de consigne[/center]
[center] tap_action:[/center]
[center] action: null[/center]
[center] style:[/center]
[center] top: 25%[/center]
[center] left: 25.5%[/center]
[center] font-size: 1em[/center]
[center] color: white[/center]
[center] font-weight: 600[/center]
[center] - type: state-label[/center]
[center] entity: climate.salon[/center]
[center] attribute: friendly_name[/center]
[center] style:[/center]
[center] top: 25%[/center]
[center] left: 66%[/center]
[center] font-size: 1.4em[/center]
[center] color: black[/center]
[center] font-weight: 400[/center]
[center] - type: state-label[/center]
[center] entity: sensor.vanne_chemin_battery_percent[/center]
[center] title: '% Batterie'[/center]
[center] tap_action:[/center]
[center] action: none[/center]
[center] style:[/center]
[center] top: 79%[/center]
[center] left: 8.3%[/center]
[center] font-size: 0.7em[/center]
[center] color: grey[/center]
[center] font-weight: 600[/center]
[center] - type: state-icon[/center]
[center] entity: sensor.vanne_chemin_battery_percent[/center]
[center] title: Niveau Batterie Chemin[/center]
[center] icon: mdi:battery-high[/center]
[center] tap_action:[/center]
[center] action: more-info[/center]
[center] style:[/center]
[center] top: 86%[/center]
[center] left: 8%[/center]
[center] '--paper-item-icon-color': grey[/center]
[center] - type: state-label[/center]
[center] entity: sensor.vanne_entree_battery_percent[/center]
[center] title: '% Batterie'[/center]
[center] tap_action:[/center]
[center] action: none[/center]
[center] style:[/center]
[center] top: 79%[/center]
[center] left: 15.3%[/center]
[center] font-size: 0.7em[/center]
[center] color: grey[/center]
[center] font-weight: 600[/center]
[center] - type: state-icon[/center]
[center] entity: sensor.vanne_entree_battery_percent[/center]
[center] title: Niveau Batterie Entree[/center]
[center] icon: mdi:battery-high[/center]
[center] tap_action:[/center]
[center] action: more-info[/center]
[center] style:[/center]
[center] top: 86%[/center]
[center] left: 15%[/center]
[center] '--paper-item-icon-color': grey[/center]
[center] - type: state-label[/center]
[center] entity: sensor.vanne_jardin_battery_percent[/center]
[center] title: '% Batterie'[/center]
[center] tap_action:[/center]
[center] action: none[/center]
[center] style:[/center]
[center] top: 79%[/center]
[center] left: 22.3%[/center]
[center] font-size: 0.7em[/center]
[center] color: grey[/center]
[center] font-weight: 600[/center]
[center] - type: state-icon[/center]
[center] entity: sensor.vanne_jardin_battery_percent[/center]
[center] title: Niveau Batterie Entree[/center]
[center] icon: mdi:battery-high[/center]
[center] tap_action:[/center]
[center] action: more-info[/center]
[center] style:[/center]
[center] top: 86%[/center]
[center] left: 22%[/center]
[center] '--paper-item-icon-color': grey[/center]