HTML Widget from code snippet not show value into "{{}}"

Hello,

I am trying to show some properties of one device. I mean, I am trying to do this but adopted to my case:https://docs.thinger.io/features/dashboards#from-code-snippet

In my case, I want to show to the user the value of the property “scenes.scene1.name”. For that reason, I have created an HTML Widget:

And I have indicated in the widget that I want to show that value:

image

Then, in the code snippet I have put into “{{}}” the property name:

But it does not work. Nevertheless, if i do the same but with a widget of “Text/Value” it works correctly:

image

You could see on the left the HTML Widget with “{{}}”, and on the right the “Text/Value” widget:

I would be so grateful if you could help me.

Thank you so much!

Hi @EBA

In the HTML widget, in order to get the value you should use {{value}}, in you case it would be: {{value.scenes.scene1.name}

Regards

Thank you so much for your answer @jaimebs

Nevertheless, I have tried that and it does not work:
image

I have checked the properties of the device and they are right:

Thank you in advance!

Hi @EBA

You are right, my suggestion does not work: try with {{value["scenes.scene1.name"]}}.

This should handle the issue.

2 Likes

It works!

Thank you so much! :slight_smile: