Files
homeassistant/scripts.yaml
2021-10-15 20:47:14 -04:00

42 lines
1009 B
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