I don’t fully understand your question, but if you want to perform different actions on different devices based on your triggers, then I suggest you do the following:
- Use TriggerIds in conjunction with Choose Actions.
- Remove your
deconz_event
andzha_event
triggers - those have absolutely nothing to do with mqtt in the rest of your triggers. - Tell us exactly what it is you’re trying to achieve. So far all we know is that you determined you need a variable out of arbitrarily pasted triggers. We don’t know what your goal is. Read this.
- Also, I would suggest moving from device-based automations to entity-based automations (unless you’re using Zigbee 2Mqtt on the later versions)