I’m hoping someone can help me figure out how to make my “open blinds” automation start looking at the focus mode of my phone. If my focus mode is set “on”, I want the automation to keep looking until the focus mode is “off”. All of this starting at sunrise. Currently, the automation runs at sunrise - an offset. I can get it to work once where it looks for the focus mode, but it quits after that. Here is the version without the repeat looking for focus mode section. Thanks!
alias: Open blinds
description: ""
trigger:
- platform: sun
event: sunrise
offset: "-00:15:00"
condition: []
action:
- device_id: 93e61ab3d9437ac897c75f9d195bd82a
domain: cover
entity_id: cover.blind_tilt_4167
type: set_tilt_position
position: 50
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- device_id: 3490ceab4db5b794dd091de9077f6aae
domain: cover
entity_id: cover.blind_tilt_0ee7
type: set_tilt_position
position: 50
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- device_id: 8e62c9af132bf187946e5a946fdf5f21
domain: cover
entity_id: cover.blind_tilt_6939
type: set_tilt_position
position: 51
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- device_id: 3848cc635294afd5bf9db8dcff9b48ec
domain: cover
entity_id: 529be8cad18fd485253dcef149cbfb8d
type: set_tilt_position
position: 50
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- device_id: 48da53c2ee94d12650e2980e4d224de6
domain: cover
entity_id: 30f118029e4c1e46f1b229326d44c501
type: set_tilt_position
position: 50
mode: single