Salut, tu peux aussi regarder du côté des loop / repeat Script Syntax - Home Assistant
- id: '161210'
alias: Temp_maternité
description: ''
trigger:
- type: temperature
platform: device
device_id: 8d43683
entity_id: sensor.temp_temperature
domain: sensor
below: 19
condition: []
action:
repeat:
- device_id: 9d322b5b
domain: mobile_app
type: notify
message: 'La température est en dessous de 19° '
title: Alerte Maternité
- device_id: 17e0e8e9
domain: mobile_app
type: notify
message: 'La température est en dessous de 19° '
title: Alerte Maternité
- delay:
minutes: 1
until:
- condition: or
conditions:
- condition: numeric_state
entity_id: sensor.temp_temperature
above: 19
- condition: template
value_template: "{{ repeat.index >= 10 }}"
mode: single