Automation for heating the house - issue

I just created 4 simple automations for enabling heating if temperature is below 19.5C and disabling above 20.7C in weekdays between 06:00 and 23:00 and during nights different time triggers. However it looks like my automation for day reaching temperature trigger but do not met time conditions do not start during the day because first run had failure. I thought that it even will not try to start when time condition do not met. Did you had similar case?

one of my simply automation:

alias: Heater_turn_on-weekdays
description: Heating in weekdays
  - platform: numeric_state
    entity_id: sensor.salon_temperatura_temperature
      hours: 0
      minutes: 5
      seconds: 0
    below: 19.5
  - condition: time
    after: "06:00:00"
    before: "23:00:00"
      - mon
      - tue
      - wed
      - thu
      - fri
  - type: turn_on
    device_id: 3517bdf89842212e4e4716e28258a563
    entity_id: switch.basement_heater
    domain: switch
mode: single


Triggered by the numeric state of sensor.salon_temperatura_temperature at 23 NOV 2022 o 03:02:34

time condition

Stopped because a condition failed at 23 NOV 2022 o 03:02:34 (runtime: 0.00 seconds)

Many thanks in advance

If the temperature is already under 19.5, the automation won’t trigger again.

Regarding to the time condition, have you checked whether your system time is correct?

Paste the following into Developer Tools —> Template:

{{ now() }}

{{ now().tzinfo }}