Ankündigung

Einklappen
Keine Ankündigung bisher.

KNX node for node-red

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

    Hi
    very detailed story, thanks for sharing that.
    Yes, please, tell me about HUE issues.

    Kommentar


      My platform:

      Platform Rasperry Pi Model 3B
      with headless Debian bullseye (ver. 11)
      Kernel 6.1

      Node-Red:
      3.0.2
      node-red-contrib-knx-ultimate
      2.1.34
      node-red-dashboard
      3.5.0
      node-red-node-pi-gpio
      2.0.6

      Philips Hue-Bridge
      (square version)

      Philips Hue white ambiance lamp 8.5W
      (tuneable white)


      My testbench:

      The HUE lamp should be controlled by a wall-switch and a MDT Glass Push-button II Smart
      (both in KNX system) in the first step. The wall switch is used for on/off
      and one key (9) of GTS2 is configured as dimming control and a second key (10) is
      configured as light temperature control.

      Then HUE light node was added to flow and was is configured as described in your YT video.
      With this setup the switch and the GTS2 were able to interact with HUE lamp.
      So far so good:-)

      In order to let the HUE lamp interact with some dashboard controls I added the GTS2's
      group address (same as used in HUE light node) as KNX devices to the flow.

      For the on/off I used a simple boolean switch node . This worked so far too.

      I wanted to use dashboard sliders for both brightness and color temperature, but this only
      easy to do for brightness. Brightness can be set by DPT3.007 and DPT5.001 with different
      group addressess. For color temperature only dimming by DPT3.007 is available in HUE light node
      which is incompatible with slider. Some workaround may be possible - I didn't go further with this.

      An additional input for HUE light node for direct setting of color temperature would be a pretty
      solution in a future update of knx ultimate.

      I investigated some time to play around with relative setting of color temperature
      by injecting some values manually. Changing color temperature worked basically but the injected
      value (+-1 to +-7) doesn't have any effect on the step size of status output (always a step of 3 or 4).
      I checked this for relative brightness setting too, yields same behavior execpt the step size is 9 or 10 here.
      Maybe this is a result of some dirty setup, I used DPT6.001 in knx device setting for relative dimming,
      since injecting manual values in a DPT3.007 node didn't work.

      When switching off and on again the brightness before off isn't restored after on but set to 100% sometimes.
      The value specified in "Switch On - color/brightness " doesn't have any effect on this.

      Furher the setting "Link brightness to on/off switch" does not have any effect, the
      the linked switch goes on or off every time when brightness is released from- or set to zero.

      That's all for this time, please let me know when I should test something further.


      Angehängte Dateien

      Kommentar


        Ich stehe gerade am Schlauch.

        Ich will einfach einen Wert, der sich nur 1x am Tag ändert vom Io Broker auf den KNX senden. Nach Initalisierung sende ich den Wert, aber der KNX Ultimate ist dann noch nicht bereit. Also kriege ich immer nur den Default Wert von 0 auf meine Anfrage. Kann ich den Readrequest vom KNX Node nicht an den IO Broker Node evtl. weitergeben? Irgendwie stelle ich mich da gerade etwas an.

        iobroker ertrag.jpg


        Okay, ich habe es jetzt so gelöst, aber die Frage interessiert mich trotzdem. Kann ich die Lesenanfrage nicht direkt an den Node weiter geben?
        iobroker ertrag lösung.jpg
        Zuletzt geändert von BadSmiley; 30.07.2023, 10:41.
        Dieser Beitrag enthält keine Spuren von Sarkasmus... ich bin einfach so?!

        Kommentar


          Zitat von rue24 Beitrag anzeigen
          My platform:

          ....
          That's all for this time, please let me know when I should test something further.

          Hi
          Sorry for the delay, but i'm on vacation right now! I should come home in 15 days, hope.

          Kommentar


            Zitat von BadSmiley Beitrag anzeigen
            Ich stehe gerade am Schlauch.

            Ich will einfach einen Wert, der sich nur 1x am Tag ändert vom Io Broker auf den KNX senden. Nach Initalisierung sende ich den Wert, aber der KNX Ultimate ist dann noch nicht bereit. Also kriege ich immer nur den Default Wert von 0 auf meine Anfrage. Kann ich den Readrequest vom KNX Node nicht an den IO Broker Node evtl. weitergeben? Irgendwie stelle ich mich da gerade etwas an.

            iobroker ertrag.jpg


            Okay, ich habe es jetzt so gelöst, aber die Frage interessiert mich trotzdem. Kann ich die Lesenanfrage nicht direkt an den Node weiter geben?
            iobroker ertrag lösung.jpg
            Hallo Bad Smiley,

            ich habe das in den Einstellungen der KNX Node so gelöst
            grafik.png

            Kommentar


              Das habe ich so auch. Bekomme aber auf die Anfrage nur eine 0. Weil die Initialisierung des knx node länger dauert als des io Broker nodes. Mit der Zeit Verzögerung klappt es dann.
              Dieser Beitrag enthält keine Spuren von Sarkasmus... ich bin einfach so?!

              Kommentar


                Zitat von rue24 Beitrag anzeigen
                My platform:

                ...


                My testbench:

                The HUE lamp should be controlled by a wall-switch and a MDT Glass Push-button II Smart
                (both in KNX system) in the first step. The wall switch is used for on/off
                and one key (9) of GTS2 is configured as dimming control and a second key (10) is
                configured as light temperature control.

                Then HUE light node was added to flow and was is configured as described in your YT video.
                With this setup the switch and the GTS2 were able to interact with HUE lamp.
                So far so good:-)

                In order to let the HUE lamp interact with some dashboard controls I added the GTS2's
                group address (same as used in HUE light node) as KNX devices to the flow.

                For the on/off I used a simple boolean switch node . This worked so far too.

                I wanted to use dashboard sliders for both brightness and color temperature, but this only
                easy to do for brightness. Brightness can be set by DPT3.007 and DPT5.001 with different
                group addressess. For color temperature only dimming by DPT3.007 is available in HUE light node
                which is incompatible with slider. Some workaround may be possible - I didn't go further with this.

                An additional input for HUE light node for direct setting of color temperature would be a pretty
                solution in a future update of knx ultimate.

                I investigated some time to play around with relative setting of color temperature
                by injecting some values manually. Changing color temperature worked basically but the injected
                value (+-1 to +-7) doesn't have any effect on the step size of status output (always a step of 3 or 4).
                I checked this for relative brightness setting too, yields same behavior execpt the step size is 9 or 10 here.
                Maybe this is a result of some dirty setup, I used DPT6.001 in knx device setting for relative dimming,
                since injecting manual values in a DPT3.007 node didn't work.

                When switching off and on again the brightness before off isn't restored after on but set to 100% sometimes.
                The value specified in "Switch On - color/brightness " doesn't have any effect on this.

                Furher the setting "Link brightness to on/off switch" does not have any effect, the
                the linked switch goes on or off every time when brightness is released from- or set to zero.

                That's all for this time, please let me know when I should test something further.
                Hi
                • In the new version 2.1.39, you can now set the color temperature fro 0 to 100, with datapoint 5.001.
                • As for dimming steps, for now it's fixed. You cannot change the steps +-1 to +-7.
                • "Link brightness to on/off switch" works by setting the brightness of the HUE light to 100 while switching it on. If unselected, the light will mantain the brightness previously set.
                • Can you please explain a little better this row?
                • When switching off and on again the brightness before off isn't restored after on but set to 100% sometimes.

                Kommentar


                  Hi Max,

                  many thanks for your investigations!
                  today I had time to update to knx ultimate and to do some tests with version 2.1.39.


                  In the new version 2.1.39, you can now set the color temperature fro 0 to 100, with datapoint 5.001.

                  I tested this, color temperature adjusted by dashboard slider works fine now.
                  But the problem is, that one can only choose between DPT3.007 (rel. dimming) OR
                  DPT 5.001 (%). As I stated, I would like to adjust color temp. by wall mount
                  GTS2 (knx) in parallel with dashboard slider on mobile device.
                  How to link now to GTS2 wich has only DPT3.007 as output?

                  It would have been pretty fine if you had done it as for brightness setting,
                  there are two inputs (=Group addresses) for this DPT3.007 AND DPT5.001 each.


                  "Link brightness to on/off switch" works by setting the brightness of the HUE light to 100 while switching it on. If unselected, the light will mantain the brightness previously set.

                  When check box "Link brightness to on/off switch" is unselected, after switching off-on the lamp
                  brightness still isn't properly restored to it's previous value, it is set to minimum resp. off then.

                  When check box "Link brightness to on/off switch" is selected, brighness is properly set to
                  100% after off/on.

                  To be sure that I work with the updated version of knx ultimate I began from scratch with
                  the setup of a HUE light node (Adding bridge and the lamp).
                  Unfortunatly I wasn't able to make it work again. It seems that the bridge does not send the
                  list of connected devices to nodered and I wasn't able to add the lamp to the hue light node at all.

                  Kommentar


                    Hi Rue24,
                    I tested this, color temperature adjusted by dashboard slider works fine now.
                    But the problem is, that one can only choose between DPT3.007 (rel. dimming) OR
                    DPT 5.001 (%). As I stated, I would like to adjust color temp. by wall mount
                    GTS2 (knx) in parallel with dashboard slider on mobile device.
                    How to link now to GTS2 wich has only DPT3.007 as output?​
                    Sorry, but i'm still on vacation and i work on that at the evening, when i come back from the beach, before taking a shower!
                    I'm in the beautiful Tuscany.
                    You can copy/paste the node and, on the pasted node, you can replace the 5.001 with the 3.007 required by the GTS2.
                    But you're right... it whould be better to have both datapoints in a single node.
                    Can you please open an issue on gitHub for that? https://github.com/Supergiovane/node...ues/new/choose

                    When check box "Link brightness to on/off switch" is unselected, after switching off-on the lamp
                    brightness still isn't properly restored to it's previous value, it is set to minimum resp. off then.​
                    I need you to open a separate issue for that also, please, so i can track and work on it more comfortable than in this forum.


                    To be sure that I work with the updated version of knx ultimate I began from scratch with
                    the setup of a HUE light node (Adding bridge and the lamp).
                    Unfortunatly I wasn't able to make it work again. It seems that the bridge does not send the
                    list of connected devices to nodered and I wasn't able to add the lamp to the hue light node at all.​
                    Also for this i need a separate issue on gitHub.
                    Have you tried to restart node-red?
                    When starting from scratch, the KNX-Ultimate needs a KNX Gateway node and HUE configuration node to be configured first. Then a full deploy is needed. Both configuration nodes (KNX and HUE) contains the properly configured endpoint to comunicate to KNX and HUE bridge.
                    As info, everytime you start typing in the autocomplete fields (in your case, the HUE devices fields), the HTML front-end sends a JSON REST request to that endpoints in the back-end. The endpoints make the REST requests to the Philips HUE bridge and send the responses back to the HTML front-end. This is how it works by design.

                    Kommentar


                      Mal ne Frage bzgl multi tenancy bei NR: hat es jemand von euch schon umgesetzt und wenn ja, wie?

                      Ich möchte verschiedene dashboards erstellen für einzelne Nutzer und zB für die Kids nur eine eingeschränkte Auswahl ermöglichen.

                      Ne Idee?​

                      Kommentar


                        Dazu solltest einen separaten Thread unter sonstiges aufmachen. Hat ja nicht viel mit einem spezifischen Adapter wie KNX zu tun.
                        ----------------------------------------------------------------------------------
                        "Der Hauptgrund für Stress ist der tägliche Kontakt mit Idioten."
                        Albert Einstein

                        Kommentar


                          Stimmt, geil wäre ein NodeRed Sub-Forum

                          Kommentar


                            Hello Max,

                            I'm struggling a bit with the Hue nodes in KNXUltimate when trying to control lamps of a second bridge (2 x hue-config).
                            According to the node settings (e.g. Hue-Light) it is possible to select a Hue bridge from a list (in my case there are 2 bridges). But only the devices found on the first bridge are suggested in the list. Are multiple Hue bridges currently supported at all?

                            What I have found out so far there is an exception in vendor.js.
                            Code:
                            Uncaught ReferenceError: replace is not defined      getDPT http://192.168.1.100:1880/ line 2 > injectedScript:136
                            at this code position:
                            Code:
                            $(_destinationWidget).val(this + "." + _destinationWidget - replace("#node-input-", ""))
                            Maybe this couses the problem?

                            Thanks for any advise
                            Roman

                            Kommentar


                              Hello Roman!
                              i’ve coded multiple bridges but i’m unable to test it, because i haven’t more than one bridge.
                              I’ll take a look at that, but then i need help discovering issues on the second hue bridge.

                              Kommentar


                                Hi Max,
                                wow - that's fast response.
                                I'm not very experienced in nodejs or javascript programming, but would be glad to be your beta tester 😀.

                                Kommentar

                                Lädt...
                                X