Can you set the color of a single device tile through code?

I have one template with 7 devices. When one device generates an error I would like to set the color of that device tile to red. Is that possible?
In regard to that, is there any documentation on setting the properties of device tiles through code?

That was in our plans. However, now sure when we will do it now.

ok thnx. I’ll keep an eye out