Fixed this to only work if the sun is actually out.

pull/76/head
CCOSTAN 9 years ago
parent cd71193b87
commit 3763de3d93

@ -2,7 +2,7 @@
## Dark House Little extra light - DARK and Cloudy or just rainy.
######################################################################
- alias: 'Dark House Little extra light'
- alias: 'Dark House Little extra light'
trigger:
- platform: numeric_state
entity_id: sun.sun
@ -14,7 +14,7 @@
- platform: numeric_state
entity_id: sensor.dark_sky_precip_intensity
above: 1
condition:
condition: or
conditions:
@ -30,10 +30,10 @@
- condition: numeric_state
entity_id: sensor.dark_sky_precip_intensity
above: 1
action:
- service: light.turn_on
entity_id:
entity_id:
- light.couch_1
- light.sink
- service: script.Voice_notify
@ -47,19 +47,22 @@
## Dark House Little extra light - RAIN is over.
######################################################################
- alias: 'Rain is over'
- alias: 'Rain is over'
trigger:
- platform: numeric_state
entity_id: sensor.dark_sky_precip_intensity
below: 1
condition:
- condition: state
entity_id: sun.sun
state: 'above_horizon'
action:
- service: light.turn_off
entity_id:
entity_id:
- light.couch_1
- light.sink
data:
transition: 1200
- service: script.Voice_notify
data_template:
value1: "The sun is back out. Let's turn down these lights now."
value1: "The sun is back out. Let's turn down these lights now."

Loading…
Cancel
Save

Powered by TurnKey Linux.