NEWS
Using converter funktion in alias to get a single json value
ioBroker general
2
Beiträge
2
Kommentatoren
63
Aufrufe
2
Watching
-
Hello,
in the past I used a script to extract a value to a user object.
But it is easier than expected if using the converter funktion for an alias.
For example I need the acin power of my victron battery inverter but the mqtt values is a simple json:
{"value":970}So I created an alias to this object and use in the alias declaration the function to grab the valiue.
JSON.parse(val)['value']
Cheers