Adjust temperatur if its above X degrees

I’m trying to create some automation to adjust my temperature automatically if someone adjust them manually.
I have some Danfoss LC13 valves, and I can set the temperature from HA with no problem. If I adjust the temp manually, it is reflected back to HA so I do see the set point value (yes, I know it do not send the current temp, but that is not an issue).
What I want is to trigg an automation if someone manually sets the temp above X degrees for X min…
I have tried this now, but it do not trig:

- id: '1553449477007'
  alias: HOT
  trigger:
  - above: '21'
    entity_id: climate.danfoss_z_thermostat_014g0013_heating_1_2
    for: 00:05:00
    platform: numeric_state
  condition: []
  action:
  - data:
      message: To hot!!
    service: persistent_notification.create

Any hope to get this working ? :slight_smile:

put your trigger time in quotation marks:

for: '00:05:00'

or do it like this:

for:
  minutes: 5

Also remove the quotation marks from your trigger value:

  - above: 21

All of this is in the examples in the docs:

Edit: and just a minor spelling mistake:

message: Too hot!!

The automation is created in the gui, so the quotation marks is added there.
But I tried as you said here, and removed the quotation marks (and I removed the trigger time, just to test). But I can’t get this to trig… Nothing happends…

- id: '1553449477007'
  alias: HOT
  trigger:
  - above: 21
    entity_id: climate.danfoss_z_thermostat_014g0013_heating_1_2
    platform: numeric_state
  condition: []
  action:
  - data:
      message: Too hot!!
    service: persistent_notification.create

What is this comma doing here:

Oh you edited it.

Sorry, copy/paste was not my friend :slight_smile:

Then I don’t see anything wrong with it. is the automation enabled?

Yepp, checked and double checked.

Just to test, I tried with “state” as a trigger, and an exact value - but this do not trig either.

Do you have the entity id of the trigger correct?

Yepp, It is.

It looks like HA do not see this change in value some how. But in the z wave log I can see the change

2019-03-31 10:06:48.006 Info, Node012, Received thermostat setpoint report: Setpoint Heating 1 = 22.00C

I also see the change on the thermostate card for the entety
thermostate

Is there some place in HA I can see why the automation is not trigged ? Some logs?

Have a look in the developer tools / states menu. I’m guessing the set point is an attribute of the climate component not the state (which is what the trigger uses).

WOHO :smiley:
Thank you for your help. Now it’s working

- id: '1553449477007'
  alias: HOT
  trigger:
  - above: 21
    entity_id: climate.danfoss_z_thermostat_014g0013_heating_1_2
    platform: numeric_state
    value_template: '{{state.attributes.temperature}}'
  condition: []
  action:
  - data:
      message: Too hot!!
    service: persistent_notification.create