Ankündigung

Einklappen
Keine Ankündigung bisher.

KNX node for node-red

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

    Zitat von MatthiasS Beitrag anzeigen
    Thanks for your help!


    Unfortunately, there is no update button for this node!? Screenshot 2021-04-14 10.16.20.png
    Hi Matthias
    i suspect that iobroker uses a different way to update the nodes in node-red. At this point, i assume that ALL your nodes are out of date, not only knx-ultimate.

    Kommentar


      Zitat von TheMax74 Beitrag anzeigen
      Hi Stives
      the function node contains
      Code:
      var d = new Date();
      msg.time = d.getFullYear() + "-" + ('0' + (d.getMonth()+1)).slice(-2) + "-" + d.getDate() + " " + ('0' + (d.getHours())).slice(-2) + ":" + ('0' + (d.getMinutes())).slice(-2) + ":" + ('0' + (d.getSeconds())).slice(-2);
      return msg;
      You will obtain the current date everytime, because you get the value from the javascript object "Date".
      Replace this:
      Code:
      var d = new Date();
      with this:
      Code:
      var d = new Date(msg.payload);
      Now, as soon as your 2/6/40 receives a datetime, the function get their msg.payload and transform it in a date.
      It's perfect ! A very big thank you.

      This function is really very useful because the Sensor device of the KNX integration of HA does not manage any DPT Datetime Date, Time.

      Kommentar


        Zitat von MatthiasS Beitrag anzeigen
        Thanks for your help!


        Unfortunately, there is no update button for this node!? Screenshot 2021-04-14 10.16.20.png
        Moin, das ist die aktuelle Version vom KNX Ultimate-Node:

        NR01.jpg

        Welche Version vom Node Red Adapter hast du?
        Das ist die aktuelle:

        NR02.jpg

        Kommentar


          Auch 2.2.0
          Gruß Matthias
          EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
          - PN nur für PERSÖNLICHES!

          Kommentar


            Zitat von MatthiasS Beitrag anzeigen
            Auch 2.2.0
            Also deine anderen Nodes sind auf jeden Fall aktuell.
            Ich würde mal den KNX-Ultimate komplett entfernen und neu laden.

            Kommentar


              Hello,
              How do I read a GA every minute?

              Kommentar


                Hi Stives
                The wiki is your friend
                https://github.com/Supergiovane/node...ue-from-Device

                In the inject node, there is the option to emit a msg every xx minutes.

                Kommentar


                  Hello TheMax74,

                  Yes I had seen the Inject property.

                  With the group monitor, reading the GA 8/6/2 does return the local date and time; I would like to reproduce this with Node- red by reading GA 8/6/2 every minute.


                  Code:
                  [{"id":"414ecf73.2b7b","type":"inject","z":"48e307.205bccf8","name":"","props":[{"p":"payload"}],"repeat":"60","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":570,"y":140,"wires":[["8b6846fe.a908e8"]]},{"id":"8b6846fe.a908e8","type":"knxUltimate","z":"48e307.205bccf8","server":"e91643e.d9013c","topic":"8/6/2","outputtopic":"","dpt":"19.001","initialread":"0","notifyreadrequest":true,"notifyresponse":true,"notifywrite":true,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","listenallga":false,"name":"","outputtype":"write","outputRBE":false,"inputRBE":false,"formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"passthrough":"yes","x":790,"y":140,"wires":[[]]},{"id":"e91643e.d9013c","type":"knxUltimate-config","host":"192.168.1.100","port":"3671","physAddr":"15.15.22","suppressACKRequest":false,"csv":"","KNXEthInterface":"Auto","KNXEthInterfaceManuallyInput":"","statusDisplayLastUpdate":true,"statusDisplayDeviceNameWhenALL":true,"statusDisplayDataPoint":false,"stopETSImportIfNoDatapoint":"skip","loglevel":"error","name":"Passerelle IP-KNX","localEchoInTunneling":true,"delaybetweentelegrams":"40","delaybetweentelegramsfurtherdelayREAD":"1"}]
                  NR-datetime2.jpg
                  Zuletzt geändert von Stives; 16.04.2021, 00:28.

                  Kommentar


                    Hello,

                    I made the updates to Core (2021.4.5) and knxUltimate (1.2.21) but my nodes no longer work.
                    Everything seems normal at Node-red (payload is transmitted) but the state of the GA does not change?

                    Code:
                    [{"id":"f08be799.217ed8","type":"server-state-changed","z":"e2c6739c.71ce5","name":"Validation EV1 Patio Abri","server":"6dbc60a4.9907","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.validation_ev1","entityidfiltertype":"exact","outputinitially":false,"state_type":"habool","haltifstate":"unavailable","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":150,"y":100,"wires":[["4210ae5.bec855"],[]]},{"id":"4210ae5.bec855","type":"knxUltimate","z":"e2c6739c.71ce5","server":"e91643e.d9013c","topic":"2/6/4","outputtopic":"","dpt":"1.002","initialread":false,"notifyreadrequest":true,"notifyresponse":false,"notifywrite":false,"notifyreadrequestalsorespondtobus":false,"notifyreadrequestalsorespondtobusdefaultvalueifnotinitialized":"0","listenallga":false,"name":"2/6/4 ABA/S 1.2.1","outputtype":"write","outputRBE":false,"inputRBE":false,"formatmultiplyvalue":1,"formatnegativevalue":"leave","formatdecimalsvalue":999,"passthrough":"no","x":490,"y":100,"wires":[[]]},{"id":"6dbc60a4.9907","type":"server","name":"Home Assistant","addon":true},{"id":"e91643e.d9013c","type":"knxUltimate-config","host":"192.168.1.100","port":"3671","physAddr":"15.15.22","suppressACKRequest":false,"csv":"","KNXEthInterface":"Auto","KNXEthInterfaceManuallyInput":"","statusDisplayLastUpdate":true,"statusDisplayDeviceNameWhenALL":true,"statusDisplayDataPoint":false,"stopETSImportIfNoDatapoint":"skip","loglevel":"error","name":"Passerelle IP-KNX","localEchoInTunneling":true,"delaybetweentelegrams":"40","delaybetweentelegramsfurtherdelayREAD":"1"}]

                    Kommentar


                      Hi
                      hace you restarted the pc?
                      What kind of knx interface are you using? A router or an interface?

                      Kommentar


                        Yes I restarted the virtual machine (NUC) on which HA and Node red are installed.
                        I am using an interface and it is this which is selected in the node.

                        Kommentar


                          I just did a second restart of the virtual machine and everything seems to be back to normal.
                          Why do I have to restart twice?

                          Anytime it has an update to Core and / or KnxUltimate, will I lose control with HA?

                          Kommentar


                            Don’t know how home assistant works. Maybe some post install script has to be launched after reboot.

                            Kommentar


                              I have never heard of any particular HA restart procedure, but not writing in the GA of a properly functioning node seems to imply a restart of the machine.

                              Kommentar


                                KNX-Ultimate 1.2.23 is out with the new Alerter Node https://github.com/Supergiovane/node...-Configuration
                                Happy new week.

                                Kommentar

                                Lädt...
                                X