It looks like for each serial data packet from the sensor a mqtt message is sent.
sorry I placed the above question at the wrong place - despite that TD-er kindly replied:
basically I understand it, but having no experience with these tasks and rules, I would appreciate some help or examples.You can act on the events sent by the task in the rules.
From there you can try to decimate the traffic, for example only to send if there was no presence for N amount of time.
Sending to MQTT can then be done via the publish command, or you copy the required values from the event to a dummy task and then call taskRun for that dummy task.
For this you should no longer send from the LD2410 task, but only from this dummy task to the MQTT controller.