mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-08 18:48:44 +00:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
- id: leaving_home
|
|
alias: Presence - Leaving home
|
|
trigger:
|
|
platform: state
|
|
entity_id: person.georgi
|
|
to: "not_home"
|
|
action:
|
|
- service: script.security_camera_on
|
|
- service: media_player.turn_off
|
|
entity_id:
|
|
- media_player.living_room_tv
|
|
- media_player.living_room_tv_2
|
|
- service: light.turn_off
|
|
entity_id: light.living_room_all_lights
|
|
- service: input_boolean.turn_off
|
|
entity_id: input_boolean.speech_notifications
|
|
|
|
- id: coming_home
|
|
alias: Presence - Coming Home
|
|
trigger:
|
|
platform: state
|
|
entity_id: person.georgi
|
|
to: "home"
|
|
action:
|
|
- service: script.security_camera_off
|
|
- service: light.turn_on
|
|
entity_id: light.living_room_all_lights
|
|
- service: input_boolean.turn_on
|
|
entity_id: input_boolean.speech_notifications
|
|
|
|
- id: coming_home_welcome
|
|
alias: Presence - Coming Home - Play welcome music
|
|
trigger:
|
|
platform: state
|
|
entity_id: person.georgi
|
|
to: "home"
|
|
action:
|
|
- service: media_player.turn_on
|
|
entity_id: media_player.living_room_tv_2
|
|
- delay: "00:00:10"
|
|
- service: spotcast.start
|
|
data:
|
|
device_name: "Living Room TV"
|
|
uri: "spotify:playlist:1dstTefWFQaBFTC6CjcEHd"
|
|
random_song: true
|