diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 13c812f..7624196 100755 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -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" - + \ No newline at end of file diff --git a/config/scenes.yaml b/config/scenes.yaml index 931f2ec..4c10bc6 100755 --- a/config/scenes.yaml +++ b/config/scenes.yaml @@ -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] \ No newline at end of file diff --git a/config/scripts/lights.yaml b/config/scripts/lights.yaml index bdb6df6..531e8f3 100755 --- a/config/scripts/lights.yaml +++ b/config/scripts/lights.yaml @@ -27,4 +27,33 @@ lr_sengled_transistion_off: data: entity_id: light.tower_lamp_2 brightness_pct: 0 - transition: 60 \ No newline at end of file + 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 +