mqtt-datasource
mqtt-datasource copied to clipboard
Allow parsing of '+' topic into fields
My use case is I have a bunch of sensors that publish temperature (example) to sensors/inside/temperature sensors/outside/temperature sensors/thing1/temperature sensors/thing2/temperature
which is easy to subscribe using syntax 'sensors/+/temperature', but then I'd like to extract the sensorname somehow, and couldn't see how to do this in the existing (OSS 9.5.2) transform options
Could this be done by adding a transform to split on '/' so I could at least use '$2' or allow me to set up my own variable name by letting me set a match such as sensors/[[devicename]]/temperature and i could then use $devicename as labels.
(not sure if this is the same sort of thing the author of issue #39 was looking for too)
Checkout #91