From 916f0c0c6aa52a5c77f520bee9f99f792e5b1fa1 Mon Sep 17 00:00:00 2001 From: m038 Date: Thu, 21 May 2026 22:34:45 +0200 Subject: [PATCH] Update flow files --- flows.json | 66 ++---------------------------------------------------- 1 file changed, 2 insertions(+), 64 deletions(-) diff --git a/flows.json b/flows.json index ff6643d..0b3a23c 100644 --- a/flows.json +++ b/flows.json @@ -21704,7 +21704,7 @@ "z": "c7f876875da48b87", "name": "Bathmode ", "wires": [], - "info": "Support for taking a fucking bath in peace without smart lights trying to be smart and try to ruin your relaxing bath", + "info": "", "x": 120, "y": 60 }, @@ -22281,68 +22281,6 @@ "x": 940, "y": 780 }, - { - "id": "35c8be1391bade3c", - "type": "api-call-service", - "z": "c7f876875da48b87", - "name": "Set bathroom to occupied", - "wires": [ - [] - ], - "server": "657c7463.48e1e4", - "version": 7, - "debugenabled": false, - "action": "input_boolean.turn_on", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [ - "input_boolean.bathroom_occupied" - ], - "labelId": [], - "data": "", - "dataType": "json", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "input_boolean", - "service": "turn_on", - "x": 1510, - "y": 260 - }, - { - "id": "51fdae07346cd271", - "type": "api-call-service", - "z": "c7f876875da48b87", - "name": "Set bathroom to unoccupied", - "wires": [ - [] - ], - "server": "657c7463.48e1e4", - "version": 7, - "debugenabled": false, - "action": "input_boolean.turn_on", - "floorId": [], - "areaId": [], - "deviceId": [], - "entityId": [ - "input_boolean.bathroom_occupied" - ], - "labelId": [], - "data": "", - "dataType": "json", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "blockInputOverrides": false, - "domain": "input_boolean", - "service": "turn_on", - "x": 1520, - "y": 300 - }, { "id": "339b3b18887a2819", "type": "server-state-changed", @@ -22503,7 +22441,7 @@ "7e4f4bb9c0c9ef2b" ] ], - "func": "const current = parseFloat(msg.payload);\nconst baseline = flow.get(\"humidityBaseline\") || 60;\nconst threshold = baseline + 5;\n\nif (current <= threshold) {\n return [msg, null]; // output 1: turn off fan\n}\nreturn [null, msg]; // output 2: wait another 5 min", + "func": "const current = parseFloat(msg.payload);\nconst baseline = flow.get(\"humidityBaseline\") || 60;\nconst threshold = baseline + 5;\n\nif (current <= threshold) {\n return [msg, null];\n}\nreturn [null, msg];", "outputs": 2, "timeout": 0, "noerr": 0,