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'
|
- alias: 'Dark House Little extra light'
|
||||||
id: cb94a5bb-7cb3-4e0d-a753-ace01af0bae4
|
id: cb94a5bb-7cb3-4e0d-a753-ace01af0bae4
|
||||||
|
mode: single
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: numeric_state
|
|
||||||
entity_id: sensor.dark_sky_cloud_coverage
|
|
||||||
above: 90
|
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: sensor.dark_sky_precip
|
entity_id: sensor.dark_sky_precip
|
||||||
to: 'rain'
|
to: 'rain'
|
||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
entity_id: sensor.dark_sky_precip_intensity
|
entity_id: sensor.dark_sky_precip_intensity
|
||||||
above: 0.2
|
above: 0.2
|
||||||
|
- platform: numeric_state
|
||||||
|
entity_id: sensor.blitzortung_lightning_counter
|
||||||
|
above: 1
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: group.family
|
entity_id: group.family
|
||||||
to: 'home'
|
to: 'home'
|
||||||
|
@ -34,6 +36,9 @@
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: sensor.dark_sky_precip_intensity
|
entity_id: sensor.dark_sky_precip_intensity
|
||||||
above: 0.2
|
above: 0.2
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.blitzortung_lightning_counter
|
||||||
|
above: 1
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
@ -46,19 +51,16 @@
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: group.family
|
entity_id: group.family
|
||||||
state: 'home'
|
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:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
data:
|
||||||
- light.couch_1
|
entity_id:
|
||||||
- light.sink
|
- light.living_room_lights
|
||||||
|
- light.living_room_accents
|
||||||
|
brightness: 255
|
||||||
|
kelvin: 5500
|
||||||
|
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_boolean.daylight_override
|
- input_boolean.daylight_override
|
||||||
|
@ -68,4 +70,6 @@
|
||||||
call_window_check: 1
|
call_window_check: 1
|
||||||
call_garage_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