Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Philips hue Dimmer Blockly ght nicht mhr *** erlediegt ***

    NEWS

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    Philips hue Dimmer Blockly ght nicht mhr *** erlediegt ***

    This topic has been deleted. Only users with topic management privileges can see it.
    • Horst Böttcher
      Horst Böttcher last edited by Horst Böttcher

      Hallo ich habe ein Blockly vom alten Hue dimmer

      Jetz kamm der neu und ich komme nicht mehr klar

      Alter Taster NZ62148-2.png Neuer Taster New-Philips-Hue-dimmer-switch-product-shot-dark.jpg
      Datenpunkte beim Altendownload.png Datenpunkte Beim Neuen download.png

      Altes Blockly

      
      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="DPI{f%|vfODASw4b1wA|">level</variable>
          <variable id="qkm9=RDc=_9K:j`p1|f8">step</variable>
          <variable type="interval" id="Intervall">Intervall</variable>
        </variables>
        <block type="on_ext" id="kxh=m:Zi6h.E5tXJ{CDk" x="-1663" y="-1488">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="Bj;65aYVPBQ59mOC!e~?">
              <field name="oid">zigbee.0.0017880108f253bc.state</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="j87.ZsAyGl(mU8^*6Tr;">
              <mutation elseif="1"></mutation>
              <value name="IF0">
                <block type="logic_compare" id="u]6#GJ?W(}eGZlWHNfmy">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="_0*k%JdKf23sQc076KVO">
                      <field name="ATTR">val</field>
                      <field name="OID">zigbee.0.0017880108f253bc.state</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="C[Bm7xFVVR4I|:G$r=1*">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="control" id="p)NNq0O@oTT4jzW=lnZh">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                  <field name="OID">zigbee.0.00158d0003275cf3.brightness</field>
                  <field name="WITH_DELAY">TRUE</field>
                  <field name="DELAY_MS">1000</field>
                  <field name="UNIT">ms</field>
                  <field name="CLEAR_RUNNING">FALSE</field>
                  <value name="VALUE">
                    <block type="math_number" id="Qk3sfcgJ}[^SD-[1FL/S">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                </block>
              </statement>
              <value name="IF1">
                <block type="logic_compare" id="Wv*Fd|94_lq:*o?ROpJd">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="z-?DWL[#sKM`xV#6)F$T">
                      <field name="ATTR">val</field>
                      <field name="OID">zigbee.0.0017880108f253bc.state</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="iRombb}nak,:@15We8|C">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO1">
                <block type="control" id="RFCq0N87-8$9~-%c.gg5">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                  <field name="OID">zigbee.0.00158d0003275cf3.brightness</field>
                  <field name="WITH_DELAY">TRUE</field>
                  <field name="DELAY_MS">700</field>
                  <field name="UNIT">ms</field>
                  <field name="CLEAR_RUNNING">TRUE</field>
                  <value name="VALUE">
                    <block type="math_number" id="Bv;=g*ZMGn0=ok1xve^2">
                      <field name="NUM">100</field>
                    </block>
                  </value>
                </block>
              </statement>
              <next>
                <block type="controls_if" id="t$jNbc7kIc3j=6bZv]yu">
                  <mutation elseif="1"></mutation>
                  <value name="IF0">
                    <block type="logic_compare" id="d+0|p]tn*j-f~lzc+d-R">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="k|/Dr@/Ef6N[(59Xk#l.">
                          <field name="ATTR">val</field>
                          <field name="OID">zigbee.0.0017880108f253bc.state</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="qp{sS+.KNw)TcArYDJQb">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="ma*`qN/Pw!4lbS5.%}H7">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                      <field name="OID">zigbee.0.00158d0003275cf3.brightness</field>
                      <field name="WITH_DELAY">TRUE</field>
                      <field name="DELAY_MS">1000</field>
                      <field name="UNIT">ms</field>
                      <field name="CLEAR_RUNNING">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="5iyAxS6KTy#Z|tO:u5?C">
                          <field name="NUM">0</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <value name="IF1">
                    <block type="logic_compare" id="Gx5CeXo??5(/-@_{#nWr">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="$A=nwc+:}5!.kmBCA+@M">
                          <field name="ATTR">val</field>
                          <field name="OID">zigbee.0.0017880108f253bc.state</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="QVzIpLtK9R7E_EM_`Vi5">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO1">
                    <block type="control" id=",G8aHft]S9Y]y=(Q#4vw">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                      <field name="OID">zigbee.0.00158d0003275cf3.brightness</field>
                      <field name="WITH_DELAY">TRUE</field>
                      <field name="DELAY_MS">700</field>
                      <field name="UNIT">ms</field>
                      <field name="CLEAR_RUNNING">TRUE</field>
                      <value name="VALUE">
                        <block type="math_number" id="`a-|Pp~mzCR3?FBQon[h">
                          <field name="NUM">100</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="procedures_defnoreturn" id="rECDpeiBn{=Xbp%I0T4i" x="-1663" y="-1037">
          <field name="NAME">rampe</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="math_change" id="0,0uJLYb`kq~PdXo%]!M">
              <field name="VAR" id="DPI{f%|vfODASw4b1wA|">level</field>
              <value name="DELTA">
                <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="ZrE.5*i9gKktu@Yfoxb3">
                  <field name="NUM">1</field>
                </shadow>
                <block type="variables_get" id="Elv_uvFk3ap{:t,(V=$t">
                  <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8">step</field>
                </block>
              </value>
              <next>
                <block type="timeouts_setinterval" id="5DqeYX;*f0:6SWwmI3+D">
                  <field name="NAME">Intervall</field>
                  <field name="INTERVAL">500</field>
                  <field name="UNIT">ms</field>
                  <statement name="STATEMENT">
                    <block type="math_change" id="I,yt,=/.[ui1yDn=hu}X">
                      <field name="VAR" id="DPI{f%|vfODASw4b1wA|">level</field>
                      <value name="DELTA">
                        <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="5IBjfq2PlxW?=^S(:qJF">
                          <field name="NUM">1</field>
                        </shadow>
                        <block type="variables_get" id="r5N(D|BbIz9tMYg8d[6s">
                          <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8">step</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <next>
                    <block type="controls_if" id="eCbnY/:9i(:lcXrs?b!A">
                      <value name="IF0">
                        <block type="logic_compare" id="u{G)xXUPBEy*+C+4U{N0">
                          <field name="OP">GT</field>
                          <value name="A">
                            <block type="variables_get" id="j_g.#gfB9^Wwns}$P*Un">
                              <field name="VAR" id="DPI{f%|vfODASw4b1wA|">level</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id="L4B6,:Z9CXEhax~hX~G,">
                              <field name="NUM">99</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="variables_set" id=";c~YY;XS{sn0e)aL,vIY">
                          <field name="VAR" id="DPI{f%|vfODASw4b1wA|">level</field>
                          <value name="VALUE">
                            <block type="math_number" id="xDmH:zlwU*3Fe$_RrI_b">
                              <field name="NUM">99</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <next>
                        <block type="controls_if" id="$-pRVQam3~fpO#GPfwtb">
                          <value name="IF0">
                            <block type="logic_compare" id="L-wslKV2B,Id@Q(6f?MQ">
                              <field name="OP">LT</field>
                              <value name="A">
                                <block type="variables_get" id="amPVVWR46VqjzW[GB?a?">
                                  <field name="VAR" id="DPI{f%|vfODASw4b1wA|">level</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="f$^c]oN9D,UBZdWA,SSf">
                                  <field name="NUM">0</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="variables_set" id="@UOg.o4+6Pf2tjuZAcc?">
                              <field name="VAR" id="DPI{f%|vfODASw4b1wA|">level</field>
                              <value name="VALUE">
                                <block type="math_number" id="G/Zm!!7fHgs9}wueGfg[">
                                  <field name="NUM">0</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <next>
                            <block type="control" id="|t1=49LCQf5Z.@83MmF1">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">zigbee.0.00158d0003275cf3.brightness</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="variables_get" id="2`Q/eSWJ5wr*CaXvU)6_">
                                  <field name="VAR" id="DPI{f%|vfODASw4b1wA|">level</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="iqvY8#tNKLLlHFCK9R=(">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">zigbee.0.00158d0003275cf3.brightness</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="variables_get" id="iW4:vDs|/]tl_%z/#)25">
                                      <field name="VAR" id="DPI{f%|vfODASw4b1wA|">level</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="variables_set" id=":s[_enm]j}nmpmE8?~Z$" x="-1610" y="-638">
          <field name="VAR" id="DPI{f%|vfODASw4b1wA|">level</field>
          <value name="VALUE">
            <block type="get_value" id="4h?9N-kM0O*xyr{ixjxJ">
              <field name="ATTR">val</field>
              <field name="OID">zigbee.0.00158d0003275cf3.brightness</field>
            </block>
          </value>
          <next>
            <block type="variables_set" id="GM~^!8=zc6cg##`3_coS">
              <field name="VAR" id="DPI{f%|vfODASw4b1wA|">level</field>
              <value name="VALUE">
                <block type="get_value" id="N9yf?o/jF8alS{sYd)_g">
                  <field name="ATTR">val</field>
                  <field name="OID">zigbee.0.00158d0003275cf3.brightness</field>
                </block>
              </value>
              <next>
                <block type="on_ext" id=";JVKkgjk@Bkhc0YHU%!{">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                  <field name="CONDITION">ne</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="T6{Y*:LSfi=79r+q^O?c">
                      <field name="oid">zigbee.0.0017880108f253bc.up_hold</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="KGjw;pF`PUQoT8lxLp=D">
                      <mutation else="1"></mutation>
                      <value name="IF0">
                        <block type="on_source" id="7aa@vC7w7Vhd]TSU0HEM">
                          <field name="ATTR">state.val</field>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="variables_set" id="O$,oi?J?U@Wx969gj0Mq">
                          <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8">step</field>
                          <value name="VALUE">
                            <block type="math_number" id="u2A%uPty;kromCAE7!Te">
                              <field name="NUM">5</field>
                            </block>
                          </value>
                          <next>
                            <block type="procedures_callnoreturn" id="#2?-h=Rjc5bHzVv@Al3)">
                              <mutation name="rampe"></mutation>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <statement name="ELSE">
                        <block type="timeouts_clearinterval" id="qVDX$.R7?zN=ssfz29=1">
                          <field name="NAME">Intervall</field>
                        </block>
                      </statement>
                    </block>
                  </statement>
                  <next>
                    <block type="on_ext" id="_g^xP-JLYKhL2Q*]#+oR">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                      <field name="CONDITION">ne</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="f)}+753pF/q7G}yOu4yZ">
                          <field name="oid">zigbee.0.0017880108f253bc.down_hold</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id=",c*INHomKM^^eo4WnKv9">
                          <mutation else="1"></mutation>
                          <value name="IF0">
                            <block type="on_source" id="AN=2}za$Rwd3BE.2.(tD">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="variables_set" id="(X:{i|PQDI0Oal-buxyh">
                              <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8">step</field>
                              <value name="VALUE">
                                <block type="math_number" id="0lr{CbOteD/}kF`EhH(8">
                                  <field name="NUM">-5</field>
                                </block>
                              </value>
                              <next>
                                <block type="procedures_callnoreturn" id="/B9xh#(7D})$$@d#*eX$">
                                  <mutation name="rampe"></mutation>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <statement name="ELSE">
                            <block type="timeouts_clearinterval" id="9h4MYS_IJdR^D})TC@Qe">
                              <field name="NAME">Intervall</field>
                            </block>
                          </statement>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      
      

      Vorher wurde alles über Switch State gestuert doch genau der datenpunkt ist nicht mehr da

      paul53 haselchen 2 Replies Last reply Reply Quote 0
      • paul53
        paul53 @Horst Böttcher last edited by

        @horst-böttcher sagte: Datenpunkte Beim Neuen

        Dann schalte mit Trigger "on_press" ein und mit Trigger "off_press" aus.

        Horst Böttcher 1 Reply Last reply Reply Quote 0
        • haselchen
          haselchen Most Active @Horst Böttcher last edited by

          @horst-böttcher

          Wieso kommst du nicht klar?
          Sind doch alle möglichen Varianten als Datenpunkte aufgeführt.
          @paul53 hat es ja schon geschrieben. Also einfacher geht es nicht .

          1 Reply Last reply Reply Quote 0
          • Horst Böttcher
            Horst Böttcher @paul53 last edited by Horst Böttcher

            @paul53 sagte in Philips hue Dimmer Blockly ght nicht mhr:

            @horst-böttcher sagte: Datenpunkte Beim Neuen

            Dann schalte mit Trigger "on_press" ein und mit Trigger "off_press" aus.

            ja das hab ich schon probiert aber das leider nicht

            DJMarc75 paul53 2 Replies Last reply Reply Quote 0
            • DJMarc75
              DJMarc75 @Horst Böttcher last edited by

              @horst-böttcher
              dann zeig uns doch mal Dein Blockly

              1 Reply Last reply Reply Quote 0
              • paul53
                paul53 @Horst Böttcher last edited by paul53

                @horst-böttcher sagte: hab ich schon probiert

                Dann teste mal per Log-Ausgabe, wie sich die Datenpunkte verhalten, wenn man die Taste oben kurz drückt.

                Bild_2022-05-08_144339672.png

                Wert und Name findet man unter "Trigger".

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

                Support us

                ioBroker
                Community Adapters
                Donate

                832
                Online

                32.0k
                Users

                80.5k
                Topics

                1.3m
                Posts

                blockly
                4
                6
                201
                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