Having json objects as variable

I would like to have a translation between my heaters error codes (IVT Greenline HE 11).

if the notification value from the heater is x then I want to convert it to a string so that I can get a better understanding of what happened.

0: 'Error restored',
1: 'Overheated',
2: 'Temperature archived'

And then use this for mapping

Perhaps you can use the JSON Handler app:

Found it quite hard understanding that app…
Solved it using HomeyScript mapping a object and then passing as a test tag… :slight_smile:

1 Like