From 8d9d5a58837e609cd01302e4ad0746adb6353d98 Mon Sep 17 00:00:00 2001
From: Jeffrey Stone <thejeffreystone@gmail.com>
Date: Mon, 11 Nov 2019 22:08:47 -0500
Subject: [PATCH] Updating light automations (updated wrong files last time...)

---
 config/packages/presence.yaml | 2 +-
 config/scripts/lights.yaml    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config/packages/presence.yaml b/config/packages/presence.yaml
index 3857c00..8c2814a 100755
--- a/config/packages/presence.yaml
+++ b/config/packages/presence.yaml
@@ -290,7 +290,7 @@ automation:
       state: 'off'
     action:
     - service: script.appliances_off
-    - service: script.turn_on 
+    - service: scene.turn_on
       entity_id: scene.lights_out
     - service: script.security_check_garage
     - service: script.security_check_zones
diff --git a/config/scripts/lights.yaml b/config/scripts/lights.yaml
index 531e8f3..96b946d 100755
--- a/config/scripts/lights.yaml
+++ b/config/scripts/lights.yaml
@@ -43,10 +43,10 @@ livingroom_lamps_on:
   - 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%
+# Turn off Living Room Lights if sun is up and cloud coverage is below 70%
 livingroom_lamps_off:
   sequence:
-  - condition: or
+  - condition: and
     conditions:
       - condition: state  
         entity_id: sun.sun