'thingsboard dashboard, dashbord, gauges

Hi i am trying to create an dashboard in thingsboard, so my telemetry data is a Json { "temperature": 42.2, "humidity": 70, "hvacEnabled": true, "hvacState": "IDLE", "config": { "svm": 42, "dps": 89 } }

I am receiving this data in thingsboard telemetry, after that i created dashboard with this data, i can assign gauges to temperature and humidity, but i am unable to attach svm and dps to any gauges. data source is showing config as a topic but i cant further goes to svm and dps.

Can anyone suggest me how can i assign gauges to sub topic ??



Solution 1:[1]

You have to extract svm and dps keys from nested object config

One of the right ways is to use Script Transformation Node in your Rule Chain to transform "config": { "svm": 42, "dps": 89 } to, e.g:

"config_svm": 42,
"config_dps": 89

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 viktorkho