MQTT-Trigger in HA / Automation / Thermostat

Hello,

after many attempts and much research, I have now arrived here and need your help. In HA, it is possible to start an automation using an MQTT trigger. My plan is as follows: When a new temperature is set on the thermostat, this change should trigger another action.

The topic is: zigbee2mqtt/Thermostat-room-1

Without payload, I receive a message every second. That’s too much for me, so I want to limit the message to {“occupied_heating_setpoint_scheduled”: “”}. With payload “on”, I don’t receive any messages. I’ve researched this in many forums and on websites, but so far - I haven’t been able to get it to work. I don’t understand the code syntax, so I can’t integrate my thermostat device into the YAML code. Can anyone help me? Is there a tutorial or website with more information on this? What syntax do I need to use in YAML?

Thank you for your helps!

My sources so far: