Navigation

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

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Zeitliches Blockly

    This topic has been deleted. Only users with topic management privileges can see it.
    • Yoda
      Yoda @paul53 last edited by

      @paul53 das hilft mir schon etwas weiter Danke dir,

      werde nacher mal schauen wie ich das in dem Script am besten einfüge da ich dort ja einige und : und : und habe.
      Denke da an einen Hilfs Datenpunkt anzulegen und diesen dann bei länger 10 sec auf True zu stellen.

      1 Reply Last reply Reply Quote 0
      • Yoda
        Yoda @paul53 last edited by

        @paul53 ich verstehe es noch nicht ganz.

        Ich habs soweit nun mal nachgebaut mit einer Variable die auf "Wahr" gehen soll wenn länger 10 sec die Größer 100 schalten soll.
        Nun müsste ich ja auch wieder auf fals schalten.... ? Damit ich die Variable in meine Fals / dann einbauen könnte...

        zeit 3.png

        <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="$MTczKq5M[)q~5ums$P1" x="-362" y="-1812">
          <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="dcv3.1sshW|CuMJl$$sW">
              <field name="oid">shelly.0.shellypro3em#08f9e0e88fc4#1.EM0.TotalActivePower</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="1i$gNV20J$nzQGH=pZAl">
              <mutation elseif="1"></mutation>
              <value name="IF0">
                <block type="logic_compare" id="bg35k3A:0k0Zmuc8WAfG">
                  <field name="OP">LTE</field>
                  <value name="A">
                    <block type="on_source" id="Z|ueY`Pf~m.C9]-S$oy;">
                      <field name="ATTR">state.val</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="math_number" id="fOB#07r~#k5onO#bK}E,">
                      <field name="NUM">100</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="timeouts_cleartimeout" id="WUC*cW,hX39=H^+yf~Ay">
                  <field name="NAME">timeout2</field>
                </block>
              </statement>
              <value name="IF1">
                <block type="logic_compare" id="TNN;|i{obr-ufa@Ci=]i">
                  <field name="OP">LTE</field>
                  <value name="A">
                    <block type="on_source" id="zg{c|U7(A1ciP.Xrweos">
                      <field name="ATTR">oldState.val</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="math_number" id="7+q7Z#XtTlDdB0goRGY]">
                      <field name="NUM">100</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO1">
                <block type="timeouts_settimeout" id="9,{:SCW9{Aq$@@.%bC_d">
                  <field name="NAME">timeout2</field>
                  <field name="DELAY">10</field>
                  <field name="UNIT">sec</field>
                  <statement name="STATEMENT">
                    <block type="variables_set" id="ZQ(Du_x+u(B81G,DJV$s">
                      <field name="VAR" id="FwZuvv3JjYTCoyr:KIFb">Power-Zeit</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="E$fo^14~^jad`uM0wniQ">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </statement>
        </block>
        
        <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="wNNWp~Y_FZe|v#%-dVwx" x="-1187" y="-1713">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="~?t}50$cE*vhNwt/9d{k">
              <field name="oid">zendure-solarflow.0.A8yh63.0cWQxK41.outputPackPower</field>
            </shadow>
          </value>
          <value name="OID1">
            <shadow type="field_oid" id="9]|juE*X@]U*!j[pRC2u">
              <field name="oid">hmip.0.devices.3014F711A00034DF29AEA71A.channels.1.currentPowerConsumption</field>
            </shadow>
          </value>
          <value name="OID2">
            <shadow type="field_oid" id=":2FsUl-eM!wCb6/lY=Fn">
              <field name="oid">zendure-solarflow.0.A8yh63.0cWQxK41.packInputPower</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="RtbEZklb).NV+Z98Gef:">
              <value name="IF0">
                <block type="logic_multi_and" id="Ly}_d63K/Bp2rG^?L=ST">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="7"></mutation>
                  <value name="AND0">
                    <block type="time_compare" id="hH9U#G+TH0pk@~BgyC^A">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                      <field name="OPTION">between</field>
                      <field name="START_TIME">09:00</field>
                      <field name="END_TIME">17:00</field>
                    </block>
                  </value>
                  <value name="AND1">
                    <block type="logic_compare" id="fuxUgs_I)3/**$t=3t9J">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="+,5X|3^),oqO0!}d*{E`">
                          <field name="ATTR">val</field>
                          <field name="OID">0_userdata.0.Solar-Sperre-Teichfilter</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="~o5f`KDX.u!-Ri+#S|vh">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="AND2">
                    <block type="logic_compare" id="WJ.diWk5c7i.pRep//ka">
                      <field name="OP">GT</field>
                      <value name="A">
                        <block type="get_value" id="HFl9Hn,c8dfJYn`F.B[d">
                          <field name="ATTR">val</field>
                          <field name="OID">zendure-solarflow.0.A8yh63.0cWQxK41.solarInputPower</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="uveFFq.T_9Lx=eY);g`k">
                          <field name="NUM">400</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="AND3">
                    <block type="logic_compare" id=",lD!woaeUk*n},,Q8dyh">
                      <field name="OP">LT</field>
                      <value name="A">
                        <block type="get_value" id="iOOL`$49Lpb~a~Cfy?6/">
                          <field name="ATTR">val</field>
                          <field name="OID">shelly.0.shellypro3em#08f9e0e88fc4#1.EM0.TotalActivePower</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="P0+nxpjOhm+$|]p,lE%/">
                          <field name="NUM">100</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="AND4">
                    <block type="logic_compare" id="4JW?f$x,{x@t+]cZebTp">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value_var" id="K-eDhGmoj_AmbLDgAK`Y">
                          <field name="ATTR">val</field>
                          <value name="OID">
                            <shadow type="field_oid" id="2xB1-%(Opuf#]OLjd34R">
                              <field name="oid">ID auswählen</field>
                            </shadow>
                            <block type="variables_get" id="mtc~Jo8/GxHr9xC($x=M">
                              <field name="VAR" id="FwZuvv3JjYTCoyr:KIFb">Power-Zeit</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="VOt09-Bl!t,2KW7eD%nG">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="AND5">
                    <block type="logic_compare" id="$d*V9TR/0Z.}(?6CPTXx">
                      <field name="OP">GT</field>
                      <value name="A">
                        <block type="get_value" id="D,UDO_{3ofWLR9M_mBEZ">
                          <field name="ATTR">val</field>
                          <field name="OID">zendure-solarflow.0.A8yh63.0cWQxK41.electricLevel</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="[XaEKzdrQr3Yp~Hy.(`|">
                          <field name="NUM">15</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="AND6">
                    <block type="logic_compare" id="i]E:BC:U4ty/zr9002Z.">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="isgSQ4|7*^b,?o+m}yLR">
                          <field name="ATTR">val</field>
                          <field name="OID">tuya.0.bf06b08cba98cae305vmq9.1</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="/Jv5FiYqe,yD@MJtIDXy">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="control" id="ZD8UYvnpDNM,=+-c[DQ_">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">tuya.0.bf06b08cba98cae305vmq9.1</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="P79SB~asx4ATCd,}-Fqg">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </statement>
              <next>
                <block type="controls_if" id="hJr0.@Y1~RI;3IW3[5K!">
                  <value name="IF0">
                    <block type="logic_multi_and" id="(*AaLF]Maq`z,rY^I}[!">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="4"></mutation>
                      <value name="AND0">
                        <block type="time_compare" id="r9ji==s|VO[4#i?UCWSj">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                          <field name="OPTION">between</field>
                          <field name="START_TIME">09:00</field>
                          <field name="END_TIME">17:00</field>
                        </block>
                      </value>
                      <value name="AND1">
                        <block type="logic_compare" id="6O9?IZ`kK`%?PaL8l[{a">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="XlIhPxmStMAYK,(5NrvO">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.Solar-Sperre-Teichfilter</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="7haYzh#7.wI$P2!@I}MM">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="AND2">
                        <block type="logic_compare" id=",{T9oWA:!5!Q=4qOzR[e">
                          <field name="OP">GT</field>
                          <value name="A">
                            <block type="get_value" id="t8m=n?JVi/qfZNyv(R)|">
                              <field name="ATTR">val</field>
                              <field name="OID">zendure-solarflow.0.A8yh63.0cWQxK41.packInputPower</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id="A75:vl.ToHfAAd:W~hUY">
                              <field name="NUM">150</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="AND3">
                        <block type="logic_compare" id=";|r%QwiMsCT(Egi?XW]A">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="DmFnwh1RYi`J5_Li9eA3">
                              <field name="ATTR">val</field>
                              <field name="OID">tuya.0.bf06b08cba98cae305vmq9.1</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id=".C6TPs,LBmcgJw40[2B!">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="es@w!jjASKB}}Qsg;=91">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">tuya.0.bf06b08cba98cae305vmq9.1</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="0MA%-wf1{E#D28tpA4h@">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <next>
                    <block type="controls_if" id="wouwQAS@zy*e+jH;/91E">
                      <value name="IF0">
                        <block type="logic_multi_and" id=")hAj/[xUx]qTiH)C@BX;">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
                          <value name="AND0">
                            <block type="time_compare" id=")zf(T$c;NJthMuHzy!?3">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                              <field name="OPTION">between</field>
                              <field name="START_TIME">09:00</field>
                              <field name="END_TIME">17:00</field>
                            </block>
                          </value>
                          <value name="AND1">
                            <block type="logic_compare" id="2;DX[MAs3j6fBr3L=(4z">
                              <field name="OP">LTE</field>
                              <value name="A">
                                <block type="get_value" id="FPX~-renJeJM-}8X5kN4">
                                  <field name="ATTR">val</field>
                                  <field name="OID">zendure-solarflow.0.A8yh63.0cWQxK41.electricLevel</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id=":~+rl|)7m1x28I[D#$n1">
                                  <field name="NUM">15</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="AND2">
                            <block type="logic_compare" id="j5,OB77+xhM]c+c6-+jU">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="6FV(b=zKM)Q}APpYq2Jb">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.Solar-Sperre-Teichfilter</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="L=BC;:~%-y{.^PD*CmBE">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="tgxaEJojQPY^Hr+|B6Gl">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">0_userdata.0.Solar-Sperre-Teichfilter</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="+eda6Jsb)Gu6_D_@i;2p">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
        </block>
        
        Codierknecht 1 Reply Last reply Reply Quote 0
        • Codierknecht
          Codierknecht Developer Most Active @Yoda last edited by Codierknecht

          @Yoda

          Nun müsste ich ja auch wieder auf fals schalten

          Im rechten Teil:

          2281ade0-2635-4e70-88e8-c7b803ff399e-image.png

          Edit
          Tipp: Auch wenn das intern in einen Unterstrich geändert wird (Power_Zeit) würde ich in Variablennamen keinen Bindestrich verwenden!

          Yoda 1 Reply Last reply Reply Quote 1
          • Yoda
            Yoda @Codierknecht last edited by

            @codierknecht Danke dir, werde ich versuchen

            Codierknecht 1 Reply Last reply Reply Quote 0
            • Codierknecht
              Codierknecht Developer Most Active @Yoda last edited by

              @yoda
              Im linken Teil muss die Prüfung auf "TotalActivePower < 100" nach meinem Verständnis raus.

              Yoda 1 Reply Last reply Reply Quote 0
              • Yoda
                Yoda @Codierknecht last edited by

                @codierknecht ja habs draußen, ich teste mal ein wenig rum...

                zeit 4.png

                Codierknecht 1 Reply Last reply Reply Quote 0
                • Codierknecht
                  Codierknecht Developer Most Active @Yoda last edited by

                  @yoda
                  Nein - so:
                  9acf6f79-b584-4183-aff7-189f838e2fa1-image.png

                  Yoda 1 Reply Last reply Reply Quote 0
                  • Yoda
                    Yoda @Codierknecht last edited by

                    @codierknecht stimmt das habe ich gesehen als ich es Postete, habs nun Aktiv kommen aber nur Fehlermeldungen

                    zeit 5.png

                    Codierknecht 1 Reply Last reply Reply Quote 0
                    • Codierknecht
                      Codierknecht Developer Most Active @Yoda last edited by

                      @yoda
                      Schau in den JS-Quellcode. In den Fehlermeldungen sind Zeilennummern (35) angegeben.
                      Da ist wohl ein State gar nicht bool.

                      Yoda 1 Reply Last reply Reply Quote 0
                      • Yoda
                        Yoda @Codierknecht last edited by Yoda

                        @codierknecht
                        ich habe mal einen neuen Datenpunkt angelegt der entsprechend geschaltet werden soll.
                        Das macht er soweit ich sehe auch.
                        Nur kommt immer eine Warnung:

                        zeit 6.png

                        <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="$MTczKq5M[)q~5ums$P1" x="-438" y="-1587">
                          <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="dcv3.1sshW|CuMJl$$sW">
                              <field name="oid">shelly.0.shellypro3em#08f9e0e88fc4#1.EM0.TotalActivePower</field>
                            </shadow>
                          </value>
                          <statement name="STATEMENT">
                            <block type="controls_if" id="1i$gNV20J$nzQGH=pZAl">
                              <mutation elseif="1"></mutation>
                              <value name="IF0">
                                <block type="logic_compare" id="bg35k3A:0k0Zmuc8WAfG">
                                  <field name="OP">LTE</field>
                                  <value name="A">
                                    <block type="on_source" id="Z|ueY`Pf~m.C9]-S$oy;">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="fOB#07r~#k5onO#bK}E,">
                                      <field name="NUM">100</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="timeouts_cleartimeout" id="WUC*cW,hX39=H^+yf~Ay">
                                  <field name="NAME">timeout2</field>
                                  <next>
                                    <block type="control" id="0}u[]$oUiUyIi742-%J[">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.DatenpunktAktivPowerZeit</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id=",q5NBv#]~80biB1$Dp3=">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                              <value name="IF1">
                                <block type="logic_compare" id="TNN;|i{obr-ufa@Ci=]i">
                                  <field name="OP">LTE</field>
                                  <value name="A">
                                    <block type="on_source" id="zg{c|U7(A1ciP.Xrweos">
                                      <field name="ATTR">oldState.val</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="7+q7Z#XtTlDdB0goRGY]">
                                      <field name="NUM">100</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO1">
                                <block type="timeouts_settimeout" id="9,{:SCW9{Aq$@@.%bC_d">
                                  <field name="NAME">timeout2</field>
                                  <field name="DELAY">10</field>
                                  <field name="UNIT">sec</field>
                                  <statement name="STATEMENT">
                                    <block type="control" id="(8vdZEBPf=R^4mrhGF(`">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.DatenpunktAktivPowerZeit</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="%{R2^o9Bl1VqB:9wBkK_">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                            </block>
                          </statement>
                        </block>
                        

                        Das steht in Zeile 51:

                        ![d962188c-caaf-486a-9548-79df818694ef-image.png](/assets/uploads/files/1724242654751-d962188c-caaf-486a-9548-79df818694ef-image.png) code_text
                        

                        on({ id: [].concat(['shelly.0.shellypro3em#08f9e0e88fc4#1.EM0.TotalActivePower']), change: 'ne' }, async (obj) => {
                        let value = obj.state.val;
                        let oldValue = obj.oldState.val;
                        if ((obj.state ? obj.state.val : '') <= 100) {
                        (() => { if (timeout2) { clearTimeout(timeout2); timeout2 = null; }})();
                        setState('0_userdata.0.DatenpunktAktivPowerZeit' /* DatenpunktAktivPowerZeit /, false);
                        } else if ((obj.oldState ? obj.oldState.val : '') <= 100) {
                        timeout2 = setTimeout(async () => {
                        timeout2 = null;
                        setState('0_userdata.0.DatenpunktAktivPowerZeit' /
                        DatenpunktAktivPowerZeit */, true);
                        }, 10000);
                        }
                        });

                        
                        web.0
                        2024-08-21 14:21:06.606	info	<== Disconnect system.user.admin from ::ffff:192.168.178.166 flot
                        
                        web.0
                        2024-08-21 14:21:06.601	info	<== Disconnect system.user.admin from ::ffff:192.168.178.166 flot
                        
                        web.0
                        2024-08-21 14:21:06.543	info	<== Disconnect system.user.admin from ::ffff:192.168.178.166 flot
                        
                        javascript.0
                        2024-08-21 14:21:04.339	info	State value to set for "0_userdata.0.DatenpunktAktivPowerZeit" has to be type "string" but received type "boolean"
                        
                        javascript.0
                        2024-08-21 14:21:04.323	warn	at processImmediate (node:internal/timers:483:21)
                        
                        javascript.0
                        2024-08-21 14:21:04.323	warn	at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.ts:11053:62)
                        
                        javascript.0
                        2024-08-21 14:21:04.323	warn	at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:645:29)
                        
                        javascript.0
                        2024-08-21 14:21:04.322	warn	at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1452:38)
                        
                        javascript.0
                        2024-08-21 14:21:04.322	warn	at Object.<anonymous> (script.js.Manni_Schalter.Aussen.Teichfilter-Sommer1:51:5)
                        
                        javascript.0
                        2024-08-21 14:21:04.322	warn	at setState (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:2090:20)
                        
                        javascript.0
                        2024-08-21 14:21:04.319	warn	You are assigning a boolean to the state "0_userdata.0.DatenpunktAktivPowerZeit" which expects a string. Please fix your code to use a string or change the state type to boolean. This warning might become an error in future versions.
                        
                        javascript.0
                        2024-08-21 14:21:00.285	info	State value to set for "0_userdata.0.DatenpunktAktivPowerZeit" has to be type "string" but received type "boolean"
                        
                        javascript.0
                        2024-08-21 14:21:00.272	warn	at processImmediate (node:internal/timers:483:21)
                        
                        Codierknecht 1 Reply Last reply Reply Quote 0
                        • Codierknecht
                          Codierknecht Developer Most Active @Yoda last edited by

                          @yoda sagte in Zeitliches Blockly:

                          Das steht in Zeile 51:

                          Das XML ist nur der rechte Teil.

                          You are assigning a boolean to the state "0_userdata.0.DatenpunktAktivPowerZeit" which expects a string
                          

                          Hast Du den Datenpunkt als "Zeichenfolge" angelegt?

                          Yoda 1 Reply Last reply Reply Quote 0
                          • Yoda
                            Yoda @Codierknecht last edited by

                            @codierknecht

                            {
                              "common": {
                                "name": "DatenpunktAktivPowerZeit",
                                "desc": "Manuell erzeugt",
                                "role": "state",
                                "type": "string",
                                "read": true,
                                "write": true,
                                "def": ""
                              },
                              "type": "state",
                              "native": {},
                              "_id": "0_userdata.0.DatenpunktAktivPowerZeit",
                              "acl": {
                                "object": 1636,
                                "state": 1636,
                                "owner": "system.user.admin",
                                "ownerGroup": "system.group.administrator"
                              },
                              "from": "system.adapter.admin.0",
                              "user": "system.user.admin",
                              "ts": 1724243075612
                            }
                            
                            Codierknecht 1 Reply Last reply Reply Quote 0
                            • Codierknecht
                              Codierknecht Developer Most Active @Yoda last edited by

                              @yoda sagte in Zeitliches Blockly:

                              "type": "string",                                                                                                                                                                            
                              

                              Das muss bool sein (Logikwert)

                              Yoda 1 Reply Last reply Reply Quote 1
                              • Yoda
                                Yoda @Codierknecht last edited by

                                @codierknecht perfekt vielen Dank, sieht soweit nun sauber aus, in der Praxis muss ich noch etwas schauen wie es sich verhält.

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                529
                                Online

                                32.0k
                                Users

                                80.3k
                                Topics

                                1.3m
                                Posts

                                blockly
                                4
                                18
                                622
                                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