#numeric state fails to trigger...

1 messages · Page 1 of 1 (latest)

open mulch
#

I have a mqtt which is sending power usage states, in the dev menu i see the sensor has a value "1382" for example.
When i make the automation, based on entity or device, it never triggers...

triggers:

  • type: power
    device_id: e59123d10e1309a6e30faf2d46edc533
    entity_id: df7547e3c5f3cb07a960ae40d4146bec
    domain: sensor
    trigger: device
    above: 1
    for:
    hours: 0
    minutes: 0
    seconds: 3
  • trigger: numeric_state
    entity_id:
    • sensor.actual_delivery_sensor
      for:
      hours: 0
      minutes: 0
      seconds: 3
      above: 300

Tried both, also without any timer. it's just not triggering. What am i missing?

gritty galleon
#

The value has to cross the threshold to trigger.
For example:
The value when creating the automation has been 1382.
It has not crossed from below 1 to above 1, yet (it already is) - so the first trigger won't fire.
But is also has not crossed from below 300 to above 300 yet - so the same applies again.
For the automation to trigger, the value would have to be below 300 (in your numeric state trigger) or below 1 (in your device trigger) and then to cross the threshold for 3 seconds.

open mulch
#

think patience was the issue... suddenly it triggered

open mulch
#

still, somehow the triggers don't always work 😦

#

i think i get the value wrong... w/kw thing

#

like it sends 2.400, so actually its not sending watt but kilowatt

#

so to trigger i need 0.3

#

or 1.5 or whatever i want, not 300 or 1500