Current automation config requires the light to be is_on when repeat loop resets
Is it possible to have the condition be met when the light was_on in the last 5 minutes?
alias: Washing Machine
description: ''
trigger:
- type: power
platform: device
device_id: xxx
entity_id: sensor.power
domain: sensor
below: 4
for:
hours: 0
minutes: 5
seconds: 0
condition:
- condition: or
conditions:
- condition: state
entity_id: person.xxx2
state: home
- condition: state
entity_id: person.xxx
state: home
action:
- repeat:
until:
- condition: device
type: is_on
device_id: xxx
entity_id: light.laundry
domain: light
sequence:
- service: tts.cloud_say
data:
entity_id: media_player.all_speakers
message: Wet washing in the washing machine.
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
mode: single