From bdcb1ba537ea2b38043f40238cbacbca979b89cc Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Sun, 5 May 2024 18:51:43 +0200 Subject: [PATCH] Mode Switch for garden light added --- .config.nodes.json | 2 +- .config.nodes.json.backup | 2 +- .flows.json.backup | 173 +++++++++++++++++++++++++++++++++++--- flows.json | 85 ++++++++++++++++++- 4 files changed, 247 insertions(+), 15 deletions(-) diff --git a/.config.nodes.json b/.config.nodes.json index e00ebf4..cd4f073 100644 --- a/.config.nodes.json +++ b/.config.nodes.json @@ -1,7 +1,7 @@ { "node-red": { "name": "node-red", - "version": "3.1.7", + "version": "3.1.9", "local": false, "user": false, "nodes": { diff --git a/.config.nodes.json.backup b/.config.nodes.json.backup index e6e3d12..e00ebf4 100644 --- a/.config.nodes.json.backup +++ b/.config.nodes.json.backup @@ -1,7 +1,7 @@ { "node-red": { "name": "node-red", - "version": "3.1.6", + "version": "3.1.7", "local": false, "user": false, "nodes": { diff --git a/.flows.json.backup b/.flows.json.backup index 4d4321b..b77a8cf 100644 --- a/.flows.json.backup +++ b/.flows.json.backup @@ -8914,11 +8914,12 @@ "id": "befa6f216015ec28", "type": "ui_switch", "z": "4526d61e20635824", + "d": true, "name": "", "label": "Sommermodus", "tooltip": "", "group": "f44c10be6990386a", - "order": 11, + "order": 12, "width": 0, "height": 0, "passthru": false, @@ -9016,7 +9017,8 @@ "y": 4800, "wires": [ [ - "befa6f216015ec28" + "befa6f216015ec28", + "98e10cf2790cc2f0" ] ] }, @@ -9824,7 +9826,7 @@ "d": true, "name": "", "group": "b5812a591e37c885", - "order": 5, + "order": 3, "width": 0, "height": 0, "passthru": false, @@ -9894,7 +9896,7 @@ "d": true, "name": "", "group": "b5812a591e37c885", - "order": 7, + "order": 4, "width": 0, "height": 0, "passthru": false, @@ -9941,7 +9943,7 @@ "d": true, "name": "", "group": "b5812a591e37c885", - "order": 9, + "order": 5, "width": 0, "height": 0, "gtype": "gage", @@ -9966,11 +9968,12 @@ "id": "c9818ea3615d857a", "type": "ui_switch", "z": "4526d61e20635824", + "d": true, "name": "", "label": "Sommermodus", "tooltip": "", "group": "b5812a591e37c885", - "order": 11, + "order": 8, "width": 0, "height": 0, "passthru": false, @@ -10004,7 +10007,7 @@ "label": "Abwesenheistmodus", "tooltip": "", "group": "b5812a591e37c885", - "order": 10, + "order": 6, "width": 0, "height": 0, "passthru": false, @@ -10068,7 +10071,8 @@ "y": 5340, "wires": [ [ - "c9818ea3615d857a" + "c9818ea3615d857a", + "42685fb99fabc971" ] ] }, @@ -10472,6 +10476,68 @@ "y": 4260, "wires": [] }, + { + "id": "98e10cf2790cc2f0", + "type": "ui_led", + "z": "4526d61e20635824", + "order": 11, + "group": "f44c10be6990386a", + "width": 0, + "height": 0, + "label": "Sommermodus", + "labelPlacement": "left", + "labelAlignment": "left", + "colorForValue": [ + { + "color": "#5e5c64", + "value": "false", + "valueType": "bool" + }, + { + "color": "#007b6d", + "value": "true", + "valueType": "bool" + } + ], + "allowColorForValueInMessage": false, + "shape": "circle", + "showGlow": true, + "name": "", + "x": 930, + "y": 4760, + "wires": [] + }, + { + "id": "42685fb99fabc971", + "type": "ui_led", + "z": "4526d61e20635824", + "order": 7, + "group": "b5812a591e37c885", + "width": 0, + "height": 0, + "label": "Sommermodus", + "labelPlacement": "left", + "labelAlignment": "left", + "colorForValue": [ + { + "color": "#5e5c64", + "value": "false", + "valueType": "bool" + }, + { + "color": "#007b6d", + "value": "true", + "valueType": "bool" + } + ], + "allowColorForValueInMessage": false, + "shape": "circle", + "showGlow": true, + "name": "", + "x": 930, + "y": 5300, + "wires": [] + }, { "id": "1fa39d26389dad2c", "type": "comment", @@ -11037,7 +11103,7 @@ "op1type": "nul", "op2type": "str", "duration": "5", - "extend": false, + "extend": true, "overrideDelay": false, "units": "min", "reset": "", @@ -11062,7 +11128,7 @@ "op1type": "nul", "op2type": "str", "duration": "5", - "extend": false, + "extend": true, "overrideDelay": false, "units": "min", "reset": "", @@ -11294,7 +11360,7 @@ "op1type": "nul", "op2type": "str", "duration": "5", - "extend": false, + "extend": true, "overrideDelay": false, "units": "min", "reset": "", @@ -11319,7 +11385,7 @@ "op1type": "nul", "op2type": "str", "duration": "5", - "extend": false, + "extend": true, "overrideDelay": false, "units": "min", "reset": "", @@ -13410,5 +13476,88 @@ "x": 100, "y": 40, "wires": [] + }, + { + "id": "2f2062a7a9468e57", + "type": "ui_switch", + "z": "628e09f79c8ce28e", + "name": "", + "label": "Automatic Mode", + "tooltip": "", + "group": "221d261c8ef4127b", + "order": 4, + "width": 0, + "height": 0, + "passthru": false, + "decouple": "true", + "topic": "topic", + "topicType": "msg", + "style": "", + "onvalue": "true", + "onvalueType": "bool", + "onicon": "", + "oncolor": "", + "offvalue": "false", + "offvalueType": "bool", + "officon": "", + "offcolor": "", + "animate": false, + "className": "", + "x": 680, + "y": 260, + "wires": [ + [ + "6dc8bd6f62df9f9c" + ] + ] + }, + { + "id": "a850bfd17c595779", + "type": "mqtt in", + "z": "628e09f79c8ce28e", + "name": "", + "topic": "videv/gar/garden/mode/state", + "qos": "2", + "datatype": "auto-detect", + "broker": "f6f673e95e75873d", + "nl": false, + "rap": true, + "rh": 0, + "inputs": 0, + "x": 160, + "y": 260, + "wires": [ + [ + "2f2062a7a9468e57" + ] + ] + }, + { + "id": "6dc8bd6f62df9f9c", + "type": "mqtt out", + "z": "628e09f79c8ce28e", + "name": "", + "topic": "videv/gar/garden/mode/state/set", + "qos": "", + "retain": "", + "respTopic": "", + "contentType": "", + "userProps": "", + "correl": "", + "expiry": "", + "broker": "f6f673e95e75873d", + "x": 950, + "y": 260, + "wires": [] + }, + { + "id": "8daf30610a4a3bc1", + "type": "comment", + "z": "628e09f79c8ce28e", + "name": "Mode", + "info": "", + "x": 90, + "y": 200, + "wires": [] } ] \ No newline at end of file diff --git a/flows.json b/flows.json index 690c409..f1d5983 100644 --- a/flows.json +++ b/flows.json @@ -13402,7 +13402,7 @@ "label": "Licht", "tooltip": "", "group": "221d261c8ef4127b", - "order": 4, + "order": 2, "width": 0, "height": 0, "passthru": false, @@ -13476,5 +13476,88 @@ "x": 100, "y": 40, "wires": [] + }, + { + "id": "2f2062a7a9468e57", + "type": "ui_switch", + "z": "628e09f79c8ce28e", + "name": "", + "label": "Automatic Mode", + "tooltip": "", + "group": "221d261c8ef4127b", + "order": 1, + "width": 0, + "height": 0, + "passthru": false, + "decouple": "true", + "topic": "topic", + "topicType": "msg", + "style": "", + "onvalue": "true", + "onvalueType": "bool", + "onicon": "", + "oncolor": "", + "offvalue": "false", + "offvalueType": "bool", + "officon": "", + "offcolor": "", + "animate": false, + "className": "", + "x": 680, + "y": 260, + "wires": [ + [ + "6dc8bd6f62df9f9c" + ] + ] + }, + { + "id": "a850bfd17c595779", + "type": "mqtt in", + "z": "628e09f79c8ce28e", + "name": "", + "topic": "videv/gar/garden/mode/state", + "qos": "2", + "datatype": "auto-detect", + "broker": "f6f673e95e75873d", + "nl": false, + "rap": true, + "rh": 0, + "inputs": 0, + "x": 160, + "y": 260, + "wires": [ + [ + "2f2062a7a9468e57" + ] + ] + }, + { + "id": "6dc8bd6f62df9f9c", + "type": "mqtt out", + "z": "628e09f79c8ce28e", + "name": "", + "topic": "videv/gar/garden/mode/state/set", + "qos": "", + "retain": "", + "respTopic": "", + "contentType": "", + "userProps": "", + "correl": "", + "expiry": "", + "broker": "f6f673e95e75873d", + "x": 950, + "y": 260, + "wires": [] + }, + { + "id": "8daf30610a4a3bc1", + "type": "comment", + "z": "628e09f79c8ce28e", + "name": "Mode", + "info": "", + "x": 90, + "y": 200, + "wires": [] } ] \ No newline at end of file