mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-09 10:14:41 +00:00
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
script:
|
|
alarm_start:
|
|
sequence:
|
|
- service: media_player.play_media
|
|
entity_id: media_player.master_bedroom
|
|
data:
|
|
media_content_id: "https://raw.githubusercontent.com/saeedsohi/siren/master/FireTrucksSirens.mp3"
|
|
media_content_type: music
|
|
- service: light.turn_on
|
|
entity_id: light.bedside
|
|
data:
|
|
brightness_pct: 100
|
|
- service: light.turn_on
|
|
entity_id: light.bedside
|
|
data:
|
|
effect: Police
|
|
|
|
alarm_stop:
|
|
sequence:
|
|
- service: media_player.media_stop
|
|
entity_id: media_player.master_bedroom
|
|
- service: light.turn_on
|
|
entity_id: light.bedside
|
|
data:
|
|
brightness_pct: 60
|
|
kelvin: 2400
|
|
|
|
automation:
|
|
- alias: Security · Door opened while away
|
|
trigger:
|
|
- platform: state
|
|
entity_id: binary_sensor.front_door_on_off
|
|
to: "on"
|
|
condition:
|
|
condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: person.georgi
|
|
state: "not_home"
|
|
- condition: state
|
|
entity_id: input_boolean.guest_mode
|
|
state: "off"
|
|
action:
|
|
- service: notify.telegram
|
|
data:
|
|
title: "🛡 *Security Module · Front Door*"
|
|
message: "It seems like the front door was opened while you are away! Check the camera!"
|