Files
homeassistant/scripts.yaml
2021-11-21 22:49:46 -05:00

74 lines
1.7 KiB
YAML

bedtime_mode:
sequence:
- type: turn_off
device_id: 4850dbfbf153e58dd801ca200dcd79d6
entity_id: light.bedroom_lamp
domain: light
- service: media_player.play_media
target:
entity_id: media_player.squeezebox_radio
data:
media_content_type: music
media_content_id: /media/whitenoisefan.m4a
mode: restart
alias: Bedtime Mode
icon: mdi:bed
leaving_office:
sequence:
- service: homeassistant.turn_off
target:
entity_id: group.office_lights
- type: toggle
device_id: 90c3e29c66fd372625f532aa108d129f
entity_id: switch.mikepc_sleep
domain: switch
mode: single
alias: Leaving Office
icon: mdi:desk
start_sleep_timer:
alias: Start Sleep Timer
sequence:
- service: timer.start
data: {}
target:
entity_id: timer.sleep_timer
mode: restart
icon: mdi:bed
morning_routine:
alias: Morning Routine
sequence:
- type: turn_on
device_id: b01054a542a51b2c6fb66d1a13e158a3
entity_id: light.upstairs_light
domain: light
brightness_pct: 15
- service: light.turn_on
data:
brightness_pct: 100
target:
entity_id: light.livingroom_lamp
- service: switch.turn_on
target:
entity_id:
- switch.harmony_hub_shield_tv
- switch.christmas_tree
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: androidtv.adb_command
data:
entity_id: media_player.livingroom_tv_shield
command: am start -a android.intent.action.VIEW -d -n ar.tvplayer.tv/.ui.MainActivity
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: androidtv.adb_command
data:
entity_id: media_player.livingroom_tv_shield
command: input keyevent 8
mode: single