Help with Temperature Condition in Automation

Hi all,
I am sure there is something simple wrong with this YAML, but I can’t get it to work and I figure someone here will quickly correct me. I am trying to run an automation 1x/hour in the evening to switch on a space heater if the outdoor temperature is less than 55°. I can see the automation attempting to run at 5 minutes past the hour, but it stops because a condition fails. I assume this is because of my temperature condition syntax. YAML is below. Any help would be greatly appreciated!!!

alias: Turn On Space Heater Under 55 Degrees
description: ""
trigger:
  - platform: time_pattern
    minutes: "5"
condition:
  - condition: state
    entity_id: weather.forecast_home
    attribute: temperature
    state: <55
  - condition: time
    before: "06:30:00"
    after: "19:00:00"
    weekday:
      - sun
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
action:
  - type: turn_on
    device_id: 925d31803a81253a2e498bdf8387880a
    entity_id: switch.space_heater
    domain: switch
mode: single

Use numeric state instead

condition:
  - condition: numeric_state
1 Like
condition:
  - condition: numeric_state
    entity_id: weather.forecast_home
    attribute: temperature
    below: 55

You don’t need to list all the weekdays: just remove that entire block.

1 Like

Awesome… Thanks so much!