MQTT THING transformation - Convert strings to a SWITCH or NUMBER type

I would:

  • Keep your Channels as Strings
  • Modify your Channels to chain a MAP transformation after the JSONPATH transformation.
  • In this MAP you convert your strings to numbers.
  • Modify your Items to Numbers

I think that should do it?

Looks like I’ve previously solved this using a JS Transformation - see the first two posts in this thread.. And both the Channels and Items are numbers. Interesting!

1 Like