Skip to content
  • Home
  • 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
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Zigbee Birne per Funkfernbedinung Taster bedienen

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    3.4k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.5k

Zigbee Birne per Funkfernbedinung Taster bedienen

Scheduled Pinned Locked Moved Blockly
3 Posts 2 Posters 293 Views 3 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.
  • S Offline
    S Offline
    Schnotzler
    wrote on last edited by
    #1

    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
    0
    • D Offline
      D Offline
      Dragon
      wrote on last edited by
      #2

      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
      0
      • D Dragon

        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 Offline
        S Offline
        Schnotzler
        wrote on last edited by Schnotzler
        #3

        @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
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        Support us

        ioBroker
        Community Adapters
        Donate

        584

        Online

        32.7k

        Users

        82.4k

        Topics

        1.3m

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

        • Don't have an account? Register

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