I finally decided to update HA after about a year. After the updates, HA would lock up everyday. I added system monitors and found the Memory and CPU surges to 80%+ and then locks up. I traced the time to my automations that contain Repeat Until Scripts. The Script Syntax guide (Script Syntax - Home Assistant) has the same example that I am utilizing
: - repeat: until: "{{ is_state('device_tracker.iphone', 'home') }}"
In my automation, once the washer is complete, “Full”, I want to make sure or wait until P is home and that the Dryer is not Dryer, and then I send P an alert to move the clothes to the dryer. I don’t know the best way to redo the script without creating 4 separate Automations for each condition combination. Any guidance would be greatly appreciated.
My Automation:
- id: '1604798000883'
alias: Samsung Washing - Complete - Alert Pato
description: ''
trigger:
- platform: state
entity_id: input_select.washer_state
to: Full
condition:
- condition: time
after: 07:00:00
before: '22:00:00'
action:
- repeat:
until:
- condition: and
conditions:
- condition: state
entity_id: person.p
state: home
- condition: not
conditions:
- condition: state
entity_id: input_select.dryer_state
state: Drying
sequence: []
- condition: state
entity_id: input_select.washer_state
state: Full
- service: notify.p_sms
data:
title: Samsung Washing Machine
message: Washing complete. Move clothes to dryer.
mode: restart