diff --git a/flows.json b/flows.json index f8594d5..19db959 100644 --- a/flows.json +++ b/flows.json @@ -37084,7 +37084,7 @@ "z": "d49b385d8b582b20", "g": "c098aadcd6f83f58", "name": "Get Context", - "func": "const testContext = global.get(\"outdoorTemp.tempStr\")\n\nmsg.payload = testContext\n\nreturn msg", + "func": "const testContext = global.get(\"outdoorTemp.tempStr\")\nconst activeScene = global.get(\"activeScene\",\"diskCon\")\n\nmsg.payload = testContext\n\n// Debugging: Log the structure of activeScene\nnode.warn(`activeScene: ${JSON.stringify(activeScene)}`)\n\nif (activeScene && activeScene.hasOwnProperty('basement_studio')) {\n msg.basement = activeScene.basement_studio\n} else {\n msg.basement = null // or provide a default value\n node.warn(\"basement_studio is undefined or not present in activeScene\")\n}\n\nreturn msg", "outputs": 1, "timeout": 0, "noerr": 0,