Added Red Alert lighting to security response

This commit is contained in:
Jeffrey Stone 2019-11-10 13:49:14 -05:00
parent ae10320108
commit b15a18d225
3 changed files with 48 additions and 4 deletions

View File

@ -226,6 +226,8 @@ automation:
action:
- service: script.turn_on
entity_id: script.security_response
- service: scene.turn_on
entity_id: scene.lr_red
- id: security_response_off
alias: Security Response Off
@ -240,6 +242,10 @@ automation:
entity_id: script.security_response
- service: media_player.media_stop
entity_id: media_player.theater
- service: scene.turn_on
entity_id: scene.lr_red
- service: script.livingroom_lamps_on
- service: script.livingroom_lamps_off
- id: sentry_mode_enabled
alias: Sentry Mode Enabled Annoucement
@ -257,7 +263,8 @@ automation:
"Barn door protocol has been activated.",
"Anchorage House has been secured! ",
"Sentry Mode is active. ",
"I am now monitoring the doors and will let you know if anyone attempts to access."
"I am now monitoring the doors and will let you know if anyone attempts to access.",
"Anchorage House Shields are up."
] | random }}
- id: sentry_mode_disabled
@ -275,7 +282,8 @@ automation:
{{ [
"Barn door protocol has been deactivated.",
"I am no longer monitoring the access points. ",
"Sentry Mode has been disabled. "
"Sentry Mode has been disabled. ",
"Anchorage House Shields are down."
] | random }}
- id: guest_mode_feedback
@ -460,5 +468,5 @@ script:
media_content_id: http://192.168.7.40/audio/security_siren.mp3
media_content_type: "music"

View File

@ -259,3 +259,10 @@
state: on
brightness_pct: 100
color_name: "blue"
- name : lr_red
entities:
group.rgb_lr:
state: on
brightness_pct: 100
rgb_color: [255,40,0]

View File

@ -27,4 +27,33 @@ lr_sengled_transistion_off:
data:
entity_id: light.tower_lamp_2
brightness_pct: 0
transition: 60
transition: 60
# Turn on Living Room Lights if sun is down or cloud coverage is above 70%
livingroom_lamps_on:
sequence:
- condition: or
conditions:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: numeric_state
entity_id: sensor.dark_sky_cloud_coverage
above: 70
- service: scene.turn_on
entity_id: scene.normal_livingroom_lighting
# Turn off Living Room Lights if sun is up or cloud coverage is below 70%
livingroom_lamps_off:
sequence:
- condition: or
conditions:
- condition: state
entity_id: sun.sun
state: 'above_horizon'
- condition: numeric_state
entity_id: sensor.dark_sky_cloud_coverage
below: 70
- service: group.turn_off
entity_id: group.livingroom_lamps