How to acess device tag

I’m creating a custom block in html that will bring general information about a context device, but I don’t know how to access the tags of that device, I would like if someone can help me in this situation, the developed table is attached.


Hi @Lucas_Pinheiro !

To reference context variables in the Custom HTML Block, you’ll need to utilize JavaScript. Please see our documentation here.

In terms of referencing tags of a context variable device, please see our documentation here.

Additionally, here’s a thread which you may find helpful:

Please let us know if you have any remaining questions!

even with the documentation I am not able to display the device tag, could you give me a practical example?

Attached is an example application export that demonstrates this. The bundle includes:

Context variable values are only exposed to the block through a JavaScript API (not using our Handlebars rendering engine) so the inner HTML elements must be set via script, not inline in the HTML.

The Custom HTML Block does require some basic web development knowledge to work with. Hopefully this is enough to get you started. Unfortunately we cannot support writing the custom block for you beyond this initial starting point. (2.4 KB)

thank you very much for your help, the content you provided me is more than enough for the project I was envisioning.