Calcul temp filtration piscine / température eau

Test de l’automatisation OK :+1:

alias: Pompe piscine automatique
description: ''
trigger:
  - platform: time
    at: input_datetime.heure_demarrage_pompe_piscine
condition:
  - condition: state
    entity_id: input_boolean.pompe_piscine_auto
    state: 'on'
action:
  - service: switch.turn_on
    target:
      entity_id: switch.contact_pompe_piscine
  - delay: '{{ states(''sensor.tmpfiltrationpiscine'') }}'
  - service: switch.turn_off
    target:
      entity_id: switch.contact_pompe_piscine
  - service: notify.telegram_sg
    data:
      message: Fin de filtration piscine
mode: single

Paramètre OK du Sensor :

## calcul tmp filtration piscine
  - platform: template
    sensors:
      tmpfiltrationpiscine:
        value_template: "{{ ((states('sensor.temp_piscine') | float(0) / 2 ) * 3600) | timestamp_custom('%H:%M', 0) }}"

Merci beaucoup !!

1 « J'aime »