Hi,
when I start the web page, the button´s label is not shown. It's only shown if the button is pressed and then the it stays on. How do I fix it?
TIA
[
{
"id": "315df55e.e5e2da",
"type": "function",
"z": "9532990d.be7468",
"name": "With icon on press",
"func": "if (msg.payload == \"X\")\n{\n msg.payload = \"1\";\n msg.icon = '<font color=\"white\"><i class=\"material-icons\"> check_circle_outline</i></font>'\n}\nelse\n{\n msg.payload = \"0\";\n msg.icon = \"Test push button\";\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "// Code added here will be run once\n",
"finalize": "",
"x": 210,
"y": 160,
"wires": [
[
"f2e2faad.62a68",
"a957b58f.acad1",
"4316179.d355a68"
]
]
}
]