Ankündigung

Einklappen
Keine Ankündigung bisher.

KNX node for node-red

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

    Can you send here a zip containing the export of your nodes? Do you know how to do it?

    Kommentar


      And... do you have the latest version of nodered and node.js installed?

      Kommentar


        And... if you're skilled enough, you can paste the content of the attached zip into the .node-red/node_modules/node-red-contrib-knx-ultimate/nodes folder and restart node-red.
        The error you told me, is related to the fact that knx-ultimate cannot find the config-node and that's very strange. I wrote a temporary patch. Let me know if it works.
        Angehängte Dateien

        Kommentar


          Ciao,
          I am using node-red V1.0.6 and your node-red-contrib-knx-ultimate V1.1.72 including the changes, which you sent in your last post.
          It runs on my synology NAS on docker.

          With your changes the import is working fine. Could I help to find the root cause of the issue, if I send you an export of my nodes?
          Thanks for you perfekt support.

          Best regards
          Stefan

          Kommentar


            Hallo Stefan
            good to hear that!
            Yes, send it, it could help if you send it zipped. Thank you!

            Kommentar


              No, STOP. Don't send anything.
              I've probably found the path of your issue, after some tests here.
              You probably have a knx-ultimate node without a properly gateway config-node set.

              Node-RED.png

              and a knx-ultimate node, showing this red triangle.
              image_98629.png

              The new V. 1.1.73 is out with the official fix.
              Zuletzt geändert von TheMax74; 30.05.2020, 06:34.

              Kommentar


                Has anyone tried RGB (232.600)? I've build a flow where i can set RGB values on both the KNX App i use (EasyKNX) and on the node-red dashboard RGB widget.

                When i send RGB values from the App i can see everything in group monitor and node-red updates the dashboard color picker.

                When i set the RGB values in the node-red dashboard and RBE is enabled in KNX ultimate i can see nothing on the KNX bus. When i disable RBE i can see the KNX message twice in group monitor? IMHO RBE should be enabled, but then nothing is seen (expect right after deploying - the first "dashboard selcetion" is send correctly, once)


                here's how i think the flow should work (it's work in progress) 2/0/0 is the RGB 232.600 GA. Selecting different colors in the Dashboard color picker should send the values to KNX IMHO? i have the feeling the RBE filter doesn't consider if the RGB values change?

                Code:
                [{"id":"ca95b60b.b5ea7","type":"ui_colour_picker","z":"1cb3c325.49b40d","name":"","label":"Color Picker RGB","group":"33ff6d1a.3efc42","format":"rgb","outformat":"object","showSwatch":true,"showPicker":true,"showValue":true,"showHue":false,"showAlpha":false,"showLightness":true,"square":"false","dynOutput":"true","order":0,"width":0,"height":0,"passthru":true,"topic":"","x":530,"y":200,"wires":[["c1cb6330.d8c5e","ad2612cd.2ff81","3108ffc0.8fbd"]]},{"id":"c1cb6330.d8c5e","type":"debug","z":"1cb3c325.49b40d","name":"","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":790,"y":60,"wires":[]},{"id":"ad2612cd.2ff81","type":"function","z":"1cb3c325.49b40d","name":"format","func":"// Each color in a range between 0 and 255\nmsg.payload={red:msg.payload.r, green:msg.payload.g, blue:msg.payload.b};\n\n\nreturn msg;","outputs":1,"noerr":0,"x":770,"y":200,"wires":[["1b16c130.677cb7","56fcc2bb.ba40ac"]]},{"id":"1b16c130.677cb7","type":"debug","z":"1cb3c325.49b40d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":950,"y":260,"wires":[]},{"id":"98f15200.1f96d8","type":"http request","z":"1cb3c325.49b40d","name":"Innenhof grosse Kugel","method":"GET","ret":"txt","paytoqs":false,"url":"","tls":"","persist":false,"proxy":"","authType":"","x":1040,"y":140,"wires":[[]]},{"id":"459bd869.745e68","type":"function","z":"1cb3c325.49b40d","name":"format","func":"// Each color in a range between 0 and 255\nmsg.payload={r:msg.payload.red, g:msg.payload.green, b:msg.payload.blue};\n\n\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":200,"wires":[["ca95b60b.b5ea7"]]},{"id":"deb18ec.6db937","type":"knxUltimate","z":"1cb3c325.49b40d","server":"aeb035fd.86e778","topic":"2/0/0","outputtopic":"","dpt":"232.600","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","listenallga":false,"name":"","outputtype":"write","outputRBE":false,"inputRBE":false,"formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"x":110,"y":200,"wires":[["459bd869.745e68"]]},{"id":"972e4ce3.14fec8","type":"ui_button","z":"1cb3c325.49b40d","name":"","group":"33ff6d1a.3efc42","order":5,"width":0,"height":0,"passthru":false,"label":"orange","tooltip":"","color":"","bgcolor":"orange","icon":"","payload":"{\"r\":255,\"g\":165,\"b\":0,\"a\":1}","payloadType":"json","topic":"","x":300,"y":140,"wires":[["ca95b60b.b5ea7"]]},{"id":"97865d21.de8168","type":"ui_button","z":"1cb3c325.49b40d","name":"","group":"33ff6d1a.3efc42","order":5,"width":0,"height":0,"passthru":false,"label":"red","tooltip":"","color":"","bgcolor":"red","icon":"","payload":"{\"r\":255,\"g\":0,\"b\":0,\"a\":1}","payloadType":"json","topic":"","x":310,"y":100,"wires":[["ca95b60b.b5ea7"]]},{"id":"3108ffc0.8fbd","type":"function","z":"1cb3c325.49b40d","name":"build URL","func":"msg.url = \"http://192.168.21.51/cm?cmnd=color%20\"\n\nmsg.url += msg.payload.r\nmsg.url += \"%2c\" // comma\nmsg.url += msg.payload.g\nmsg.url += \"%2c\" // comma\nmsg.url += msg.payload.b\n\nmsg.payload =\"\"\n\nreturn msg;","outputs":1,"noerr":0,"x":780,"y":140,"wires":[["15dbc9ec.21f7ae"]]},{"id":"15dbc9ec.21f7ae","type":"debug","z":"1cb3c325.49b40d","name":"","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","x":990,"y":100,"wires":[]},{"id":"a2031c8f.7b6ea8","type":"ui_button","z":"1cb3c325.49b40d","name":"","group":"33ff6d1a.3efc42","order":5,"width":0,"height":0,"passthru":false,"label":"gold","tooltip":"","color":"","bgcolor":"gold","icon":"","payload":"{\"r\":255,\"g\":215,\"b\":0,\"a\":1}","payloadType":"json","topic":"","x":310,"y":60,"wires":[["ca95b60b.b5ea7"]]},{"id":"56fcc2bb.ba40ac","type":"knxUltimate","z":"1cb3c325.49b40d","server":"aeb035fd.86e778","topic":"2/0/0","outputtopic":"","dpt":"232.600","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":false,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","listenallga":false,"name":"","outputtype":"write","outputRBE":true,"inputRBE":false,"formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"x":1000,"y":200,"wires":[[]]},{"id":"33ff6d1a.3efc42","type":"ui_group","z":"","name":"Terrasse Nord","tab":"7ae07edf.8db378","order":1,"disp":true,"width":"6","collapse":false},{"id":"aeb035fd.86e778","type":"knxUltimate-config","z":"","host":"224.0.23.12","port":"3671","physAddr":"15.15.22","csv":""},{"id":"7ae07edf.8db378","type":"ui_tab","z":"","name":"LED Color Picker","icon":"dashboard","order":3,"disabled":false,"hidden":false}]
                or is this just the wrong way to build this? The left node receives from KNX, the right node sends to KNX?
                Zuletzt geändert von MGK; 01.06.2020, 11:48.

                Kommentar


                  Hi mgk
                  rbe must be disabled in RGB.
                  Please check that you have disabled the input message passthrough in the color picker node.
                  I’ll take a look at your code later.
                  Zuletzt geändert von TheMax74; 01.06.2020, 12:11.

                  Kommentar


                    How about disabling this?
                    Node-RED.png
                    Angehängte Dateien

                    Kommentar


                      Hi there!

                      Thanks for your awesome node!

                      I am working on an system to track activity in my house based on light. At the moment KNX sets and dimms some lights based on presence-detection and time.
                      On 23:00 the lights are set to 2% so i dont get flashed on my nighttime-visit in the bath

                      Thats works fine until we stay up late or have a little party. Preparing for the bed with 2% light sucks. I have to turn the light on by hand. And i dont want to do anything by hand anymore

                      This is my approach:
                      Screenshot_20200606_182802.png

                      "isLightInHouse" is a state i can use in other flows. Works fine. If any light is on the state is set to true, if all lights are off the state is set to false with a delay between 10 and 15 minutes.

                      Is there a better way to determin if there is any light on? At the moment i have to add the light and change the input number of the "Boolean Logic"-Node.

                      Greetings

                      Kommentar


                        Hi Ub
                        i do the same thing, but starting at 21.00 ‘o clock. I go to sleep very soon!
                        No, i think your approach is good.
                        You could maybe link the 2% light to your alarm system. If in night mode, the lights will be dimmed, otherwise not.

                        Kommentar


                          Thank you for your feedback!

                          Kommentar


                            Hi,

                            i use the trigger-function to switch off the light after x-minutes.

                            i use your node at the entrance and exit of the trigger.

                            i have enabled the rbe option on both nodes for input and output.

                            But I get the error message knxUltimate: Circular reference protection.

                            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


                              Hi Jumper. Please see here: https://github.com/Supergiovane/node...Q-Troubleshoot
                              And then here: https://github.com/Supergiovane/node...i/-Protections

                              Kommentar


                                thanks for the quick replay

                                i read the faq.

                                i have activate rbe. i have two filter.

                                Code:
                                [
                                {
                                "id": "2a4803f.aac84fc",
                                "type": "trigger",
                                "z": "56fdedaa.5e4934",
                                "op1": "true",
                                "op2": "false",
                                "op1type": "bool",
                                "op2type": "bool",
                                "duration": "5",
                                "extend": false,
                                "units": "s",
                                "reset": "",
                                "bytopic": "all",
                                "name": "",
                                "x": 790,
                                "y": 540,
                                "wires": [
                                [
                                "b6ea722f.a66b5"
                                ]
                                ]
                                },
                                {
                                "id": "96cf028a.859a6",
                                "type": "FilterUltimate",
                                "z": "56fdedaa.5e4934",
                                "name": "Filter",
                                "x": 430,
                                "y": 480,
                                "wires": [
                                [
                                "2a4803f.aac84fc",
                                "3b65e63e.9e49da"
                                ],
                                []
                                ]
                                },
                                {
                                "id": "ab526c47.5b96e",
                                "type": "knxUltimate",
                                "z": "56fdedaa.5e4934",
                                "server": "cffd8dcd.0c56e",
                                "topic": "5/0/4",
                                "outputtopic": "",
                                "dpt": "1.001",
                                "initialread": false,
                                "notifyreadrequest": false,
                                "notifyresponse": false,
                                "notifywrite": true,
                                "notifyreadrequestalsorespondtobus": false,
                                "notifyreadrequestalsorespondtobusdefaultvalueifno tinitialized": "0",
                                "listenallga": false,
                                "name": "Windfang Sperre ein",
                                "outputtype": "write",
                                "outputRBE": true,
                                "inputRBE": true,
                                "formatmultiplyvalue": 1,
                                "formatnegativevalue": "leave",
                                "formatdecimalsvalue": 999,
                                "passthrough": "no",
                                "x": 210,
                                "y": 500,
                                "wires": [
                                [
                                "96cf028a.859a6"
                                ]
                                ]
                                },
                                {
                                "id": "3b65e63e.9e49da",
                                "type": "debug",
                                "z": "56fdedaa.5e4934",
                                "name": "",
                                "active": true,
                                "tosidebar": true,
                                "console": false,
                                "tostatus": false,
                                "complete": "false",
                                "x": 790,
                                "y": 500,
                                "wires": []
                                },
                                {
                                "id": "b6ea722f.a66b5",
                                "type": "FilterUltimate",
                                "z": "56fdedaa.5e4934",
                                "name": "Filter",
                                "x": 430,
                                "y": 640,
                                "wires": [
                                [],
                                [
                                "fd65027d.27d27",
                                "9c03cc1b.9c88"
                                ]
                                ]
                                },
                                {
                                "id": "fd65027d.27d27",
                                "type": "debug",
                                "z": "56fdedaa.5e4934",
                                "name": "exit",
                                "active": true,
                                "tosidebar": true,
                                "console": false,
                                "tostatus": false,
                                "complete": "payload",
                                "targetType": "msg",
                                "x": 810,
                                "y": 640,
                                "wires": []
                                },
                                {
                                "id": "9c03cc1b.9c88",
                                "type": "knxUltimate",
                                "z": "56fdedaa.5e4934",
                                "server": "cffd8dcd.0c56e",
                                "topic": "5/0/4",
                                "outputtopic": "",
                                "dpt": "1.001",
                                "initialread": false,
                                "notifyreadrequest": false,
                                "notifyresponse": false,
                                "notifywrite": true,
                                "notifyreadrequestalsorespondtobus": false,
                                "notifyreadrequestalsorespondtobusdefaultvalueifno tinitialized": "0",
                                "listenallga": false,
                                "name": "Windfang Sperre ein",
                                "outputtype": "write",
                                "outputRBE": true,
                                "inputRBE": true,
                                "formatmultiplyvalue": 1,
                                "formatnegativevalue": "leave",
                                "formatdecimalsvalue": 999,
                                "passthrough": "no",
                                "x": 890,
                                "y": 680,
                                "wires": [
                                []
                                ]
                                },
                                {
                                "id": "cffd8dcd.0c56e",
                                "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,
                                "name": "",
                                "localEchoInTunneling": false,
                                "delaybetweentelegrams": "",
                                "delaybetweentelegramsfurtherdelayREAD": ""
                                }
                                ]
                                i have no Circular. iget only false to the exit

                                Anmerkung 2020-06-12 110103.png
                                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

                                Lädt...
                                X