Problem: Application Workflow is triggered multiple times by each device because the data is split between MQTT payloads
My Attempted Solution:
I am trying to combine two different MQTT payloads into 1 device state update. What I have tried to do is set up a latch that connects once both MQTT payloads come in. I got that working and the latch connects only once both topics have come in but the state update still happens twice. Is there a better way to make sure that the information from both payloads is put into a single device state update?
This image shows the MQTT processing workflow. After the device is updated that triggers a separate workflow that takes actions based on the data. It is important that the second workflow only triggers once per device and that it has all the data it needs.
I know a solution would be to try to put all the data into one MQTT payload before it is sent out, but in the meantime and if that’s not possible I need a workaround to combine the data