Skip to content

Instantly share code, notes, and snippets.

@fortepc
Created August 20, 2020 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fortepc/643e315eaa80e4fd3e00171f18c97bd3 to your computer and use it in GitHub Desktop.
Save fortepc/643e315eaa80e4fd3e00171f18c97bd3 to your computer and use it in GitHub Desktop.
HA Boot Automation YAML
- id: '1597591141216'
alias: Home Assistant Boot Sound
description: ''
trigger:
- event: start
platform: homeassistant
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_select.ha_boot_sound
state: Voice Message
sequence:
- data:
entity_id: media_player.house
message: May the Force be with you.
entity_id: media_player.house
service: tts.cloud_say
- conditions:
- condition: state
entity_id: input_select.ha_boot_sound
state: Windows 3.1
sequence:
- data:
entity_id: media_player.house
media_content_id: http://cs.furman.edu/~chealy/cs461/booting/Microsoft%20Windows%203.1%20Startup%20Sound.mp3
media_content_type: music
entity_id: media_player.house
service: media_player.play_media
- conditions:
- condition: state
entity_id: input_select.ha_boot_sound
state: Windows 95
sequence:
- data:
entity_id: media_player.house
media_content_id: http://cs.furman.edu/~chealy/cs461/booting/Microsoft%20Windows%2095%20Startup%20Sound.mp3
media_content_type: music
entity_id: media_player.house
service: media_player.play_media
- conditions:
- condition: state
entity_id: input_select.ha_boot_sound
state: Windows NT
sequence:
- data:
entity_id: media_player.house
media_content_id: http://cs.furman.edu/~chealy/cs461/booting/Microsoft%20Windows%20NT%20Startup%20Sound.mp3
media_content_type: music
entity_id: media_player.house
service: media_player.play_media
- conditions:
- condition: state
entity_id: input_select.ha_boot_sound
state: Windows 98
sequence:
- data:
entity_id: media_player.house
media_content_id: http://cs.furman.edu/~chealy/cs461/booting/Windows%2098%20Startup.mp3
media_content_type: music
entity_id: media_player.house
service: media_player.play_media
- conditions:
- condition: state
entity_id: input_select.ha_boot_sound
state: Windows 2000
sequence:
- data:
entity_id: media_player.house
media_content_id: http://cs.furman.edu/~chealy/cs461/booting/Windows%202000%20Startup.mp3
media_content_type: music
entity_id: media_player.house
service: media_player.play_media
- conditions:
- condition: state
entity_id: input_select.ha_boot_sound
state: Windows ME
sequence:
- data:
entity_id: media_player.house
media_content_id: http://cs.furman.edu/~chealy/cs461/booting/Windows%20ME%20Startup.mp3
media_content_type: music
entity_id: media_player.house
service: media_player.play_media
- conditions:
- condition: state
entity_id: input_select.ha_boot_sound
state: Windows XP
sequence:
- data:
entity_id: media_player.house
media_content_id: http://cs.furman.edu/~chealy/cs461/booting/Windows%20XP%20Startup.mp3
media_content_type: music
entity_id: media_player.house
service: media_player.play_media
- conditions:
- condition: state
entity_id: input_select.ha_boot_sound
state: Windows Vista
sequence:
- data:
entity_id: media_player.house
media_content_id: http://cs.furman.edu/~chealy/cs461/booting/Windows%20Vista%20Startup.mp3
media_content_type: music
entity_id: media_player.house
service: media_player.play_media
- conditions:
- condition: state
entity_id: input_select.ha_boot_sound
state: Windows 7
sequence:
- data:
entity_id: media_player.house
media_content_id: http://cs.furman.edu/~chealy/cs461/booting/Windows%207%20Startup.mp3
media_content_type: music
entity_id: media_player.house
service: media_player.play_media
default:
- data:
message: State of "input_select.ha_boot_sound" not recognized as an option
title: Boot Sound Automation Error
service: persistent_notification.create
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment