Navigation

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

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Skriptprobleme

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

      Habe folgendes Skript bei mir laufen. Die eizung schaltet er ohne Probleme, aber die davor liegende AUfgabe den SmartMirror anzuschalten führt er nicht aus. Warum? Bin echt überfragt.

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <block type="schedule" id="ePf`KPdmxWadnp](g2Ix" x="23" y="-226">
          <field name="SCHEDULE">{"time":{"exactTime":true,"start":"06:30"},"period":{"days":1}}</field>
          <statement name="STATEMENT">
            <block type="controls_if" id="@,{_hWZ?+1{p?_49]`ib">
              <value name="IF0">
                <block type="logic_compare" id="k{*]a2ZqAc!y).yMEg7w">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="9TZ*Ff1{(y.;yc3pqEx(">
                      <field name="ATTR">val</field>
                      <field name="OID">javascript.0.scriptEnabled.common.Anwesenheit_David</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="OwtAD$V^oR9wMIIL?V]6">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="control" id="I_@CO%Sc{`hx7R*_.Ly1">
                  <mutation delay_input="false"></mutation>
                  <field name="OID">sonoff.0.SmartMirror.POWER</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="]:UsCl~$CTT@F{n^vSn2">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                  <next>
                    <block type="controls_if" id="9tGptB^1vagX9?toX|HG">
                      <value name="IF0">
                        <block type="logic_compare" id="F$;X_)D#DP04^h9tQ0XU">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="O+mKAt%(Ei6wy:-`Xp6+">
                              <field name="ATTR">val</field>
                              <field name="OID">javascript.0.EigeneDatenpunkte.Sommermodus</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="`g_qyyb{6R-ZF=^!Ta7~">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control_ex" id=")AUEgr!#tK+leml!?spS">
                          <field name="TYPE">false</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="OID">
                            <shadow type="field_oid" id="Dk}6ZyLZl?)Z8-S7ij0w">
                              <field name="oid">fritzdect.0.Comet_119610463648.targettemp</field>
                            </shadow>
                          </value>
                          <value name="VALUE">
                            <shadow id="{6;csy?:]uI{VSb%=q(D" type="logic_boolean">
                              <field name="BOOL">TRUE</field>
                            </shadow>
                            <block type="math_number" id="WCEj`O@tFBN/PH7NiCY{">
                              <field name="NUM">21</field>
                            </block>
                          </value>
                          <value name="DELAY_MS">
                            <shadow type="math_number" id="+@N:#j%LhvnVstEH.Seh">
                              <field name="NUM">400</field>
                            </shadow>
                          </value>
                          <next>
                            <block type="control_ex" id="`@miUlKTrV*N{i*1-k?Q">
                              <field name="TYPE">false</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="OID">
                                <shadow type="field_oid" id=":R{!$|ezU5+V#v/s%95B">
                                  <field name="oid">fritzdect.0.Comet_119610628792.targettemp</field>
                                </shadow>
                              </value>
                              <value name="VALUE">
                                <shadow id="{6;csy?:]uI{VSb%=q(D" type="logic_boolean">
                                  <field name="BOOL">TRUE</field>
                                </shadow>
                                <block type="math_number" id="wOm#rNJ;%R2@gJWIUz-}">
                                  <field name="NUM">21</field>
                                </block>
                              </value>
                              <value name="DELAY_MS">
                                <shadow type="math_number" id="OKO)TS@B?Ruu;w!1F9hz">
                                  <field name="NUM">100</field>
                                </shadow>
                              </value>
                              <next>
                                <block type="control_ex" id="^FzWVqOhD}QM2/Qxp6[4">
                                  <field name="TYPE">false</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <value name="OID">
                                    <shadow type="field_oid" id="Clb7zxh#Vj!V[7W0llR_">
                                      <field name="oid">fritzdect.0.Comet_119610659288.targettemp</field>
                                    </shadow>
                                  </value>
                                  <value name="VALUE">
                                    <shadow id="{6;csy?:]uI{VSb%=q(D" type="logic_boolean">
                                      <field name="BOOL">TRUE</field>
                                    </shadow>
                                    <block type="math_number" id="5r(`7EL[9`Vcj|W1au;D">
                                      <field name="NUM">21</field>
                                    </block>
                                  </value>
                                  <value name="DELAY_MS">
                                    <shadow type="math_number" id="Y*k@7*UO}65sLju_u5Gr">
                                      <field name="NUM">200</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="control_ex" id="JIga!0q=2aeCOg8%{2up">
                                      <field name="TYPE">false</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="OID">
                                        <shadow type="field_oid" id="S+QQ=C+.r`8RsFF[1Z%r">
                                          <field name="oid">fritzdect.0.Comet_119610662952.targettemp</field>
                                        </shadow>
                                      </value>
                                      <value name="VALUE">
                                        <shadow id="{6;csy?:]uI{VSb%=q(D" type="logic_boolean">
                                          <field name="BOOL">TRUE</field>
                                        </shadow>
                                        <block type="math_number" id="()CBc1q[vK0^IF;q-ey6">
                                          <field name="NUM">21</field>
                                        </block>
                                      </value>
                                      <value name="DELAY_MS">
                                        <shadow type="math_number" id="b8ez5{.tfC~R%vg(2%][">
                                          <field name="NUM">300</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
          <next>
            <block type="schedule" id="2MENtB]D1^}8s7{Ngh,u">
              <field name="SCHEDULE">{"time":{"exactTime":true,"start":"23:00"},"period":{"days":1}}</field>
              <statement name="STATEMENT">
                <block type="controls_if" id="e!R#?n6)LJW~{4s2U$PC">
                  <value name="IF0">
                    <block type="logic_operation" id="Z7SP.vze.;T=Kj0ye9*k" inline="false">
                      <field name="OP">AND</field>
                      <value name="A">
                        <block type="logic_compare" id="9`?rtjctxH#=lO{c4M|B">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="kG*.ZPe`b.h!!,lD(%t.">
                              <field name="ATTR">val</field>
                              <field name="OID">javascript.0.EigeneDatenpunkte.Sommermodus</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="Gx^Z.{,J~Iy}xV-)/6~p">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_compare" id="o2F=lyxdFHEUYaRs=2G;">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="XQ.YJD*NJ6MJtnA$6n)-">
                              <field name="ATTR">val</field>
                              <field name="OID">javascript.0.scriptEnabled.common.Anwesenheit_David</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="R2IPy~ypOsRC]Bn|_-Qx">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control_ex" id="oG1{jv)V1vuORA0hyqYK">
                      <field name="TYPE">false</field>
                      <field name="CLEAR_RUNNING">FALSE</field>
                      <value name="OID">
                        <shadow type="field_oid" id="zkfX)=`Lc;m.eLY;KSG3">
                          <field name="oid">fritzdect.0.Comet_119610463648.targettemp</field>
                        </shadow>
                      </value>
                      <value name="VALUE">
                        <shadow id="{6;csy?:]uI{VSb%=q(D" type="logic_boolean">
                          <field name="BOOL">TRUE</field>
                        </shadow>
                        <block type="math_number" id="Md?r{=JBSz{].I9S}?An">
                          <field name="NUM">17</field>
                        </block>
                      </value>
                      <value name="DELAY_MS">
                        <shadow type="math_number" id="=+6{I^VgQLF~uO5G[O_*">
                          <field name="NUM">0</field>
                        </shadow>
                      </value>
                      <next>
                        <block type="control_ex" id="4Fia$X^0mcXO]X_wR4/)">
                          <field name="TYPE">false</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="OID">
                            <shadow type="field_oid" id="*q(vaV94Fs}*p_nMc11R">
                              <field name="oid">fritzdect.0.Comet_119610628792.targettemp</field>
                            </shadow>
                          </value>
                          <value name="VALUE">
                            <shadow id="{6;csy?:]uI{VSb%=q(D" type="logic_boolean">
                              <field name="BOOL">TRUE</field>
                            </shadow>
                            <block type="math_number" id=",cw/_9?`U!6E-Hp}!sB]">
                              <field name="NUM">17</field>
                            </block>
                          </value>
                          <value name="DELAY_MS">
                            <shadow type="math_number" id="RnhZjet#i*jdhu4.SuV7">
                              <field name="NUM">100</field>
                            </shadow>
                          </value>
                          <next>
                            <block type="control_ex" id="x27O3$QR]nm1ZrOWo9x^">
                              <field name="TYPE">false</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="OID">
                                <shadow type="field_oid" id="QX+IbFJ.,`^$]PnSZY%$">
                                  <field name="oid">fritzdect.0.Comet_119610659288.targettemp</field>
                                </shadow>
                              </value>
                              <value name="VALUE">
                                <shadow id="{6;csy?:]uI{VSb%=q(D" type="logic_boolean">
                                  <field name="BOOL">TRUE</field>
                                </shadow>
                                <block type="math_number" id="CL{VN?r9@AzzAhyZhPrV">
                                  <field name="NUM">17</field>
                                </block>
                              </value>
                              <value name="DELAY_MS">
                                <shadow type="math_number" id="(?,1?uy9*6+g?@*.V[e*">
                                  <field name="NUM">200</field>
                                </shadow>
                              </value>
                              <next>
                                <block type="control_ex" id="UkZ|xp8Ihr~^+%P}:_3l">
                                  <field name="TYPE">false</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <value name="OID">
                                    <shadow type="field_oid" id="tK`*z9KUShK![!77T{P$">
                                      <field name="oid">fritzdect.0.Comet_119610662952.targettemp</field>
                                    </shadow>
                                  </value>
                                  <value name="VALUE">
                                    <shadow id="{6;csy?:]uI{VSb%=q(D" type="logic_boolean">
                                      <field name="BOOL">TRUE</field>
                                    </shadow>
                                    <block type="math_number" id="=rz=_eAep~}.Hww$~Zwk">
                                      <field name="NUM">17</field>
                                    </block>
                                  </value>
                                  <value name="DELAY_MS">
                                    <shadow type="math_number" id="ENwDT3j=PeWKg~]M(PS1">
                                      <field name="NUM">300</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="control" id="]:0lYs*^{5$DP}?{#RY?">
                                      <mutation delay_input="true"></mutation>
                                      <field name="OID">sonoff.0.SmartMirror.POWER</field>
                                      <field name="WITH_DELAY">TRUE</field>
                                      <field name="DELAY_MS">400</field>
                                      <field name="UNIT">ms</field>
                                      <field name="CLEAR_RUNNING">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="@_N^oIQ1VtT0(#=FgqPN">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </next>
        </block>
      </xml>
      

      Screenshot 2020-02-08 at 09.18.51.png

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

        @David-Froebus was ist das für ein datenpunkt beim Smart mirror?

        1 Reply Last reply Reply Quote 0
        • D
          Dragon last edited by

          Das ist der datenpunkt eines sonoff pow mit dem das gerät an und ausgeschaltet wird. der datenpunkt stimmt auch, da meine schalter die auf diesen datenpunkt zugreifen funktionieren. ein manuelles ändern des datenpunktes auf true funktioniert auch

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

            @David-Froebus sagte in Skriptprobleme:

            ein manuelles ändern des datenpunktes auf true funktioniert auch

            mit ACK (bestätigt) oder ohne?
            ACK.png

            wenn mit, dann probiere bitte mal den aktualisiere Block

            1 Reply Last reply Reply Quote 0
            • D
              Dragon last edited by

              Nein habe ich immer ohne

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

              Support us

              ioBroker
              Community Adapters
              Donate

              727
              Online

              32.0k
              Users

              80.3k
              Topics

              1.3m
              Posts

              2
              5
              146
              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