Add logging to try and nail down #20

This commit is contained in:
2024-01-14 12:35:46 -05:00
parent f66e1cd930
commit 60f025c522

View File

@ -822,7 +822,8 @@
"f70e4a4480d43b2b", "f70e4a4480d43b2b",
"12e93caa5bb34d08", "12e93caa5bb34d08",
"c24d343c3f54e24d", "c24d343c3f54e24d",
"bdf337f7654b461b" "bdf337f7654b461b",
"5e00ecbccbe51462"
], ],
"x": 34, "x": 34,
"y": 339, "y": 339,
@ -1813,11 +1814,11 @@
"type": "junction", "type": "junction",
"z": "5e238cbbe6d612c9", "z": "5e238cbbe6d612c9",
"g": "eccca853a916b662", "g": "eccca853a916b662",
"x": 1220, "x": 1120,
"y": 480, "y": 500,
"wires": [ "wires": [
[ [
"2dc5f9d3e00f4ddc" "5e00ecbccbe51462"
] ]
] ]
}, },
@ -11268,7 +11269,7 @@
"y": 440, "y": 440,
"wires": [ "wires": [
[ [
"2dc5f9d3e00f4ddc" "5e00ecbccbe51462"
], ],
[] []
], ],
@ -11346,7 +11347,14 @@
"dataType": "jsonata", "dataType": "jsonata",
"mergeContext": "", "mergeContext": "",
"mustacheAltTags": false, "mustacheAltTags": false,
"outputProperties": [], "outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "stop",
"valueType": "str"
}
],
"queue": "none", "queue": "none",
"x": 610, "x": 610,
"y": 500, "y": 500,
@ -11429,7 +11437,7 @@
"y": 560, "y": 560,
"wires": [ "wires": [
[ [
"2dc5f9d3e00f4ddc" "5e00ecbccbe51462"
], ],
[ [
"83686fab02a3d825" "83686fab02a3d825"
@ -12093,6 +12101,28 @@
] ]
] ]
}, },
{
"id": "5e00ecbccbe51462",
"type": "function",
"z": "5e238cbbe6d612c9",
"g": "eccca853a916b662",
"name": "function 13",
"func": "const payload = msg.payload\n\nif (payload === 'stop') {\n node.status({fill:\"green\",shape:\"dot\",text:\"Timer Stopped\"})\n} else {\n node.log(\"Upstairs Bathroom 2-minute timer started\")\n node.log(\"Upstairs Bathroom 2-minute timer payload: \" + payload)\n node.status({fill:\"red\",shape:\"ring\",text:\"Message Logged\"})\n} \n\nreturn msg",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1255,
"y": 500,
"wires": [
[
"2dc5f9d3e00f4ddc"
]
],
"l": false
},
{ {
"id": "07049ae77b6751c6", "id": "07049ae77b6751c6",
"type": "server-state-changed", "type": "server-state-changed",