Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Blockly funktioniert nur manchmal

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Blockly funktioniert nur manchmal

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

      Hallo.

      Ich habe zwei blockly Waschmaschinenerkennung. Einmal Trockner einmal Waschmaschine

      Einmal funktionieren sie, einmal nicht.

      Dies denke ich erst seit ich den Java Adapter geupdatet habe.

      Gibt's da ein Problem?

      Mit dem Script setze ich einen Datenpunkt auf false. Müsste ich da was beachten?

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

        @robbi12 sagte in Blockly funktioniert nur manchmal:

        Müsste ich da was beachten?

        Ja!

        Du müsstest unds deine Skripte mal zeigen

        1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Robbi12 last edited by

          @robbi12 sagte in Blockly funktioniert nur manchmal:

          Müsste ich da was beachten?

          Ja. Die Blocklys bekannt machen. Wie soll mann denn sonst dazu was sagen?
          Glaskugeln sind alle in der Spülmaschine.

          1 Reply Last reply Reply Quote 0
          • R
            Robbi12 last edited by

            Also mit der alten Version Java hatte es funktioniert.

            Nun habe ich so viel geändert, dass ich nicht mehr weiß was.

            <xml xmlns="https://developers.google.com/blockly/xml">
              <variables>
                <variable id="y~7J[6y=#n^R6V6y{@A#">timeout2 laeuft</variable>
                <variable id="obP`JV;QUU%V#ga-ubf7">WM State</variable>
                <variable type="timeout" id="timeout2">timeout2</variable>
              </variables>
              <block type="on_ext" id="]nm@fXILEu8mmca4J!}S" x="-287" y="13">
                <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="^y^94DZ+R]6b4~Y@S|NF">
                    <field name="oid">deconz.0.sensors.60a423fffe620720.power</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="controls_if" id="JV-H#l({$GTnPrUa8y{3">
                    <mutation elseif="1"></mutation>
                    <value name="IF0">
                      <block type="logic_operation" id="M:@_gjjI/w8vfS2qLOGa">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_compare" id="PM)qIzUYsmB^@HycHPHH">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="JsQ@!uO)bo0B4ul9Lfr~">
                                <field name="VAR" id="y~7J[6y=#n^R6V6y{@A#">timeout2 laeuft</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id=".|#T=RNjlbit^F8MDF]x">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_operation" id="BT1+lSS:@uduP0a?V87;">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="-H+iRz]Uqs[l)$HtUlFb">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="w0|7,Rz!7e*(Isl;z^|*">
                                    <field name="ATTR">val</field>
                                    <field name="OID">deconz.0.lights.60a423fffe620720.on</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="oRXS=]W|YWHn_j^mTfop">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_operation" id="pOk]GXVqIbHV_ageKu)_">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="/uPHwL2H%FIIbi[,uV?7">
                                    <field name="OP">LTE</field>
                                    <value name="A">
                                      <block type="on_source" id="HF{nrhe:q{Abj{LHZhyL">
                                        <field name="ATTR">state.val</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id=";yW3,/MeGY0Xm3-SBT1]">
                                        <field name="NUM">5</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="+;dNW$-US?GH.*8%xhDP">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="variables_get" id="$UISt9g$wu6FGFhJM;%1">
                                        <field name="VAR" id="obP`JV;QUU%V#ga-ubf7">WM State</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="#FNXT:j[{g#6^ek$S2YO">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="JL#cs,QR6%KOe9b:_kBl">
                        <field name="VAR" id="y~7J[6y=#n^R6V6y{@A#">timeout2 laeuft</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="_#exSs!eL3DWJ!F2~wFS">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                        <next>
                          <block type="timeouts_settimeout" id="!onvlitH0:sESCUF:%rG">
                            <field name="NAME">timeout2</field>
                            <field name="DELAY">5</field>
                            <field name="UNIT">min</field>
                            <statement name="STATEMENT">
                              <block type="variables_set" id="`{3,PaU:nQ5f_o%Q4Rue">
                                <field name="VAR" id="obP`JV;QUU%V#ga-ubf7">WM State</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id=",azJL-m/fi@I^13c[|48">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <value name="IF1">
                      <block type="logic_operation" id="FyT5Xy@*}(|Jl%Irp]Yx">
                        <field name="OP">AND</field>
                        <value name="A">
                          <block type="logic_compare" id="I/sCDvjrlJ+Cq59oa:5-">
                            <field name="OP">GTE</field>
                            <value name="A">
                              <block type="on_source" id="j%w8y9.s{wX3QIfDEp]e">
                                <field name="ATTR">state.val</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="dSIx~IwX%CiF$zVGu?@Q">
                                <field name="NUM">5</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_compare" id="=y*g.8h5{Keb?j]@NMDv">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="SgV`ADWO)?wf:WK3F6T.">
                                <field name="ATTR">val</field>
                                <field name="OID">deconz.0.lights.60a423fffe620720.on</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="k.2RVcrdrkcKxh#]Fp2I">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO1">
                      <block type="variables_set" id="Q=SNwc@Z;COj!!~.]wWT">
                        <field name="VAR" id="obP`JV;QUU%V#ga-ubf7">WM State</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="d[O:fYc*ye@Viio:qFc7">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="D-oDWb#/vUM+[UnpgqvE">
                            <field name="VAR" id="y~7J[6y=#n^R6V6y{@A#">timeout2 laeuft</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="cv[;g$(]([@Q0SXBZWDV">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="2WqC,w.]]Y@~T-lu7rmb">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.Trockner.Trockner</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="rW@4^]i_V40)^XE?WYN@">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="timeouts_cleartimeout" id="2I]L7z7mQO^HVpM-d5^Q">
                                    <field name="NAME">timeout2</field>
                                    <next>
                                      <block type="timeouts_cleartimeout" id="qLVq#~d3PJaW5%tdd:fI">
                                        <field name="NAME">timeout2</field>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id=".D(GY(Fu:0Hpl[T;i2gH">
                        <value name="IF0">
                          <block type="logic_compare" id="W7pxvQ8@.auCssuNrHw.">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="variables_get" id="BDhwprXphiuUGv{YowK=">
                                <field name="VAR" id="obP`JV;QUU%V#ga-ubf7">WM State</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="qo;@]3`btuaF!QU,[Y/1">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="VKZNk-62)50*Q_WI[xK!">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.Trockner.Trockner</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="s=s1AizYN8%}g0aA=Qpy">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" id=")gVj-JyVo;gciJjD#dgQ">
                                <field name="VAR" id="obP`JV;QUU%V#ga-ubf7">WM State</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="=-kkiN(/m7Z1#X2O[@3*">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="on" id="jAJjv$O|HpaqgHsPd!Uv">
                    <field name="OID">deconz.0.sensors.60a423fffe620720.consumption</field>
                    <field name="CONDITION">ne</field>
                    <field name="ACK_CONDITION"></field>
                    <statement name="STATEMENT">
                      <block type="update" id=".q~xL%Yfx;h7KK`n8mx-">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">deconz.0.sensors.60a423fffe620720.Verbrauch</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="text_join" id="gs?d)ImsgaTw+,m%y`k%">
                            <mutation items="3"></mutation>
                            <value name="ADD0">
                              <block type="text" id="-/:-p?J@hP;nX[Wv$nPm">
                                <field name="TEXT">Gesamt:  </field>
                              </block>
                            </value>
                            <value name="ADD1">
                              <block type="math_rndfixed" id="{oY#PZ8r%y=0-Ufh@vp8">
                                <field name="n">1</field>
                                <value name="x">
                                  <shadow type="math_number" id="b~H9wo!eDO~1foljlRih">
                                    <field name="NUM">3.1234</field>
                                  </shadow>
                                  <block type="math_arithmetic" id="9N]MvOfAmSYL[S;P|)mC">
                                    <field name="OP">DIVIDE</field>
                                    <value name="A">
                                      <shadow type="math_number" id="zGW~;$BhCL%}+qOJXg8[">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="math_arithmetic" id="Ml#noR$fUeeJX/=[P%?j">
                                        <field name="OP">MULTIPLY</field>
                                        <value name="A">
                                          <shadow type="math_number" id=".Z#e9T@m5;HOIrAUX$NI">
                                            <field name="NUM">0.875</field>
                                          </shadow>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="hc6tc[/kZifk]HaFsSap">
                                            <field name="NUM">2</field>
                                          </shadow>
                                          <block type="math_arithmetic" id="oBzKG6jR(/1p4uhh%|*9">
                                            <field name="OP">MINUS</field>
                                            <value name="A">
                                              <shadow type="math_number" id="6BCZ;m?}Co6SUSOa%vzl">
                                                <field name="NUM">1</field>
                                              </shadow>
                                              <block type="get_value" id="jdq9psh+:t49x7RkFHEK">
                                                <field name="ATTR">val</field>
                                                <field name="OID">deconz.0.sensors.60a423fffe620720.consumption</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <shadow type="math_number" id="0qjWP5tm8|u,=CQVlg,b">
                                                <field name="NUM">8950</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <shadow type="math_number" id=",Z~gh`IWQyotKVxH6X1Q">
                                        <field name="NUM">1000</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="ADD2">
                              <block type="text" id="Kei=*V7z6~q#WV!$RizC">
                                <field name="TEXT">  kWh</field>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </xml>
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Support us

            ioBroker
            Community Adapters
            Donate

            869
            Online

            32.0k
            Users

            80.5k
            Topics

            1.3m
            Posts

            3
            4
            108
            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