diff --git a/automations.yaml b/automations.yaml index 68e5af9..eeb84c5 100644 --- a/automations.yaml +++ b/automations.yaml @@ -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 diff --git a/packages/custom_weather.yaml b/packages/custom_weather.yaml index 8cb4634..b3e3a5a 100644 --- a/packages/custom_weather.yaml +++ b/packages/custom_weather.yaml @@ -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: