Compare commits

..

1 Commits

Author SHA1 Message Date
Housemann
23e7cc2584 Delay Node with msg.delay 2025-04-23 06:01:47 +02:00

View File

@@ -273,12 +273,12 @@
"name": "Get Timer Value", "name": "Get Timer Value",
"server": "387b3091.65c5", "server": "387b3091.65c5",
"version": 3, "version": 3,
"outputs": 2, "outputs": 1,
"halt_if": "0", "halt_if": "",
"halt_if_type": "num", "halt_if_type": "str",
"halt_if_compare": "gt", "halt_if_compare": "is",
"entity_id": "input_number.diele_timer_nachtlicht", "entity_id": "input_number.diele_timer_nachtbeleuchtung",
"state_type": "num", "state_type": "str",
"blockInputOverrides": true, "blockInputOverrides": true,
"outputProperties": [ "outputProperties": [
{ {
@@ -307,8 +307,7 @@
"wires": [ "wires": [
[ [
"14c3a212afc4cd78" "14c3a212afc4cd78"
], ]
[]
] ]
}, },
{ {
@@ -317,7 +316,7 @@
"z": "a1055886e0cbd337", "z": "a1055886e0cbd337",
"g": "23b8f90b282ac8a2", "g": "23b8f90b282ac8a2",
"name": "Min2Millisekunden", "name": "Min2Millisekunden",
"func": "// Annahme: msg.payload enthält den Wert in Sekunden\nlet sekunden = msg.payload;\nmsg.delay = sekunden * 1000; // Sekdunen → Millisekunden\nreturn msg;", "func": "// Annahme: msg.payload enthält den Wert in Minuten\nlet minuten = parseFloat(msg.payload);\nmsg.delay = minuten * 60 * 1000; // Minuten → Millisekunden\nreturn msg;",
"outputs": 1, "outputs": 1,
"timeout": 0, "timeout": 0,
"noerr": 0, "noerr": 0,