Migrate custom_weather automations #154

This commit is contained in:
2023-10-02 19:18:52 -04:00
parent 46b20a42cf
commit 8ffc894dd6
2 changed files with 19 additions and 21 deletions

View File

@ -2182,3 +2182,22 @@
entity_id: input_boolean.audible_notifications
data: {}
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

View File

@ -1209,27 +1209,6 @@ input_boolean:
# - service: input_boolean.turn_off
# 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:
# refresh_weather_alert_sensors: