Browse Source

Mode Switch for garden light added

dashboard2
Dirk Alders 8 months ago
parent
commit
bdcb1ba537
4 changed files with 247 additions and 15 deletions
  1. 1
    1
      .config.nodes.json
  2. 1
    1
      .config.nodes.json.backup
  3. 161
    12
      .flows.json.backup
  4. 84
    1
      flows.json

+ 1
- 1
.config.nodes.json View File

1
 {
1
 {
2
     "node-red": {
2
     "node-red": {
3
         "name": "node-red",
3
         "name": "node-red",
4
-        "version": "3.1.7",
4
+        "version": "3.1.9",
5
         "local": false,
5
         "local": false,
6
         "user": false,
6
         "user": false,
7
         "nodes": {
7
         "nodes": {

+ 1
- 1
.config.nodes.json.backup View File

1
 {
1
 {
2
     "node-red": {
2
     "node-red": {
3
         "name": "node-red",
3
         "name": "node-red",
4
-        "version": "3.1.6",
4
+        "version": "3.1.7",
5
         "local": false,
5
         "local": false,
6
         "user": false,
6
         "user": false,
7
         "nodes": {
7
         "nodes": {

+ 161
- 12
.flows.json.backup View File

8914
         "id": "befa6f216015ec28",
8914
         "id": "befa6f216015ec28",
8915
         "type": "ui_switch",
8915
         "type": "ui_switch",
8916
         "z": "4526d61e20635824",
8916
         "z": "4526d61e20635824",
8917
+        "d": true,
8917
         "name": "",
8918
         "name": "",
8918
         "label": "Sommermodus",
8919
         "label": "Sommermodus",
8919
         "tooltip": "",
8920
         "tooltip": "",
8920
         "group": "f44c10be6990386a",
8921
         "group": "f44c10be6990386a",
8921
-        "order": 11,
8922
+        "order": 12,
8922
         "width": 0,
8923
         "width": 0,
8923
         "height": 0,
8924
         "height": 0,
8924
         "passthru": false,
8925
         "passthru": false,
9016
         "y": 4800,
9017
         "y": 4800,
9017
         "wires": [
9018
         "wires": [
9018
             [
9019
             [
9019
-                "befa6f216015ec28"
9020
+                "befa6f216015ec28",
9021
+                "98e10cf2790cc2f0"
9020
             ]
9022
             ]
9021
         ]
9023
         ]
9022
     },
9024
     },
9824
         "d": true,
9826
         "d": true,
9825
         "name": "",
9827
         "name": "",
9826
         "group": "b5812a591e37c885",
9828
         "group": "b5812a591e37c885",
9827
-        "order": 5,
9829
+        "order": 3,
9828
         "width": 0,
9830
         "width": 0,
9829
         "height": 0,
9831
         "height": 0,
9830
         "passthru": false,
9832
         "passthru": false,
9894
         "d": true,
9896
         "d": true,
9895
         "name": "",
9897
         "name": "",
9896
         "group": "b5812a591e37c885",
9898
         "group": "b5812a591e37c885",
9897
-        "order": 7,
9899
+        "order": 4,
9898
         "width": 0,
9900
         "width": 0,
9899
         "height": 0,
9901
         "height": 0,
9900
         "passthru": false,
9902
         "passthru": false,
9941
         "d": true,
9943
         "d": true,
9942
         "name": "",
9944
         "name": "",
9943
         "group": "b5812a591e37c885",
9945
         "group": "b5812a591e37c885",
9944
-        "order": 9,
9946
+        "order": 5,
9945
         "width": 0,
9947
         "width": 0,
9946
         "height": 0,
9948
         "height": 0,
9947
         "gtype": "gage",
9949
         "gtype": "gage",
9966
         "id": "c9818ea3615d857a",
9968
         "id": "c9818ea3615d857a",
9967
         "type": "ui_switch",
9969
         "type": "ui_switch",
9968
         "z": "4526d61e20635824",
9970
         "z": "4526d61e20635824",
9971
+        "d": true,
9969
         "name": "",
9972
         "name": "",
9970
         "label": "Sommermodus",
9973
         "label": "Sommermodus",
9971
         "tooltip": "",
9974
         "tooltip": "",
9972
         "group": "b5812a591e37c885",
9975
         "group": "b5812a591e37c885",
9973
-        "order": 11,
9976
+        "order": 8,
9974
         "width": 0,
9977
         "width": 0,
9975
         "height": 0,
9978
         "height": 0,
9976
         "passthru": false,
9979
         "passthru": false,
10004
         "label": "Abwesenheistmodus",
10007
         "label": "Abwesenheistmodus",
10005
         "tooltip": "",
10008
         "tooltip": "",
10006
         "group": "b5812a591e37c885",
10009
         "group": "b5812a591e37c885",
10007
-        "order": 10,
10010
+        "order": 6,
10008
         "width": 0,
10011
         "width": 0,
10009
         "height": 0,
10012
         "height": 0,
10010
         "passthru": false,
10013
         "passthru": false,
10068
         "y": 5340,
10071
         "y": 5340,
10069
         "wires": [
10072
         "wires": [
10070
             [
10073
             [
10071
-                "c9818ea3615d857a"
10074
+                "c9818ea3615d857a",
10075
+                "42685fb99fabc971"
10072
             ]
10076
             ]
10073
         ]
10077
         ]
10074
     },
10078
     },
10472
         "y": 4260,
10476
         "y": 4260,
10473
         "wires": []
10477
         "wires": []
10474
     },
10478
     },
10479
+    {
10480
+        "id": "98e10cf2790cc2f0",
10481
+        "type": "ui_led",
10482
+        "z": "4526d61e20635824",
10483
+        "order": 11,
10484
+        "group": "f44c10be6990386a",
10485
+        "width": 0,
10486
+        "height": 0,
10487
+        "label": "Sommermodus",
10488
+        "labelPlacement": "left",
10489
+        "labelAlignment": "left",
10490
+        "colorForValue": [
10491
+            {
10492
+                "color": "#5e5c64",
10493
+                "value": "false",
10494
+                "valueType": "bool"
10495
+            },
10496
+            {
10497
+                "color": "#007b6d",
10498
+                "value": "true",
10499
+                "valueType": "bool"
10500
+            }
10501
+        ],
10502
+        "allowColorForValueInMessage": false,
10503
+        "shape": "circle",
10504
+        "showGlow": true,
10505
+        "name": "",
10506
+        "x": 930,
10507
+        "y": 4760,
10508
+        "wires": []
10509
+    },
10510
+    {
10511
+        "id": "42685fb99fabc971",
10512
+        "type": "ui_led",
10513
+        "z": "4526d61e20635824",
10514
+        "order": 7,
10515
+        "group": "b5812a591e37c885",
10516
+        "width": 0,
10517
+        "height": 0,
10518
+        "label": "Sommermodus",
10519
+        "labelPlacement": "left",
10520
+        "labelAlignment": "left",
10521
+        "colorForValue": [
10522
+            {
10523
+                "color": "#5e5c64",
10524
+                "value": "false",
10525
+                "valueType": "bool"
10526
+            },
10527
+            {
10528
+                "color": "#007b6d",
10529
+                "value": "true",
10530
+                "valueType": "bool"
10531
+            }
10532
+        ],
10533
+        "allowColorForValueInMessage": false,
10534
+        "shape": "circle",
10535
+        "showGlow": true,
10536
+        "name": "",
10537
+        "x": 930,
10538
+        "y": 5300,
10539
+        "wires": []
10540
+    },
10475
     {
10541
     {
10476
         "id": "1fa39d26389dad2c",
10542
         "id": "1fa39d26389dad2c",
10477
         "type": "comment",
10543
         "type": "comment",
11037
         "op1type": "nul",
11103
         "op1type": "nul",
11038
         "op2type": "str",
11104
         "op2type": "str",
11039
         "duration": "5",
11105
         "duration": "5",
11040
-        "extend": false,
11106
+        "extend": true,
11041
         "overrideDelay": false,
11107
         "overrideDelay": false,
11042
         "units": "min",
11108
         "units": "min",
11043
         "reset": "",
11109
         "reset": "",
11062
         "op1type": "nul",
11128
         "op1type": "nul",
11063
         "op2type": "str",
11129
         "op2type": "str",
11064
         "duration": "5",
11130
         "duration": "5",
11065
-        "extend": false,
11131
+        "extend": true,
11066
         "overrideDelay": false,
11132
         "overrideDelay": false,
11067
         "units": "min",
11133
         "units": "min",
11068
         "reset": "",
11134
         "reset": "",
11294
         "op1type": "nul",
11360
         "op1type": "nul",
11295
         "op2type": "str",
11361
         "op2type": "str",
11296
         "duration": "5",
11362
         "duration": "5",
11297
-        "extend": false,
11363
+        "extend": true,
11298
         "overrideDelay": false,
11364
         "overrideDelay": false,
11299
         "units": "min",
11365
         "units": "min",
11300
         "reset": "",
11366
         "reset": "",
11319
         "op1type": "nul",
11385
         "op1type": "nul",
11320
         "op2type": "str",
11386
         "op2type": "str",
11321
         "duration": "5",
11387
         "duration": "5",
11322
-        "extend": false,
11388
+        "extend": true,
11323
         "overrideDelay": false,
11389
         "overrideDelay": false,
11324
         "units": "min",
11390
         "units": "min",
11325
         "reset": "",
11391
         "reset": "",
13410
         "x": 100,
13476
         "x": 100,
13411
         "y": 40,
13477
         "y": 40,
13412
         "wires": []
13478
         "wires": []
13479
+    },
13480
+    {
13481
+        "id": "2f2062a7a9468e57",
13482
+        "type": "ui_switch",
13483
+        "z": "628e09f79c8ce28e",
13484
+        "name": "",
13485
+        "label": "Automatic Mode",
13486
+        "tooltip": "",
13487
+        "group": "221d261c8ef4127b",
13488
+        "order": 4,
13489
+        "width": 0,
13490
+        "height": 0,
13491
+        "passthru": false,
13492
+        "decouple": "true",
13493
+        "topic": "topic",
13494
+        "topicType": "msg",
13495
+        "style": "",
13496
+        "onvalue": "true",
13497
+        "onvalueType": "bool",
13498
+        "onicon": "",
13499
+        "oncolor": "",
13500
+        "offvalue": "false",
13501
+        "offvalueType": "bool",
13502
+        "officon": "",
13503
+        "offcolor": "",
13504
+        "animate": false,
13505
+        "className": "",
13506
+        "x": 680,
13507
+        "y": 260,
13508
+        "wires": [
13509
+            [
13510
+                "6dc8bd6f62df9f9c"
13511
+            ]
13512
+        ]
13513
+    },
13514
+    {
13515
+        "id": "a850bfd17c595779",
13516
+        "type": "mqtt in",
13517
+        "z": "628e09f79c8ce28e",
13518
+        "name": "",
13519
+        "topic": "videv/gar/garden/mode/state",
13520
+        "qos": "2",
13521
+        "datatype": "auto-detect",
13522
+        "broker": "f6f673e95e75873d",
13523
+        "nl": false,
13524
+        "rap": true,
13525
+        "rh": 0,
13526
+        "inputs": 0,
13527
+        "x": 160,
13528
+        "y": 260,
13529
+        "wires": [
13530
+            [
13531
+                "2f2062a7a9468e57"
13532
+            ]
13533
+        ]
13534
+    },
13535
+    {
13536
+        "id": "6dc8bd6f62df9f9c",
13537
+        "type": "mqtt out",
13538
+        "z": "628e09f79c8ce28e",
13539
+        "name": "",
13540
+        "topic": "videv/gar/garden/mode/state/set",
13541
+        "qos": "",
13542
+        "retain": "",
13543
+        "respTopic": "",
13544
+        "contentType": "",
13545
+        "userProps": "",
13546
+        "correl": "",
13547
+        "expiry": "",
13548
+        "broker": "f6f673e95e75873d",
13549
+        "x": 950,
13550
+        "y": 260,
13551
+        "wires": []
13552
+    },
13553
+    {
13554
+        "id": "8daf30610a4a3bc1",
13555
+        "type": "comment",
13556
+        "z": "628e09f79c8ce28e",
13557
+        "name": "Mode",
13558
+        "info": "",
13559
+        "x": 90,
13560
+        "y": 200,
13561
+        "wires": []
13413
     }
13562
     }
13414
 ]
13563
 ]

+ 84
- 1
flows.json View File

13402
         "label": "Licht",
13402
         "label": "Licht",
13403
         "tooltip": "",
13403
         "tooltip": "",
13404
         "group": "221d261c8ef4127b",
13404
         "group": "221d261c8ef4127b",
13405
-        "order": 4,
13405
+        "order": 2,
13406
         "width": 0,
13406
         "width": 0,
13407
         "height": 0,
13407
         "height": 0,
13408
         "passthru": false,
13408
         "passthru": false,
13476
         "x": 100,
13476
         "x": 100,
13477
         "y": 40,
13477
         "y": 40,
13478
         "wires": []
13478
         "wires": []
13479
+    },
13480
+    {
13481
+        "id": "2f2062a7a9468e57",
13482
+        "type": "ui_switch",
13483
+        "z": "628e09f79c8ce28e",
13484
+        "name": "",
13485
+        "label": "Automatic Mode",
13486
+        "tooltip": "",
13487
+        "group": "221d261c8ef4127b",
13488
+        "order": 1,
13489
+        "width": 0,
13490
+        "height": 0,
13491
+        "passthru": false,
13492
+        "decouple": "true",
13493
+        "topic": "topic",
13494
+        "topicType": "msg",
13495
+        "style": "",
13496
+        "onvalue": "true",
13497
+        "onvalueType": "bool",
13498
+        "onicon": "",
13499
+        "oncolor": "",
13500
+        "offvalue": "false",
13501
+        "offvalueType": "bool",
13502
+        "officon": "",
13503
+        "offcolor": "",
13504
+        "animate": false,
13505
+        "className": "",
13506
+        "x": 680,
13507
+        "y": 260,
13508
+        "wires": [
13509
+            [
13510
+                "6dc8bd6f62df9f9c"
13511
+            ]
13512
+        ]
13513
+    },
13514
+    {
13515
+        "id": "a850bfd17c595779",
13516
+        "type": "mqtt in",
13517
+        "z": "628e09f79c8ce28e",
13518
+        "name": "",
13519
+        "topic": "videv/gar/garden/mode/state",
13520
+        "qos": "2",
13521
+        "datatype": "auto-detect",
13522
+        "broker": "f6f673e95e75873d",
13523
+        "nl": false,
13524
+        "rap": true,
13525
+        "rh": 0,
13526
+        "inputs": 0,
13527
+        "x": 160,
13528
+        "y": 260,
13529
+        "wires": [
13530
+            [
13531
+                "2f2062a7a9468e57"
13532
+            ]
13533
+        ]
13534
+    },
13535
+    {
13536
+        "id": "6dc8bd6f62df9f9c",
13537
+        "type": "mqtt out",
13538
+        "z": "628e09f79c8ce28e",
13539
+        "name": "",
13540
+        "topic": "videv/gar/garden/mode/state/set",
13541
+        "qos": "",
13542
+        "retain": "",
13543
+        "respTopic": "",
13544
+        "contentType": "",
13545
+        "userProps": "",
13546
+        "correl": "",
13547
+        "expiry": "",
13548
+        "broker": "f6f673e95e75873d",
13549
+        "x": 950,
13550
+        "y": 260,
13551
+        "wires": []
13552
+    },
13553
+    {
13554
+        "id": "8daf30610a4a3bc1",
13555
+        "type": "comment",
13556
+        "z": "628e09f79c8ce28e",
13557
+        "name": "Mode",
13558
+        "info": "",
13559
+        "x": 90,
13560
+        "y": 200,
13561
+        "wires": []
13479
     }
13562
     }
13480
 ]
13563
 ]

Loading…
Cancel
Save