Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. vermutliche Variablen Probleme nach Update von Raspberry

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    vermutliche Variablen Probleme nach Update von Raspberry

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

      Hallöchen,

      ich habe gestern ein Update meines Raspberry gemacht über folgende Befehle:

      sudo apt-get update
      sudo apt-get upgrade

      Nun habe ich ein Blocky Script wo ich in der Vis manuelle Zeiten zum schalten festlegen kann. Aber leider funktioniert das Blockly nicht mehr, sondern nur noch mein zweites Blockly mit festen Zeiten!

      Unten habe ich mal das Blockly eingefügt, das momentan aktive funktioniert und das deaktivierte leider nicht.
      Ich hoffe es hat jemand eine Lösung für mich

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="ugiv5B]TX3S,*x=0+.BQ">Start links</variable>
          <variable id="/4Emkj@D}3;l45R85kJ1">Ende links</variable>
          <variable id="xTh.k8VRchSh/H?kgT;[">Start rechts</variable>
          <variable id="gGnp]{djcPS7NyQ|v~J8">Ende rechts</variable>
        </variables>
        <block type="schedule" id="xt;|[Dt9O()}lK_0V$^j" x="-12" y="-87">
          <field name="SCHEDULE">{"time":{"exactTime":true,"start":"08:00"},"period":{"days":1}}</field>
          <statement name="STATEMENT">
            <block type="control" id="7Dp;9zp}.,yH~bYuRHg1">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">hm-rpc.0.00089D89BA1849.2.STATE</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="logic_boolean" id="A+PGO@|Op-hVcOOgmjeb">
                  <field name="BOOL">TRUE</field>
                </block>
              </value>
              <next>
                <block type="control" id="wAh@!Ny?(^-yEPwSsE1u">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">hm-rpc.0.00089D89BA1550.2.STATE</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="VIK$M%CZ[ur2)kxg|y~d">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </next>
            </block>
          </statement>
          <next>
            <block type="schedule" id="n8d%lA9_[kJ9Fq{GzA4Q">
              <field name="SCHEDULE">{"time":{"exactTime":true,"start":"20:00"},"period":{"days":1}}</field>
              <statement name="STATEMENT">
                <block type="control" id="WVs8RVC57g};Hw;WGkWh">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">hm-rpc.0.00089D89BA1849.2.STATE</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="pqKwd+pJd)8Uy[FU_4$7">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id="K*R5ItsH}vOgk^:orgEc">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">hm-rpc.0.00089D89BA1550.2.STATE</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="4*L3n+Toh1ik{V|?![Pu">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </next>
        </block>
        <block type="on_ext" id="?9/,w^`G~RV^S8B6XJi~" disabled="true" x="-737" y="38">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="s]`w,37WvHNI8@uWGLRG">
              <field name="oid">javascript.0.Anzucht.links.Ende</field>
            </shadow>
          </value>
          <value name="OID1">
            <shadow type="field_oid" id="]QZ#6_wHE2i,NdEdNrwn">
              <field name="oid">javascript.0.Anzucht.links.Start</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id=";W}i183BQ/mFLI(G%Lc)">
              <value name="IF0">
                <block type="logic_compare" id="ZLYfwDtT07m,UAs#IZ~~">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="z@^GK2DP%N,Soy:=2EvL">
                      <field name="ATTR">val</field>
                      <field name="OID">javascript.0.Anzucht.links.aktiv</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="S`W9xW_5E$cdj|wbyHK:">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="variables_set" id="fhOUfsR(y`!;UHu5!@7J">
                  <field name="VAR" id="ugiv5B]TX3S,*x=0+.BQ">Start links</field>
                  <value name="VALUE">
                    <block type="get_value" id="/%%me^!|ryJ=rq@/ah)c">
                      <field name="ATTR">val</field>
                      <field name="OID">javascript.0.Anzucht.links.Start</field>
                    </block>
                  </value>
                  <next>
                    <block type="variables_set" id="|2+oej2ygH81{Y(5Fs0?">
                      <field name="VAR" id="/4Emkj@D}3;l45R85kJ1">Ende links</field>
                      <value name="VALUE">
                        <block type="get_value" id="]bK3B:G||_#Fl?4Ro`ok">
                          <field name="ATTR">val</field>
                          <field name="OID">javascript.0.Anzucht.links.Ende</field>
                        </block>
                      </value>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
          <next>
            <block type="controls_if" id="^+MCu[2V8)D|.u~hffG4" disabled="true">
              <value name="IF0">
                <block type="variables_get" id="4rZn$U^v@kydh5K8^d$t">
                  <field name="VAR" id="ugiv5B]TX3S,*x=0+.BQ">Start links</field>
                </block>
              </value>
              <statement name="DO0">
                <block type="control" id="zZ#w.#N=YGu7(gLB}A)3">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">hm-rpc.0.00089D89BA1849.2.STATE</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="`JOL~4)Q4j~JHoOuS$y6">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </statement>
              <next>
                <block type="controls_if" id="59}:KNUBR82Jd@N1L)wW" disabled="true">
                  <value name="IF0">
                    <block type="variables_get" id="[|tg@I@moC[;-AA$MM|6">
                      <field name="VAR" id="/4Emkj@D}3;l45R85kJ1">Ende links</field>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id="SK)2DxMNQNRSzh8z(^!]">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">hm-rpc.0.00089D89BA1849.2.STATE</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="CW4b|/`x^uF#y*ra|^C`">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <next>
                    <block type="on_ext" id="@]+fT0WMAAD$+!Q~{vJg" disabled="true">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                      <field name="CONDITION">ne</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="$6HZ1)msjJ#1p|+b~8-p">
                          <field name="oid">javascript.0.Anzucht.rechts.Ende</field>
                        </shadow>
                      </value>
                      <value name="OID1">
                        <shadow type="field_oid" id="UqR8hli}*W1=phhELGZg">
                          <field name="oid">javascript.0.Anzucht.rechts.Start</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="?A?.5a{TGEsFKI![s.Bu">
                          <value name="IF0">
                            <block type="logic_compare" id="63{/9V;oKO$%fZaw/%=:">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="|,H[-;uLmD4Kuu2?tY5x">
                                  <field name="ATTR">val</field>
                                  <field name="OID">javascript.0.Anzucht.rechts.aktiv</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="4x#wyjW=gj~47Rx[aw),">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="variables_set" id="A7Vk$:wZ[/R4!4L[aRI-">
                              <field name="VAR" id="xTh.k8VRchSh/H?kgT;[">Start rechts</field>
                              <value name="VALUE">
                                <block type="get_value" id="#b85)Z2Dh3D-*Pg){y*~">
                                  <field name="ATTR">val</field>
                                  <field name="OID">javascript.0.Anzucht.rechts.Start</field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="e-^W|;d%Fa3/i3_4]Eo?">
                                  <field name="VAR" id="gGnp]{djcPS7NyQ|v~J8">Ende rechts</field>
                                  <value name="VALUE">
                                    <block type="get_value" id="OhnF2%daWyST`G4|RT2Q">
                                      <field name="ATTR">val</field>
                                      <field name="OID">javascript.0.Anzucht.rechts.Ende</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <next>
                        <block type="controls_if" id="kW-v%FxOssZG.BNX`0G_" disabled="true">
                          <value name="IF0">
                            <block type="variables_get" id="{;r:?IMsA?Hb{eBHGX_%">
                              <field name="VAR" id="xTh.k8VRchSh/H?kgT;[">Start rechts</field>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id=".5eC4i6|cVOi@SA@RCT.">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">hm-rpc.0.00089D89BA1550.2.STATE</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="`JIDDE`H5nX/_.Q_-pJB">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <next>
                            <block type="controls_if" id=",RJ}fx]gLGuZx2ux*vwo" disabled="true">
                              <value name="IF0">
                                <block type="variables_get" id="r!Jvd*7$Sen8Rl(J1*L6">
                                  <field name="VAR" id="gGnp]{djcPS7NyQ|v~J8">Ende rechts</field>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="control" id="fvKYjKZx%_n14~L9~N,s">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">hm-rpc.0.00089D89BA1550.2.STATE</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="(G?ECvKzi^ZiNR~f,D64">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      
      DJMarc75 paul53 2 Replies Last reply Reply Quote 0
      • DJMarc75
        DJMarc75 @Idefix01 last edited by

        @idefix01 zusätzlich Bild davon bitte zeigen damit man auch am Smartphone helfen kann 😉

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

          @idefix01 sagte: leider funktioniert das Blockly nicht mehr,

          Das kann noch nie funktioniert haben, denn die HM-Datenpunkte werden nur bei Skriptstart geschrieben.
          Was soll das Skrip machen?

          1 Reply Last reply Reply Quote 0
          • I
            Idefix01 @DJMarc75 last edited by

            @djmarc75

            aber gern doch - hier das Bild

            anzucht.jpg

            I 1 Reply Last reply Reply Quote 0
            • I
              Idefix01 @Idefix01 last edited by

              @paul53

              Das Script macht folgendes:

              Wenn der Datenpunkt "Anzucht links aktiv" bzw. "Anzucht rechts aktiv" auf true steht, lassen sich in der Vis Zeiten für den Start und das Ende einer Anzuchtlampe für Pflanzen einstellen.
              Sobald ein Wert verändert wird werden die Variablen aktualisiert und eigentlich soll dann je nachdem welche Zeit eingestellt ist die Anzuchtlampe W oder S entsprechend an bzw. aus gehen

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

                @idefix01 sagt: in der Vis Zeiten für den Start und das Ende einer Anzuchtlampe für Pflanzen einstellen.

                Ich nehme an in den DP "javascript.0.Anzucht.links.Ende", "javascript.0.Anzucht.links.Start", "javascript.0.Anzucht.rechts.Ende" und "javascript.0.Anzucht.rechts.Start"?
                In welchem Format? CRON oder "hh:mm"?

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

                  @paul53

                  Zeitangabe erfolgt in hh:mm in allen vier Punkten

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

                    @idefix01 sagte: Zeitangabe erfolgt in hh:mm

                    Dann kann man einen Minuten-Trigger verwenden:

                    Blockly_temp.JPG

                    EDIT: Bessere Version mit Minuten-Trigger:

                    Blockly_temp.JPG

                    Version, wenn bei "aktiv" = false ausgeschaltet werden soll:

                    Blockly_temp.JPG

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

                      @paul53

                      sorry das ich erst jetzt antworte, aber habe erst heute Zeit gefunden wieder rein zu schauen. Nun werde ich mal die bessere Version gleich mal austesten

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

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      757
                      Online

                      32.0k
                      Users

                      80.5k
                      Topics

                      1.3m
                      Posts

                      3
                      9
                      421
                      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