first scripts

This commit is contained in:
James Walker 2023-03-19 18:23:50 -04:00
parent e1cf2b1117
commit 00364bf4c7
Signed by: walkah
GPG Key ID: 3C127179D6086E93
6 changed files with 44 additions and 2 deletions

View File

@ -1 +1 @@
2023.2.3
2023.3.5

View File

@ -1,4 +1,5 @@
---
# Base configuration.
homeassistant:
name: nerdhaus
latitude: !secret home_latititude
@ -12,5 +13,5 @@ homeassistant:
automation: !include automations.yaml
automation manual: !include_dir_merge_list automations/
script: !include scripts.yaml
script: !include_dir_merge_named scripts
scene: !include scenes.yaml

View File

@ -0,0 +1 @@
[]

View File

24
scripts/bedtime.yaml Normal file
View File

@ -0,0 +1,24 @@
bedtime:
alias: Bedtime
sequence:
- service: media_player.turn_off
data: {}
target:
entity_id:
- media_player.main_floor
- media_player.lg_tv
- service: light.turn_off
data: {}
target:
entity_id: light.main_floor_tv_area
- service: light.turn_on
data: {}
target:
entity_id:
- light.hallway_main_lights
- service: scene.turn_on
data: {}
target:
entity_id: scene.bedroom_relax
mode: single
icon: mdi:bed

16
scripts/showtime.yaml Normal file
View File

@ -0,0 +1,16 @@
---
showtime:
alias: Showtime
sequence:
- service: media_player.turn_on
data: {}
target:
entity_id:
- media_player.main_floor
- service: light.turn_on
data:
brightness_pct: 5
target:
entity_id: light.main_floor_tv_area
mode: single
icon: mdi:television