Ankündigung

Einklappen
Keine Ankündigung bisher.

KNX node for node-red

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    #16
    I'm working on that... please hold on.

    Kommentar


      #17
      Hallo
      die Sache ist erledigt in die neue Version 1.1.6
      https://github.com/Supergiovane/node...r/CHANGELOG.md
      Gruß
      Zuletzt geändert von TheMax74; 23.08.2019, 12:08.

      Kommentar


        #18
        Danke Massimo!
        Hab zu 1.1.6 upgedated, jetzt funktioniert es!
        Du bist der Beste!

        Gruß!
        Winston Churchill hat mal gesagt: "Ein kluger Mann macht nicht alle Fehler selbst. Er gibt auch anderen eine Chance.“

        Kommentar


          #19
          Grazie, Ciao!

          Kommentar


            #20
            Findet man das auch in Docker?

            Kommentar


              #21
              https://nodered.org/docs/getting-started/docker
              Winston Churchill hat mal gesagt: "Ein kluger Mann macht nicht alle Fehler selbst. Er gibt auch anderen eine Chance.“

              Kommentar


                #22
                Vielleich kannst du node-red auf docker finden. Die Nodes sind unhabhagig von Docker. Du kanns die Node direkt in node-red finden und intsllieren

                Kommentar


                  #23
                  just a quick note: as an iPhone user I just added HomeKit to my KNX smarthome.

                  This is INCREDIBLY EASY with your node and the "node-red-homekit-bridged" node.

                  The only "gotcha" is you need to turn on RBE , which you have build into the node to avoid a loop. (Status triggers update which triggers Status etc.)

                  Awesome work!
                  You do not have permission to view this gallery.
                  This gallery has 1 photos.

                  Kommentar


                    #24
                    Hallo MGK
                    Danke sehr!

                    Or... you can check for hap.context, as i do.
                    Create a function node and paste this code. Then insert it after "Nachttischlampe".

                    if (msg.hap.context!==undefined) {
                    // The message comes from Homekit Device
                    return msg;
                    }else{
                    // The message comes from KNX-Ultimate
                    }
                    KNX_node_for_node-red_-_KNX-User-Forum.png

                    Kommentar


                      #25
                      Hi,
                      I have been using your module for a few days and have the problem that the dimming KO does not work.

                      I have set it to 3,007 in the settings.
                      Getting as debug:

                      {"topic": "0/0/111", "payload":{"decr_incr":0, "data":0}, "knx":{"event": "GroupValue_Write", "dpt": "3.007", "source": "1.1.130", "destination": "0/0/111", "rawValue":[0]}, "devicename": "bedside table","_msgid": "822c3364.029bf"}

                      How can I process the value "RawValue".

                      I found the solution with a function return {payload: msg.knx.rawValue[0]};
                      But now I have the problem to use this value to increase or decrease the brightness
                      Zuletzt geändert von jumper79; 02.01.2020, 13:11.
                      Gruß
                      Thorsten

                      Meine Installation: EFH mit EIB und Powernet; BJ Triton RTR 5fach; BJ Triton 3/5fach; BJ Wave Fenstermelder; Gira HS; Gira SmartSensor; Gira TK mit Fingerprint und TK-Gateway, Agfeo AS30 mit ST40IP; Dialogic Touch 15" mit Homecockpit und Schnittstelle zur Gira TK-Anlage; ipod Touch 1G und iphone 3G mit WHD iphone Docking-Station; Dreambox 7000; Kathrein UFS 910; Beleuchtung über DALI gesteuert

                      Kommentar


                        #26
                        Hello Jumper,
                        are you speaking with me?
                        You don't need RAW values.
                        Zuletzt geändert von TheMax74; 02.01.2020, 14:57.

                        Kommentar


                          #27
                          Please see the wiki: https://github.com/Supergiovane/node...mple---Dimming



                          Auf jedem Fall:

                          Nodke-RED.png

                          if you need to pass the DIM value for decreasing the light (datapoint 3.007), please paste this code:
                          [{"id":"9068fec5.aca858","type":"function","z":" 1ca 8772.0cad509","name":"","func":"msg.payload={decr_ incr: 0, data: 5};\nreturn msg;\n","outputs":1,"noerr":0,"x":270,"y":120,"wir es":[["7f6d47e7.dfe998"]]}]
                          if you need to pass the DIM value for increasing the light (datapoint 3.007), please paste this code:
                          [{"id":"9068fec5.aca858","type":"function","z":" 1ca 8772.0cad509","name":"","func":"msg.payload={decr_ incr: 1, data: 5};\nreturn msg;\n","outputs":1,"noerr":0,"x":270,"y":120,"wir es":[["7f6d47e7.dfe998"]]}]
                          Note that the parameter "data", accepts values from 0 to 7.

                          Please remember do uncheck the "Send payload to BUS only if changed (RBE filter)" in the configuration node.

                          Node-RED.png

                          Please let me know if it helps.
                          Zuletzt geändert von TheMax74; 02.01.2020, 14:14.

                          Kommentar


                            #28
                            thanks. your nodered module is just great

                            I try it tonight.
                            I found another solution but I think this is much easier.

                            I will send you an answer as to which solution is better.
                            Zuletzt geändert von jumper79; 02.01.2020, 16:25.
                            Gruß
                            Thorsten

                            Meine Installation: EFH mit EIB und Powernet; BJ Triton RTR 5fach; BJ Triton 3/5fach; BJ Wave Fenstermelder; Gira HS; Gira SmartSensor; Gira TK mit Fingerprint und TK-Gateway, Agfeo AS30 mit ST40IP; Dialogic Touch 15" mit Homecockpit und Schnittstelle zur Gira TK-Anlage; ipod Touch 1G und iphone 3G mit WHD iphone Docking-Station; Dreambox 7000; Kathrein UFS 910; Beleuchtung über DALI gesteuert

                            Kommentar


                              #29
                              Hi,

                              I tried it, but I think its doesn't work for me.
                              Your example is from node red to knx.

                              I need from KNX to Node Red to Hue.

                              needs works better here.
                              I have also added a function to adjust the brightness value when the Hue app is used to adjust the dimming.

                              You are welcome to check this and add it to your Wiki.

                              Code:
                              [
                                  {
                                      "id": "7bc476a1.51cab",
                                      "type": "hue-light",
                                      "z": "5e68c0a7.3627a",
                                      "name": "Büro",
                                      "bridge": "632d6744.f0c16",
                                      "lightid": "46",
                                      "colornamer": true,
                                      "skipevents": false,
                                      "x": 630,
                                      "y": 480,
                                      "wires": [
                                          [
                                              "3bc8c875.3591f8",
                                              "ace82293.9aac78"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "7044905f.1812d",
                                      "type": "knxUltimate",
                                      "z": "5e68c0a7.3627a",
                                      "server": "c3d87415.0fc208",
                                      "topic": "0/0/109",
                                      "dpt": "1.001",
                                      "initialread": false,
                                      "notifyreadrequest": false,
                                      "notifyresponse": false,
                                      "notifywrite": true,
                                      "notifyreadrequestalsorespondtobus": false,
                                      "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
                                      "listenallga": false,
                                      "name": "Büro on/off",
                                      "outputtype": "write",
                                      "outputRBE": true,
                                      "inputRBE": false,
                                      "x": 120,
                                      "y": 480,
                                      "wires": [
                                          [
                                              "7bc476a1.51cab"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "3bc8c875.3591f8",
                                      "type": "function",
                                      "z": "5e68c0a7.3627a",
                                      "name": "",
                                      "func": "return {payload: msg.payload.on};",
                                      "outputs": 1,
                                      "noerr": 0,
                                      "x": 840,
                                      "y": 480,
                                      "wires": [
                                          [
                                              "dd8a6bc7.401d18"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "dd8a6bc7.401d18",
                                      "type": "knxUltimate",
                                      "z": "5e68c0a7.3627a",
                                      "server": "c3d87415.0fc208",
                                      "topic": "0/0/110",
                                      "dpt": "1.001",
                                      "initialread": false,
                                      "notifyreadrequest": false,
                                      "notifyresponse": false,
                                      "notifywrite": true,
                                      "notifyreadrequestalsorespondtobus": false,
                                      "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
                                      "listenallga": false,
                                      "name": "Büro on/off Status",
                                      "outputtype": "write",
                                      "outputRBE": true,
                                      "inputRBE": false,
                                      "x": 1070,
                                      "y": 480,
                                      "wires": [
                                          []
                                      ]
                                  },
                                  {
                                      "id": "c31ee7c5.bee528",
                                      "type": "knxUltimate",
                                      "z": "5e68c0a7.3627a",
                                      "server": "c3d87415.0fc208",
                                      "topic": "0/0/111",
                                      "dpt": "3.007",
                                      "initialread": false,
                                      "notifyreadrequest": false,
                                      "notifyresponse": false,
                                      "notifywrite": true,
                                      "notifyreadrequestalsorespondtobus": false,
                                      "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
                                      "listenallga": false,
                                      "name": "Büro DIM",
                                      "outputtype": "write",
                                      "outputRBE": true,
                                      "inputRBE": false,
                                      "x": 120,
                                      "y": 700,
                                      "wires": [
                                          [
                                              "595be088.2292f"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "595be088.2292f",
                                      "type": "function",
                                      "z": "5e68c0a7.3627a",
                                      "name": "",
                                      "func": "return {payload: msg.knx.rawValue[0]};\n",
                                      "outputs": 1,
                                      "noerr": 0,
                                      "x": 350,
                                      "y": 703,
                                      "wires": [
                                          [
                                              "c641170d.4b5db"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "bb1044ee.d5a638",
                                      "type": "knxUltimate",
                                      "z": "5e68c0a7.3627a",
                                      "server": "c3d87415.0fc208",
                                      "topic": "0/0/113",
                                      "dpt": "5.001",
                                      "initialread": false,
                                      "notifyreadrequest": false,
                                      "notifyresponse": false,
                                      "notifywrite": true,
                                      "notifyreadrequestalsorespondtobus": false,
                                      "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
                                      "listenallga": false,
                                      "name": "Büro HW RM",
                                      "outputtype": "write",
                                      "outputRBE": true,
                                      "inputRBE": false,
                                      "x": 1050,
                                      "y": 540,
                                      "wires": [
                                          []
                                      ]
                                  },
                                  {
                                      "id": "ace82293.9aac78",
                                      "type": "function",
                                      "z": "5e68c0a7.3627a",
                                      "name": "",
                                      "func": "return {payload: msg.payload.brightness};",
                                      "outputs": 1,
                                      "noerr": 0,
                                      "x": 850,
                                      "y": 520,
                                      "wires": [
                                          [
                                              "bb1044ee.d5a638",
                                              "791d78be.b731a"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "c641170d.4b5db",
                                      "type": "function",
                                      "z": "5e68c0a7.3627a",
                                      "name": "",
                                      "func": " if(msg.payload === 9){\n     msg.topic = \"up\"}\nelse \n{msg.topic = \"down\"}\nreturn msg;",
                                      "outputs": 1,
                                      "noerr": 0,
                                      "x": 550,
                                      "y": 703,
                                      "wires": [
                                          [
                                              "ef923ede.27df18"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "ef923ede.27df18",
                                      "type": "function",
                                      "z": "5e68c0a7.3627a",
                                      "name": "button input to state",
                                      "func": "var step =  10\nif(msg.topic === \"up\"){\n if(msg.payload === 9){\n flow.set(\"incrementvalue\",step)\n }\n else{\n flow.set(\"incrementvalue\",0)\n }\n}\nelse{\n if(msg.payload === 1){\n flow.set(\"incrementvalue\",step * -1)\n }\n else{\n flow.set(\"incrementvalue\",0)\n }\n}\nreturn msg;\n",
                                      "outputs": 1,
                                      "noerr": 0,
                                      "x": 800,
                                      "y": 703,
                                      "wires": [
                                          []
                                      ]
                                  },
                                  {
                                      "id": "47260094.cd002",
                                      "type": "function",
                                      "z": "5e68c0a7.3627a",
                                      "name": "",
                                      "func": "return {payload: {brightness: msg.payload} };",
                                      "outputs": 1,
                                      "noerr": 0,
                                      "x": 470,
                                      "y": 520,
                                      "wires": [
                                          [
                                              "7bc476a1.51cab"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "a32a4487.f7f138",
                                      "type": "function",
                                      "z": "5e68c0a7.3627a",
                                      "name": "dimmer controller",
                                      "func": "var iv = flow.get(\"incrementvalue\") || 0;\nif(iv === 0){\n return null\n}\nvar dimmer = flow.get(\"dimmervalue\") || 0;\ndimmer += iv;\nif(dimmer > 100){\n dimmer = 100;\n}\nif(dimmer < 0){\n dimmer = 0;\n}\n\nflow.set(\"dimmervalue\",dimmer)\n\nmsg.payload = dimmer;\nreturn msg\n// Das ist ein Kommentar",
                                      "outputs": 1,
                                      "noerr": 0,
                                      "x": 390,
                                      "y": 663,
                                      "wires": [
                                          [
                                              "47260094.cd002",
                                              "b9db4f16.186888"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "b9db4f16.186888",
                                      "type": "debug",
                                      "z": "5e68c0a7.3627a",
                                      "name": "dimmer debug",
                                      "active": true,
                                      "tosidebar": true,
                                      "console": false,
                                      "tostatus": false,
                                      "complete": "true",
                                      "targetType": "full",
                                      "x": 780,
                                      "y": 660,
                                      "wires": []
                                  },
                                  {
                                      "id": "21692fdf.10034",
                                      "type": "inject",
                                      "z": "5e68c0a7.3627a",
                                      "name": "",
                                      "topic": "",
                                      "payload": "",
                                      "payloadType": "date",
                                      "repeat": "0.33",
                                      "crontab": "",
                                      "once": false,
                                      "onceDelay": 0.1,
                                      "x": 130,
                                      "y": 663,
                                      "wires": [
                                          [
                                              "a32a4487.f7f138"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "d80a47e5.62d8a",
                                      "type": "knxUltimate",
                                      "z": "5e68c0a7.3627a",
                                      "server": "c3d87415.0fc208",
                                      "topic": "0/0/112",
                                      "dpt": "5.001",
                                      "initialread": false,
                                      "notifyreadrequest": false,
                                      "notifyresponse": false,
                                      "notifywrite": true,
                                      "notifyreadrequestalsorespondtobus": false,
                                      "notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized": "0",
                                      "listenallga": false,
                                      "name": "Büro HW",
                                      "outputtype": "write",
                                      "outputRBE": true,
                                      "inputRBE": false,
                                      "x": 120,
                                      "y": 540,
                                      "wires": [
                                          [
                                              "47260094.cd002"
                                          ]
                                      ]
                                  },
                                  {
                                      "id": "791d78be.b731a",
                                      "type": "function",
                                      "z": "5e68c0a7.3627a",
                                      "name": "",
                                      "func": "flow.set(\"dimmervalue\", msg.payload);",
                                      "outputs": 1,
                                      "noerr": 0,
                                      "x": 1030,
                                      "y": 620,
                                      "wires": [
                                          []
                                      ]
                                  },
                                  {
                                      "id": "632d6744.f0c16",
                                      "type": "hue-bridge",
                                      "z": "",
                                      "name": "Philips hue",
                                      "bridge": "192.168.2.77",
                                      "key": "",
                                      "interval": "3000",
                                      "disableupdates": false
                                  },
                                  {
                                      "id": "c3d87415.0fc208",
                                      "type": "knxUltimate-config",
                                      "z": "",
                                      "host": "192.168.2.13",
                                      "port": "3671",
                                      "physAddr": "1.0.5",
                                      "suppressACKRequest": false,
                                      "csv": "",
                                      "KNXEthInterface": "enp3s0",
                                      "KNXEthInterfaceManuallyInput": "",
                                      "statusDisplayLastUpdate": true,
                                      "statusDisplayDeviceNameWhenALL": true,
                                      "statusDisplayDataPoint": false
                                  }
                              ]
                              Gruß
                              Thorsten

                              Meine Installation: EFH mit EIB und Powernet; BJ Triton RTR 5fach; BJ Triton 3/5fach; BJ Wave Fenstermelder; Gira HS; Gira SmartSensor; Gira TK mit Fingerprint und TK-Gateway, Agfeo AS30 mit ST40IP; Dialogic Touch 15" mit Homecockpit und Schnittstelle zur Gira TK-Anlage; ipod Touch 1G und iphone 3G mit WHD iphone Docking-Station; Dreambox 7000; Kathrein UFS 910; Beleuchtung über DALI gesteuert

                              Kommentar


                                #30
                                Hello
                                thanks for the info.
                                For HUE, i’m using the “ISE connect hue” device, that works very well. I bought this device some years ago, when the HUE node for node-red was non existant!

                                Kommentar

                                Lädt...
                                X