Hi Lubeda,
I finally managed it. Try and error with the awtrix-server
Here is the config which works and can be copied to automations.yaml.
id: xxxxxxxxxx
alias: MQTT Publish Pegel Zisterne
description: ''
trigger:
- platform: state
entity_id:
- sensor.pegel_zisterne_3
condition:
- condition: template
value_template: 'value_template: "{{ (trigger.from_state.state | float - trigger.to_state.state
| float) | abs >= 0.1 }} "'
action:
- data:
topic: awtrix/customapp
payload: '{"id":2, "data":"Pegel Zisterne {{ states("sensor.pegel_zisterne_3")}}
cm", "icon":1238}'
service: mqtt.publish
mode: single
Thanks for the tipp with the template section at developer tools - thatās what I didnāt know.
Best regards
Erik