How to access zigbee2mqtt topic / sensor name?

I'm trying to extract the zigbee2mqtt topic from a msg.payload sent from a zigbee2mqtt sensor in Home Assistant which otherwise works perfectly but I can't see an object attribute of "topic" in the debug output. I've seen tutorials which do show it there. I can however see that "zigbee2mqtt/vb_test" is listed above the object attributes in the debug panel. How can I access this string or how can I enable to topic to be sent/set? Attached screenshot of what I mean. Thanks

I figured it out: I used msg.topic

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.