Nicer RAINY DAY DETECTION.. ALSO USING THE LIGHTNING DETECTION FOR ADDITIONAL INFO
This commit is contained in:
parent
be343f1ffe
commit
e11466f45b
|
@ -4,16 +4,18 @@
|
|||
|
||||
- alias: 'Dark House Little extra light'
|
||||
id: cb94a5bb-7cb3-4e0d-a753-ace01af0bae4
|
||||
mode: single
|
||||
|
||||
trigger:
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.dark_sky_cloud_coverage
|
||||
above: 90
|
||||
- platform: state
|
||||
entity_id: sensor.dark_sky_precip
|
||||
to: 'rain'
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.dark_sky_precip_intensity
|
||||
above: 0.2
|
||||
- platform: numeric_state
|
||||
entity_id: sensor.blitzortung_lightning_counter
|
||||
above: 1
|
||||
- platform: state
|
||||
entity_id: group.family
|
||||
to: 'home'
|
||||
|
@ -34,6 +36,9 @@
|
|||
- condition: numeric_state
|
||||
entity_id: sensor.dark_sky_precip_intensity
|
||||
above: 0.2
|
||||
- condition: numeric_state
|
||||
entity_id: sensor.blitzortung_lightning_counter
|
||||
above: 1
|
||||
- condition: state
|
||||
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
||||
state: 'off'
|
||||
|
@ -46,19 +51,16 @@
|
|||
- condition: state
|
||||
entity_id: group.family
|
||||
state: 'home'
|
||||
- condition: template # Only run once every ~3 hours tops.
|
||||
value_template: >
|
||||
{%- if states.automation.dark_house_little_extra_light.attributes.last_triggered -%}
|
||||
{{ (as_timestamp(now()) - as_timestamp(states.automation.dark_house_little_extra_light.attributes.last_triggered)) > 10000 }}
|
||||
{%- else -%}
|
||||
true
|
||||
{%- endif -%}
|
||||
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.couch_1
|
||||
- light.sink
|
||||
data:
|
||||
entity_id:
|
||||
- light.living_room_lights
|
||||
- light.living_room_accents
|
||||
brightness: 255
|
||||
kelvin: 5500
|
||||
|
||||
- service: input_boolean.turn_on
|
||||
entity_id:
|
||||
- input_boolean.daylight_override
|
||||
|
@ -68,4 +70,6 @@
|
|||
call_window_check: 1
|
||||
call_garage_check: 1
|
||||
|
||||
- delay:
|
||||
hour: 3
|
||||
######################################################################
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 36 KiB |
Loading…
Reference in New Issue