I have a wildcard mqtt sensor which is receiving URLs from multiple cameras. Each camera is a sub part of the topic: CameraEvents/Garage/event
With my sensor set up as CameraEvents/+/event. Is the actual posted topic for the sensor recorded anywhere so that I can parse the topic for use? or do I need to update my payload.
However, there’s no reason you couldn’t define a trigger-based template sensor instead, and use an MQTT trigger. Then you would have trigger.topic available to use in templates, as mentioned here.