Files
homeassistant/scripts.yaml
2021-10-23 15:47:31 -04:00

81 lines
2.0 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:
- type: turn_off
device_id: 67db7ebde4a24eb779c2909e9b1c9ec8
entity_id: light.office_lamp
domain: light
- type: turn_off
device_id: b149e6c97a3cc9602c389d6305911fc8
entity_id: switch.smart_plug_2_relay
domain: switch
- 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
- type: turn_on
device_id: e6cbd7cd9a565f6e81ec1d7903d151f4
entity_id: light.livingroom_light
domain: light
brightness_pct: 5
- service: switch.turn_on
target:
entity_id: switch.harmony_hub_shield_tv
- 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: 3
milliseconds: 0
- wait_for_trigger:
- platform: numeric_state
entity_id: sun.sun
attribute: elevation
above: '1'
- service: light.turn_off
target:
entity_id: light.upstairs_light
mode: single