Files
Home-Assistant-Configs/scripts.yaml

375 lines
8.8 KiB
YAML

start_netflix:
alias: Start Netflix (Living Room)
sequence:
- service: media_player.select_source
target:
entity_id: media_player.living_room_tv
data:
source: com.netflix.ninja
mode: single
icon: mdi:netflix
stop_netflix:
alias: Stop Netflix (Living Room)
sequence:
- service: media_player.select_source
target:
entity_id: media_player.living_room_tv
data:
source: '!com.netflix.ninja'
mode: single
icon: mdi:netflix
give_me_darkness:
alias: Give Me Darkness
sequence:
- service: switch.turn_on
target:
entity_id:
- switch.adaptive_lighting_sleep_mode_upstairs_hallway
- switch.adaptive_lighting_sleep_mode_mud_room
- switch.adaptive_lighting_sleep_mode_dining_room
- switch.adaptive_lighting_sleep_mode_upstairs_bathroom
data: {}
- service: light.turn_off
target:
area_id:
- kallen_bedroom
- master_bedroom
- living_room
- nursery
- downstairs_bathroom
data: {}
- service: light.turn_on
data: {}
target:
area_id: upstairs_bathroom
mode: single
icon: mdi:weather-night
start_youtube:
alias: Start Youtube (Living Room)
sequence:
- service: media_player.select_source
target:
entity_id: media_player.living_room_tv
data:
source: com.google.android.youtube.tv
mode: single
icon: mdi:youtube
stop_youtube:
alias: Stop Youtube (Living Room)
sequence:
- service: media_player.select_source
target:
entity_id: media_player.living_room_tv
data:
source: '!com.google.android.youtube.tv'
mode: single
icon: mdi:youtube
start_twitch:
alias: Start Twitch (Living Room)
sequence:
- service: media_player.select_source
target:
entity_id: media_player.living_room_tv
data:
source: tv.twitch.android.app
mode: single
icon: mdi:twitch
stop_twitch:
alias: Stop Twitch (Living Room)
sequence:
- service: media_player.select_source
data:
source: '!tv.twitch.android.app'
target:
entity_id: media_player.living_room_tv
mode: single
icon: mdi:twitch
start_spotify:
alias: Start Spotify (Living Room)
sequence:
- service: media_player.select_source
target:
entity_id: media_player.living_room_tv
data:
source: com.spotify.tv.android
mode: single
icon: mdi:spotify
stop_spotify:
alias: Stop Spotify (Living Room)
sequence:
- service: media_player.select_source
target:
entity_id: media_player.living_room_tv
data:
source: '!com.spotify.tv.android'
mode: single
icon: mdi:spotify
alexa_tts_test:
alias: Alexa TTS Test
sequence:
- service: notify.alexa_media
data:
data:
method: all
type: announce
target: Living Room Echo Dot
message: I farted
mode: single
icon: mdi:test-tube
family_is_away:
alias: Family Is Away
sequence:
- condition: state
entity_id: group.family
state: not_home
- service: light.turn_off
target:
area_id:
- basement_studio
- furnace_room
- kallen_bedroom
- living_room
- master_bedroom
- mud_room
- nursery
- upstairs_hallway
- dining_room
- downstairs_bathroom
- upstairs_bathroom
data: {}
- service: alarm_control_panel.alarm_arm_away
target:
entity_id: alarm_control_panel.alexa_guard_9ee3b
data: {}
mode: single
icon: mdi:shield-lock
family_is_home:
alias: Family Is Home
sequence:
- service: switch.turn_off
target:
entity_id: switch.presence_simulation
data: {}
- service: alarm_control_panel.alarm_disarm
target:
entity_id: alarm_control_panel.alexa_guard_9ee3b
data: {}
- service: switch.turn_off
target:
entity_id:
- switch.basement_echo_dot_do_not_disturb_switch
- switch.living_room_echo_dot_do_not_disturb_switch
- switch.master_bedroom_echo_dot_do_not_disturb_switch
data: {}
- service: light.turn_off
target:
area_id:
- furnace_room
- kallen_bedroom
- nursery
- master_bedroom
- upstairs_hallway
- basement_studio
- downstairs_bathroom
- upstairs_bathroom
data: {}
- condition: sun
after: sunset
after_offset: -00:30
- service: light.turn_on
data: {}
target:
entity_id:
- light.living_room_lights
- light.mud_room_overhead
- light.dining_room_lamp
mode: single
icon: mdi:home-account
reading_timer_cancel:
sequence:
- service: timer.cancel
target:
entity_id: timer.reading_timer
mode: single
alias: Reading Timer - Cancel
icon: mdi:cancel
global_off:
alias: Global Off
sequence:
- service: light.turn_off
data: {}
target:
entity_id: all
- service: fan.turn_off
data: {}
target:
entity_id: all
mode: single
icon: mdi:earth-off
global_on:
alias: Global On
sequence:
- service: light.turn_on
data: {}
target:
entity_id: all
mode: single
icon: mdi:earth
max_brightness:
sequence:
- service: switch.turn_off
target:
entity_id:
- switch.adaptive_lighting_basement_studio
- switch.adaptive_lighting_kallen_bedroom
- switch.adaptive_lighting_living_room
- switch.adaptive_lighting_master_bedroom
- switch.adaptive_lighting_mud_room
- switch.adaptive_lighting_nursery
- switch.adaptive_lighting_upstairs_hallway
- switch.adaptive_lighting_dining_room
- switch.adaptive_lighting_upstairs_bathroom
- switch.adaptive_lighting_downstairs_bathroom
data: {}
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: light.turn_on
data:
kelvin: 6400
brightness_pct: 100
target:
entity_id: all
mode: single
alias: Max Brightness
icon: mdi:brightness-7
going_upstairs:
alias: Going Upstairs
sequence:
- service: switch.turn_off
data: {}
target:
entity_id:
- switch.adaptive_lighting_sleep_mode_basement_studio
- switch.adaptive_lighting_sleep_mode_mud_room
- switch.adaptive_lighting_sleep_mode_upstairs_hallway
- switch.adaptive_lighting_sleep_mode_upstairs_bathroom
- service: light.turn_on
data: {}
target:
entity_id:
- light.living_room_lights
- light.basement_led_strip_1
- light.upstairs_bathroom_lights
mode: single
icon: hue:room-stairs
basement_on:
alias: Basement On
sequence:
- service: light.turn_on
data: {}
target:
area_id: basement_studio
- service: script.tony_desktop_wake
data: {}
mode: single
icon: hue:room-stairs
start_youtube_basement:
alias: Start Youtube (Basement)
sequence:
- service: media_player.select_source
data:
source: com.google.android.youtube.tv
target:
entity_id: media_player.basement_tv
mode: single
icon: mdi:youtube
stop_youtube_basement:
alias: Stop Youtube (Basement)
sequence:
- service: media_player.select_source
data:
source: '!com.google.android.youtube.tv'
target:
entity_id: media_player.basement_tv
mode: single
icon: mdi:youtube
start_netflix_basement:
alias: Start Netflix (Basement)
sequence:
- service: media_player.select_source
data:
source: com.netflix.ninja
target:
entity_id: media_player.basement_tv
mode: single
icon: mdi:netflix
stop_netflix_basement:
alias: Stop Netflix (Basement)
sequence:
- service: media_player.select_source
data:
source: '!com.netflix.ninja'
target:
entity_id: media_player.basement_tv
mode: single
icon: mdi:netflix
start_twitch_basement:
alias: Start Twitch (Basement)
sequence:
- service: media_player.select_source
data:
source: tv.twitch.android.app
target:
entity_id: media_player.basement_tv
mode: single
icon: mdi:twitch
stop_twitch_basement:
alias: Stop Twitch (Basement)
sequence:
- service: media_player.select_source
data:
source: '!tv.twitch.android.app'
target:
entity_id: media_player.basement_tv
mode: single
icon: mdi:twitch
start_spotify_basement:
alias: Start Spotify (Basement)
sequence:
- service: media_player.select_source
data:
source: com.spotify.tv.android
target:
entity_id: media_player.basement_tv
mode: single
icon: mdi:spotify
stop_spotify_basement:
alias: Stop Spotify (Basement)
sequence:
- service: media_player.select_source
data:
source: '!com.spotify.tv.android'
target:
entity_id: media_player.basement_tv
mode: single
icon: mdi:spotify
manual_speed_test:
alias: Manual Speed Test
sequence:
- service: speedtestdotnet.speedtest
data: {}
mode: single
icon: mdi:speedometer
watchman_audit:
alias: Watchman Audit
sequence:
- event: ad.watchman.audit
event_data:
send_notification: true
notify_service: notify.ios_tony
mode: single
icon: mdi:magnify