Update flow files
This commit is contained in:
+2
-64
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user