Pages for logged out editors узнать больше
Let's change the color of the element depending on the state of the relay, if the value in the topic is 1 , then paint the object yellow, otherwise - gray:
1
(val == 1) ? ';fill: yellow' : ';fill: gray'