Ankündigung

Einklappen
Keine Ankündigung bisher.

KNX node for node-red

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

    Hi TheMax74,

    first I'd like to thank you a lot for your great work so far with establishing the Node Red KNX-ULTIMATE nodes. I'm using your nodes in a bigger home automation project. At the moment I am experiencing problems after opening Node Red on a second device. After returning to the main device opening Node Red I was asked to merge the differences in the nodes, what I confirmed. Now I have the problem, that my KNX Router is no more selected in my nodes. I see the red triangle in the upper right of all nodes. If I open the nodes, my KNX Router seems to be automatically selected and I can close the node. Then everything seems fine for the single node with a deploy.

    My problem now is that I have about 300 KNX nodes running, so I have to open and close 300 nodes. Is there any possibility to speed this process up in your opinion? I tried to search for differences in the json file after changing one node but found nothing. So I think it is an issue in the communication between your node and Node Red.

    Thanks for your help in advance,
    Elektroarzt

    Kommentar


      Hello.
      never ever merge the changes whenever node red ask for it.
      Just refresh the page. I experienced problems as well by doing this with many nodes.
      Node-red doesn’t allow any node do modify properties, this is for a security reason, so knx-ultimate cannot restore the config-node by it’s own.
      You can overcome your issue, but you need to ditch into the json config file.
      If you doesn’t have sufficient knowledge, i can try to do it for you.
      Just send the entire flows (via export menu), zip it and send it to info@supergiovane.it
      But before that, add a gateway config mode, so i can refer to it while hacking your flows.
      Don’t worry, personal data like password are not exported.
      Zuletzt geändert von TheMax74; 27.12.2020, 17:44.

      Kommentar


        But before that... have you tried to restart node-red? This sounds to me like some issue in nodered.
        Or maybe an issue related to different codepage due to different browsers...
        Zuletzt geändert von TheMax74; 27.12.2020, 17:53.

        Kommentar


          Thanks a lot for your super fast response! I restarted Node Red several times with no success. Good to know that the merging function is buggy by design, I will avoid this in the future. Codepage could be the problem, one system was Mac / Safari and the other was Windows / Edge 🙈.
          I'd like to come back to your offer and send the ZIP by PN.

          Best regards, Elektroarzt

          Kommentar


            Mmmmmm, i’ve disabled PN. Send it via email, don’t worry i own the mailserver so your data are secure

            Kommentar


              Or... before that, have you tried copy the content of the json file, paste it in a new file with the mac, using the option to paste only plain text? I don’t recall the button shortcuts...

              Kommentar


                Zip received. Leave me some time. Guru meditation in progress....

                Kommentar


                  There are big issues here. The flows are completely blank, without any node. I'm trying to figure out what happened.

                  Kommentar


                    There is a file char terminator somewhere, that i haven't currently not found. I've seen it, like a chinese character, but yet i've lost it...

                    Kommentar


                      Hi, a little follow up... by removing part of the json blocks, i'm able to view again some nodes, so i need to proceed step by step, because these issues are difficult to be solved. I need some more time. I'll proceed again tomorrow.

                      Kommentar


                        Ok ... take your time! If I can help in any meaning send me an E-Mail.
                        Many thanks 🤗

                        Kommentar


                          Hi Thomas
                          what version of node-red are you using?

                          Kommentar


                            I'm on V1.2.2

                            Kommentar


                              Hi @TheMax74,
                              Hi all,

                              I am lost. I tried to implement the KNX Ultimate with node-red-contrib-homekit-bridged in my installation. I want to control the brigthness in my rooms with my apple devices (Homekit). Unfortunately your example is not rly clear for me. I tried to implement it in my system but failed. Attached you find my last try.. its just work with ON/OFF, no Brightness and no feedback in % in Homekit.

                              Maybe someone can give me his code or send me a photo of his construction?!
                              Or explain to me what I have to do.

                              THANK YOU!
                              BR

                              Code:
                              [
                              {
                              "id": "e797789f.53e7c8",
                              "type": "tab",
                              "label": "Flow 3",
                              "disabled": false,
                              "info": ""
                              },
                              {
                              "id": "26e0bae5.2d75f6",
                              "type": "homekit-service",
                              "z": "e797789f.53e7c8",
                              "isParent": true,
                              "bridge": "6182d5a4.3c886c",
                              "parentService": "",
                              "name": "EG Wohnzimmer Deckenspots",
                              "serviceName": "Lightbulb",
                              "topic": "",
                              "filter": false,
                              "manufacturer": "NRCHKB",
                              "model": "1.2.0",
                              "serialNo": "Default Serial Number",
                              "firmwareRev": "1.2.0",
                              "hardwareRev": "1.2.0",
                              "softwareRev": "1.2.0",
                              "cameraConfigVideoProcessor": "ffmpeg",
                              "cameraConfigSource": "",
                              "cameraConfigStillImageSource": "",
                              "cameraConfigMaxStreams": 2,
                              "cameraConfigMaxWidth": 1280,
                              "cameraConfigMaxHeight": 720,
                              "cameraConfigMaxFPS": 10,
                              "cameraConfigMaxBitrate": 300,
                              "cameraConfigVideoCodec": "libx264",
                              "cameraConfigAudioCodec": "libfdk_aac",
                              "cameraConfigAudio": false,
                              "cameraConfigPacketSize": 1316,
                              "cameraConfigVerticalFlip": false,
                              "cameraConfigHorizontalFlip": false,
                              "cameraConfigMapVideo": "0:0",
                              "cameraConfigMapAudio": "0:1",
                              "cameraConfigVideoFilter": "scale=1280:720",
                              "cameraConfigAdditionalCommandLine": "-tune zerolatency",
                              "cameraConfigDebug": false,
                              "cameraConfigSnapshotOutput": "disabled",
                              "cameraConfigInterfaceName": "",
                              "characteristicProperties": "{\"Brightness\":true}",
                              "waitForSetupMsg": false,
                              "outputs": 2,
                              "x": 650,
                              "y": 80,
                              "wires": [
                              [
                              "55e65dd0.f87974"
                              ],
                              []
                              ]
                              },
                              {
                              "id": "48132b36.fbebe4",
                              "type": "knxUltimate",
                              "z": "e797789f.53e7c8",
                              "server": "db15a516.948c58",
                              "topic": "1/5/9",
                              "outputtopic": "",
                              "dpt": "5.001",
                              "initialread": false,
                              "notifyreadrequest": false,
                              "notifyresponse": false,
                              "notifywrite": true,
                              "notifyreadrequestalsorespondtobus": false,
                              "notifyreadrequestalsorespondtobusdefaultvalueifno tinitialized": "0",
                              "listenallga": false,
                              "name": "Status Wohnzimmer Deckenspots (Dimmen Relativ 0..100%)",
                              "outputtype": "write",
                              "outputRBE": false,
                              "inputRBE": false,
                              "formatmultiplyvalue": 1,
                              "formatnegativevalue": "leave",
                              "formatdecimalsvalue": 999,
                              "passthrough": "no",
                              "x": 260,
                              "y": 80,
                              "wires": [
                              [
                              "26e0bae5.2d75f6"
                              ]
                              ]
                              },
                              {
                              "id": "55e65dd0.f87974",
                              "type": "function",
                              "z": "e797789f.53e7c8",
                              "name": "Überprüfe ob ON oder Dimmen",
                              "func": "// Überprüfe ob ON oder Dimmen\nif (msg.payload.On!==undefined) {\n if (Boolean(msg.payload.On)===true) {\n return [{payload:true},null];\n }\n else if (Boolean(msg.payload.On)===false)\n {\n return [{payload:false},null];\n }\n}else if (msg.payload.Brightness!==undefined)\n{\n return [null,{payload:msg.payload.Brightness}]; \n}\n",
                              "outputs": 2,
                              "noerr": 0,
                              "initialize": "",
                              "finalize": "",
                              "x": 950,
                              "y": 80,
                              "wires": [
                              [
                              "785c4fc4.72225"
                              ],
                              [
                              "cc4f61a3.a7e3f"
                              ]
                              ],
                              "outputLabels": [
                              "Switch",
                              "Brightness"
                              ]
                              },
                              {
                              "id": "cc4f61a3.a7e3f",
                              "type": "knxUltimate",
                              "z": "e797789f.53e7c8",
                              "server": "db15a516.948c58",
                              "topic": "1/2/9",
                              "outputtopic": "",
                              "dpt": "3.007",
                              "initialread": false,
                              "notifyreadrequest": false,
                              "notifyresponse": false,
                              "notifywrite": true,
                              "notifyreadrequestalsorespondtobus": false,
                              "notifyreadrequestalsorespondtobusdefaultvalueifno tinitialized": "0",
                              "listenallga": false,
                              "name": "Wohnzimmer Deckenspots (Dimmen Relativ 0..100%)",
                              "outputtype": "write",
                              "outputRBE": false,
                              "inputRBE": false,
                              "formatmultiplyvalue": 1,
                              "formatnegativevalue": "leave",
                              "formatdecimalsvalue": 999,
                              "passthrough": "no",
                              "x": 1320,
                              "y": 120,
                              "wires": [
                              []
                              ]
                              },
                              {
                              "id": "785c4fc4.72225",
                              "type": "knxUltimate",
                              "z": "e797789f.53e7c8",
                              "server": "db15a516.948c58",
                              "topic": "1/1/4",
                              "outputtopic": "",
                              "dpt": "1.001",
                              "initialread": false,
                              "notifyreadrequest": false,
                              "notifyresponse": false,
                              "notifywrite": true,
                              "notifyreadrequestalsorespondtobus": false,
                              "notifyreadrequestalsorespondtobusdefaultvalueifno tinitialized": "0",
                              "listenallga": false,
                              "name": "EG Wohnzimmer Deckenspots AN/AUS",
                              "outputtype": "write",
                              "outputRBE": false,
                              "inputRBE": false,
                              "formatmultiplyvalue": 1,
                              "formatnegativevalue": "leave",
                              "formatdecimalsvalue": 999,
                              "passthrough": "no",
                              "x": 1280,
                              "y": 20,
                              "wires": [
                              []
                              ]
                              },
                              {
                              "id": "6182d5a4.3c886c",
                              "type": "homekit-bridge",
                              "z": "",
                              "bridgeName": "EG Wohnzimmer Deckenspots",
                              "pinCode": "",
                              "port": "",
                              "allowInsecureRequest": false,
                              "manufacturer": "NRCHKB",
                              "model": "1.2.0",
                              "serialNo": "Default Serial Number",
                              "firmwareRev": "1.2.0",
                              "hardwareRev": "1.2.0",
                              "softwareRev": "1.2.0",
                              "customMdnsConfig": false,
                              "mdnsMulticast": true,
                              "mdnsInterface": "",
                              "mdnsPort": "",
                              "mdnsIp": "",
                              "mdnsTtl": "",
                              "mdnsLoopback": true,
                              "mdnsReuseAddr": true,
                              "allowMessagePassthrough": true
                              },
                              {
                              "id": "db15a516.948c58",
                              "type": "knxUltimate-config",
                              "z": "",
                              "host": "",
                              "port": "3671",
                              "physAddr": "15.15.22",
                              "suppressACKRequest": false,
                              "csv": "",
                              "KNXEthInterface": "Auto",
                              "KNXEthInterfaceManuallyInput": "",
                              "statusDisplayLastUpdate": true,
                              "statusDisplayDeviceNameWhenALL": true,
                              "statusDisplayDataPoint": false,
                              "stopETSImportIfNoDatapoint": "stop",
                              "loglevel": "error",
                              "name": "KNX IP Interface Gateway",
                              "localEchoInTunneling": true,
                              "delaybetweentelegrams": "40",
                              "delaybetweentelegramsfurtherdelayREAD": "1"
                              }
                              ]
                              NodeRedDimming.PNG
                              Angehängte Dateien
                              Zuletzt geändert von Strobel2k; 05.01.2021, 01:09.

                              Kommentar


                                Zitat von Elektroarzt Beitrag anzeigen
                                I'm on V1.2.2
                                Hello Thomas
                                i sent you the new flows.json.
                                Fixed.
                                The merge function has changed and invalidated the KNX-Ultimate gateway node's ID.
                                The fact that while opening each node, you see the correct gateway server, is a pure casualty because there is only one server, and it's selected by default.
                                I had to :
                                • update node-red to your version.
                                • make a deep guru meditation
                                • make some tests
                                • recreate the server node to obtain a new valid node.id
                                • replace the old invalid server node with the new one in all knxultimates nodes.
                                Cheers.
                                Never press "merge" again. This is a warning for all users.
                                Zuletzt geändert von TheMax74; 28.12.2020, 08:22.

                                Kommentar

                                Lädt...
                                X