Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Skript mit WLED und Online Status

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Skript mit WLED und Online Status

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @maik5066 last edited by

      @maik5066 und was hast du jetzt speziell für Probleme?
      Was genau passiert (nicht)?

      Wie sieht das Skript aus?

      https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

      M 1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active @maik5066 last edited by

        @maik5066 sagte in Skript mit WLED und Online Status:

        schalte die Controller erst mit Strom und dann gehen sie online

        weiß zwar nicht welchen Controller du verwendest, sinniger wäre es aber, mittels Relais, die Stripes an/aus zu schalten und dein Controller selbst bleibt on

        1 Reply Last reply Reply Quote 0
        • M
          maik5066 @Homoran last edited by

          @homoran
          Entschuldige ich bin erst neu, er schreibt die Datenpunkte mit Farbe und dimmung nicht. Ich wollte den Online Status mit falls: prüfe ob online und dann mache : steure Farbe und Dimmung und diese werte schreibt er nicht mehr in einem Skript wled_skript.txt

          Ich habe dir das Skript als TXT angehangen.

          1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators last edited by Homoran

            @maik5066 sagte in Skript mit WLED und Online Status:

            Ich habe dir das Skript als TXT angehangen.

            das xml nutzt mir am Handy nichts.

            deswegen steht im verlinkten Thread

            Bei Blocklys bitte immer einen Screenshot des Blocklys, damit man auch ohne Zugriff auf eine ioBroker Installation helfen kann. Den XML Export zusätzlich in code-tags und ggf. Spoiler posten.

            M 1 Reply Last reply Reply Quote 0
            • M
              maik5066 @Homoran last edited by

              Skript.JPG Skript2.JPG

              <xml xmlns="https://developers.google.com/blockly/xml">
                <variables>
                  <variable type="interval" id="Intervall">Intervall</variable>
                </variables>
                <block type="on" id="`@mfc^ejQ8QyU{c0S(D$" x="-507" y="-400">
                  <field name="OID">0_userdata.0.Datenpunkte.Licht.Erdgeschoss_Ambiente.Erdgeschoss_Ambiente</field>
                  <field name="CONDITION">any</field>
                  <field name="ACK_CONDITION"></field>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="?cCW{!d#-r@hsdJ,pG7Y">
                      <mutation else="1"></mutation>
                      <value name="IF0">
                        <block type="logic_compare" id="$35V6)M`{NM=?HnZImC!">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="Wm0gvk]I|A5b2p?][%#P">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.Datenpunkte.Licht.Erdgeschoss_Ambiente.Erdgeschoss_Ambiente</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="}wj3)OcuSWu7^bw.w*%I">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="$SIc7unZ4arb;@`{hGy)">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">alias.0.Erdgeschoss.Esszimmer.Esszimmer_LED.ON</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="5{Fc8oKr~Aqng#tT.?x7">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="At{$N?TW1)4nS9.R;*aN">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">alias.0.Erdgeschoss.Kueche.Kueche_LED.ON</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="84=[T3P}6FG(9,FuN2,u">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="Z5H6{IzIKyB%QqXDOgB=">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">alias.0.Erdgeschoss.Kueche.Licht_herd.ON</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="o`SG8diE+/$h#7~Nq.6y">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="Hy4FeT,v$k[Tm]*NhGkE">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">alias.0.Erdgeschoss.Wohnzimmer.Wohnzimmer_LED.ON_SET</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="S4wSkQm`(4-okM;h{034">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="XWIMS7^!3e-l!hM6cHh(">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">alias.0.Erdgeschoss.Kueche.Licht_herd.ON</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="{xdgup=@F*=-eMfCfmIr">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="vra|W$o~z^+]T-.UkRoC">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">alias.0.Erdgeschoss.Wohnzimmer.Wohnzimmer_Lampe.ON</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="=7AiE,Hf70uJ~u9bxjq=">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="update" id="cT|[4=[+^]@cK.n-P;sY">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">alias.0.Erdgeschoss.Wohnzimmer.Wohnzimmer_Lampe.DIMMER</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="Al2Mwu6X;8qogs1bTO/~">
                                                      <field name="NUM">50</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="s7m`k-V]*+:*|DwXT}`g">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">alias.0.Erdgeschoss.Wohnzimmer.Wohnzimmer_Lampe.RGB</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="text" id="SoJkA:3Ki@7q~Ko3Z+*D">
                                                          <field name="TEXT">#7883ff</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="=lTu?8{DU!9F0beM~1#i">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">wled.0.4cebd610703f.ps</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="math_number" id="nG:E{CY6)%Ty]pZQ3a.k">
                                                              <field name="NUM">4</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="timeouts_setinterval" id="o:t^ngdZC`t:/1)CSjGF">
                                                              <field name="NAME">Intervall</field>
                                                              <field name="INTERVAL">8</field>
                                                              <field name="UNIT">sec</field>
                                                              <statement name="STATEMENT">
                                                                <block type="controls_if" id="Jn@q3)XzR0LOQpm70+E$">
                                                                  <value name="IF0">
                                                                    <block type="logic_compare" id="@tVQ*.*$X:Wx(`tr2K;1">
                                                                      <field name="OP">EQ</field>
                                                                      <value name="A">
                                                                        <block type="get_value" id="imF8_f%I/TJJLL%,wTE@">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">wled.0.0cb815b8b20c._info._online</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="logic_boolean" id="Crypq(B4/,=4Mg77vmzA">
                                                                          <field name="BOOL">TRUE</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <statement name="DO0">
                                                                    <block type="control" id="4S3/h07BCaIo)[U=)ywr">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                      <field name="OID">wled.0.0cb815b8b20c.seg.0.col.0_HEX</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="text" id="g@c-oHB+c,WBAb0#jR(*">
                                                                          <field name="TEXT">#7883ff</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="control" id="8%?|2:[_u-D0!m%fV9?F">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">wled.0.0cb815b8b20c.bri</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_number" id="5LAQ?7Qj[J])u,lT1vkM">
                                                                              <field name="NUM">5</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                  <next>
                                                                    <block type="controls_if" id="L-8Lr90%Z6OqSW9iMD(X">
                                                                      <value name="IF0">
                                                                        <block type="logic_compare" id="tN-V;j|~-q$o:sI9!1uK">
                                                                          <field name="OP">EQ</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="#*SWesgg]ns-_~rT):Pt">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">wled.0.bcff4d3da988._info._online</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="logic_boolean" id="N*IdiuiS}hjLNF;:XDS}">
                                                                              <field name="BOOL">TRUE</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <statement name="DO0">
                                                                        <block type="control" id="ui9*kHGT.L^T;.JAe+@_">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">wled.0.bcff4d3debe0.seg.0.on</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="logic_boolean" id="E;-XPa2P1U)!_Or6rRy]">
                                                                              <field name="BOOL">FALSE</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="control" id="=;Bu{Utut2YpYT[4[NXi">
                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                              <field name="OID">wled.0.bcff4d3e23a9.seg.0.on</field>
                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                              <value name="VALUE">
                                                                                <block type="logic_boolean" id="iqUjeqzVch:ZwVi8YUxZ">
                                                                                  <field name="BOOL">FALSE</field>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="control" id="$ZQjjd$,dZ6.|)_0$UyW">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                  <field name="OID">wled.0.bcff4d3da988.seg.0.col.0_HEX</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="text" id="KBxK4H-GnhCvKE^.;}$$">
                                                                                      <field name="TEXT">#7883ff</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="control" id=".?2B`BI8?*vU=WwzS~f+">
                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                      <field name="OID">wled.0.bcff4d3da988.bri</field>
                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                      <value name="VALUE">
                                                                                        <block type="math_number" id="O#t#t1;CZW95e:I,n%nX">
                                                                                          <field name="NUM">10</field>
                                                                                        </block>
                                                                                      </value>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </statement>
                                                                      <next>
                                                                        <block type="controls_if" id="?:x_mfRx|7$~TUc8#vX-">
                                                                          <value name="IF0">
                                                                            <block type="logic_compare" id="Jn8DIjQ:nlep?+/cm?Rb">
                                                                              <field name="OP">EQ</field>
                                                                              <value name="A">
                                                                                <block type="get_value" id="~J6,2]v86_$9r#3OpYXk">
                                                                                  <field name="ATTR">val</field>
                                                                                  <field name="OID">wled.0.4cebd60c2e6f._info._online</field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <block type="logic_boolean" id="]pz_c)2Q0=RJi)OQJ%Cz">
                                                                                  <field name="BOOL">TRUE</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <statement name="DO0">
                                                                            <block type="control" id=")$=5_(CM$j6sW.o+L;xh">
                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                              <field name="OID">wled.0.4cebd60c2e6f.seg.0.col.0_HEX</field>
                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                              <value name="VALUE">
                                                                                <block type="text" id="6|h8v+-x2D#^g`I#wn:h">
                                                                                  <field name="TEXT">#7883ff</field>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="control" id="O0F7OVis1W%W1PxswbLT">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                  <field name="OID">wled.0.4cebd60c2e6f.bri</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="math_number" id="i;si@bS5_DQ*iewPRx|:">
                                                                                      <field name="NUM">20</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </statement>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </statement>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <statement name="ELSE">
                        <block type="control" id=",NDdTx4,Pg:cVK*Djk4q">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">alias.0.Erdgeschoss.Kueche.Kueche_LED.ON</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="pf#=EQkMS{i@E`.xM-S:">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="^XVW4ui#5Bml~oO0Z*x3">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">alias.0.Erdgeschoss.Kueche.Licht_herd.ON</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="lePA[LhUG0}+3Zj9!L@I">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id=".cjNj|yPqcZx=0XyhMWu">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">alias.0.Erdgeschoss.Wohnzimmer.Wohnzimmer_Lampe.ON</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="QL4vK.)#o4LQHV2Y)_Po">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="1jUQMBKe#E)p8FGDFOw%">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">alias.0.Erdgeschoss.Wohnzimmer.Wohnzimmer_LED.ON_SET</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="50t]!o1sBlO/PROv;=9/">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="8/J4`hQ~:2g=Db.S12R!">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">alias.0.Erdgeschoss.Esszimmer.Esszimmer_LED.ON</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id=":,T{bu]Fq)T5r^H![0]e">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </xml>
              
              Homoran 1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @maik5066 last edited by

                @maik5066 Danke!

                fehlen da Zeilen/Blöcke?
                Ausschnitte helfen nicht wirklich um ein Skript nachzuvollziehen und einen Fehler zu finden.

                M 1 Reply Last reply Reply Quote 0
                • M
                  maik5066 @Homoran last edited by

                  @homoran

                  Entschuldige der blöden Nachfrage aber wie kann ich das Skript als jpg exportieren und nicht als screenshot

                  Homoran 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @maik5066 last edited by Homoran

                    @maik5066 Screenshot ist doch ok!
                    jpg nutzt mir am Handy auch nix.

                    ggf paarmal auf (-) klicken zum verkleinern. Aber nicht zu oft 😉

                    ich vermisse die Verzögerung/ Pause nach dem anschalten

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      maik5066 @Homoran last edited by

                      @homoran
                      Ich habe den Screenshot gestückelt Skript.JPG

                      Homoran 1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @maik5066 last edited by

                        @maik5066 Danke! das h7lft!

                        da ist keine Verzögerung, statt dessen ein Intervall.

                        außerden aktualisierst du beteits vorher den Dimmer statt ihn zu steuern.
                        auch die anderen Steuerbefehle können nicht wirken, da sie zeitgleich mit on gesendet wrden (vorausgesetzt on ist power on der controller

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          maik5066 @Homoran last edited by

                          @homoran Skript2.JPG

                          ich habe jetzte eine Pause davor geschalten

                          Homoran 1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @maik5066 last edited by Homoran

                            @maik5066 sagte in Skript mit WLED und Online Status:

                            ich habe jetzte eine Pause davor geschalten

                            und was ist mit den Befehlen zum dimmen und RGB und preset?
                            die bekommt der Controller doch auch nicht mit

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              maik5066 @Homoran last edited by

                              @homoran

                              es werden mehre Controller geschalten, die Dimmer und RGB vor der Prüfung der Online Status sind dauerhaft Online. Skript.JPG

                              die 2 Steuerung ON/OFF sind für 2 Segmente die ich abschalte, diese werden nicht mit RGB und Dimmer geschalten

                              Homoran 1 Reply Last reply Reply Quote 0
                              • Homoran
                                Homoran Global Moderator Administrators @maik5066 last edited by

                                @maik5066 sagte in Skript mit WLED und Online Status:

                                die Dimmer und RGB vor der Prüfung der Online Status sind dauerhaft Online.

                                dann aber den Dimmer steuern, nicht aktualisieren!

                                wie läuft es denn jetzt?

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  maik5066 @Homoran last edited by

                                  @homoran
                                  Danke dir, das habe ich jetzt angepasst. Ich habe mir mehrere Signale eingefügt um zu prüfen wo das Skript hängt er kommt nur bis WLED1 dann hängt er

                                  Skript.JPG

                                  Homoran 2 Replies Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @maik5066 last edited by

                                    @maik5066 Du solltest Namen in den Objekten vergeben!
                                    Solange die IDs alle gleich heißen kann man ichts nachvollziehen!

                                    was ist der Unterschied zum zweiten falls?

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

                                      @homoran sagte in Skript mit WLED und Online Status:

                                      Du solltest Namen in den Objekten vergeben!

                                      wenn man es importiert sieht man es 😜 aber ich weiß....handy
                                      440366b0-09c5-4bc7-9a27-a3ac20c1e6ce-image.png

                                      Homoran 1 Reply Last reply Reply Quote 1
                                      • Homoran
                                        Homoran Global Moderator Administrators @crunchip last edited by Homoran

                                        @crunchip sagte in Skript mit WLED und Online Status:

                                        wenn man es importiert sieht man es

                                        dann frag ich mich warum es im Original nicht so aussieht!? 🤔

                                        EDIT: klar! du hast eben nicht die einheitlichen Namen, sondern nur die IDs!

                                        1 Reply Last reply Reply Quote 1
                                        • Homoran
                                          Homoran Global Moderator Administrators @maik5066 last edited by

                                          @maik5066 dann ist der zweite noch nicht online.

                                          Setz die Pause mal (deutlich) höher

                                          M 1 Reply Last reply Reply Quote 0
                                          • M
                                            maik5066 @Homoran last edited by

                                            @homoran
                                            Ich habe das Skript jetzt angepasst , wie lange so ich den Timeout einstellen.

                                            <xml xmlns="https://developers.google.com/blockly/xml">
                                              <block type="on" id="`@mfc^ejQ8QyU{c0S(D$" x="-507" y="-400">
                                                <field name="OID">0_userdata.0.Datenpunkte.Licht.Erdgeschoss_Ambiente.Erdgeschoss_Ambiente</field>
                                                <field name="CONDITION">any</field>
                                                <field name="ACK_CONDITION"></field>
                                                <statement name="STATEMENT">
                                                  <block type="controls_if" id="?cCW{!d#-r@hsdJ,pG7Y">
                                                    <mutation else="1"></mutation>
                                                    <value name="IF0">
                                                      <block type="logic_compare" id="$35V6)M`{NM=?HnZImC!">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="get_value" id="Wm0gvk]I|A5b2p?][%#P">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">0_userdata.0.Datenpunkte.Licht.Erdgeschoss_Ambiente.Erdgeschoss_Ambiente</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_boolean" id="}wj3)OcuSWu7^bw.w*%I">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="control" id="$SIc7unZ4arb;@`{hGy)">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">alias.0.Erdgeschoss.Esszimmer.Esszimmer_LED.ON</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="5{Fc8oKr~Aqng#tT.?x7">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="At{$N?TW1)4nS9.R;*aN">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">alias.0.Erdgeschoss.Kueche.Kueche_LED.ON</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="84=[T3P}6FG(9,FuN2,u">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="Z5H6{IzIKyB%QqXDOgB=">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">alias.0.Erdgeschoss.Kueche.Licht_herd.ON</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="o`SG8diE+/$h#7~Nq.6y">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="Hy4FeT,v$k[Tm]*NhGkE">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">alias.0.Erdgeschoss.Wohnzimmer.Wohnzimmer_LED.ON_SET</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="S4wSkQm`(4-okM;h{034">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="control" id="XWIMS7^!3e-l!hM6cHh(">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">alias.0.Erdgeschoss.Kueche.Licht_herd.ON</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="logic_boolean" id="{xdgup=@F*=-eMfCfmIr">
                                                                            <field name="BOOL">TRUE</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="control" id="vra|W$o~z^+]T-.UkRoC">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">alias.0.Erdgeschoss.Wohnzimmer.Wohnzimmer_Lampe.ON</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="logic_boolean" id="=7AiE,Hf70uJ~u9bxjq=">
                                                                                <field name="BOOL">TRUE</field>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="control" id="0U4@*d.%::wY-lv2[.5$">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">alias.0.Erdgeschoss.Wohnzimmer.Wohnzimmer_Lampe.DIMMER</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="math_number" id="@WDH{@kC@X#1:)/Hig+l">
                                                                                    <field name="NUM">50</field>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="control" id="s7m`k-V]*+:*|DwXT}`g">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                    <field name="OID">alias.0.Erdgeschoss.Wohnzimmer.Wohnzimmer_Lampe.RGB</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="text" id="SoJkA:3Ki@7q~Ko3Z+*D">
                                                                                        <field name="TEXT">#7883ff</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <next>
                                                                                      <block type="control" id="=lTu?8{DU!9F0beM~1#i">
                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                        <field name="OID">wled.0.4cebd610703f.ps</field>
                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                        <value name="VALUE">
                                                                                          <block type="math_number" id="nG:E{CY6)%Ty]pZQ3a.k">
                                                                                            <field name="NUM">4</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="timeouts_wait" id="}pMyyYTEae#(`hY^8Hva">
                                                                                            <field name="DELAY">8</field>
                                                                                            <field name="UNIT">sec</field>
                                                                                            <next>
                                                                                              <block type="controls_if" id="Jn@q3)XzR0LOQpm70+E$">
                                                                                                <value name="IF0">
                                                                                                  <block type="logic_compare" id="@tVQ*.*$X:Wx(`tr2K;1">
                                                                                                    <field name="OP">EQ</field>
                                                                                                    <value name="A">
                                                                                                      <block type="get_value" id="imF8_f%I/TJJLL%,wTE@">
                                                                                                        <field name="ATTR">val</field>
                                                                                                        <field name="OID">wled.0.0cb815b8b20c._info._online</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <value name="B">
                                                                                                      <block type="logic_boolean" id="Crypq(B4/,=4Mg77vmzA">
                                                                                                        <field name="BOOL">TRUE</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <statement name="DO0">
                                                                                                  <block type="control" id="4S3/h07BCaIo)[U=)ywr">
                                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                    <field name="OID">wled.0.0cb815b8b20c.seg.0.col.0_HEX</field>
                                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                                    <value name="VALUE">
                                                                                                      <block type="text" id="g@c-oHB+c,WBAb0#jR(*">
                                                                                                        <field name="TEXT">#7883ff</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <next>
                                                                                                      <block type="control" id="8%?|2:[_u-D0!m%fV9?F">
                                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                        <field name="OID">wled.0.0cb815b8b20c.bri</field>
                                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                                        <value name="VALUE">
                                                                                                          <block type="math_number" id="5LAQ?7Qj[J])u,lT1vkM">
                                                                                                            <field name="NUM">5</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <next>
                                                                                                          <block type="debug" id="/LYg*c48dCYjz?9,yglV">
                                                                                                            <field name="Severity">log</field>
                                                                                                            <value name="TEXT">
                                                                                                              <shadow type="text" id="M?*~+Z4=XJIh!8N@c4k_">
                                                                                                                <field name="TEXT">WLED1</field>
                                                                                                              </shadow>
                                                                                                            </value>
                                                                                                          </block>
                                                                                                        </next>
                                                                                                      </block>
                                                                                                    </next>
                                                                                                  </block>
                                                                                                </statement>
                                                                                                <next>
                                                                                                  <block type="controls_if" id="L-8Lr90%Z6OqSW9iMD(X">
                                                                                                    <value name="IF0">
                                                                                                      <block type="logic_compare" id="tN-V;j|~-q$o:sI9!1uK">
                                                                                                        <field name="OP">EQ</field>
                                                                                                        <value name="A">
                                                                                                          <block type="get_value" id="#*SWesgg]ns-_~rT):Pt">
                                                                                                            <field name="ATTR">val</field>
                                                                                                            <field name="OID">wled.0.bcff4d3da988._info._online</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <value name="B">
                                                                                                          <block type="logic_boolean" id="N*IdiuiS}hjLNF;:XDS}">
                                                                                                            <field name="BOOL">TRUE</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <statement name="DO0">
                                                                                                      <block type="control" id="ui9*kHGT.L^T;.JAe+@_">
                                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                        <field name="OID">wled.0.bcff4d3debe0.seg.0.on</field>
                                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                                        <value name="VALUE">
                                                                                                          <block type="logic_boolean" id="E;-XPa2P1U)!_Or6rRy]">
                                                                                                            <field name="BOOL">FALSE</field>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <next>
                                                                                                          <block type="control" id="=;Bu{Utut2YpYT[4[NXi">
                                                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                            <field name="OID">wled.0.bcff4d3e23a9.seg.0.on</field>
                                                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                                                            <value name="VALUE">
                                                                                                              <block type="logic_boolean" id="iqUjeqzVch:ZwVi8YUxZ">
                                                                                                                <field name="BOOL">FALSE</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <next>
                                                                                                              <block type="control" id="$ZQjjd$,dZ6.|)_0$UyW">
                                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                <field name="OID">wled.0.bcff4d3da988.seg.0.col.0_HEX</field>
                                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                                <value name="VALUE">
                                                                                                                  <block type="text" id="KBxK4H-GnhCvKE^.;}$$">
                                                                                                                    <field name="TEXT">#7883ff</field>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                                <next>
                                                                                                                  <block type="control" id=".?2B`BI8?*vU=WwzS~f+">
                                                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                    <field name="OID">wled.0.bcff4d3da988.bri</field>
                                                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                                                    <value name="VALUE">
                                                                                                                      <block type="math_number" id="O#t#t1;CZW95e:I,n%nX">
                                                                                                                        <field name="NUM">10</field>
                                                                                                                      </block>
                                                                                                                    </value>
                                                                                                                    <next>
                                                                                                                      <block type="debug" id="{p(x}3L]KdH!~mXh,j[!">
                                                                                                                        <field name="Severity">log</field>
                                                                                                                        <value name="TEXT">
                                                                                                                          <shadow type="text" id="_Pxkw~EFKjqGD1g]pvY_">
                                                                                                                            <field name="TEXT">WLED2</field>
                                                                                                                          </shadow>
                                                                                                                        </value>
                                                                                                                      </block>
                                                                                                                    </next>
                                                                                                                  </block>
                                                                                                                </next>
                                                                                                              </block>
                                                                                                            </next>
                                                                                                          </block>
                                                                                                        </next>
                                                                                                      </block>
                                                                                                    </statement>
                                                                                                    <next>
                                                                                                      <block type="controls_if" id="?:x_mfRx|7$~TUc8#vX-">
                                                                                                        <value name="IF0">
                                                                                                          <block type="logic_compare" id="Jn8DIjQ:nlep?+/cm?Rb">
                                                                                                            <field name="OP">EQ</field>
                                                                                                            <value name="A">
                                                                                                              <block type="get_value" id="~J6,2]v86_$9r#3OpYXk">
                                                                                                                <field name="ATTR">val</field>
                                                                                                                <field name="OID">wled.0.4cebd60c2e6f._info._online</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <value name="B">
                                                                                                              <block type="logic_boolean" id="]pz_c)2Q0=RJi)OQJ%Cz">
                                                                                                                <field name="BOOL">TRUE</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                          </block>
                                                                                                        </value>
                                                                                                        <statement name="DO0">
                                                                                                          <block type="control" id=")$=5_(CM$j6sW.o+L;xh">
                                                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                            <field name="OID">wled.0.4cebd60c2e6f.seg.0.col.0_HEX</field>
                                                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                                                            <value name="VALUE">
                                                                                                              <block type="text" id="6|h8v+-x2D#^g`I#wn:h">
                                                                                                                <field name="TEXT">#7883ff</field>
                                                                                                              </block>
                                                                                                            </value>
                                                                                                            <next>
                                                                                                              <block type="control" id="O0F7OVis1W%W1PxswbLT">
                                                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                                <field name="OID">wled.0.4cebd60c2e6f.bri</field>
                                                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                                                <value name="VALUE">
                                                                                                                  <block type="math_number" id="i;si@bS5_DQ*iewPRx|:">
                                                                                                                    <field name="NUM">20</field>
                                                                                                                  </block>
                                                                                                                </value>
                                                                                                                <next>
                                                                                                                  <block type="debug" id="@mU`czKce{u)hv;pXB%W">
                                                                                                                    <field name="Severity">log</field>
                                                                                                                    <value name="TEXT">
                                                                                                                      <shadow type="text" id="yRyN1=_GBK#5OB1$N+Bq">
                                                                                                                        <field name="TEXT">WLED3</field>
                                                                                                                      </shadow>
                                                                                                                    </value>
                                                                                                                  </block>
                                                                                                                </next>
                                                                                                              </block>
                                                                                                            </next>
                                                                                                          </block>
                                                                                                        </statement>
                                                                                                      </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>
                                                    <statement name="ELSE">
                                                      <block type="control" id=",NDdTx4,Pg:cVK*Djk4q">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">alias.0.Erdgeschoss.Kueche.Kueche_LED.ON</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="pf#=EQkMS{i@E`.xM-S:">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="^XVW4ui#5Bml~oO0Z*x3">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">alias.0.Erdgeschoss.Kueche.Licht_herd.ON</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="lePA[LhUG0}+3Zj9!L@I">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id=".cjNj|yPqcZx=0XyhMWu">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">alias.0.Erdgeschoss.Wohnzimmer.Wohnzimmer_Lampe.ON</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="QL4vK.)#o4LQHV2Y)_Po">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="1jUQMBKe#E)p8FGDFOw%">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">alias.0.Erdgeschoss.Wohnzimmer.Wohnzimmer_LED.ON_SET</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="50t]!o1sBlO/PROv;=9/">
                                                                        <field name="BOOL">FALSE</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="control" id="8/J4`hQ~:2g=Db.S12R!">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">alias.0.Erdgeschoss.Esszimmer.Esszimmer_LED.ON</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="logic_boolean" id=":,T{bu]Fq)T5r^H![0]e">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                  </block>
                                                </statement>
                                              </block>
                                            </xml>
                                            
                                            Homoran 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            842
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

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