2016-12-21 21:43:52 +00:00
######################################################################
## Dark House Little extra light - DARK and Cloudy or just rainy.
######################################################################
2017-02-20 00:43:36 +00:00
- alias : 'Dark House Little extra light'
2016-12-21 21:43:52 +00:00
trigger :
- platform : numeric_state
entity_id : sun.sun
value_template : '{{ state.attributes.elevation }}'
below : 20.0
- platform : numeric_state
entity_id : sensor.dark_sky_cloud_coverage
above : 90
- platform : numeric_state
entity_id : sensor.dark_sky_precip_intensity
above : 1
2017-02-20 00:43:36 +00:00
2016-12-21 21:43:52 +00:00
condition :
condition : or
conditions :
- condition : and
conditions :
- condition : numeric_state
entity_id : sun.sun
value_template : '{{ state.attributes.elevation }}'
below : 20.0
- condition : numeric_state
entity_id : sensor.dark_sky_cloud_coverage
above : 90
- condition : numeric_state
entity_id : sensor.dark_sky_precip_intensity
above : 1
2017-02-20 00:43:36 +00:00
2016-12-21 21:43:52 +00:00
action :
- service : light.turn_on
2017-02-20 00:43:36 +00:00
entity_id :
2016-12-22 16:29:48 +00:00
- light.couch_1
2017-02-07 04:10:22 +00:00
- light.sink
- service : script.Voice_notify
data_template :
2017-02-07 06:09:31 +00:00
value1 : "It is getting a little dark inside the house because of the {{trigger.entity_id.split('_')[2]|replace('precip','rain') }} {{trigger.entity_id.split('_')[3]|replace('intensity',' ')}}
2017-02-07 04:10:22 +00:00
outside. I will turn on some extra lights in the living room."
2016-12-21 21:43:52 +00:00
2016-12-21 22:01:37 +00:00
######################################################################