Hello,
I would like to give an entire dashboard group a certain colour depending on a message in node red.
This does it for a short section, how do I do it for a whole group?
[
{
"id": "924fc5d03c51a6fb",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "ef6cc5fbb5a1f21e",
"type": "ui_template",
"z": "924fc5d03c51a6fb",
"group": "3b47bcb290ba7812",
"name": "",
"order": 5,
"width": 0,
"height": 0,
"format": "<div style=\"width: 100%; height: 100%; background-color: {{msg.topic}};\">\n <div class=\"content\">\n <span>{{(msg.payload)}}</span>\n </div>\n</div>",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 580,
"y": 600,
"wires": [
[]
]
},
{
"id": "5bbc18e7b7bb3e93",
"type": "ui_text",
"z": "924fc5d03c51a6fb",
"group": "3b47bcb290ba7812",
"order": 1,
"width": 0,
"height": 0,
"name": "",
"label": "text:",
"format": "{{msg.payload}}",
"layout": "row-spread",
"className": "",
"x": 570,
"y": 500,
"wires": []
},
{
"id": "e070d8e912bd0b59",
"type": "inject",
"z": "924fc5d03c51a6fb",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "2",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "efe",
"payloadType": "str",
"x": 310,
"y": 500,
"wires": [
[
"5bbc18e7b7bb3e93"
]
]
},
{
"id": "8c781ce47bd229d6",
"type": "inject",
"z": "924fc5d03c51a6fb",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "1",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "green",
"payload": "red",
"payloadType": "str",
"x": 330,
"y": 600,
"wires": [
[
"ef6cc5fbb5a1f21e"
]
]
},
{
"id": "3b47bcb290ba7812",
"type": "ui_group",
"name": "Default",
"tab": "681dd137c2c59e18",
"order": 1,
"disp": false,
"width": "5",
"collapse": false
},
{
"id": "681dd137c2c59e18",
"type": "ui_tab",
"name": "Test",
"icon": "dashboard",
"order": 3,
"disabled": false,
"hidden": false
}
]```