Why isn't this triggering?

I have a trigger set to fire when pv_power is above a certain value. I defined the automation when the value was below the threshold, and waited until it rose above, but the trigger didn’t fire.
Can anyone tell me what I’ve done wrong?



It will only trigger when it crosses 1500, it will not trigger if the entity is already above 1500 and changes to another state above 1500

As I said, it was <1500 when I wrote the automation. I then waited half an hour or so, and the value rose >1500, but nothing happened.

So the last triggered time of the automation is “never”?

Yep, confirm what koying is asking by looking at the traces. You should have one.

Yes that’s right. Never triggered.

That’s not viewing the trace. Go into the trace and see if there are any.

Says “No traces found”

Does a certain amount of time have to pass after defining the automation before it is active?

No, it should be instant. Can you post the yaml for the generated trigger?

alias: Trigger Test 2
description: >-
  If remote start is enabled, and the toggle is set to on, start the dishwasher
  once the solar panels are generating >2500w
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.pv_power
    above: 1500
    value_template: "  "
conditions: []
actions:
  - action: notify.mobile_app_s24_ultra
    metadata: {}
    data:
      message: Sun > 1500
      title: Home Assistant
mode: single

There’s your problem, you put spaces in this field. Remove them.

1 Like

I didn’t enter that space. I defined the automation using the visual editor and I didn’t use that box at all. I wonder how the space got in there?

Thanks for your help!

Are you using mobile or are you on a computer, it’s pretty easy to accidentally fill out fields accidentally.

Firefox on desktop.
I duplicated this test automation from the actual dishwasher_start one, and the template value is in that one too. I guess I must have fat-fingered that one somehow!