A very simple automation not firing

Hi all,

I have a very simple temperature automation, where I am supposed to receive a Pushbullet notification once the temperature rises above or falls below threshold:

I’m using Mysensors gateway to connect my sensors.

Pushbullet is setup correctly; when I manually trigger the automation I receive a notification as I am supposed to. But when I manually set the temperature to above threshold (ex, 85) the “last trigger” is never updated (= not triggered).

Any idea?

How can the temperature be above 80 and below 71 at the same time? If you wanna send the notification in both scenarios, you have to split up the trigger:

trigger:
  - platform: numeric_state
    entity_id: sensor.nursery_11_1
    above: 80
  - platform: numeric_state
    entity_id: sensor.nursery_11_1
    below: 71

Thanks. That worked. I was going by an example on HA tutorials page: https://home-assistant.io/docs/automation/trigger/#numeric-state-trigger

As you can see both Above and Below are listed together…

Listing above and below together is fine if a numeric_state has to be between two values. It doesn’t work in your case because you want one or the other to be true, not both.

In other words:

  • above < below : works, us a single trigger
  • above > below : can’t work, use seperate triggers

Makes sense. Thanks again.

1 Like

Happy to help :slight_smile: