From c5e847fe0f858606cf71189c0f5abcf59c938bdd Mon Sep 17 00:00:00 2001 From: Franco Pellicciotti Date: Thu, 11 Jun 2026 14:31:19 -0400 Subject: [PATCH] Added Toggle Nest Fan Script --- scripts.yaml | 143 +++++++++++++++++++++++++++++---------------------- 1 file changed, 82 insertions(+), 61 deletions(-) diff --git a/scripts.yaml b/scripts.yaml index ecafa7c..49c800d 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -1,95 +1,116 @@ alfred_lock_lock_door: - alias: "Alfred Lock: Lock Door" + alias: 'Alfred Lock: Lock Door' sequence: - - action: google_assistant_sdk.send_text_command - data: - command: Lock the Front Door + - action: google_assistant_sdk.send_text_command + data: + command: Lock the Front Door mode: single icon: mdi:lock - description: "" + description: '' alfred_lock_unlock_door: - alias: "Alfred Lock: Unlock Door" + alias: 'Alfred Lock: Unlock Door' sequence: - - action: google_assistant_sdk.send_text_command - data: - command: Unlock the Front Door - - delay: - hours: 0 - minutes: 0 - seconds: 2 - milliseconds: 0 - - action: google_assistant_sdk.send_text_command - data: - command: "2468" + - action: google_assistant_sdk.send_text_command + data: + command: Unlock the Front Door + - delay: + hours: 0 + minutes: 0 + seconds: 2 + milliseconds: 0 + - action: google_assistant_sdk.send_text_command + data: + command: '2468' mode: single icon: mdi:lock-open - description: "" + description: '' play_80_s_office_room_spotify: alias: Play 80's Office Room Spotify sequence: - - action: media_player.play_media - target: - device_id: ba5bb5aa3747dbfa830ebff5503a5ec3 - data: - media: - media_content_id: play All Out 80s on Spotify on Shuffle - media_content_type: custom - metadata: {} + - action: media_player.play_media + target: + device_id: ba5bb5aa3747dbfa830ebff5503a5ec3 + data: + media: + media_content_id: play All Out 80s on Spotify on Shuffle + media_content_type: custom + metadata: {} mode: single - description: "" + description: '' play_relaxing_office_room_spotify: sequence: - - action: media_player.play_media - target: - device_id: ba5bb5aa3747dbfa830ebff5503a5ec3 - data: - media: - media_content_id: play Relaxing Music Spotify - media_content_type: custom - metadata: {} + - action: media_player.play_media + target: + device_id: ba5bb5aa3747dbfa830ebff5503a5ec3 + data: + media: + media_content_id: play Relaxing Music Spotify + media_content_type: custom + metadata: {} alias: Play Relaxing Office Room Spotify mode: single - description: "" + description: '' stop_office_alexa_music: alias: Stop Office Alexa Music sequence: - - action: media_player.media_stop - target: - device_id: ba5bb5aa3747dbfa830ebff5503a5ec3 + - action: media_player.media_stop + target: + device_id: ba5bb5aa3747dbfa830ebff5503a5ec3 mode: single description: Stops playback on the office Echo speaker stop_music_everywhere: sequence: - - action: media_player.media_stop - target: - device_id: 05ffd6b7a256614b47cf64af85ed4063 - data: {} + - action: media_player.media_stop + target: + device_id: 05ffd6b7a256614b47cf64af85ed4063 + data: {} alias: Stop Music Everywhere mode: single description: Stops playback on the all Echo speaker play_cjad_800_on_office: sequence: - - action: media_player.play_media - target: - device_id: ba5bb5aa3747dbfa830ebff5503a5ec3 - data: - media: - media_content_id: Play CJAD 800 - media_content_type: custom - metadata: {} + - action: media_player.play_media + target: + device_id: ba5bb5aa3747dbfa830ebff5503a5ec3 + data: + media: + media_content_id: Play CJAD 800 + media_content_type: custom + metadata: {} alias: Play CJAD 800 on Office mode: single - description: "" + description: '' play_the_beat_925_on_office: sequence: - - action: media_player.play_media - target: - device_id: ba5bb5aa3747dbfa830ebff5503a5ec3 - data: - media: - media_content_id: Play The Beat925 - media_content_type: custom - metadata: {} + - action: media_player.play_media + target: + device_id: ba5bb5aa3747dbfa830ebff5503a5ec3 + data: + media: + media_content_id: Play The Beat925 + media_content_type: custom + metadata: {} alias: Play The Beat 925 on Office mode: single - description: "" + description: '' +toggle_nest_fan: + alias: Toggle Nest Fan + sequence: + - choose: + - conditions: + - condition: state + entity_id: sensor.nest_fan_mode_status + state: 'on' + sequence: + - action: climate.set_fan_mode + target: + entity_id: climate.living_room_living_room + data: + fan_mode: 'off' + default: + - action: nest.set_fan_timer + target: + entity_id: climate.living_room_living_room + data: + duration: 01:00:00 + description: Toggles the Nest fan on for 1 hour or turns it off if already on.