11-09-2023 12:43 AM
Normally, we get up at 6:45 when the alarm goes off. If we are at home and it's still not dawn, we turn on some lights
metadata:
name: Encender luces tras alarma
description: A las 6:45, si se detecta presencia, enciende las luces
automations:
- starters:
- type: time.schedule
at: 06:45 am
weekdays:
- MON
- TUE
- WED
- THU
- FRI
condition:
type: and
conditions:
- type: home.state.HomePresence
state: homePresenceMode
is: HOME
- type: time.between
before: sunrise
actions:
type: device.command.OnOff
devices:
- Luz Estudio - Estudio
- Luz Salón - Salón
on: true
- starters:
- type: time.schedule
at: 9:00 am
weekdays:
- MON
- TUE
- WED
- THU
- FRI
actions:
- type: device.command.OnOff
devices:
- Luz Salón - Salón
on: false