Humidity automation not triggering

Hello
I’m new with HA and made a simple automation that not works. Please tell me what could be the reason? T&H sensor works fine and shows the correct values, but when these values ​​exceed these thresholds (60 and 40%) nothing happens (automation does not work) and the message does not come.

alias: Humidity border - MSG
description: “”
triggers:

  • type: humidity
    device_id: 0fe48c5a46def6da37afc3e250eb3c9f
    entity_id: 968ef3b65ec318a21b8f291dd525f86d
    domain: sensor
    trigger: device
    above: 60
    below: 40
    conditions:
    actions:
  • action: notify.persistent_notification
    metadata: {}
    data:
    message: Humidity border exceeded.
    mode: single

You are asking for a trigger when it is above 60 AND below 40. That is not possible

Select entity, not device

triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.device_humidity
    above: 60
  - trigger: numeric_state
    entity_id:
      - sensor.device_humidity
    below: 40
1 Like

So, I have to create 2 separate triggeres? One for the upper threshold and other for the lower? It seems now I understand what the problem is ))
I believed that I indicate the range outside which the trigger should work. Now I’ll try to fix it…

That the method I prefer…

description: "test"
mode: single
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.device_humidity
    above: 60
  - trigger: numeric_state
    entity_id:
      - sensor.device_humidity
    below: 40
conditions: []
actions:
  - action: notify.persistent_notification
    metadata: {}
    data:
      message: Humidity border exceeded.

You can test the Automation by temporarily setting the state in Developer Tools

Ok. And how can I cancel this temporarily set value in Developer Tools?
Now the value I temporarily set does not change (is costant), how to return the values ​​to come again from the sensor?

Go to the actions tab select Home Assistant Core Integration: Update entity and the device. Hit Perform Action

Did the Automation execute correctly?

You’ll see the updated state below

1 Like

Yes, now it is OK, Automation executes correctly. As I planned initially. Thanks!!!
First the simple updating of the entity (under gear) - not restarts receiving values from the sensor. Only Home Assistant Core Integration: Update entity helps - too complicate procedure )) - I’m afraid to forget this issue ))

1 Like

Awesome and welcome to the Forum!!!

Thank you very much again for the mentoring, for the quick replay and the time given!!!

1 Like