From 325559fe3dabf1b3f1f98796a1935f553dfd7494 Mon Sep 17 00:00:00 2001 From: James Walker Date: Sun, 9 Feb 2025 12:58:14 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20add=20wakeup=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- automations.yaml | 15 ++++++++++++++- scripts/bedtime.yaml | 8 ++++++-- scripts/goodnight.yaml | 4 ++-- scripts/wakeup.yaml | 9 +++++++++ 4 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 scripts/wakeup.yaml 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