Hello,
For my kookpit I created an automation that sends an alert when the kook proces is ‘finished’.
This also alerts when kooking water (or something not worth to send a notification for)
Therefore i would like to make a condition or trigger that only alarts when the kookproces has run for at least 10 minutes.
What i have for now:
---
#
# Send notification when Kookplaar Operation Status changes from Run to Inactive or Ready
#
description: Kookprogramma is Klaar
alias: Home Connect Kookpit Finished
id: '1812202113140'
mode: single
trigger:
- platform: state
entity_id: sensor.kookplaat_operation_state
for:
hours: 0
minutes: 0
seconds: 10
from: Run
to: Inactive
- platform: state
entity_id: sensor.kookplaat_operation_state
for:
hours: 0
minutes: 0
seconds: 10
from: Ready
to: Inactive
condition:
- condition: time
before: '20:00'
after: '13:00'
action:
- service: notify.all_phones
data:
message: De kookplaat werd uitgeschakeld, waarschijnlijk is het eten klaar. 👩🍳
title: Kookproces is Afgerond
data:
channel: "Huishoudelijk"
importance: high
I tried a condition "AND if time… And ‘operation_state run for 10 minutes’, but then it does not send any notification anymore