i’m just a newbie. but hopefully i might help a bit. in my device configuration this is what i did:
D1 = Switch2
D2 = Switch3
D3 = Switch4
then in the Device Console i typed:
SwitchTopic2 MainDoor (or whatever you want to name it)
SwitchTopic3 MainGate
SwitchTopic4 GateStairs
so whenever D3 is triggered, the MQTT message i get is:
cmnd/GateStairs/Power - ON
this might not be the best solution but it works for me.