Migrate custom_weather automations #154
This commit is contained in:
@ -2182,3 +2182,22 @@
|
|||||||
entity_id: input_boolean.audible_notifications
|
entity_id: input_boolean.audible_notifications
|
||||||
data: {}
|
data: {}
|
||||||
mode: restart
|
mode: restart
|
||||||
|
- id: '1696288503650'
|
||||||
|
alias: Fix High Temperature
|
||||||
|
description: Gotta make up for one of a few shortcomings in Pirateweather
|
||||||
|
trigger:
|
||||||
|
- platform: time_pattern
|
||||||
|
minutes: /5
|
||||||
|
condition:
|
||||||
|
- condition: template
|
||||||
|
value_template: '{% from ''time.jinja'' import ct %} {% set ct = ct() | int %}
|
||||||
|
{{ ct <= 63900 }}
|
||||||
|
|
||||||
|
'
|
||||||
|
action:
|
||||||
|
- service: input_number.set_value
|
||||||
|
target:
|
||||||
|
entity_id: input_number.today_corrected_high_temp
|
||||||
|
data:
|
||||||
|
value: '{{ states(''sensor.todays_high_temp'') | int }}'
|
||||||
|
mode: single
|
||||||
|
@ -1209,27 +1209,6 @@ input_boolean:
|
|||||||
# - service: input_boolean.turn_off
|
# - service: input_boolean.turn_off
|
||||||
# entity_id: input_boolean.freeze_warning
|
# entity_id: input_boolean.freeze_warning
|
||||||
|
|
||||||
automation:
|
|
||||||
- id: bae55746-c571-4a5d-88e0-8c83aea8110b
|
|
||||||
alias: Fix High Temperature
|
|
||||||
description: Gotta make up for one of a few shortcomings in Pirateweather
|
|
||||||
mode: single
|
|
||||||
trigger:
|
|
||||||
- platform: time_pattern
|
|
||||||
minutes: "/5"
|
|
||||||
condition:
|
|
||||||
- condition: template
|
|
||||||
value_template: >
|
|
||||||
{% from 'time.jinja' import ct %}
|
|
||||||
{% set ct = ct() | int %}
|
|
||||||
{{ ct <= 63900 }}
|
|
||||||
action:
|
|
||||||
- service: input_number.set_value
|
|
||||||
target:
|
|
||||||
entity_id: input_number.today_corrected_high_temp
|
|
||||||
data:
|
|
||||||
value: "{{ states('sensor.todays_high_temp') | int }}"
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
|
||||||
# refresh_weather_alert_sensors:
|
# refresh_weather_alert_sensors:
|
||||||
|
Reference in New Issue
Block a user