Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Entwicklung
  4. Hue adapter

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.0k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.0k

Hue adapter

Hue adapter

Scheduled Pinned Locked Moved Entwicklung
185 Posts 24 Posters 46.7k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ruhr70R Offline
    ruhr70R Offline
    ruhr70
    wrote on last edited by
    #64

    im Body können noch weitere Argumente stehen:

    transitiontime, bri_inc, sat_inc, hue_inc, ct_inc finde ich interessant.

    transitiontime uint16 The duration of the transition from the light’s current state to the new state. This is given as a multiple of 100ms and defaults to 4 (400ms). For example, setting transistiontime:10 will make the transition last 1 second. Optional

    bri_inc -254 to 254 As of 1.7. Increments or decrements the value of the brightness. bri_inc is ignored if the bri attribute is provided. Any ongoing bri transition is stopped. Setting a value of 0 also stops any ongoing transition. The bridge will return the bri value after the increment is performed. Optional

    sat_inc -254 to 254 As of 1.7. Increments or decrements the value of the sat. sat_inc is ignored if the sat attribute is provided. Any ongoing sat transition is stopped. Setting a value of 0 also stops any ongoing transition. The bridge will return the sat value after the increment is performed. Optional

    hue_inc -65534 to 65534 As of 1.7. Increments or decrements the value of the hue. hue_inc is ignored if the hue attribute is provided. Any ongoing color transition is stopped. Setting a value of 0 also stops any ongoing transition. The bridge will return the hue value after the increment is performed.

    Note if the resulting values are < 0 or > 65535 the result is wrapped. For example:

    {"hue_inc": 1}

    on a hue value of 65535 results in a hue of 0.

    {"hue_inc": -2}

    on a hue value of 0 results in a hue of 65534.

    Optional

    ct_inc -65534 to 65534 As of 1.7. Increments or decrements the value of the ct. ct_inc is ignored if the ct attribute is provided. Any ongoing color transition is stopped. Setting a value of 0 also stops any ongoing transition. The bridge will return the ct value after the increment is performed. Optional

    xy_inc -0.5 to 0.5 As of 1.7. Increments or decrements the value of the xy. xy_inc is ignored if the xy attribute is provided. Any ongoing color transition is stopped. Setting a value of 0 also stops any ongoing transition. Will stop at it's gamut boundaries. The bridge will return the xy value after the increment is performed. Optional

    Adapter: Fritzbox, Unify Circuit
    Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Pman
      wrote on last edited by
      #65

      Bin seit gestern wieder zu Hause und werde im Laufe der Woche den Sammelzustand implementieren.

      Das ganze einfach an die Bridge weiterleiten kann die node-hue-api glaube ich nicht, ich halte es aber ohnehin für sinnvoller die Eingabe auszuwerten bevor sie weitergeleitet wird um fehlerhafte Eingaben direkt abzufangen.

      1 Reply Last reply
      0
      • ruhr70R Offline
        ruhr70R Offline
        ruhr70
        wrote on last edited by
        #66

        cool 😉

        d.h. auswerten, ggf. korrigieren und dann in einem Rutsch zur Bridge?

        Gesendet von iPhone mit Tapatalk

        Adapter: Fritzbox, Unify Circuit
        Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Pman
          wrote on last edited by
          #67

          ct_inc verstehe ich nicht. ct kann Werte von 153 bis 500 haben, ct_inc aber bis 65534?

          Ich lasse xy_inc und ct_inc erstmal weg, da mir die Wirkungsweise nicht klar ist.

          bri_inc wird im Adapter zu bri verarbeitet (da Farbänderungen teilweise bri schon verändern), aber nur wenn bri nicht angegeben wurde.

          sat_inc und hue_inc werden an die node-hue-api weitergegeben.

          1 Reply Last reply
          0
          • ruhr70R Offline
            ruhr70R Offline
            ruhr70
            wrote on last edited by
            #68

            @Pman:

            ct_inc verstehe ich nicht. ct kann Werte von 153 bis 500 haben, ct_inc aber bis 65534? `

            Ja, das ist mir auch aufgefallen. Ich habe es für mich als Fehler in der hue Doku verbucht.

            Der alte hue Adapter für die ccu.io hatte die Datenpunkte wohl drin. Zu mindestens kann man davon ausgehen, aus dem Code-Beispiel hier:

            http://forum.iobroker.org/viewtopic.php … 1107#p8933

            Adapter: Fritzbox, Unify Circuit
            Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Pman
              wrote on last edited by
              #69

              Ich mache ct_inc mal rein ohne die Werte zu begrenzen, dann müssen wir mal testen was passiert wenn man +100 oder +65000 eingibt.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Pman
                wrote on last edited by
                #70

                die hue-node-api kann die inc-werte seit 1.1.0, allerdings reagiert die Lampe nicht bisher nicht, wenn ich die entsprechenden Funktionen nutze. bri_inc funktioniert, da dieser Wert ja im Adapter selber verarbeitet wird.

                1 Reply Last reply
                0
                • ruhr70R Offline
                  ruhr70R Offline
                  ruhr70
                  wrote on last edited by
                  #71

                  ich teste das nachher mal mit der Dev-Webseite der Bridge und gebe eine Rückmeldung

                  Gesendet von iPhone mit Tapatalk

                  Adapter: Fritzbox, Unify Circuit
                  Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    Pman
                    wrote on last edited by
                    #72

                    @ruhr70:

                    ich teste das nachher mal mit der Dev-Webseite der Bridge und gebe eine Rückmeldung

                    Gesendet von iPhone mit Tapatalk `
                    Das wäre super! Der Fehler könnte aber auch in der node-hue-api liegen, die Unterstützung für die inc-Werte ist erst eine Woche alt und evtl. noch unfertig.

                    Wenn der command state ansonsten (inklusive bri_inc) ordentlich funktioniert mache ich damit schonmal einen pull request, damit eine aktuelle Version online kommt. Ich teste gerade einige Dinge durch, du kannst auch gerne schonmal von meinem Github testen.

                    1 Reply Last reply
                    0
                    • ruhr70R Offline
                      ruhr70R Offline
                      ruhr70
                      wrote on last edited by
                      #73
                      /api/xxxxxxxxx/lights/12/state
                      
                      

                      Message Body:

                      {
                      	"bri_inc": -32
                      }
                      

                      Ergebnis:

                      [
                      	{
                      		"success": {
                      			"/lights/12/state/bri": 190
                      		}
                      	}
                      ]
                      

                      Adapter: Fritzbox, Unify Circuit
                      Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

                      1 Reply Last reply
                      0
                      • ruhr70R Offline
                        ruhr70R Offline
                        ruhr70
                        wrote on last edited by
                        #74

                        alle Kommandos haben funktioniert.

                        Noch ein Beispiel:

                        Body:

                        {
                        	"ct_inc": 400,
                                "transitiontime": 100
                        }
                        

                        Ergebnis:

                        [
                        	{
                        		"success": {
                        			"/lights/12/state/transitiontime": 100
                        		}
                        	},
                        	{
                        		"success": {
                        			"/lights/12/state/ct": 500
                        		}
                        	}
                        ]
                        

                        Adapter: Fritzbox, Unify Circuit
                        Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

                        1 Reply Last reply
                        0
                        • P Offline
                          P Offline
                          Pman
                          wrote on last edited by
                          #75

                          komisch, über die node-hue-api bekomme ich es nicht hin 😞

                          1 Reply Last reply
                          0
                          • ruhr70R Offline
                            ruhr70R Offline
                            ruhr70
                            wrote on last edited by
                            #76

                            shit…

                            an der Version wird es nicht liegen, denke ich. Trotzdem mal zur Info:

                            
                            "modelid": "BSB001",
                            "swversion": "01024156",
                            "apiversion": "1.8.0",
                            

                            Klappt das denn bei Dir direkt über die API Webseite?

                            http://[bridge-ip]/debug/clip.html
                            

                            Adapter: Fritzbox, Unify Circuit
                            Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

                            1 Reply Last reply
                            0
                            • P Offline
                              P Offline
                              Pman
                              wrote on last edited by
                              #77

                              Ja, das geht. Ich denke es liegt an der node-hue-api. Da muss ich mal weiter probieren und ggf. dort nachfragen.

                              Funktioniert denn außer den inc Werten alles bei dir?

                              1 Reply Last reply
                              0
                              • ruhr70R Offline
                                ruhr70R Offline
                                ruhr70
                                wrote on last edited by
                                #78

                                Du meinst mit der Version von Github?

                                Die wollte ich jetzt installieren. Irgendetwas, auf das ich speziell achten muss?

                                Adapter: Fritzbox, Unify Circuit
                                Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

                                1 Reply Last reply
                                0
                                • P Offline
                                  P Offline
                                  Pman
                                  wrote on last edited by
                                  #79

                                  @ruhr70:

                                  Du meinst mit der Version von Github?

                                  Die wollte ich jetzt installieren. Irgendetwas, auf das ich speziell achten muss? `

                                  Genau, Version 0.4.0. Eigentlich gibt es nichts zu beachten, beim starten der Instanz sollten die neuen command-States hinzugefügt werden. bri_inc sollte funktionieren, die anderen inc Werte nicht. transitiontime geht bei mir! Es gibt natürlich relativ viele Kombinationen von on, bri, hue, ct, xy, rgb usw., ob es bei einigen Sonderfällen zu Problemen mit der aktuellen Implementierung kommt wäre interessant. Ein paar Fehler hatte ich schon gefunden und gefixt.

                                  1 Reply Last reply
                                  0
                                  • ruhr70R Offline
                                    ruhr70R Offline
                                    ruhr70
                                    wrote on last edited by
                                    #80

                                    Habe mir die Files rüber kopiert und den Adapter neu gestartet upload/restart.

                                    Kämpfe gerade damit, dass er nun nicht mehr startet:

                                    iobroker	2015-08-03 17:54:20	error	host.iobroker instance system.adapter.hue.0 terminated with code 8 (node.js: Cannot find module)
                                    

                                    Adapter: Fritzbox, Unify Circuit
                                    Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

                                    1 Reply Last reply
                                    0
                                    • ruhr70R Offline
                                      ruhr70R Offline
                                      ruhr70
                                      wrote on last edited by
                                      #81

                                      Ist jetzt gestartet.

                                      In den Objekten ist nur der Datenpunkt command dazugekommen?

                                      D.h. alle besprochenen Punkte muss ich darüber testen?
                                      1526_uifrhi6f.txt

                                      Adapter: Fritzbox, Unify Circuit
                                      Skripte: dynamic hue, Bluetooth Scan, Multi-Ereignisliste

                                      1 Reply Last reply
                                      0
                                      • P Offline
                                        P Offline
                                        Pman
                                        wrote on last edited by
                                        #82

                                        Im iobroker Verzeichnis:

                                        npm install https://github.com/pmant/ioBroker.hue/tarball/master
                                        iobroker upload hue
                                        

                                        Läuft bei mir so durch und der Adapter lässt sich starten.

                                        1 Reply Last reply
                                        0
                                        • P Offline
                                          P Offline
                                          Pman
                                          wrote on last edited by
                                          #83

                                          @ruhr70:

                                          Ist jetzt gestartet.

                                          In den Objekten ist nur der Datenpunkt command dazugekommen?

                                          D.h. alle besprochenen Punkte muss ich darüber testen? `
                                          Du kannst dort so was wie "{"bri_inc":100,"ct":369,"transitiontime":10}" machen. Ich glaube die gröbsten Fehler sind raus, evtl. gibt es ein paar Unstimmigkeiten, wenn "on", "bri" und rgb kombiniert werden, da sich diese gegenseitig verändern…

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          567

                                          Online

                                          32.4k

                                          Users

                                          81.3k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe