I'm trying to put a trigger together, that sends an email once the event happens and a subsequent email every {{ delay }} minutes later, as long as the tiggering event is active.
My current spec is as follows:
alias: Degree Minute is below -500
description: ""
triggers:
- trigger: numeric_state
entity_id:
- sensor.degree_minute
below: -500
conditions: []
actions:
- device_id: 1266358ed4d6399f1dabccb66e0e7615
domain: mobile_app
type: notify
message: Degree Minute is below -500
- device_id: c607151773a54d17af320fac9d16b532
domain: mobile_app
type: notify
message: Degree Minute is below -500
- repeat:
until:
- condition: state
entity_id: automation.degree_minute_is_below_500
state: "off"
sequence:
- action: notify.smtp
metadata: {}
data:
message: >
Degree minute is currently {{ states.sensor.degree_minute.state }}
System state is: {{ states.sensor.hs1_status.state }}
Primary flow temp: {{ states.sensor.hs1_primary_flow_temperature.state }}
Current RPS: {{ states.sensor.hp1_a1_current_rps.state }}
Brine pump: {{ states.binary_sensor.hp1_a1_brine_pump.state }}
title: >-
Critical - Degree minute {{ states.sensor.degree_minute.state }}
target:
- foo@example.com