Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. MAX! Cube Blockly Abwesenheit

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    MAX! Cube Blockly Abwesenheit

    This topic has been deleted. Only users with topic management privileges can see it.
    • Marko1974
      Marko1974 @mickym last edited by

      @mickym said in MAX! Cube Blockly Abwesenheit:

      @marko1974 Noch können wir es aber bei Wechsel zu Anwesend und zu Abwesend machen? - Wie Du willst? Wenn wir es nur für Abwesend machen wollen müssen wir noch was am Hauptflow ändern.

      Am Einfachsten ist Du kopierst einfach die split Node und hängst die Telegramm Ausgabe nur an den oberen Split Node.

      881abfc2-81a1-454a-8eb1-25b1b355dfd0-image.png

      dann sendet er aber 2 mal und es macht auch 2x klingeling

      mickym 1 Reply Last reply Reply Quote 0
      • mickym
        mickym Most Active @Marko1974 last edited by

        @marko1974 sagte in MAX! Cube Blockly Abwesenheit:

        @mickym boar wer ist denn join schon wieder 😧

        Bissi enttäuscht bin ich aber auch, wenn Du Dir wenigstens den Übrungsflow, den ich Dir heute nachmittag extra gemacht habe angeschaut hättest - dann wärest Du mit dem Verständnis weiter:

        https://forum.iobroker.net/topic/49231/max-cube-blockly-abwesenheit/77?_=1637093504763

        936e1cbc-bbee-427e-a25e-ed9fe161b8c3-image.png

        Da hatte ich wunderschöne Flows zur Demonstration für Dich gemacht:

        [
          {
              "id": "c8872a87.997ae8",
              "type": "inject",
              "z": "f51578d8.868868",
              "name": "All OFF -JS Objekt(JSON)",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "{\"Kinderzimmer\":{\"mode\":\"OFF\"},\"Schlafzimmer\":{\"mode\":\"OFF\"},\"Wohnzimmer\":{\"mode\":\"OFF\"},\"Flur\":{\"mode\":\"OFF\"},\"Küche\":{\"mode\":\"OFF\"},\"Badezimmer\":{\"mode\":\"OFF\"}}",
              "payloadType": "json",
              "x": 990,
              "y": 780,
              "wires": [
                  [
                      "f3062735.80d058",
                      "125e1468.8fbd0c",
                      "4d20e55f.3e7b0c"
                  ]
              ]
          },
          {
              "id": "3c719b28.ea0e14",
              "type": "inject",
              "z": "f51578d8.868868",
              "name": "Array",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "[\"Montag\",\"Dienstag\",\"Mittwoch\",\"Donnerstag\",\"Freitag\",\"Samstag\",\"Sonntag\"]",
              "payloadType": "json",
              "x": 1050,
              "y": 860,
              "wires": [
                  [
                      "f3062735.80d058",
                      "125e1468.8fbd0c",
                      "4d20e55f.3e7b0c"
                  ]
              ]
          },
          {
              "id": "f7725813.8a2f28",
              "type": "inject",
              "z": "f51578d8.868868",
              "name": "JS Objekt (JSON)",
              "props": [
                  {
                      "p": "heizung",
                      "v": "{\"name\":\"Schlafzimmerthermo xyz\",\"mode\":\"AUTO\",\"setpointtemperature\":20}",
                      "vt": "json"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payloadType": "str",
              "x": 1010,
              "y": 720,
              "wires": [
                  [
                      "f3062735.80d058",
                      "125e1468.8fbd0c",
                      "4d20e55f.3e7b0c"
                  ]
              ]
          },
          {
              "id": "f3062735.80d058",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "Originaler Input",
              "active": false,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "true",
              "targetType": "full",
              "statusVal": "",
              "statusType": "auto",
              "x": 1260,
              "y": 760,
              "wires": []
          },
          {
              "id": "b9decd2d.f55e",
              "type": "inject",
              "z": "f51578d8.868868",
              "name": "string - also Text",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "Die Heizung im Kinderzimmer ist auf 17°C eingestellt - Die Heizung im Wohnzimmer ist auf 22°C eingestellt - Die Heizung im Schlafzimmer ist auf 17°C eingestellt - Im Flur wir nie geheizt - In der Küche ist es immer warm",
              "payloadType": "str",
              "x": 1020,
              "y": 920,
              "wires": [
                  [
                      "f3062735.80d058",
                      "125e1468.8fbd0c",
                      "4d20e55f.3e7b0c"
                  ]
              ]
          },
          {
              "id": "7d86d57b.46709c",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "Aufgeteilter Input ",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "true",
              "targetType": "full",
              "statusVal": "",
              "statusType": "auto",
              "x": 1450,
              "y": 940,
              "wires": []
          },
          {
              "id": "125e1468.8fbd0c",
              "type": "split",
              "z": "f51578d8.868868",
              "name": "",
              "splt": "- ",
              "spltType": "str",
              "arraySplt": 1,
              "arraySpltType": "len",
              "stream": false,
              "addname": "",
              "x": 1240,
              "y": 1020,
              "wires": [
                  [
                      "7d86d57b.46709c",
                      "44a7b809.4203c8",
                      "32b92a90.0878d6"
                  ]
              ]
          },
          {
              "id": "44a7b809.4203c8",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "Aufgeteilter Input ",
              "active": false,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1450,
              "y": 980,
              "wires": []
          },
          {
              "id": "4d20e55f.3e7b0c",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "Originaler Input",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1260,
              "y": 800,
              "wires": []
          },
          {
              "id": "32b92a90.0878d6",
              "type": "join",
              "z": "f51578d8.868868",
              "name": "",
              "mode": "auto",
              "build": "string",
              "property": "payload",
              "propertyType": "msg",
              "key": "topic",
              "joiner": "\\n",
              "joinerType": "str",
              "accumulate": "false",
              "timeout": "",
              "count": "",
              "reduceRight": false,
              "x": 1410,
              "y": 1060,
              "wires": [
                  [
                      "353ca7c0.fc6f78",
                      "a394b548.7ee2d8"
                  ]
              ]
          },
          {
              "id": "353ca7c0.fc6f78",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "Wieder zusammengesetzer Input ",
              "active": false,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "true",
              "targetType": "full",
              "statusVal": "",
              "statusType": "auto",
              "x": 1660,
              "y": 1060,
              "wires": []
          },
          {
              "id": "a394b548.7ee2d8",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "Wieder zusammengesetzer Input ",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1660,
              "y": 1100,
              "wires": []
          },
          {
              "id": "42a3c2d7.6305ac",
              "type": "inject",
              "z": "f51578d8.868868",
              "name": "Array",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "[\"Montag\",\"Dienstag\",\"Mittwoch\",\"Donnerstag\",\"Freitag\",\"Samstag\",\"Sonntag\"]",
              "payloadType": "json",
              "x": 1030,
              "y": 1240,
              "wires": [
                  [
                      "135a2676.aa76fa"
                  ]
              ]
          },
          {
              "id": "135a2676.aa76fa",
              "type": "split",
              "z": "f51578d8.868868",
              "name": "",
              "splt": "- ",
              "spltType": "str",
              "arraySplt": 1,
              "arraySpltType": "len",
              "stream": false,
              "addname": "",
              "x": 1170,
              "y": 1240,
              "wires": [
                  [
                      "855a4de2.cdf7a",
                      "686ea273.c66dac"
                  ]
              ]
          },
          {
              "id": "686ea273.c66dac",
              "type": "join",
              "z": "f51578d8.868868",
              "name": "",
              "mode": "reduce",
              "build": "string",
              "property": "payload",
              "propertyType": "msg",
              "key": "topic",
              "joiner": "\\n",
              "joinerType": "str",
              "accumulate": false,
              "timeout": "",
              "count": "",
              "reduceRight": false,
              "reduceExp": "$A & payload & \" - \"",
              "reduceInit": "",
              "reduceInitType": "str",
              "reduceFixup": "$substring($A,0,$length($A)-3)\t",
              "x": 1470,
              "y": 1240,
              "wires": [
                  [
                      "18140ac7.295275"
                  ]
              ]
          },
          {
              "id": "18140ac7.295275",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "Wieder zusammengesetzer Input ",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1700,
              "y": 1240,
              "wires": []
          },
          {
              "id": "855a4de2.cdf7a",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "Aufgeteilter Input ",
              "active": false,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1350,
              "y": 1180,
              "wires": []
          },
          {
              "id": "f4ba6b18.c94338",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "false",
              "statusVal": "",
              "statusType": "auto",
              "x": 830,
              "y": 1040,
              "wires": []
          },
          {
              "id": "aeeb109c.d84fe",
              "type": "inject",
              "z": "f51578d8.868868",
              "name": "Array",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "[1,2,3]",
              "payloadType": "json",
              "x": 1010,
              "y": 1580,
              "wires": [
                  [
                      "8c6e0a94.c66b58"
                  ]
              ]
          },
          {
              "id": "8c6e0a94.c66b58",
              "type": "split",
              "z": "f51578d8.868868",
              "name": "",
              "splt": "- ",
              "spltType": "str",
              "arraySplt": 1,
              "arraySpltType": "len",
              "stream": false,
              "addname": "",
              "x": 1150,
              "y": 1580,
              "wires": [
                  [
                      "7550a747.916db8",
                      "f29be1a0.4b39b"
                  ]
              ]
          },
          {
              "id": "f29be1a0.4b39b",
              "type": "join",
              "z": "f51578d8.868868",
              "name": "",
              "mode": "reduce",
              "build": "string",
              "property": "payload",
              "propertyType": "msg",
              "key": "topic",
              "joiner": "\\n",
              "joinerType": "str",
              "accumulate": false,
              "timeout": "",
              "count": "",
              "reduceRight": false,
              "reduceExp": "$A + payload",
              "reduceInit": "0",
              "reduceInitType": "num",
              "reduceFixup": "",
              "x": 1450,
              "y": 1580,
              "wires": [
                  [
                      "244872b6.57050e"
                  ]
              ]
          },
          {
              "id": "244872b6.57050e",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "Wieder zusammengesetzer Input ",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1680,
              "y": 1580,
              "wires": []
          },
          {
              "id": "7550a747.916db8",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "Aufgeteilter Input ",
              "active": false,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1330,
              "y": 1520,
              "wires": []
          },
          {
              "id": "d236e710.7db608",
              "type": "inject",
              "z": "f51578d8.868868",
              "name": "Array",
              "props": [
                  {
                      "p": "payload"
                  }
              ],
              "repeat": "",
              "crontab": "",
              "once": false,
              "onceDelay": 0.1,
              "topic": "",
              "payload": "[\"Montag\",\"Dienstag\",\"Mittwoch\",\"Donnerstag\",\"Freitag\",\"Samstag\",\"Sonntag\"]",
              "payloadType": "json",
              "x": 1010,
              "y": 1400,
              "wires": [
                  [
                      "f3df0c37.b2496"
                  ]
              ]
          },
          {
              "id": "f3df0c37.b2496",
              "type": "split",
              "z": "f51578d8.868868",
              "name": "",
              "splt": "- ",
              "spltType": "str",
              "arraySplt": 1,
              "arraySpltType": "len",
              "stream": false,
              "addname": "",
              "x": 1150,
              "y": 1400,
              "wires": [
                  [
                      "8d977bbd.932998",
                      "46f88853.8d5f18"
                  ]
              ]
          },
          {
              "id": "ca8a83d6.fc65f",
              "type": "join",
              "z": "f51578d8.868868",
              "name": "",
              "mode": "auto",
              "build": "string",
              "property": "payload",
              "propertyType": "msg",
              "key": "topic",
              "joiner": "\\n",
              "joinerType": "str",
              "accumulate": false,
              "timeout": "",
              "count": "",
              "reduceRight": false,
              "reduceExp": "$A & payload & \" - \"",
              "reduceInit": "",
              "reduceInitType": "str",
              "reduceFixup": "$substring($A,0,$length($A)-3)\t",
              "x": 1450,
              "y": 1400,
              "wires": [
                  [
                      "998db142.16b6c"
                  ]
              ]
          },
          {
              "id": "998db142.16b6c",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "Wieder zusammengesetzer Input ",
              "active": true,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1680,
              "y": 1400,
              "wires": []
          },
          {
              "id": "8d977bbd.932998",
              "type": "debug",
              "z": "f51578d8.868868",
              "name": "Aufgeteilter Input ",
              "active": false,
              "tosidebar": true,
              "console": false,
              "tostatus": false,
              "complete": "payload",
              "targetType": "msg",
              "statusVal": "",
              "statusType": "auto",
              "x": 1330,
              "y": 1340,
              "wires": []
          },
          {
              "id": "46f88853.8d5f18",
              "type": "change",
              "z": "f51578d8.868868",
              "name": "translate",
              "rules": [
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "Montag",
                      "fromt": "str",
                      "to": "Monday",
                      "tot": "str"
                  },
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "Dienstag",
                      "fromt": "str",
                      "to": "Tuesday",
                      "tot": "str"
                  },
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "Mittwoch",
                      "fromt": "str",
                      "to": "Wednesday",
                      "tot": "str"
                  },
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "Donnerstag",
                      "fromt": "str",
                      "to": "Thursday",
                      "tot": "str"
                  },
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "Freitag",
                      "fromt": "str",
                      "to": "Friday",
                      "tot": "str"
                  },
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "Samstag",
                      "fromt": "str",
                      "to": "Saturday",
                      "tot": "str"
                  },
                  {
                      "t": "change",
                      "p": "payload",
                      "pt": "msg",
                      "from": "Sonntag",
                      "fromt": "str",
                      "to": "Sunday",
                      "tot": "str"
                  }
              ],
              "action": "",
              "property": "",
              "from": "",
              "to": "",
              "reg": false,
              "x": 1300,
              "y": 1400,
              "wires": [
                  [
                      "ca8a83d6.fc65f"
                  ]
              ]
          },
          {
              "id": "62fa32cf.d5b37c",
              "type": "comment",
              "z": "f51578d8.868868",
              "name": "Lies mich",
              "info": "Warum das Ganze - erst splitten dann wieder zusammensetzen. Nun damit kann man die einzelnen Werte bearbeiten und wieder zusammensetzen. Jedoch muss Anzahl identisch bleiben - das heißt die parts müssen gleich bleiben",
              "x": 880,
              "y": 1320,
              "wires": []
          },
          {
              "id": "a57f4164.a432",
              "type": "comment",
              "z": "f51578d8.868868",
              "name": "Lies mich",
              "info": "msg.parts anschauen - die split Node generiert hat:\n\nschau Dir an:\n\nmsg.parts.count\nmsg.parts.index",
              "x": 1420,
              "y": 880,
              "wires": []
          }
        ]
        
        

        Marko1974 1 Reply Last reply Reply Quote 0
        • Marko1974
          Marko1974 @mickym last edited by

          @mickym said in MAX! Cube Blockly Abwesenheit:

          @marko1974 sagte in MAX! Cube Blockly Abwesenheit:

          @mickym boar wer ist denn join schon wieder 😧

          Bissi enttäuscht bin ich aber auch, wenn Du Dir wenigstens den Übrungsflow, den ich Dir heute nachmittag extra gemacht habe angeschaut hättest - dann wärest Du mit dem Verständnis weiter:

          https://forum.iobroker.net/topic/49231/max-cube-blockly-abwesenheit/77?_=1637093504763

          936e1cbc-bbee-427e-a25e-ed9fe161b8c3-image.png

          Da hatte ich wunderschöne Flows zur Demonstration für Dich gemacht:

          [
            {
                "id": "c8872a87.997ae8",
                "type": "inject",
                "z": "f51578d8.868868",
                "name": "All OFF -JS Objekt(JSON)",
                "props": [
                    {
                        "p": "payload"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "{\"Kinderzimmer\":{\"mode\":\"OFF\"},\"Schlafzimmer\":{\"mode\":\"OFF\"},\"Wohnzimmer\":{\"mode\":\"OFF\"},\"Flur\":{\"mode\":\"OFF\"},\"Küche\":{\"mode\":\"OFF\"},\"Badezimmer\":{\"mode\":\"OFF\"}}",
                "payloadType": "json",
                "x": 990,
                "y": 780,
                "wires": [
                    [
                        "f3062735.80d058",
                        "125e1468.8fbd0c",
                        "4d20e55f.3e7b0c"
                    ]
                ]
            },
            {
                "id": "3c719b28.ea0e14",
                "type": "inject",
                "z": "f51578d8.868868",
                "name": "Array",
                "props": [
                    {
                        "p": "payload"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "[\"Montag\",\"Dienstag\",\"Mittwoch\",\"Donnerstag\",\"Freitag\",\"Samstag\",\"Sonntag\"]",
                "payloadType": "json",
                "x": 1050,
                "y": 860,
                "wires": [
                    [
                        "f3062735.80d058",
                        "125e1468.8fbd0c",
                        "4d20e55f.3e7b0c"
                    ]
                ]
            },
            {
                "id": "f7725813.8a2f28",
                "type": "inject",
                "z": "f51578d8.868868",
                "name": "JS Objekt (JSON)",
                "props": [
                    {
                        "p": "heizung",
                        "v": "{\"name\":\"Schlafzimmerthermo xyz\",\"mode\":\"AUTO\",\"setpointtemperature\":20}",
                        "vt": "json"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payloadType": "str",
                "x": 1010,
                "y": 720,
                "wires": [
                    [
                        "f3062735.80d058",
                        "125e1468.8fbd0c",
                        "4d20e55f.3e7b0c"
                    ]
                ]
            },
            {
                "id": "f3062735.80d058",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "Originaler Input",
                "active": false,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "true",
                "targetType": "full",
                "statusVal": "",
                "statusType": "auto",
                "x": 1260,
                "y": 760,
                "wires": []
            },
            {
                "id": "b9decd2d.f55e",
                "type": "inject",
                "z": "f51578d8.868868",
                "name": "string - also Text",
                "props": [
                    {
                        "p": "payload"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "Die Heizung im Kinderzimmer ist auf 17°C eingestellt - Die Heizung im Wohnzimmer ist auf 22°C eingestellt - Die Heizung im Schlafzimmer ist auf 17°C eingestellt - Im Flur wir nie geheizt - In der Küche ist es immer warm",
                "payloadType": "str",
                "x": 1020,
                "y": 920,
                "wires": [
                    [
                        "f3062735.80d058",
                        "125e1468.8fbd0c",
                        "4d20e55f.3e7b0c"
                    ]
                ]
            },
            {
                "id": "7d86d57b.46709c",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "Aufgeteilter Input ",
                "active": true,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "true",
                "targetType": "full",
                "statusVal": "",
                "statusType": "auto",
                "x": 1450,
                "y": 940,
                "wires": []
            },
            {
                "id": "125e1468.8fbd0c",
                "type": "split",
                "z": "f51578d8.868868",
                "name": "",
                "splt": "- ",
                "spltType": "str",
                "arraySplt": 1,
                "arraySpltType": "len",
                "stream": false,
                "addname": "",
                "x": 1240,
                "y": 1020,
                "wires": [
                    [
                        "7d86d57b.46709c",
                        "44a7b809.4203c8",
                        "32b92a90.0878d6"
                    ]
                ]
            },
            {
                "id": "44a7b809.4203c8",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "Aufgeteilter Input ",
                "active": false,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1450,
                "y": 980,
                "wires": []
            },
            {
                "id": "4d20e55f.3e7b0c",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "Originaler Input",
                "active": true,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1260,
                "y": 800,
                "wires": []
            },
            {
                "id": "32b92a90.0878d6",
                "type": "join",
                "z": "f51578d8.868868",
                "name": "",
                "mode": "auto",
                "build": "string",
                "property": "payload",
                "propertyType": "msg",
                "key": "topic",
                "joiner": "\\n",
                "joinerType": "str",
                "accumulate": "false",
                "timeout": "",
                "count": "",
                "reduceRight": false,
                "x": 1410,
                "y": 1060,
                "wires": [
                    [
                        "353ca7c0.fc6f78",
                        "a394b548.7ee2d8"
                    ]
                ]
            },
            {
                "id": "353ca7c0.fc6f78",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "Wieder zusammengesetzer Input ",
                "active": false,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "true",
                "targetType": "full",
                "statusVal": "",
                "statusType": "auto",
                "x": 1660,
                "y": 1060,
                "wires": []
            },
            {
                "id": "a394b548.7ee2d8",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "Wieder zusammengesetzer Input ",
                "active": true,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1660,
                "y": 1100,
                "wires": []
            },
            {
                "id": "42a3c2d7.6305ac",
                "type": "inject",
                "z": "f51578d8.868868",
                "name": "Array",
                "props": [
                    {
                        "p": "payload"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "[\"Montag\",\"Dienstag\",\"Mittwoch\",\"Donnerstag\",\"Freitag\",\"Samstag\",\"Sonntag\"]",
                "payloadType": "json",
                "x": 1030,
                "y": 1240,
                "wires": [
                    [
                        "135a2676.aa76fa"
                    ]
                ]
            },
            {
                "id": "135a2676.aa76fa",
                "type": "split",
                "z": "f51578d8.868868",
                "name": "",
                "splt": "- ",
                "spltType": "str",
                "arraySplt": 1,
                "arraySpltType": "len",
                "stream": false,
                "addname": "",
                "x": 1170,
                "y": 1240,
                "wires": [
                    [
                        "855a4de2.cdf7a",
                        "686ea273.c66dac"
                    ]
                ]
            },
            {
                "id": "686ea273.c66dac",
                "type": "join",
                "z": "f51578d8.868868",
                "name": "",
                "mode": "reduce",
                "build": "string",
                "property": "payload",
                "propertyType": "msg",
                "key": "topic",
                "joiner": "\\n",
                "joinerType": "str",
                "accumulate": false,
                "timeout": "",
                "count": "",
                "reduceRight": false,
                "reduceExp": "$A & payload & \" - \"",
                "reduceInit": "",
                "reduceInitType": "str",
                "reduceFixup": "$substring($A,0,$length($A)-3)\t",
                "x": 1470,
                "y": 1240,
                "wires": [
                    [
                        "18140ac7.295275"
                    ]
                ]
            },
            {
                "id": "18140ac7.295275",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "Wieder zusammengesetzer Input ",
                "active": true,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1700,
                "y": 1240,
                "wires": []
            },
            {
                "id": "855a4de2.cdf7a",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "Aufgeteilter Input ",
                "active": false,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1350,
                "y": 1180,
                "wires": []
            },
            {
                "id": "f4ba6b18.c94338",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "",
                "active": true,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "false",
                "statusVal": "",
                "statusType": "auto",
                "x": 830,
                "y": 1040,
                "wires": []
            },
            {
                "id": "aeeb109c.d84fe",
                "type": "inject",
                "z": "f51578d8.868868",
                "name": "Array",
                "props": [
                    {
                        "p": "payload"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "[1,2,3]",
                "payloadType": "json",
                "x": 1010,
                "y": 1580,
                "wires": [
                    [
                        "8c6e0a94.c66b58"
                    ]
                ]
            },
            {
                "id": "8c6e0a94.c66b58",
                "type": "split",
                "z": "f51578d8.868868",
                "name": "",
                "splt": "- ",
                "spltType": "str",
                "arraySplt": 1,
                "arraySpltType": "len",
                "stream": false,
                "addname": "",
                "x": 1150,
                "y": 1580,
                "wires": [
                    [
                        "7550a747.916db8",
                        "f29be1a0.4b39b"
                    ]
                ]
            },
            {
                "id": "f29be1a0.4b39b",
                "type": "join",
                "z": "f51578d8.868868",
                "name": "",
                "mode": "reduce",
                "build": "string",
                "property": "payload",
                "propertyType": "msg",
                "key": "topic",
                "joiner": "\\n",
                "joinerType": "str",
                "accumulate": false,
                "timeout": "",
                "count": "",
                "reduceRight": false,
                "reduceExp": "$A + payload",
                "reduceInit": "0",
                "reduceInitType": "num",
                "reduceFixup": "",
                "x": 1450,
                "y": 1580,
                "wires": [
                    [
                        "244872b6.57050e"
                    ]
                ]
            },
            {
                "id": "244872b6.57050e",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "Wieder zusammengesetzer Input ",
                "active": true,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1680,
                "y": 1580,
                "wires": []
            },
            {
                "id": "7550a747.916db8",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "Aufgeteilter Input ",
                "active": false,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1330,
                "y": 1520,
                "wires": []
            },
            {
                "id": "d236e710.7db608",
                "type": "inject",
                "z": "f51578d8.868868",
                "name": "Array",
                "props": [
                    {
                        "p": "payload"
                    }
                ],
                "repeat": "",
                "crontab": "",
                "once": false,
                "onceDelay": 0.1,
                "topic": "",
                "payload": "[\"Montag\",\"Dienstag\",\"Mittwoch\",\"Donnerstag\",\"Freitag\",\"Samstag\",\"Sonntag\"]",
                "payloadType": "json",
                "x": 1010,
                "y": 1400,
                "wires": [
                    [
                        "f3df0c37.b2496"
                    ]
                ]
            },
            {
                "id": "f3df0c37.b2496",
                "type": "split",
                "z": "f51578d8.868868",
                "name": "",
                "splt": "- ",
                "spltType": "str",
                "arraySplt": 1,
                "arraySpltType": "len",
                "stream": false,
                "addname": "",
                "x": 1150,
                "y": 1400,
                "wires": [
                    [
                        "8d977bbd.932998",
                        "46f88853.8d5f18"
                    ]
                ]
            },
            {
                "id": "ca8a83d6.fc65f",
                "type": "join",
                "z": "f51578d8.868868",
                "name": "",
                "mode": "auto",
                "build": "string",
                "property": "payload",
                "propertyType": "msg",
                "key": "topic",
                "joiner": "\\n",
                "joinerType": "str",
                "accumulate": false,
                "timeout": "",
                "count": "",
                "reduceRight": false,
                "reduceExp": "$A & payload & \" - \"",
                "reduceInit": "",
                "reduceInitType": "str",
                "reduceFixup": "$substring($A,0,$length($A)-3)\t",
                "x": 1450,
                "y": 1400,
                "wires": [
                    [
                        "998db142.16b6c"
                    ]
                ]
            },
            {
                "id": "998db142.16b6c",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "Wieder zusammengesetzer Input ",
                "active": true,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1680,
                "y": 1400,
                "wires": []
            },
            {
                "id": "8d977bbd.932998",
                "type": "debug",
                "z": "f51578d8.868868",
                "name": "Aufgeteilter Input ",
                "active": false,
                "tosidebar": true,
                "console": false,
                "tostatus": false,
                "complete": "payload",
                "targetType": "msg",
                "statusVal": "",
                "statusType": "auto",
                "x": 1330,
                "y": 1340,
                "wires": []
            },
            {
                "id": "46f88853.8d5f18",
                "type": "change",
                "z": "f51578d8.868868",
                "name": "translate",
                "rules": [
                    {
                        "t": "change",
                        "p": "payload",
                        "pt": "msg",
                        "from": "Montag",
                        "fromt": "str",
                        "to": "Monday",
                        "tot": "str"
                    },
                    {
                        "t": "change",
                        "p": "payload",
                        "pt": "msg",
                        "from": "Dienstag",
                        "fromt": "str",
                        "to": "Tuesday",
                        "tot": "str"
                    },
                    {
                        "t": "change",
                        "p": "payload",
                        "pt": "msg",
                        "from": "Mittwoch",
                        "fromt": "str",
                        "to": "Wednesday",
                        "tot": "str"
                    },
                    {
                        "t": "change",
                        "p": "payload",
                        "pt": "msg",
                        "from": "Donnerstag",
                        "fromt": "str",
                        "to": "Thursday",
                        "tot": "str"
                    },
                    {
                        "t": "change",
                        "p": "payload",
                        "pt": "msg",
                        "from": "Freitag",
                        "fromt": "str",
                        "to": "Friday",
                        "tot": "str"
                    },
                    {
                        "t": "change",
                        "p": "payload",
                        "pt": "msg",
                        "from": "Samstag",
                        "fromt": "str",
                        "to": "Saturday",
                        "tot": "str"
                    },
                    {
                        "t": "change",
                        "p": "payload",
                        "pt": "msg",
                        "from": "Sonntag",
                        "fromt": "str",
                        "to": "Sunday",
                        "tot": "str"
                    }
                ],
                "action": "",
                "property": "",
                "from": "",
                "to": "",
                "reg": false,
                "x": 1300,
                "y": 1400,
                "wires": [
                    [
                        "ca8a83d6.fc65f"
                    ]
                ]
            },
            {
                "id": "62fa32cf.d5b37c",
                "type": "comment",
                "z": "f51578d8.868868",
                "name": "Lies mich",
                "info": "Warum das Ganze - erst splitten dann wieder zusammensetzen. Nun damit kann man die einzelnen Werte bearbeiten und wieder zusammensetzen. Jedoch muss Anzahl identisch bleiben - das heißt die parts müssen gleich bleiben",
                "x": 880,
                "y": 1320,
                "wires": []
            },
            {
                "id": "a57f4164.a432",
                "type": "comment",
                "z": "f51578d8.868868",
                "name": "Lies mich",
                "info": "msg.parts anschauen - die split Node generiert hat:\n\nschau Dir an:\n\nmsg.parts.count\nmsg.parts.index",
                "x": 1420,
                "y": 880,
                "wires": []
            }
          ]
          
          

          Da hast du das untendrunter aber später geschrieben....das hab ich nichtmals gewusst

          mickym 1 Reply Last reply Reply Quote 0
          • mickym
            mickym Most Active @Marko1974 last edited by

            @marko1974 sagte in MAX! Cube Blockly Abwesenheit:

            @mickym said in MAX! Cube Blockly Abwesenheit:

            @marko1974 Noch können wir es aber bei Wechsel zu Anwesend und zu Abwesend machen? - Wie Du willst? Wenn wir es nur für Abwesend machen wollen müssen wir noch was am Hauptflow ändern.

            Am Einfachsten ist Du kopierst einfach die split Node und hängst die Telegramm Ausgabe nur an den oberen Split Node.

            881abfc2-81a1-454a-8eb1-25b1b355dfd0-image.png

            dann sendet er aber 2 mal und es macht auch 2x klingeling

            Dann machst Du halt "Alle Heizungen ausgeschaltet weg" und schreibst es in die Template Node.

            1 Reply Last reply Reply Quote 0
            • mickym
              mickym Most Active @Marko1974 last edited by mickym

              @marko1974 sagte in MAX! Cube Blockly Abwesenheit:

              Da hast du das untendrunter aber später geschrieben....das hab ich nichtmals gewusst

              Na jedenfalls weißt Du es jetzt und kannst Dir die Flowa ja mal anschauen.

              Passt die Ausgabe sonst?

              Und nochmal warum ich _setpoint und .setpoint bei dem Topic genommen habe - ist damit das falls man es braucht nicht als Pfad verwendet wird, im Gegensatz zur 1. Change Node wo das Topic sehr wohl einen Pfad zum iobroker Datenpunkt gebildet hat. Manchmal erklären sich Dinge halt erst im Zusammenhang.

              Marko1974 2 Replies Last reply Reply Quote 0
              • Marko1974
                Marko1974 @mickym last edited by

                @mickym das mit dem pfad selbst ist mir klar ....aber warum einmal '_setpoint' "setpoint" <setpoint> .... oder ist setpoint immer gleich und was drumherum steht ist egal?

                mickym 1 Reply Last reply Reply Quote 0
                • Marko1974
                  Marko1974 @mickym last edited by Marko1974

                  @mickym

                  Passt die Ausgabe sonst?

                  passt ... nur nochmal aufgehübscht

                  false.JPG
                  Hab da so nen monk

                  Marko1974 2 Replies Last reply Reply Quote 0
                  • Marko1974
                    Marko1974 @Marko1974 last edited by

                    @marko1974 können wir das blöde Fenster noch machen?

                    Wie lange ist die ungefähre Dauer, wenn ich das erklärt haben möchte?
                    In blockly könnte ich das.

                    mickym 1 Reply Last reply Reply Quote 0
                    • mickym
                      mickym Most Active @Marko1974 last edited by

                      @marko1974 Für das topic zum Auslesen aus dem iobroker ist die Syntax zwingend - das jede Hiearchieebene durch einen Punkt abgegrenzt wird.

                      Anonsten hätte wir als Topic auch nur den Raum nehmen können - oder irgendwas

                      Marko1974 1 Reply Last reply Reply Quote 0
                      • mickym
                        mickym Most Active @Marko1974 last edited by mickym

                        @marko1974 Das Fenster ist nur vom Bad bei allen anderen hast Du ja MAX kontakte und das geht ja ohne iobroker.

                        Hier das Badfenster - Du musst nur noch den iobroker In Node modifizieren:

                        [
                           {
                               "id": "4246e075.5bc99",
                               "type": "ioBroker in",
                               "z": "f51578d8.868868",
                               "name": "",
                               "topic": "Fenster.auf",
                               "payloadType": "value",
                               "onlyack": "",
                               "func": "all",
                               "gap": "",
                               "fireOnStart": "false",
                               "x": 140,
                               "y": 240,
                               "wires": [
                                   [
                                       "8775726b.e74b1"
                                   ]
                               ]
                           },
                           {
                               "id": "8775726b.e74b1",
                               "type": "change",
                               "z": "f51578d8.868868",
                               "name": "",
                               "rules": [
                                   {
                                       "t": "change",
                                       "p": "payload",
                                       "pt": "msg",
                                       "from": "opened",
                                       "fromt": "str",
                                       "to": "OFF",
                                       "tot": "str"
                                   },
                                   {
                                       "t": "change",
                                       "p": "payload",
                                       "pt": "msg",
                                       "from": "closed",
                                       "fromt": "str",
                                       "to": "AUTO",
                                       "tot": "str"
                                   }
                               ],
                               "action": "",
                               "property": "",
                               "from": "",
                               "to": "",
                               "reg": false,
                               "x": 340,
                               "y": 240,
                               "wires": [
                                   [
                                       "5c2df36.6615c0c"
                                   ]
                               ]
                           },
                           {
                               "id": "5c2df36.6615c0c",
                               "type": "ioBroker out",
                               "z": "f51578d8.868868",
                               "name": "",
                               "topic": "0_userdata.0.Heizung.Badezimmer.mode",
                               "ack": "true",
                               "autoCreate": "false",
                               "stateName": "",
                               "role": "",
                               "payloadType": "",
                               "readonly": "",
                               "stateUnit": "",
                               "stateMin": "",
                               "stateMax": "",
                               "x": 620,
                               "y": 240,
                               "wires": []
                           }
                        ]
                        

                        1b0a3231-9d1b-4cb4-b974-f4c064913799-image.png

                        Marko1974 1 Reply Last reply Reply Quote 1
                        • Marko1974
                          Marko1974 @mickym last edited by

                          @mickym said in MAX! Cube Blockly Abwesenheit:

                          @marko1974 Für das topic zum Auslesen aus dem iobroker ist die Syntax zwingend - das jede Hiearchieebene durch einen Punkt abgegrenzt wird.

                          Anonsten hätte wir als Topic auch nur den Raum nehmen können - oder irgendwas

                          das meine ich nicht.

                          Raum gab es ja auch schon woanders. Kann ich das dann einfach wieder raum nennen, obwohl es das schon gibt...oder nimmt er dann raum von dort.
                          das mit dem get iobroker hab ich verstanden...da ist die hierarchie durch den punkt für die ebene getrennt.....
                          Ich meinte wenn man es dann irgendwann _setpoint nennt....als payload....dann kann ich es doch später nicht 'setpoint' nennen, oder?

                          mickym 1 Reply Last reply Reply Quote 0
                          • mickym
                            mickym Most Active @Marko1974 last edited by

                            @marko1974 Mir egal es muss halt für jeden Raum ein unterschiedliches Topic nehmen. Du kannst auch einfach die room Eigenschaft des msg Objektes nehmen - dann sieht das so aus

                            9e5611bb-e0ce-4efc-8ea9-23c83189d112-image.png

                            udn nach der JOIN Node so:

                            0eb920e5-1f5c-4755-9f67-55fef2983aad-image.png

                            1 Reply Last reply Reply Quote 0
                            • Marko1974
                              Marko1974 @mickym last edited by

                              1b0a3231-9d1b-4cb4-b974-f4c064913799-image.png

                              Resigniert? 🙂

                              Muss dass nicht true oder false heissen im change?

                              false.JPG

                              mickym 1 Reply Last reply Reply Quote 0
                              • mickym
                                mickym Most Active @Marko1974 last edited by

                                @marko1974 Ja OK - wenn in dem Datenpunkt ein boolean drin steht - dann halt anders - aber das solltest DU nun wirklich selbst ändern können -

                                also dann eben so:

                                1037fe48-c371-44ad-a94b-d5ba3a3d28f4-image.png

                                Marko1974 1 Reply Last reply Reply Quote 0
                                • Marko1974
                                  Marko1974 @mickym last edited by Marko1974

                                  @mickym ja das bekomme ich noch hin.

                                  hmmm...ich finds zu schwer. vielleicht muss man das einfach öfter machen.

                                  Und jetzt erstmal wieder heia.... guck mir noch eben deine Beispielflows an

                                  mickym 2 Replies Last reply Reply Quote 0
                                  • mickym
                                    mickym Most Active @Marko1974 last edited by

                                    @marko1974 sagte in MAX! Cube Blockly Abwesenheit:

                                    @mickym ja das bekomme ich noch hin.

                                    hmmm...ich finds zu schwer. vielleicht muss man das einfach öfter machen.

                                    Und jetzt erstmal wieder heia.... guck mir noch eben deine Beispielflows an

                                    Ach und aus der inNode Dauerfeuer beim Fenster unterbinden:

                                    88d1b9ca-017f-458d-b80c-91005e7439e5-image.png

                                    1 Reply Last reply Reply Quote 0
                                    • mickym
                                      mickym Most Active @Marko1974 last edited by

                                      @marko1974 sagte in MAX! Cube Blockly Abwesenheit:

                                      @mickym ja das bekomme ich noch hin.

                                      hmmm...ich finds zu schwer. vielleicht muss man das einfach öfter machen.

                                      Und jetzt erstmal wieder heia.... guck mir noch eben deine Beispielflows an

                                      Schau Dir mal den Übungsflow genau an - der ist nicht schwer zu verstehen - der Rest kommt, wenn die Logik passt. Schau mal wie einfach das nun mit dem Fenster ging.

                                      Marko1974 1 Reply Last reply Reply Quote 0
                                      • Marko1974
                                        Marko1974 @mickym last edited by Marko1974

                                        @mickym ja da war einfach, wenn man es weiss....hatte gestern mal probiert einfach nen temperatursensor in der Alexa app anzuzeigen....da bin ich nicht so weit

                                        false.JPG

                                        Und ich dachte vielleicht kann man später sagen, dass die komplette Heizung ausgeht, wenn über 20 Grad
                                        Aber ob so ein blöder Sensor, bei dem jederzeit die Batterie leer sein kann, so gut dazu ist.

                                        Marko1974 mickym 3 Replies Last reply Reply Quote 0
                                        • Marko1974
                                          Marko1974 @Marko1974 last edited by Marko1974

                                          @mickym eigentlich hab ich dann nur noch eine Sache auf der Liste....meine Alarmanlage.

                                          Die hab ich in Blockly gemacht. Aber da funktioniert sie nicht. Wie immer halt.
                                          Dann ist eigentlich alles so weit implementiert 🙂

                                          1 Reply Last reply Reply Quote 0
                                          • mickym
                                            mickym Most Active @Marko1974 last edited by

                                            @marko1974 sagte in MAX! Cube Blockly Abwesenheit:

                                            @mickym ja da war einfach, wenn man es weiss....hatte gestern mal probiert einfach nen temperatursensor in der Alexa app anzuzeigen....da bin ich nicht so weit

                                            false.JPG

                                            Auch easy wenn Du Dir die Beschreibung anschaust:

                                            Du triggerst nich selbst sondern der Datenpunkt - und Du musst wissen rauf und runter wie Du mir JS Objekten umgehst - ich kannst nur immer wieder wiederholfen. Mit der Alexa Node - nur auf

                                            252b958b-831d-4d0a-8f29-72f7ce3b2ca3-image.png

                                            Die Hilfe sagt welche Eigenschaften des payload Objektes gesetzt werden müssen

                                            0197fd9a-fb46-4e28-9550-b72da070e68c-image.png

                                            166c3850-072b-470a-8e17-704307409007-image.png

                                            Hier die Change Node:

                                            8318bbb6-ada1-46d1-9878-c6f8ef55cbc9-image.png

                                            Importiere halt die Beispiele zu den Alexa Nodes

                                            .

                                            Marko1974 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            740
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            867
                                            159385
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo