Garage und Fenster kann ich dir heute Abend rein stellen.
Edit:
[
{
"id": "d46c7631.59f9a",
"type": "function",
"z": "9d8c568.24a8628",
"name": "check",
"func": "if (msg.payload === \"ON\"){\n msg.payload = \"#FF0000\";\n return msg;\n}else if (msg.payload === \"OFF\"){\n msg.payload = \"#00FF00\";\n return msg;\n}\n",
"outputs": 1,
"noerr": 0,
"x": 410,
"y": 1320,
"wires": [
[
"1673ba21.82cede"
]
]
},
{
"id": "1673ba21.82cede",
"type": "ui_template",
"z": "9d8c568.24a8628",
"group": "bf451414.e71f48",
"name": "Status Garage LED",
"order": 15,
"width": "0",
"height": "0",
"format": "<style>\n.led {\n float: right;\n padding: 3px;\n width: 10px;\n height: 10px;\n margin: 5px 5px 5px 5px;\n border-radius: 50%;\n \n}\n</style>\n\n<div>Status Garage<span class=\"led\" style=\"background-color: {{msg.payload}}; box-shadow: black 0 -1px 1px 0px, inset black 0 -1px 4px, {{msg.payload}} 0 3px 15px;\"></span></div>\n",
"storeOutMessages": true,
"fwdInMessages": true,
"templateScope": "local",
"x": 690,
"y": 1320,
"wires": [
[]
]
},
{
"id": "bf451414.e71f48",
"type": "ui_group",
"z": "",
"name": "FHEM",
"tab": "dbb46b72.63ce3",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "dbb46b72.63ce3",
"type": "ui_tab",
"z": "",
"name": "Home",
"icon": "dashboard",
"order": 1
}
]