I have automation that checks with MQTT sends over the Unlocked attribute for my laptop.
I noticed every so often when I turn my laptop off, it does not send over the “Unavailable” or “Unknown” attribute.
So I am creating automation that checks the MQTT, reloads it, and if the state is not Unavailable OR Unlocked, it repeats.
I think the two conditions under Until are being used as AND, not OR.
How would I make them OR?
alias: Reload Drum Machine Laptop
description: ""
trigger:
- platform: state
entity_id:
- sensor.drummachine5150_sessionstate
to: Unlocked
condition: []
action:
- repeat:
sequence:
- service: homeassistant.reload_config_entry
target:
device_id: 7d0654ccf5e27361901a52af9c39e6e6
data: {}
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
until:
- condition: state
entity_id: sensor.drummachine5150_sessionstate
state: unavailable
- condition: state
entity_id: sensor.drummachine5150_sessionstate
state: unknown
mode: single