#Trigger on value increment

1 messages · Page 1 of 1 (latest)

sick olive
#

I would like an automation to send me message or do any other action every time an integer value increases.
Example of yaml below.
And ny question is: what should I write instead of the "above 10" to trigger on any increment of the value?

Thanks. 😉
Ps.: I tried google and was not successfull, probably too dumb.

alias: Doprano
description: ""
triggers:

  • trigger: numeric_state
    entity_id:
    • sensor.aeg_pracka_se_susickou_totalcyclecounter
      above: 10
      conditions: []
      actions:
  • action: notify.mobile_app_motorola_edge_30
    metadata: {}
    data:
    message: Pracka
    mode: single
patent sorrel
#

Trigger: state (for sensor.aeg_pracka_se_susickou_totalcyclecounter), which triggers at any state change
Condition: template
trigger.from_state.state|float < trigger.to_state.state|float

sick olive
#

Just like this? That simple?
alias: Doprano
description: ""
triggers:

  • trigger: state
    entity_id:
    -sensor.aeg_pracka_se_susickou_totalcyclecounter
    conditions: []
    actions:
  • action: notify.mobile_app_motorola_edge_30
    metadata: {}
    data:
    message: Pracka
    mode: single
patent sorrel
#

No, i said you need a template condition which verifies that the sensor state increases

sick olive
patent sorrel
#

True, but state change can also mean an attribute change, and it will trigger on those as well

#

I.e. without the sensor value changing. I don't know if that can happen for your particular sensor. If it has no attributes, then you are safe to skip the condition

sick olive
#

it has only the value which is total count.