Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Zigbee Birne per Funkfernbedinung Taster bedienen

    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

    Zigbee Birne per Funkfernbedinung Taster bedienen

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

      Hallo,
      ich habe so einen HUE Taster mit (Ein/Aus | Heller | Dunkler | hue Knöpfen)

      Das An/Aus geht mit meinem Blockly schon mal. Geht das auch eleganter oder ist das schon richtig?

      Screenshot 2024-01-02 140426.png

      Hat jemand eine Idee wie sich das mit dem Dimmen und dem Farbton ändern realisieren lässt?
      Kennt da jemand was fertiges? Bin doch bestimmt nicht der erste 😉

      Danke

      1 Reply Last reply Reply Quote 0
      • D
        Dragon last edited by

        So habe ich mein Dimming realisiert:

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable type="interval" id="Intervall">Intervall</variable>
            <variable type="interval" id="Intervall2">Intervall2</variable>
          </variables>
          <block type="on_ext" id="EGr=Zy*@Cl=ly?p,kN6x" x="62" y="63">
            <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
            <field name="CONDITION">true</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="a3RLPSbYlRMw@4E~J_XZ">
                <field name="oid">zigbee.0.842e14fffe846875.brightness_move_down</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="timeouts_setinterval_variable" id="$RU6$g^~WNU%|!yRsI4H">
                <field name="NAME">Intervall</field>
                <value name="INTERVAL_MS">
                  <block type="math_number" id="{U^9t=IR2Mh=K*k1}[S!">
                    <field name="NUM">500</field>
                  </block>
                </value>
                <statement name="STATEMENT">
                  <block type="control" id="YFdyI-kTDnaEAm$[hDg2">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">0_userdata.0.Beleuchtung.Whiskeyzimmmer.Helligkeit</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_arithmetic" id="6^Ge[tj9+]d08JD$z}IM">
                        <field name="OP">MINUS</field>
                        <value name="A">
                          <shadow type="math_number" id="[VX8^3EPpPjH?4)gd}*M">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="get_value" id="Mwp~#BN)01?|^J==kT.J">
                            <field name="ATTR">val</field>
                            <field name="OID">0_userdata.0.Beleuchtung.Whiskeyzimmmer.Helligkeit</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="Tm$ZcB^@q}}?Rd^6PTi)">
                            <field name="NUM">10</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </statement>
            <next>
              <block type="on_ext" id="KT7hrX;1k=?/;dy-P*%0">
                <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                <field name="CONDITION">true</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="s@^*dMZ`m2`rWq+,4;}_">
                    <field name="oid">zigbee.0.842e14fffe846875.brightness_move_up</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="timeouts_setinterval_variable" id="h]h|Zji:XO6mA51}{WtJ">
                    <field name="NAME">Intervall2</field>
                    <value name="INTERVAL_MS">
                      <block type="math_number" id="8[2CcT~U5jA-VCerW^(0">
                        <field name="NUM">500</field>
                      </block>
                    </value>
                    <statement name="STATEMENT">
                      <block type="control" id="TKfzaXN^Jp}?1TGAI~L%">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">0_userdata.0.Beleuchtung.Whiskeyzimmmer.Helligkeit</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_arithmetic" id="BrQIXm;Kqx!QN$G*N~8%">
                            <field name="OP">ADD</field>
                            <value name="A">
                              <shadow type="math_number" id="[VX8^3EPpPjH?4)gd}*M">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="get_value" id="pdXr/gIrX{hK2XRR{Jye">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.Beleuchtung.Whiskeyzimmmer.Helligkeit</field>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="F38dm]67JKz/nc|n9GwE">
                                <field name="NUM">10</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </statement>
                <next>
                  <block type="on_ext" id="(/KN3aKH0({mKlc`M?OW">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                    <field name="CONDITION">true</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                      <shadow type="field_oid" id="^qf@nzatWNIa__N^y!RO">
                        <field name="oid">zigbee.0.842e14fffe846875.brightness_stop</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="timeouts_clearinterval" id="]pqA%fe)lwC7)QBOz$|1">
                        <field name="NAME">Intervall</field>
                        <next>
                          <block type="timeouts_clearinterval" id="MO}pRuH~TsiF,4vL-fzY">
                            <field name="NAME">Intervall2</field>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </xml>
        
        S 1 Reply Last reply Reply Quote 0
        • S
          Schnotzler @Dragon last edited by Schnotzler

          @dragon
          Hallo,
          vielen Dank.
          Was mir aufgefallen ist, die setzt die Dimmwerte in 0_userdata.
          Ich schreibe das bisher immer direkt auf das Gerät (z.B. zigbee.0.f0xxx6e.brightness)
          Das funktioniert auch ist wenn ich das bei dir sehe lange nicht so elegant...

          Wie bekommst du es hin dass die Werte aus Userdata auf das Gerät (Lampe) geschrieben werden?

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

          Support us

          ioBroker
          Community Adapters
          Donate

          654
          Online

          31.9k
          Users

          80.1k
          Topics

          1.3m
          Posts

          2
          3
          192
          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