Store most recent scene for each room in global context
This commit is contained in:
@ -5176,7 +5176,7 @@
|
|||||||
"type": "function",
|
"type": "function",
|
||||||
"z": "582b8363c9f33bf8",
|
"z": "582b8363c9f33bf8",
|
||||||
"name": "",
|
"name": "",
|
||||||
"func": "const pld = msg.payload\nlet scene = pld.replaceAll(\"_\",\" \")\n\nmsg.payload = scene\n\nreturn msg;",
|
"func": "const pld = msg.payload\nconst tpc = msg.topic\nlet scene = pld.replaceAll(\"_\",\" \")\n\nglobal.set(`activeScene.${tpc}`, scene, \"diskCon\")\n\nmsg.payload = scene\n\nreturn msg",
|
||||||
"outputs": 1,
|
"outputs": 1,
|
||||||
"timeout": "",
|
"timeout": "",
|
||||||
"noerr": 0,
|
"noerr": 0,
|
||||||
|
Reference in New Issue
Block a user