From 5331a5b28c074c3b045f9294d8602342317cc1cd Mon Sep 17 00:00:00 2001 From: rxf Date: Fri, 30 Jan 2026 10:56:39 +0000 Subject: [PATCH] EZ_Licht: Ausschalten um 0:10, 1:10 und 2:10 per cron --- flows.json | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 98 insertions(+), 3 deletions(-) diff --git a/flows.json b/flows.json index 9b31524..ecd80e8 100644 --- a/flows.json +++ b/flows.json @@ -1980,7 +1980,7 @@ "type": "debug", "z": "86a9e7aa0c304b46", "name": "debug 28", - "active": false, + "active": true, "tosidebar": true, "console": false, "tostatus": false, @@ -2063,7 +2063,7 @@ "type": "debug", "z": "86a9e7aa0c304b46", "name": "debug 29", - "active": false, + "active": true, "tosidebar": true, "console": false, "tostatus": false, @@ -2366,7 +2366,7 @@ "type": "function", "z": "86a9e7aa0c304b46", "name": "function 10", - "func": "msg.payload.wallbox = 1\nmsg.operation = \"insertOne\"\nmsg.collection = \"auto\"\nreturn msg;", + "func": "msg.payload.wallbox = 1\nmsg.operation = \"insertOne\"\nmsg.collection = \"auto\"\nmsg.payload.datetime = new Date()\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", @@ -9611,6 +9611,101 @@ "y": 620, "wires": [] }, + { + "id": "57bd18eacd345065", + "type": "cronplus", + "z": "c23febdb48bc9327", + "name": "", + "outputField": "payload", + "timeZone": "Europe/Berlin", + "storeName": "", + "commandResponseMsgOutput": "output1", + "defaultLocation": "48.804783197350694 9.19624328613281", + "defaultLocationType": "fixed", + "outputs": 1, + "options": [ + { + "name": "schedule1", + "topic": "topic1", + "payloadType": "bool", + "payload": "true", + "expressionType": "cron", + "expression": "0 10 0 * * * *", + "location": "48.776826823252065 9.12689208984375", + "offset": "1", + "solarType": "selected", + "solarEvents": "sunset" + }, + { + "name": "schedule2", + "topic": "topic2", + "payloadType": "bool", + "payload": "true", + "expressionType": "cron", + "expression": "0 10 01 * * * *", + "location": "", + "offset": "0", + "solarType": "all", + "solarEvents": "sunrise,sunset" + }, + { + "name": "schedule3", + "topic": "topic3", + "payloadType": "bool", + "payload": "true", + "expressionType": "cron", + "expression": "0 10 02 * * * *", + "location": "", + "offset": "0", + "solarType": "all", + "solarEvents": "sunrise,sunset" + } + ], + "x": 160, + "y": 960, + "wires": [ + [ + "0fe3d3d02a05285b" + ] + ] + }, + { + "id": "0fe3d3d02a05285b", + "type": "change", + "z": "c23febdb48bc9327", + "name": "", + "rules": [ + { + "t": "set", + "p": "payload", + "pt": "msg", + "to": "{\"state\":\"off\"}", + "tot": "json" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 500, + "y": 960, + "wires": [ + [ + "8878a0a8f089e449" + ] + ] + }, + { + "id": "7bd145c88a215ff0", + "type": "comment", + "z": "c23febdb48bc9327", + "name": "Um 0h10, 1h10 und 2h10 ausschalten", + "info": "", + "x": 250, + "y": 900, + "wires": [] + }, { "id": "60dea7cbf33ac553", "type": "mqtt in",