Removing deprecated attributes
This commit is contained in:
parent
e08d6a00cc
commit
f2c4e7b4b2
|
@ -1296,7 +1296,7 @@ automation:
|
||||||
## Automation to trigger a UI notification when there is an active weather alert.
|
## Automation to trigger a UI notification when there is an active weather alert.
|
||||||
## weatheralerts_alert_1 should always contain most recent alert.
|
## weatheralerts_alert_1 should always contain most recent alert.
|
||||||
- alias: Weather Alert UI Notification - 1
|
- alias: Weather Alert UI Notification - 1
|
||||||
initial_state: 'on'
|
initial_state: true
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: sensor.weatheralerts_alert_1_last_changed
|
entity_id: sensor.weatheralerts_alert_1_last_changed
|
||||||
|
@ -1531,8 +1531,9 @@ automation:
|
||||||
|
|
||||||
- alias: Lightning Detected
|
- alias: Lightning Detected
|
||||||
trigger:
|
trigger:
|
||||||
- platform: template
|
- platform: state
|
||||||
value_template: '{{ states.sensor.acurite_6045m_3078_strcnt.state | int > states.sensor.lightning_total_count.state | int }}'
|
entity_id: binary_sensor.lightning_detected_2
|
||||||
|
to: 'Unsafe'
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.lightning_warning
|
entity_id: input_boolean.lightning_warning
|
||||||
|
@ -1542,17 +1543,17 @@ automation:
|
||||||
data_template:
|
data_template:
|
||||||
who: "jeff"
|
who: "jeff"
|
||||||
title: "Lightning Detected!"
|
title: "Lightning Detected!"
|
||||||
message: "Lightning has been detected within 20 miles of Anchorage House"
|
message: "Lightning has been detected within 20 miles of Anchorage House. Nearest storm is {{ states('sensor.acurite_6045m_3078_stdist') }} miles away."
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id: input_boolean.lightning_warning
|
entity_id: input_boolean.lightning_warning
|
||||||
- service: script.lightning_warning_audible
|
- service: script.lightning_warning_audible
|
||||||
|
|
||||||
|
|
||||||
- alias: Lightning Warning Off
|
- alias: Lightning Warning Off
|
||||||
mode: restart
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: template
|
- platform: state
|
||||||
value_template: '{{ states.sensor.acurite_6045m_3078_strcnt.state | int == states.sensor.lightning_total_count.state | int }}'
|
entity_id: binary_sensor.lightning_detected_2
|
||||||
|
to: 'Safe'
|
||||||
for:
|
for:
|
||||||
minutes: 20
|
minutes: 20
|
||||||
condition:
|
condition:
|
||||||
|
@ -1651,11 +1652,11 @@ script:
|
||||||
data:
|
data:
|
||||||
notification_id: "weatheralerts_alert"
|
notification_id: "weatheralerts_alert"
|
||||||
## Create a new persistant notification in the UI for a new alert
|
## Create a new persistant notification in the UI for a new alert
|
||||||
- service_template: >
|
- service: >
|
||||||
{% if states.sensor.weatheralerts.state != '0' %}
|
{% if states.sensor.weatheralerts.state != '0' %}
|
||||||
persistent_notification.create
|
persistent_notification.create
|
||||||
{% endif %}
|
{% endif %}
|
||||||
data_template:
|
data:
|
||||||
notification_id: "weatheralerts_alert"
|
notification_id: "weatheralerts_alert"
|
||||||
message: "{{ message }}"
|
message: "{{ message }}"
|
||||||
title: "{{ title }}"
|
title: "{{ title }}"
|
Loading…
Reference in New Issue