Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Lichter dimmen

NEWS

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    8
    1
    473

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    10
    1
    394

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    979

Lichter dimmen

Geplant Angeheftet Gesperrt Verschoben Blockly
8 Beiträge 3 Kommentatoren 523 Aufrufe 3 Beobachtet
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • Enrico FischerE Offline
    Enrico FischerE Offline
    Enrico Fischer
    schrieb am zuletzt editiert von
    #1

    Nachdem ich mich jetzt doch mal mit Blockly befasst haben,bin ich ja schon mal froh das der Script läuft.

    Nur hab ich das Problem das ich unmengen Fehlermeldungen bekomme.

    Könnte sich das einer der Profis mal bitte anschauen.

    blockly.png

    Fehler


    25.5.2022, 23:12:46.388 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:4:3)
    25.5.2022, 23:12:52.299 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:10:3)
    25.5.2022, 23:12:53.302 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:12:3)
    25.5.2022, 23:12:54.304 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:14:3)
    25.5.2022, 23:12:55.305 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:16:3)
    25.5.2022, 23:12:56.306 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:18:3)
    25.5.2022, 23:12:57.307 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:20:3)
    25.5.2022, 23:12:58.309 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:22:3)
    25.5.2022, 23:12:59.310 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:24:3)
    25.5.2022, 23:13:00.311 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:26:3)
    25.5.2022, 23:13:01.312 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:28:3)

    <xml xmlns="https://developers.google.com/blockly/xml">
      <block type="on" id="0?yo4)owdA)AJkH,5lkI" x="88" y="-462">
        <field name="OID">0_userdata.0.schalter</field>
        <field name="CONDITION">true</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="control" id=".;c|Dvp3=z]n,D)haT]K">
            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
            <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="text" id="v5(jV8}mj)IRPu[uNpE}">
                <field name="TEXT">100</field>
              </block>
            </value>
            <next>
              <block type="update" id="q*vs5UTNN*A0UYix82uF">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">tradfri.0.L-65544.lightbulb.state</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="v2j-vsy~!9|ENXpK8jd8">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="on" id="bD)zg|:!d*E-4-]pY7:+">
            <field name="OID">0_userdata.0.schalter</field>
            <field name="CONDITION">false</field>
            <field name="ACK_CONDITION"></field>
            <statement name="STATEMENT">
              <block type="control" id="_.bQ~6tCcKbE.ebIHyL1">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="text" id="MW*EL^|vo|v5#hH:,wq*">
                    <field name="TEXT">90</field>
                  </block>
                </value>
                <next>
                  <block type="timeouts_wait" id="5k!SE5UufRPYQzCW19h|">
                    <field name="DELAY">1000</field>
                    <field name="UNIT">ms</field>
                    <next>
                      <block type="control" id="YlTjFPJ*Y$LcZO$xfD^O">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="text" id="DFW@}uP[yWK4sn*Y`Fwi">
                            <field name="TEXT">80</field>
                          </block>
                        </value>
                        <next>
                          <block type="timeouts_wait" id="khhc=2*A~DYX]K}N;nU~">
                            <field name="DELAY">1000</field>
                            <field name="UNIT">ms</field>
                            <next>
                              <block type="control" id="JIx45#Kv{ko8A:raYBTs">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="text" id="pCt7pL);`wi`L,`t_fj}">
                                    <field name="TEXT">70</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="timeouts_wait" id="cg+sYL`8GLN%0+?nBDB;">
                                    <field name="DELAY">1000</field>
                                    <field name="UNIT">ms</field>
                                    <next>
                                      <block type="control" id="jOe].,CstvYngi0eh3(:">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="text" id="7,6E/wQD)a!w;p*oSvy?">
                                            <field name="TEXT">60</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="timeouts_wait" id="IJ}T][d[5l_YQ|hRTI+6">
                                            <field name="DELAY">1000</field>
                                            <field name="UNIT">ms</field>
                                            <next>
                                              <block type="control" id="R,ErQsc8fEsS(R.JRvJN">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="text" id="V#TeP/?b+lW8GZ_8hwXx">
                                                    <field name="TEXT">50</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="timeouts_wait" id=";iva_)@~e/);C`%V=juc">
                                                    <field name="DELAY">1000</field>
                                                    <field name="UNIT">ms</field>
                                                    <next>
                                                      <block type="control" id="=Yx1t=[Ty?:,N8zhdeIe">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="text" id="oCu3!*yYE0GCB8UM8}#y">
                                                            <field name="TEXT">40</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="timeouts_wait" id="~pyht()C_y$a{vZv.=A(">
                                                            <field name="DELAY">1000</field>
                                                            <field name="UNIT">ms</field>
                                                            <next>
                                                              <block type="control" id="cL7V/TFJPrW60-7z9a51">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="text" id="i=O(W(99d1(d+vNz`S/W">
                                                                    <field name="TEXT">30</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="timeouts_wait" id="uZMMFJ,^WP%khB`GfxH#">
                                                                    <field name="DELAY">1000</field>
                                                                    <field name="UNIT">ms</field>
                                                                    <next>
                                                                      <block type="control" id="N^iVDuM$xRdx/i3B^xM2">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="text" id="H6MbK%T~r/E1[W?pGSpB">
                                                                            <field name="TEXT">20</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="timeouts_wait" id="x%%8kqkzZBFH,|;j(CZ0">
                                                                            <field name="DELAY">1000</field>
                                                                            <field name="UNIT">ms</field>
                                                                            <next>
                                                                              <block type="control" id="K$EDr?|Conq,Q=#nA!(t">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="text" id="^WOUMxKdh2M/QE/XwF]1">
                                                                                    <field name="TEXT">10</field>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="timeouts_wait" id="4S-Rrw,(V]O^Pakt|g;j">
                                                                                    <field name="DELAY">1000</field>
                                                                                    <field name="UNIT">ms</field>
                                                                                    <next>
                                                                                      <block type="control" id="#tk.)o$N)6y{1v3B%K,L">
                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                        <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                        <value name="VALUE">
                                                                                          <block type="text" id="`^@T{Ba7A#3xw7i9}{(n">
                                                                                            <field name="TEXT">0</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="timeouts_wait" id="e[{DJ;^LE9#]jF0zY2.!">
                                                                                            <field name="DELAY">1000</field>
                                                                                            <field name="UNIT">ms</field>
                                                                                            <next>
                                                                                              <block type="update" id="+s`4^:Nwp/@+xu]E4B])">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                <field name="OID">tradfri.0.L-65544.lightbulb.state</field>
                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="logic_boolean" id="Tp4~BliPC=3L395;Sq#!">
                                                                                                    <field name="BOOL">FALSE</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </xml>
    
    DJMarc75D AsgothianA 2 Antworten Letzte Antwort
    0
    • Enrico FischerE Enrico Fischer

      Nachdem ich mich jetzt doch mal mit Blockly befasst haben,bin ich ja schon mal froh das der Script läuft.

      Nur hab ich das Problem das ich unmengen Fehlermeldungen bekomme.

      Könnte sich das einer der Profis mal bitte anschauen.

      blockly.png

      Fehler


      25.5.2022, 23:12:46.388 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:4:3)
      25.5.2022, 23:12:52.299 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:10:3)
      25.5.2022, 23:12:53.302 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:12:3)
      25.5.2022, 23:12:54.304 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:14:3)
      25.5.2022, 23:12:55.305 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:16:3)
      25.5.2022, 23:12:56.306 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:18:3)
      25.5.2022, 23:12:57.307 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:20:3)
      25.5.2022, 23:12:58.309 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:22:3)
      25.5.2022, 23:12:59.310 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:24:3)
      25.5.2022, 23:13:00.311 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:26:3)
      25.5.2022, 23:13:01.312 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:28:3)

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="on" id="0?yo4)owdA)AJkH,5lkI" x="88" y="-462">
          <field name="OID">0_userdata.0.schalter</field>
          <field name="CONDITION">true</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="control" id=".;c|Dvp3=z]n,D)haT]K">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="text" id="v5(jV8}mj)IRPu[uNpE}">
                  <field name="TEXT">100</field>
                </block>
              </value>
              <next>
                <block type="update" id="q*vs5UTNN*A0UYix82uF">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">tradfri.0.L-65544.lightbulb.state</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="v2j-vsy~!9|ENXpK8jd8">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </next>
            </block>
          </statement>
          <next>
            <block type="on" id="bD)zg|:!d*E-4-]pY7:+">
              <field name="OID">0_userdata.0.schalter</field>
              <field name="CONDITION">false</field>
              <field name="ACK_CONDITION"></field>
              <statement name="STATEMENT">
                <block type="control" id="_.bQ~6tCcKbE.ebIHyL1">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="text" id="MW*EL^|vo|v5#hH:,wq*">
                      <field name="TEXT">90</field>
                    </block>
                  </value>
                  <next>
                    <block type="timeouts_wait" id="5k!SE5UufRPYQzCW19h|">
                      <field name="DELAY">1000</field>
                      <field name="UNIT">ms</field>
                      <next>
                        <block type="control" id="YlTjFPJ*Y$LcZO$xfD^O">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="text" id="DFW@}uP[yWK4sn*Y`Fwi">
                              <field name="TEXT">80</field>
                            </block>
                          </value>
                          <next>
                            <block type="timeouts_wait" id="khhc=2*A~DYX]K}N;nU~">
                              <field name="DELAY">1000</field>
                              <field name="UNIT">ms</field>
                              <next>
                                <block type="control" id="JIx45#Kv{ko8A:raYBTs">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="text" id="pCt7pL);`wi`L,`t_fj}">
                                      <field name="TEXT">70</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="timeouts_wait" id="cg+sYL`8GLN%0+?nBDB;">
                                      <field name="DELAY">1000</field>
                                      <field name="UNIT">ms</field>
                                      <next>
                                        <block type="control" id="jOe].,CstvYngi0eh3(:">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="text" id="7,6E/wQD)a!w;p*oSvy?">
                                              <field name="TEXT">60</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="timeouts_wait" id="IJ}T][d[5l_YQ|hRTI+6">
                                              <field name="DELAY">1000</field>
                                              <field name="UNIT">ms</field>
                                              <next>
                                                <block type="control" id="R,ErQsc8fEsS(R.JRvJN">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="text" id="V#TeP/?b+lW8GZ_8hwXx">
                                                      <field name="TEXT">50</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="timeouts_wait" id=";iva_)@~e/);C`%V=juc">
                                                      <field name="DELAY">1000</field>
                                                      <field name="UNIT">ms</field>
                                                      <next>
                                                        <block type="control" id="=Yx1t=[Ty?:,N8zhdeIe">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="text" id="oCu3!*yYE0GCB8UM8}#y">
                                                              <field name="TEXT">40</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="timeouts_wait" id="~pyht()C_y$a{vZv.=A(">
                                                              <field name="DELAY">1000</field>
                                                              <field name="UNIT">ms</field>
                                                              <next>
                                                                <block type="control" id="cL7V/TFJPrW60-7z9a51">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="text" id="i=O(W(99d1(d+vNz`S/W">
                                                                      <field name="TEXT">30</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="timeouts_wait" id="uZMMFJ,^WP%khB`GfxH#">
                                                                      <field name="DELAY">1000</field>
                                                                      <field name="UNIT">ms</field>
                                                                      <next>
                                                                        <block type="control" id="N^iVDuM$xRdx/i3B^xM2">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="text" id="H6MbK%T~r/E1[W?pGSpB">
                                                                              <field name="TEXT">20</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="timeouts_wait" id="x%%8kqkzZBFH,|;j(CZ0">
                                                                              <field name="DELAY">1000</field>
                                                                              <field name="UNIT">ms</field>
                                                                              <next>
                                                                                <block type="control" id="K$EDr?|Conq,Q=#nA!(t">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                  <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="text" id="^WOUMxKdh2M/QE/XwF]1">
                                                                                      <field name="TEXT">10</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="timeouts_wait" id="4S-Rrw,(V]O^Pakt|g;j">
                                                                                      <field name="DELAY">1000</field>
                                                                                      <field name="UNIT">ms</field>
                                                                                      <next>
                                                                                        <block type="control" id="#tk.)o$N)6y{1v3B%K,L">
                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                          <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                          <value name="VALUE">
                                                                                            <block type="text" id="`^@T{Ba7A#3xw7i9}{(n">
                                                                                              <field name="TEXT">0</field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="timeouts_wait" id="e[{DJ;^LE9#]jF0zY2.!">
                                                                                              <field name="DELAY">1000</field>
                                                                                              <field name="UNIT">ms</field>
                                                                                              <next>
                                                                                                <block type="update" id="+s`4^:Nwp/@+xu]E4B])">
                                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                  <field name="OID">tradfri.0.L-65544.lightbulb.state</field>
                                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                                  <value name="VALUE">
                                                                                                    <block type="logic_boolean" id="Tp4~BliPC=3L395;Sq#!">
                                                                                                      <field name="BOOL">FALSE</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </next>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </next>
        </block>
      </xml>
      
      DJMarc75D Offline
      DJMarc75D Offline
      DJMarc75
      schrieb am zuletzt editiert von DJMarc75
      #2

      @enrico-fischer Die Fehler kommen weil Du Textbausteine anstatt Zahlenbausteine verwendest.

      Screenshot 2022-05-26 054059.png

      Lehrling seit 1975 !!!
      Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
      https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

      Enrico FischerE 1 Antwort Letzte Antwort
      1
      • DJMarc75D DJMarc75

        @enrico-fischer Die Fehler kommen weil Du Textbausteine anstatt Zahlenbausteine verwendest.

        Screenshot 2022-05-26 054059.png

        Enrico FischerE Offline
        Enrico FischerE Offline
        Enrico Fischer
        schrieb am zuletzt editiert von
        #3

        @djmarc75 oh man dank dir. Und wieder was gelernt.

        DJMarc75D 1 Antwort Letzte Antwort
        0
        • Enrico FischerE Enrico Fischer

          @djmarc75 oh man dank dir. Und wieder was gelernt.

          DJMarc75D Offline
          DJMarc75D Offline
          DJMarc75
          schrieb am zuletzt editiert von
          #4

          @enrico-fischer etwas kompakter:

          Screenshot 2022-05-26 084832.png

          <xml xmlns="https://developers.google.com/blockly/xml">
           <block type="on" id="i9/Bv4GE~t6s{5D#bZ*E" x="413" y="-487">
             <field name="OID">Object ID</field>
             <field name="CONDITION">ne</field>
             <field name="ACK_CONDITION"></field>
             <statement name="STATEMENT">
               <block type="controls_if" id="({C*T#wj6;N|cE#w/,un">
                 <mutation else="1"></mutation>
                 <value name="IF0">
                   <block type="on_source" id="].F(gCY)C%oa%6l5}H.]">
                     <field name="ATTR">state.val</field>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="control" id="=5vmNp`ObYqN~x,#H*SV">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">Object ID</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="math_number" id="RhqIZ|-1w~/{?lqx#kfO">
                         <field name="NUM">100</field>
                       </block>
                     </value>
                   </block>
                 </statement>
                 <statement name="ELSE">
                   <block type="control" id="[-JVr+8uI?Opk%XI?;~)">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">Object ID</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="math_number" id="RzymfH$S%p}y#1d%+$NM">
                         <field name="NUM">90</field>
                       </block>
                     </value>
                     <next>
                       <block type="timeouts_wait" id="s#}TxQFcKF5fmLIWQNhG">
                         <field name="DELAY">1000</field>
                         <field name="UNIT">ms</field>
                         <next>
                           <block type="control" id="B*#_Damb1o:hRlAeWG?C">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">Object ID</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="math_number" id="o77m]WIGj,/E.rS}P]pb">
                                 <field name="NUM">80</field>
                               </block>
                             </value>
                             <next>
                               <block type="timeouts_wait" id="[_r8%|#?iu;:S9AKpj}n">
                                 <field name="DELAY">1000</field>
                                 <field name="UNIT">ms</field>
                                 <next>
                                   <block type="comment" id="7$17#O4!XXbarU^kBn:9">
                                     <field name="COMMENT">usw</field>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
             </statement>
           </block>
          </xml>
          

          Lehrling seit 1975 !!!
          Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
          https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

          AsgothianA 1 Antwort Letzte Antwort
          1
          • Enrico FischerE Enrico Fischer

            Nachdem ich mich jetzt doch mal mit Blockly befasst haben,bin ich ja schon mal froh das der Script läuft.

            Nur hab ich das Problem das ich unmengen Fehlermeldungen bekomme.

            Könnte sich das einer der Profis mal bitte anschauen.

            blockly.png

            Fehler


            25.5.2022, 23:12:46.388 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:4:3)
            25.5.2022, 23:12:52.299 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:10:3)
            25.5.2022, 23:12:53.302 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:12:3)
            25.5.2022, 23:12:54.304 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:14:3)
            25.5.2022, 23:12:55.305 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:16:3)
            25.5.2022, 23:12:56.306 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:18:3)
            25.5.2022, 23:12:57.307 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:20:3)
            25.5.2022, 23:12:58.309 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:22:3)
            25.5.2022, 23:12:59.310 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:24:3)
            25.5.2022, 23:13:00.311 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:26:3)
            25.5.2022, 23:13:01.312 [warn ]: javascript.0 (68693) at Object.<anonymous> (script.js.test:28:3)

            <xml xmlns="https://developers.google.com/blockly/xml">
              <block type="on" id="0?yo4)owdA)AJkH,5lkI" x="88" y="-462">
                <field name="OID">0_userdata.0.schalter</field>
                <field name="CONDITION">true</field>
                <field name="ACK_CONDITION"></field>
                <statement name="STATEMENT">
                  <block type="control" id=".;c|Dvp3=z]n,D)haT]K">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="text" id="v5(jV8}mj)IRPu[uNpE}">
                        <field name="TEXT">100</field>
                      </block>
                    </value>
                    <next>
                      <block type="update" id="q*vs5UTNN*A0UYix82uF">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">tradfri.0.L-65544.lightbulb.state</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="v2j-vsy~!9|ENXpK8jd8">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="on" id="bD)zg|:!d*E-4-]pY7:+">
                    <field name="OID">0_userdata.0.schalter</field>
                    <field name="CONDITION">false</field>
                    <field name="ACK_CONDITION"></field>
                    <statement name="STATEMENT">
                      <block type="control" id="_.bQ~6tCcKbE.ebIHyL1">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="text" id="MW*EL^|vo|v5#hH:,wq*">
                            <field name="TEXT">90</field>
                          </block>
                        </value>
                        <next>
                          <block type="timeouts_wait" id="5k!SE5UufRPYQzCW19h|">
                            <field name="DELAY">1000</field>
                            <field name="UNIT">ms</field>
                            <next>
                              <block type="control" id="YlTjFPJ*Y$LcZO$xfD^O">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="text" id="DFW@}uP[yWK4sn*Y`Fwi">
                                    <field name="TEXT">80</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="timeouts_wait" id="khhc=2*A~DYX]K}N;nU~">
                                    <field name="DELAY">1000</field>
                                    <field name="UNIT">ms</field>
                                    <next>
                                      <block type="control" id="JIx45#Kv{ko8A:raYBTs">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="text" id="pCt7pL);`wi`L,`t_fj}">
                                            <field name="TEXT">70</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="timeouts_wait" id="cg+sYL`8GLN%0+?nBDB;">
                                            <field name="DELAY">1000</field>
                                            <field name="UNIT">ms</field>
                                            <next>
                                              <block type="control" id="jOe].,CstvYngi0eh3(:">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="text" id="7,6E/wQD)a!w;p*oSvy?">
                                                    <field name="TEXT">60</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="timeouts_wait" id="IJ}T][d[5l_YQ|hRTI+6">
                                                    <field name="DELAY">1000</field>
                                                    <field name="UNIT">ms</field>
                                                    <next>
                                                      <block type="control" id="R,ErQsc8fEsS(R.JRvJN">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="text" id="V#TeP/?b+lW8GZ_8hwXx">
                                                            <field name="TEXT">50</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="timeouts_wait" id=";iva_)@~e/);C`%V=juc">
                                                            <field name="DELAY">1000</field>
                                                            <field name="UNIT">ms</field>
                                                            <next>
                                                              <block type="control" id="=Yx1t=[Ty?:,N8zhdeIe">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="text" id="oCu3!*yYE0GCB8UM8}#y">
                                                                    <field name="TEXT">40</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="timeouts_wait" id="~pyht()C_y$a{vZv.=A(">
                                                                    <field name="DELAY">1000</field>
                                                                    <field name="UNIT">ms</field>
                                                                    <next>
                                                                      <block type="control" id="cL7V/TFJPrW60-7z9a51">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="text" id="i=O(W(99d1(d+vNz`S/W">
                                                                            <field name="TEXT">30</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="timeouts_wait" id="uZMMFJ,^WP%khB`GfxH#">
                                                                            <field name="DELAY">1000</field>
                                                                            <field name="UNIT">ms</field>
                                                                            <next>
                                                                              <block type="control" id="N^iVDuM$xRdx/i3B^xM2">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="text" id="H6MbK%T~r/E1[W?pGSpB">
                                                                                    <field name="TEXT">20</field>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="timeouts_wait" id="x%%8kqkzZBFH,|;j(CZ0">
                                                                                    <field name="DELAY">1000</field>
                                                                                    <field name="UNIT">ms</field>
                                                                                    <next>
                                                                                      <block type="control" id="K$EDr?|Conq,Q=#nA!(t">
                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                        <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                        <value name="VALUE">
                                                                                          <block type="text" id="^WOUMxKdh2M/QE/XwF]1">
                                                                                            <field name="TEXT">10</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="timeouts_wait" id="4S-Rrw,(V]O^Pakt|g;j">
                                                                                            <field name="DELAY">1000</field>
                                                                                            <field name="UNIT">ms</field>
                                                                                            <next>
                                                                                              <block type="control" id="#tk.)o$N)6y{1v3B%K,L">
                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                <field name="OID">tradfri.0.L-65544.lightbulb.brightness</field>
                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                <value name="VALUE">
                                                                                                  <block type="text" id="`^@T{Ba7A#3xw7i9}{(n">
                                                                                                    <field name="TEXT">0</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <next>
                                                                                                  <block type="timeouts_wait" id="e[{DJ;^LE9#]jF0zY2.!">
                                                                                                    <field name="DELAY">1000</field>
                                                                                                    <field name="UNIT">ms</field>
                                                                                                    <next>
                                                                                                      <block type="update" id="+s`4^:Nwp/@+xu]E4B])">
                                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                        <field name="OID">tradfri.0.L-65544.lightbulb.state</field>
                                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                                        <value name="VALUE">
                                                                                                          <block type="logic_boolean" id="Tp4~BliPC=3L395;Sq#!">
                                                                                                            <field name="BOOL">FALSE</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                      </block>
                                                                                                    </next>
                                                                                                  </block>
                                                                                                </next>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </xml>
            
            AsgothianA Offline
            AsgothianA Offline
            Asgothian
            Developer
            schrieb am zuletzt editiert von Asgothian
            #5

            @enrico-fischer

            Das Skript hat 3 Probleme:

            • das erste Problem hat @DJMarc75 bereits beschrieben. Du steuerst numerische Datenpunkte mit Texten an.
            • das zweite Problem sind die Trigger. Durch einen Trigger auf "ist wahr" und "ist Falsch" werden die trigger auch dann aktiv wenn die Datenpunkte "nur" aktualisiert werden. das ist im Zweifelsfall zu oft. Wenn du die Struktur des Skriptes beibehalten willst empfiehlt sich ein Trägern auf "ist grösser als vorher" an Stelle von "Ist Wahr", bzw. "ist kleiner als vorher" an Stelle von "ist Falsch"
            • das dritte Problem betrifft die Logik. Nehmen wir an jemand schaltet das Licht aus, und entscheidet sich das Licht wieder einzuschalten bevor es ganz auf "dunkel" gedimmt hat. Dann wird am Ende das Licht trotzdem aus sein. (Das kannst du ja mal ausprobieren) Die Lösung dafür ist aber auch einfach:

            Screenshot 2022-05-26 at 08.56.54.png

            Dabei musst du natürlich die Stellen wo noch "Objekt id" drin steht durch die entsprechenden Datenpunkte von Dir ersetzen, sonst geht es nicht. Innerhalb des Triggers den Datenpunkt für die Helligkeit, Im trigger selber den deines Auslösers.

            Als letztes noch ein Hinweis zu dem Baustein "State Value" - dieses ist ein besonderer Baustein aus dem Trigger Bereich - er hat immer genau den Wert des Datenpunktes der den Trigger in dem er sich befindet ausgelöst hat.

            Durch das arbeiten mit dem Intervall wird eine Schleife gebaut die von alleine aufhört sobald die Helligkeit auf 0 sinkt. Sie hört aber auch dann auf wenn der Trigger erneut angestossen wird, z.Bsp. wenn jemand das licht wieder an macht.

            Hinter dem Spoiler findest Du auch den Export.

            <xml xmlns="https://developers.google.com/blockly/xml">
             <variables>
               <variable id="=!=z:.,(wuNYmO3Pk`;(">bri</variable>
               <variable type="interval" id="interval">interval</variable>
             </variables>
             <block type="variables_set" id=".4FA0fwn9jDQ{IW,ah1T" x="113" y="88">
               <field name="VAR" id="=!=z:.,(wuNYmO3Pk`;(">bri</field>
               <value name="VALUE">
                 <block type="math_number" id="S75y|[:{n;d;,c+:5[HK">
                   <field name="NUM">0</field>
                 </block>
               </value>
               <next>
                 <block type="comment" id="f;t{Zq5dUh^}kFdAN7i/">
                   <field name="COMMENT">hier den dp zum ansteuern eintragen</field>
                   <next>
                     <block type="on" id="%@lAlUK8Yae69]m]mzo3">
                       <field name="OID">Object ID</field>
                       <field name="CONDITION">ne</field>
                       <field name="ACK_CONDITION"></field>
                       <statement name="STATEMENT">
                         <block type="timeouts_clearinterval" id="7j772{S$EhYWd`Q!Rnvy">
                           <field name="NAME">interval</field>
                           <next>
                             <block type="comment" id="bXPL=j}W_zSw2d5s|G+M">
                               <field name="COMMENT">Baustein aus Trigger Bereich</field>
                               <next>
                                 <block type="comment" id="^6x+Yv=rsOu.2zFvSO8g">
                                   <field name="COMMENT">Steht auf "Objekt ID"</field>
                                   <next>
                                     <block type="comment" id="Uz~akpiZSNthq0{IL6vF">
                                       <field name="COMMENT">Umstellen auf "Wert"</field>
                                       <next>
                                         <block type="controls_if" id="-%ZE(_-G-r;r--3#7Z%U">
                                           <mutation else="1"></mutation>
                                           <value name="IF0">
                                             <block type="on_source" id="Sk=0IAZb|A,cb#aMV,1[">
                                               <field name="ATTR">state.val</field>
                                             </block>
                                           </value>
                                           <statement name="DO0">
                                             <block type="control" id="j89O8xUkJA|K0)utN8z4">
                                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                               <field name="OID">Object ID</field>
                                               <field name="WITH_DELAY">FALSE</field>
                                               <value name="VALUE">
                                                 <block type="math_number" id="ngo2LERv)F=ot,tRWyvV">
                                                   <field name="NUM">100</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </statement>
                                           <statement name="ELSE">
                                             <block type="variables_set" id="!g$l0g_qII9AGtjy}?nv">
                                               <field name="VAR" id="=!=z:.,(wuNYmO3Pk`;(">bri</field>
                                               <value name="VALUE">
                                                 <block type="get_value" id="FrFFdJh*oR2V:~WI`W}b">
                                                   <field name="ATTR">val</field>
                                                   <field name="OID">select ID</field>
                                                 </block>
                                               </value>
                                               <next>
                                                 <block type="timeouts_setinterval" id="}9|0:G)1P8w81s{d)]_p">
                                                   <field name="NAME">interval</field>
                                                   <field name="INTERVAL">1000</field>
                                                   <field name="UNIT">ms</field>
                                                   <statement name="STATEMENT">
                                                     <block type="math_change" id="5|Gwv~EkQW+`1)]~#nOW">
                                                       <field name="VAR" id="=!=z:.,(wuNYmO3Pk`;(">bri</field>
                                                       <value name="DELTA">
                                                         <shadow type="math_number" id="uB[@t(VeM4!RH})t(E)$">
                                                           <field name="NUM">-10</field>
                                                         </shadow>
                                                       </value>
                                                       <next>
                                                         <block type="control" id="%bzuX{BwN)pSrhHr0DR{">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">Object ID</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <value name="VALUE">
                                                             <block type="math_constrain" id="[Y0#(:z]r[@j(C;@ELgg">
                                                               <value name="VALUE">
                                                                 <shadow type="math_number" id="^=V.g#iE9DU5yA=~C!Hg">
                                                                   <field name="NUM">50</field>
                                                                 </shadow>
                                                                 <block type="variables_get" id="QemRZ)rO3Z%yFUL6P7^o">
                                                                   <field name="VAR" id="=!=z:.,(wuNYmO3Pk`;(">bri</field>
                                                                 </block>
                                                               </value>
                                                               <value name="LOW">
                                                                 <shadow type="math_number" id="3?cVam=h#{xbamAMVPM-">
                                                                   <field name="NUM">0</field>
                                                                 </shadow>
                                                               </value>
                                                               <value name="HIGH">
                                                                 <shadow type="math_number" id="VEuHe0}7xSofk?B`v]01">
                                                                   <field name="NUM">100</field>
                                                                 </shadow>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="controls_if" id="gwT9W3[1O;+8rnU!7#rO">
                                                               <value name="IF0">
                                                                 <block type="logic_compare" id="}h(UwskV2u=p%DxipASc">
                                                                   <field name="OP">LTE</field>
                                                                   <value name="A">
                                                                     <block type="variables_get" id="T$Vgc+Ap-m)C2euOK2[z">
                                                                       <field name="VAR" id="=!=z:.,(wuNYmO3Pk`;(">bri</field>
                                                                     </block>
                                                                   </value>
                                                                   <value name="B">
                                                                     <block type="math_number" id="J!I4lPUp:x/`rju5m[=8">
                                                                       <field name="NUM">0</field>
                                                                     </block>
                                                                   </value>
                                                                 </block>
                                                               </value>
                                                               <statement name="DO0">
                                                                 <block type="timeouts_clearinterval" id="B@6JbwwF]YHB=.o`o34$">
                                                                   <field name="NAME">interval</field>
                                                                 </block>
                                                               </statement>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </statement>
                                                 </block>
                                               </next>
                                             </block>
                                           </statement>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
            </xml>
            

            A.

            ioBroker auf RPi4 - Hardware soweit wie möglich via Zigbee.
            "Shit don't work" ist keine Fehlermeldung, sondern ein Fluch.

            1 Antwort Letzte Antwort
            1
            • DJMarc75D DJMarc75

              @enrico-fischer etwas kompakter:

              Screenshot 2022-05-26 084832.png

              <xml xmlns="https://developers.google.com/blockly/xml">
               <block type="on" id="i9/Bv4GE~t6s{5D#bZ*E" x="413" y="-487">
                 <field name="OID">Object ID</field>
                 <field name="CONDITION">ne</field>
                 <field name="ACK_CONDITION"></field>
                 <statement name="STATEMENT">
                   <block type="controls_if" id="({C*T#wj6;N|cE#w/,un">
                     <mutation else="1"></mutation>
                     <value name="IF0">
                       <block type="on_source" id="].F(gCY)C%oa%6l5}H.]">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                     <statement name="DO0">
                       <block type="control" id="=5vmNp`ObYqN~x,#H*SV">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                         <field name="OID">Object ID</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="math_number" id="RhqIZ|-1w~/{?lqx#kfO">
                             <field name="NUM">100</field>
                           </block>
                         </value>
                       </block>
                     </statement>
                     <statement name="ELSE">
                       <block type="control" id="[-JVr+8uI?Opk%XI?;~)">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                         <field name="OID">Object ID</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="math_number" id="RzymfH$S%p}y#1d%+$NM">
                             <field name="NUM">90</field>
                           </block>
                         </value>
                         <next>
                           <block type="timeouts_wait" id="s#}TxQFcKF5fmLIWQNhG">
                             <field name="DELAY">1000</field>
                             <field name="UNIT">ms</field>
                             <next>
                               <block type="control" id="B*#_Damb1o:hRlAeWG?C">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">Object ID</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="math_number" id="o77m]WIGj,/E.rS}P]pb">
                                     <field name="NUM">80</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="timeouts_wait" id="[_r8%|#?iu;:S9AKpj}n">
                                     <field name="DELAY">1000</field>
                                     <field name="UNIT">ms</field>
                                     <next>
                                       <block type="comment" id="7$17#O4!XXbarU^kBn:9">
                                         <field name="COMMENT">usw</field>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </statement>
                   </block>
                 </statement>
               </block>
              </xml>
              

              AsgothianA Offline
              AsgothianA Offline
              Asgothian
              Developer
              schrieb am zuletzt editiert von
              #6

              @djmarc75 sagte in Lichter dimmen:

              @enrico-fischer etwas kompakter:

              Screenshot 2022-05-26 084832.png

              <xml xmlns="https://developers.google.com/blockly/xml">
               <block type="on" id="i9/Bv4GE~t6s{5D#bZ*E" x="413" y="-487">
                 <field name="OID">Object ID</field>
                 <field name="CONDITION">ne</field>
                 <field name="ACK_CONDITION"></field>
                 <statement name="STATEMENT">
                   <block type="controls_if" id="({C*T#wj6;N|cE#w/,un">
                     <mutation else="1"></mutation>
                     <value name="IF0">
                       <block type="on_source" id="].F(gCY)C%oa%6l5}H.]">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                     <statement name="DO0">
                       <block type="control" id="=5vmNp`ObYqN~x,#H*SV">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                         <field name="OID">Object ID</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="math_number" id="RhqIZ|-1w~/{?lqx#kfO">
                             <field name="NUM">100</field>
                           </block>
                         </value>
                       </block>
                     </statement>
                     <statement name="ELSE">
                       <block type="control" id="[-JVr+8uI?Opk%XI?;~)">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                         <field name="OID">Object ID</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="math_number" id="RzymfH$S%p}y#1d%+$NM">
                             <field name="NUM">90</field>
                           </block>
                         </value>
                         <next>
                           <block type="timeouts_wait" id="s#}TxQFcKF5fmLIWQNhG">
                             <field name="DELAY">1000</field>
                             <field name="UNIT">ms</field>
                             <next>
                               <block type="control" id="B*#_Damb1o:hRlAeWG?C">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">Object ID</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="math_number" id="o77m]WIGj,/E.rS}P]pb">
                                     <field name="NUM">80</field>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="timeouts_wait" id="[_r8%|#?iu;:S9AKpj}n">
                                     <field name="DELAY">1000</field>
                                     <field name="UNIT">ms</field>
                                     <next>
                                       <block type="comment" id="7$17#O4!XXbarU^kBn:9">
                                         <field name="COMMENT">usw</field>
                                       </block>
                                     </next>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </statement>
                   </block>
                 </statement>
               </block>
              </xml>
              

              Diese Variante mag kompakter und ressourcenschonend sein, ist aber ansonsten eher schlecht. Eine Ablaufsteuerung mit Pausen hat so seine Risiken.

              A.

              ioBroker auf RPi4 - Hardware soweit wie möglich via Zigbee.
              "Shit don't work" ist keine Fehlermeldung, sondern ein Fluch.

              DJMarc75D 1 Antwort Letzte Antwort
              0
              • AsgothianA Asgothian

                @djmarc75 sagte in Lichter dimmen:

                @enrico-fischer etwas kompakter:

                Screenshot 2022-05-26 084832.png

                <xml xmlns="https://developers.google.com/blockly/xml">
                 <block type="on" id="i9/Bv4GE~t6s{5D#bZ*E" x="413" y="-487">
                   <field name="OID">Object ID</field>
                   <field name="CONDITION">ne</field>
                   <field name="ACK_CONDITION"></field>
                   <statement name="STATEMENT">
                     <block type="controls_if" id="({C*T#wj6;N|cE#w/,un">
                       <mutation else="1"></mutation>
                       <value name="IF0">
                         <block type="on_source" id="].F(gCY)C%oa%6l5}H.]">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="control" id="=5vmNp`ObYqN~x,#H*SV">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">Object ID</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="math_number" id="RhqIZ|-1w~/{?lqx#kfO">
                               <field name="NUM">100</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                       <statement name="ELSE">
                         <block type="control" id="[-JVr+8uI?Opk%XI?;~)">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">Object ID</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="math_number" id="RzymfH$S%p}y#1d%+$NM">
                               <field name="NUM">90</field>
                             </block>
                           </value>
                           <next>
                             <block type="timeouts_wait" id="s#}TxQFcKF5fmLIWQNhG">
                               <field name="DELAY">1000</field>
                               <field name="UNIT">ms</field>
                               <next>
                                 <block type="control" id="B*#_Damb1o:hRlAeWG?C">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">Object ID</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="math_number" id="o77m]WIGj,/E.rS}P]pb">
                                       <field name="NUM">80</field>
                                     </block>
                                   </value>
                                   <next>
                                     <block type="timeouts_wait" id="[_r8%|#?iu;:S9AKpj}n">
                                       <field name="DELAY">1000</field>
                                       <field name="UNIT">ms</field>
                                       <next>
                                         <block type="comment" id="7$17#O4!XXbarU^kBn:9">
                                           <field name="COMMENT">usw</field>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </statement>
                 </block>
                </xml>
                

                Diese Variante mag kompakter und ressourcenschonend sein, ist aber ansonsten eher schlecht. Eine Ablaufsteuerung mit Pausen hat so seine Risiken.

                A.

                DJMarc75D Offline
                DJMarc75D Offline
                DJMarc75
                schrieb am zuletzt editiert von
                #7

                @asgothian said in Lichter dimmen:

                Eine Ablaufsteuerung mit Pausen hat so seine Risiken.

                Da hast Du recht. Ich war grad auch am Intervall-basteln, aber Du warst eindeutig flinker 😁

                Lehrling seit 1975 !!!
                Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
                https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

                1 Antwort Letzte Antwort
                0
                • Enrico FischerE Offline
                  Enrico FischerE Offline
                  Enrico Fischer
                  schrieb am zuletzt editiert von
                  #8

                  Okay danke erstmal an alle. Jetzt hab ich wieder was zu tun. Aber so langsam komme ich dahinter.

                  1 Antwort Letzte Antwort
                  0

                  Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

                  Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

                  Mit deinem Input könnte dieser Beitrag noch besser werden 💗

                  Registrieren Anmelden
                  Antworten
                  • In einem neuen Thema antworten
                  Anmelden zum Antworten
                  • Älteste zuerst
                  • Neuste zuerst
                  • Meiste Stimmen


                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  550

                  Online

                  32.8k

                  Benutzer

                  82.8k

                  Themen

                  1.3m

                  Beiträge
                  Community
                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                  ioBroker Community 2014-2025
                  logo
                  • Anmelden

                  • Du hast noch kein Konto? Registrieren

                  • Anmelden oder registrieren, um zu suchen
                  • Erster Beitrag
                    Letzter Beitrag
                  0
                  • Home
                  • Aktuell
                  • Tags
                  • Ungelesen 0
                  • Kategorien
                  • Unreplied
                  • Beliebt
                  • GitHub
                  • Docu
                  • Hilfe