Repetition automation on change value

Hi,

I’m looking for to repeat my automation on change value, and not specificly when my value sensor cross my high and low limit.
In my example, I want to MQTT publish for each changing value by my sensor.
How can I do that ?

trigger

Use a State Trigger instead of a Numeric Value Trigger.

- alias: 'publish frigo'
  trigger:
    platform: state
    entity_id: sensor.frigo
  action:
    service: mqtt.publish
    data_template:
      topic: temperature/frigo
      payload: '{{ trigger.to_state.state }}'
1 Like

Use the state trigger

1 Like

Thank you, I didn’t the difference between the two :wink: