How to mask a point in a path?

I have a particle sensor under tasmota.... I get the payload in the format


$string(VINDRIKTNING.PM1) works
$string(VINDRIKTNING.PM2.5) does not work
$string(VINDRIKTNING.PM10) work

How can I mask the dot at 2.5?

Feed your payload trough a json node and everything is handled for you, no need to works with strings.

You need to use the alternate syntax VINDRIKTNING["PM2.5"] instead

works perfectly

Thanks a lot guys!

Does not work after all... the node does not complain, but the output value is wrong...



Works as desired.


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