mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-07 01:52:11 +00:00
Fixed this to only work if the sun is actually out.
This commit is contained in:
@@ -53,13 +53,16 @@
|
|||||||
entity_id: sensor.dark_sky_precip_intensity
|
entity_id: sensor.dark_sky_precip_intensity
|
||||||
below: 1
|
below: 1
|
||||||
|
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: sun.sun
|
||||||
|
state: 'above_horizon'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.couch_1
|
- light.couch_1
|
||||||
- light.sink
|
- light.sink
|
||||||
data:
|
|
||||||
transition: 1200
|
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data_template:
|
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."
|
||||||
Reference in New Issue
Block a user