Add bedside yeelight. Add alarm scripts. Tweak routines

This commit is contained in:
2020-03-07 18:26:37 +02:00
parent 787287f171
commit cfd1f583f6
6 changed files with 79 additions and 5 deletions
+26
View File
@@ -55,6 +55,32 @@ script:
- service: camera.turn_off
entity_id: camera.amcrest_camera
alarm_start:
sequence:
- service: media_player.play_media
data:
entity_id: media_player.master_bedroom
media_content_id: "https://raw.githubusercontent.com/saeedsohi/siren/master/FireTrucksSirens.mp3"
media_content_type: music
- service: light.turn_on
entity_id: light.bedside_light
data:
brightness_pct: 100
- service: light.turn_on
entity_id: light.bedside_light
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_light
data:
brightness_pct: 60
kelvin: 2400
# Hack - the switch.camera initial state is wrong (ON) when the server starts.
automation:
- id: camera_turn_off_on_startup