Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Hue Lampe Blinken lassen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Hue Lampe Blinken lassen

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      SevenUp last edited by

      Ja, das stimmt. Beim Setzen des Hue-Wertes "springt" colormode aber automatisch auf "hs".

      dslraser 1 Reply Last reply Reply Quote 0
      • dslraser
        dslraser Forum Testing Most Active @SevenUp last edited by

        @SevenUp
        und welche Werte muss man setzen, wenn man vorher colormode xy hatte und diese wieder herstellen will ? Die meisten meiner selbst erstellten Szenen in der HUE App springen auf xy.

        S 1 Reply Last reply Reply Quote 0
        • S
          SevenUp @dslraser last edited by

          @dslraser http://rsmck.co.uk/hue

          {
              "state": {
                  "on": false,                 // true if the light is on, false if off
                  "bri": 240,                  // brightness between 0-254 (NB 0 is not off!)
                  "hue": 15331,                // hs mode: the hue (expressed in ~deg*182) - see note below
                  "sat": 121,                  // hs mode: saturation between 0-254
                  "xy": [0.4448, 0.4066],      // xy mode: CIE 1931 colour co-ordinates
                  "ct": 343,                   // ct mode: colour temp (expressed in mireds range 154-500)
                  "alert": "none",             // 'select' flash the lamp once, 'lselect' repeat flash for 30s
                  "effect": "none",            // 'colorloop' makes Hue cycle through colours
                  "colormode": "ct",           // the current colour mode (see above)
                  "reachable": true            // whether or not the lamp can be seen by the hub
              },
              "type": "Extended color light",  // type of lamp (all "Extended colour light" for now)
              "name": "Hue Lamp 1",            // the name as set through the web UI or app
              "modelid": "LCT001",             // the model number of the lamp (all are LCT001)
              "swversion": "65003148",         // the software version of the lamp
              "pointsymbol": { }               // not sure what this does yet
              }
          }
          

          Du kannst ja in ioBroker unter Objekten selbst den xy-Wert deiner Lampe ändern. Danach schaust du im Log, welche Ausgabe dazu gemacht wurde. Bei mir wird dann folgendes ausgegeben:

          final lightState for Philips_hue.BAZ_Licht_1-1:{"bri":254,"on":true,"xy":"0.5033,0.4","r":254,"g":181,"b":94,"colormode":"xy","level":100}
          

          Ich vermute aber, dass man r-, g-, b-Werte nicht benötigt, da sie durch den xy-Wert schon repräsentiert werden.

          dslraser 2 Replies Last reply Reply Quote 1
          • dslraser
            dslraser Forum Testing Most Active @SevenUp last edited by

            @SevenUp
            teste ich morgen nochmal bissl...

            1 Reply Last reply Reply Quote 0
            • dslraser
              dslraser Forum Testing Most Active @SevenUp last edited by

              @SevenUp
              mit diesen Werten funktioniert es bei mir zuverlässig (ausgiebig probiert)
              Danke nochmal an @SevenUp 👍

              <xml xmlns="http://www.w3.org/1999/xhtml">
                <variables>
                  <variable type="" id="e.5!g}F+GLL#M%]7JgZa">vorherige_Lichtwerte</variable>
                  <variable type="undefined" id="Alarm">Alarm</variable>
                  <variable type="" id="#-mXz|12s@TMb{7:o;u`">Alarmfarbe</variable>
                  <variable type="undefined" id="vorher">vorher</variable>
                </variables>
                <block type="variables_set" id="JSh#M2]R-=+=Ilabu1#W" x="-712" y="-562">
                  <field name="VAR" id="e.5!g}F+GLL#M%]7JgZa" variabletype="">vorherige_Lichtwerte</field>
                  <value name="VALUE">
                    <block type="text_join" id="5JMlZ5#p?K_miTW0%b/">
                      <mutation items="9"></mutation>
                      <value name="ADD0">
                        <block type="text" id="U]|wMur8iz=]8+1tUbt)">
                          <field name="TEXT">{"level":</field>
                        </block>
                      </value>
                      <value name="ADD1">
                        <block type="get_value" id="wi{WaS95nx]r{v:ilOX">
                          <field name="ATTR">val</field>
                          <field name="OID">hue.0.HueBridge.Küchenlampe.level</field>
                        </block>
                      </value>
                      <value name="ADD2">
                        <block type="text" id="sUEIx=x{)~s(:N/q-[%5">
                          <field name="TEXT">,"hue":</field>
                        </block>
                      </value>
                      <value name="ADD3">
                        <block type="get_value" id="UaKZdnsBCdmF5[Wp6#@U">
                          <field name="ATTR">val</field>
                          <field name="OID">hue.0.HueBridge.Küchenlampe.hue</field>
                        </block>
                      </value>
                      <value name="ADD4">
                        <block type="text" id="Mxh+uSmr[%bxf{`[C3b:">
                          <field name="TEXT">,"sat":</field>
                        </block>
                      </value>
                      <value name="ADD5">
                        <block type="get_value" id="4H7N6?HKWvT6?(QYt,]q">
                          <field name="ATTR">val</field>
                          <field name="OID">hue.0.HueBridge.Küchenlampe.sat</field>
                        </block>
                      </value>
                      <value name="ADD6">
                        <block type="text" id="H@tM2t+d@D(L/@2|cP/">
                          <field name="TEXT">,"bri":</field>
                        </block>
                      </value>
                      <value name="ADD7">
                        <block type="get_value" id="w-Nf$ldfIha86^H6@;es">
                          <field name="ATTR">val</field>
                          <field name="OID">hue.0.HueBridge.Küchenlampe.bri</field>
                        </block>
                      </value>
                      <value name="ADD8">
                        <block type="text" id="0di1b!%j8COWfdC7MOm">
                          <field name="TEXT">,"alert":"none","transitiontime":100}</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <next>
                    <block type="timeouts_settimeout" id="t5z9IGhAM2U||A=l?oE+">
                      <field name="NAME">Alarm</field>
                      <field name="DELAY">100</field>
                      <field name="UNIT">ms</field>
                      <statement name="STATEMENT">
                        <block type="variables_set" id="eV2nz=S+o0Qh#knfX(VX">
                          <field name="VAR" id="#-mXz|12s@TMb{7:o;u`" variabletype="">Alarmfarbe</field>
                          <value name="VALUE">
                            <block type="text" id="6=Nsu~FIZ]GOWy9RW!a~">
                              <field name="TEXT">{"level":100, "hue":0, "sat":254, "alert":"lselect", "transitiontime":0}</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="EtMjm5X93)jJEYLz]Nzd">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">hue.0.HueBridge.Küchenlampe.command</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="variables_get" id="ngn}]},?Md%P|OSygBYc">
                                  <field name="VAR" id="#-mXz|12s@TMb{7:o;u`" variabletype="">Alarmfarbe</field>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <next>
                        <block type="timeouts_settimeout" id="Ft#CxWl=aL97Eq/1At(.">
                          <field name="NAME">vorher</field>
                          <field name="DELAY">20</field>
                          <field name="UNIT">sec</field>
                          <statement name="STATEMENT">
                            <block type="control" id="+f@3jf3-S)##iv,qIgug">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">hue.0.HueBridge.Küchenlampe.command</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="variables_get" id="vQc+7P~B7!YMf=0ytWKl">
                                  <field name="VAR" id="e.5!g}F+GLL#M%]7JgZa" variabletype="">vorherige_Lichtwerte</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </xml>
              



              Bildschirmfoto 2019-05-26 um 11.28.21.png

              1 Reply Last reply Reply Quote 1
              • S
                skokarl last edited by

                Ihr Glücklichen, irgendwas ist bei mir anders.

                Also, ich hab nen aktuellen IOBroker, ne Hue Bridge, nen Hue Adapter...
                In den Objekten sind dann auch die paar Hue Objekte.
                Und dann den LED Strip im Wohnzimmer.....letztes Beispiel von Euch genommen,
                Objekte natürlich geändert.... und siehe da .... das liebe LOG ..

                hue.0 2019-05-26 13:15:45.678 error SyntaxError: Unexpected token , in JSON at position 19

                dslraser S 3 Replies Last reply Reply Quote 0
                • dslraser
                  dslraser Forum Testing Most Active @skokarl last edited by

                  @skokarl
                  welche HUE Adapter Version ?
                  Welche Pollingzeit ist eingestellt ?
                  Mach mal ein Bild von den Datenpunkten des LED Stripe
                  poste mal Dein Blockly als Export

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    SevenUp @skokarl last edited by

                    @skokarl das Problem muss aber an deinem Programm liegen 😉 LED Strip wird genau so angesteuert wie eine normale Farb-LED auch. Meinen Tipp befolgst du ja nicht. Dann ist eine Hilfe nicht einfach...
                    "stell erstmal sicher, dass das von dir erzeugtes Kommando richtig ist. Gib es per Debug in die Konsole aus, kopiere es und füge es in die "Command"-Eigenschaft deiner Lampe ein. Wenn die Lampe dieses Kommando nicht übernimmt, dann ist das Kommando falsch."
                    --> wie sieht das erzeugte Kommando nun den aus?

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      skokarl @dslraser last edited by

                      @dslraser sagte in Hue Lampe Blinken lassen:

                      @skokarl
                      welche HUE Adapter Version ?
                      Welche Pollingzeit ist eingestellt ?
                      Mach mal ein Bild von den Datenpunkten des LED Stripe
                      poste mal Dein Blockly als Export

                      HUE Bridge ist 1.1.0
                      Polling steht auf 60 sek.

                      1.PNG
                      2.PNG

                      dslraser 1 Reply Last reply Reply Quote 0
                      • S
                        skokarl @SevenUp last edited by

                        @SevenUp sagte in Hue Lampe Blinken lassen:
                        Meinen Tipp befolgst du ja nicht. Dann ist eine Hilfe nicht einfach...

                        sorry, ich bin nicht soweit wie ihr,....ich muss auch verstehen was Du willst ... 😬

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          skokarl last edited by

                          ich muss jetzt erstmal gerade für meine Schwester grillen ..... melde mich später zurück

                          1 Reply Last reply Reply Quote 0
                          • dslraser
                            dslraser Forum Testing Most Active @skokarl last edited by

                            @skokarl
                            ich nutze den HUE Adapter 0.6.9 (stable)
                            Die Versionen danach arbeiten anders und haben zum Teil Verzögerung.
                            Die Version von @jens-maus soll aber auch funktionieren.

                            Polling habe ich auf 5 Sekunden, schon Monate lang, keine Probleme damit.

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              skokarl @dslraser last edited by

                              @dslraser
                              dann liegt es wohl am Adapter.... glaube aber der hat sich selbst auf 1.1.0 aktualisiert

                              dslraser 1 Reply Last reply Reply Quote 0
                              • dslraser
                                dslraser Forum Testing Most Active @skokarl last edited by

                                @skokarl sagte in Hue Lampe Blinken lassen:

                                glaube aber der hat sich selbst auf 1.1.0 aktualisiert

                                Ohne Dein dazu tun aktualisiert der sich nicht.
                                Aber Du kannst ja einen downgrade machen.

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  skokarl @dslraser last edited by

                                  @dslraser

                                  oder, du aktualisierst mal 😎 ..... hat ja auch nen Grund die 1.1....

                                  dslraser 1 Reply Last reply Reply Quote 0
                                  • dslraser
                                    dslraser Forum Testing Most Active @skokarl last edited by

                                    @skokarl sagte in Hue Lampe Blinken lassen:

                                    hat ja auch nen Grund die 1.1....

                                    Ja, stimmt, hat einen Grund, die 1.1 ist BETA

                                    Die ist in latest und nicht in stable

                                    dslraser 1 Reply Last reply Reply Quote 0
                                    • dslraser
                                      dslraser Forum Testing Most Active @dslraser last edited by dslraser

                                      @skokarl
                                      ich habe jetzt mal den hier installiert, der läuft auch.
                                      https://github.com/jens-maus/ioBroker.hue.git

                                      Das ist die Version 1.2.3 von @jens-maus

                                      Bildschirmfoto 2019-05-26 um 14.34.33.png

                                      S 1 Reply Last reply Reply Quote 0
                                      • dslraser
                                        dslraser Forum Testing Most Active @skokarl last edited by dslraser

                                        @skokarl sagte in Hue Lampe Blinken lassen:

                                        hue.0 2019-05-26 13:15:45.678 error SyntaxError: Unexpected token , in JSON at position 19

                                        gerade nochmal etwas ausprobiert, genau dieser Fehler kommt, wenn der Command Befehl nicht stimmt.
                                        Ich hatte eben z.B. bei

                                        "alert":"lselect"
                                        

                                        vergessen die " " zu setzen, also ich hatte es so

                                        "alert":lselect
                                        

                                        dann kommt genau so ein Fehler wie bei Dir.
                                        bei mir kam

                                        SyntaxError: Unexpected token l in JSON at position 21
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          SevenUp @skokarl last edited by

                                          @skokarl Unter "System" gibt es einen Blockly zur Debug-Ausgabe. Füge es 2x in dein Code rein.
                                          So wie hier:
                                          2019-05-26 15_13_41-Start.png

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            skokarl @dslraser last edited by skokarl

                                            @dslraser sagte in Hue Lampe Blinken lassen:

                                            @skokarl
                                            ich habe jetzt mal den hier installiert, der läuft auch.
                                            https://github.com/jens-maus/ioBroker.hue.git

                                            Das ist die Version 1.2.3 von @jens-maus

                                            Bildschirmfoto 2019-05-26 um 14.34.33.png

                                            wie kommst du auf 1.2.3 ?

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            437
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly
                                            13
                                            105
                                            14187
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo