diff --git a/automations.yaml b/automations.yaml index fe51488..beee66d 100644 --- a/automations.yaml +++ b/automations.yaml @@ -1 +1,14 @@ -[] +- id: '1724553196564' + alias: Goodnight Action + description: '' + trigger: + - platform: event + event_data: + actionID: B4B3EB14-2508-40F7-883A-204C100B1F2A + event_type: ios.action_fired + condition: [] + action: + - action: script.goodnight + metadata: {} + data: {} + mode: single diff --git a/scripts/bedtime.yaml b/scripts/bedtime.yaml index 9351f51..c7a6b4e 100644 --- a/scripts/bedtime.yaml +++ b/scripts/bedtime.yaml @@ -1,5 +1,7 @@ bedtime: alias: Bedtime + mode: single + icon: mdi:bed sequence: - service: media_player.turn_off data: {} @@ -20,5 +22,7 @@ bedtime: data: {} target: entity_id: scene.bedroom_relax - mode: single - icon: mdi:bed + - service: switch.turn_on + data: {} + target: + entity_id: switch.purifier_night_mode diff --git a/scripts/goodnight.yaml b/scripts/goodnight.yaml index a9bb28f..93b4804 100644 --- a/scripts/goodnight.yaml +++ b/scripts/goodnight.yaml @@ -1,5 +1,7 @@ goodnight: alias: Goodnight + mode: single + icon: mdi:sleep sequence: - service: light.turn_off data: {} @@ -9,5 +11,3 @@ goodnight: - bedroom - closet - hallway - mode: single - icon: mdi:sleep diff --git a/scripts/wakeup.yaml b/scripts/wakeup.yaml new file mode 100644 index 0000000..24aea15 --- /dev/null +++ b/scripts/wakeup.yaml @@ -0,0 +1,9 @@ +wakeup: + alias: Wake up + mode: single + icon: mdi:weather-sunset-up + sequence: + - service: switch.turn_off + data: {} + target: + entity_id: switch.purifier_night_mode