Some weather alert tweaks
This commit is contained in:
@ -1504,6 +1504,7 @@ automation:
|
|||||||
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
|
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
|
||||||
"Lightning has been detected within 20 miles of the house. Nearest storm is {{ ltgdist }} miles away."
|
"Lightning has been detected within 20 miles of the house. Nearest storm is {{ ltgdist }} miles away."
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
|
target:
|
||||||
entity_id: input_boolean.lightning_warning
|
entity_id: input_boolean.lightning_warning
|
||||||
- service: script.lightning_warning_audible
|
- service: script.lightning_warning_audible
|
||||||
|
|
||||||
@ -1551,11 +1552,6 @@ automation:
|
|||||||
data:
|
data:
|
||||||
title: "WINDOWS ARE OPEN!"
|
title: "WINDOWS ARE OPEN!"
|
||||||
message: "It is raining and there are windows open in the house. Please close them!"
|
message: "It is raining and there are windows open in the house. Please close them!"
|
||||||
- if:
|
|
||||||
- condition: state
|
|
||||||
entity_id: binary_sensor.people_present
|
|
||||||
state: 'on'
|
|
||||||
then:
|
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data:
|
data:
|
||||||
who: everywhere
|
who: everywhere
|
||||||
@ -1582,6 +1578,15 @@ script:
|
|||||||
- light.tina_lamp_side
|
- light.tina_lamp_side
|
||||||
- light.tina_lamp_top
|
- light.tina_lamp_top
|
||||||
- light.tina_desk_strip
|
- light.tina_desk_strip
|
||||||
|
- switch.adaptive_lighting_living_room
|
||||||
|
- switch.adaptive_lighting_tina_lamp
|
||||||
|
- service: switch.turn_off
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- switch.adaptive_lighting_living_room
|
||||||
|
- switch.adaptive_lighting_tina_lamp
|
||||||
|
- delay:
|
||||||
|
milliseconds: 500
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
|
Reference in New Issue
Block a user