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 ?
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 ?
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 }}'
Use the state trigger
Thank you, I didn’t the difference between the two