Thermostate attribute state not working as trigger

Hi all. So I’ve got a simple automation to set a HA thermostat’s set temperature back to my default (18) after a certain period of time.

This is for when the room is real cold and I manually crank the set temp up and then forget about it, in an hour it sets it back down to 18. I know I could use a timer helper but I don’t see why this shouldn’t work:

alias: Bedroom Thermo Reset 1
description: ""
trigger:
  - platform: numeric_state
    entity_id:
      - climate.main_bedroom_thermostat
    for:
      hours: 0
      minutes: 0
      seconds: 10
    attribute: temperature
    above: 18
condition:
  - condition: time
    after: "23:00:00"
    before: "04:00:00"
action:
  - service: climate.set_temperature
    metadata: {}
    data:
      temperature: 18
    target:
      entity_id: climate.main_bedroom_thermostat
mode: single

Any insights would be appreciated!

Hi BobTheMessiah,

So you are saying it doesn’t work. Actual information from the trace would be what I look at to fix this, but I can do some guessing for you here if you like.

How have you tested it? It maybe working and you don’t realize it.

Things to remember:

  • You have it set to 10 seconds, but I assume that is for testing, so OK there.
  • The temp will trigger (as stated above) 10 seconds after the temp setting goes from 18 or below to something over 18. If it’s already over 18 there will not be a trigger until it goes to or below that and will trigger 10 seconds after it goes over it again.
  • Using run in the gui probably will not work, you need to supply a real trigger by setting the climate entity for testing.
  • The climate entity needs to be a number. I think it probably is but if you are having problems check that it is a number not a string or something else.