From 18b7f5f7cec3ade8778ebabc2c32871dc572101f Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Mon, 3 Jul 2023 18:07:35 -0400 Subject: [PATCH] Better fix for correcting the high temperature --- packages/custom_weather.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/custom_weather.yaml b/packages/custom_weather.yaml index 3412b92..6e46651 100644 --- a/packages/custom_weather.yaml +++ b/packages/custom_weather.yaml @@ -1032,14 +1032,14 @@ automation: description: Gotta make up for one of a few shortcomings in Pirateweather mode: single trigger: - - platform: time - at: "00:30" - - platform: time - at: "06:00" - - platform: time - at: "12:00" - - platform: time - at: "17:45" + - 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: