Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. oliverni

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 0
    • Groups 1

    oliverni

    @oliverni

    Starter

    0
    Reputation
    4
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    oliverni Follow
    Starter

    Latest posts made by oliverni

    • RE: Philips Hue Lightstrip Controller defekt?

      @igor123 Hallo, wie hast du dein Problem lösen können? Ich stehe aktuell vor der gleichen Problematik. Danke

      posted in Hardware
      oliverni
      oliverni
    • RE: Bewässerungskreise schalten

      Hallo @roland1000 ich habe den ersten Adapter installiert. Wie komme ich zur Visualisierung? Wird das mit dem Adapter installiert? Oder gibt es dort ein fertiges Template? Da fehlt mir ein Stück Wissen.

      posted in Blockly
      oliverni
      oliverni
    • Bewässerungskreise schalten

      Hallo Zusammen, ich versuche mich im Programmieren mit Blockly. Komme hier und da nicht weiter.
      Ich habe ein Testscript erstellt, welches einen Schalter (Sonoff4CHGarten POWER1) nach zeitlichen Vorgaben (Bewässerung_Dauer_1) an und wieder aus schaltet.
      Nach dem "abarbeiten" soll er den nächsten (Sonoff4CHGarten POWER2) schalten. Wo ist die Schleife zu Ende? Er arbeitet dies gefühlt parallel ab.
      2cbefeab-f8dc-442f-8be7-ad952613407e-image.png

      
      BlocklyJavascriptTypeScriptRules
      19:20:30.002	warn	javascript.0 (1926) script.js.Gartenbewässerung_1_1: ----- Start Bewässerung 1 ------
      19:20:30.002	warn	javascript.0 (1926) script.js.Gartenbewässerung_1_1: ----- Ende Bewässerung 1 ------
      19:20:45.001	warn	javascript.0 (1926) script.js.Gartenbewässerung_1_1: ----- Start Bewässerung 1 ------
      19:20:45.002	warn	javascript.0 (1926) script.js.Gartenbewässerung_1_1: ----- Ende Bewässerung 1 ------
      19:21:00.002	warn	javascript.0 (1926) script.js.Gartenbewässerung_1_1: ----- Start Bewässerung 1 ------
      19:21:00.003	warn	javascript.0 (1926) script.js.Gartenbewässerung_1_1: ----- Ende Bewässerung 1 ------
      19:21:15.002	warn	javascript.0 (1926) script.js.Gartenbewässerung_1_1: ----- Start Bewässerung 1 ------
      19:21:15.003	warn	javascript.0 (1926) script.js.Gartenbewässerung_1_1: ----- Ende Bewässerung 1 ------
      19:21:30.001	warn	javascript.0 (1926) script.js.Gartenbewässerung_1_1: ----- Start Bewässerung 1 ------
      19:21:30.002	warn	javascript.0 (1926) script.js.Gartenbewässerung_1_1: ----- Ende Bewässerung 1 ------
      Ausgewählte Blöcke exportieren
      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="3eB$2W@DF:EW1g*m75Zg">cn1</variable>
          <variable type="interval" id="Intervall">Intervall</variable>
        </variables>
        <block type="procedures_defnoreturn" id="YJVcUHF;_!PhZ_/@3DLF" x="462" y="112">
          <field name="NAME">Start_Bewaesserungskreis_1</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="controls_if" id="C|Rn1cp4KqB^]Rt_ZAF|">
              <value name="IF0">
                <block type="logic_compare" id="KvUx}9:#E}*%xID$4yG@">
                  <field name="OP">GT</field>
                  <value name="A">
                    <block type="get_value" id="6_0D^zKp]sg+?J2tUmFp">
                      <field name="ATTR">val</field>
                      <field name="OID">admin.0.Bewässerung_Dauer_1</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="math_number" id="If;^notV4qpNzp$c8_AF">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="debug" id="d!P|@?E!?)cCX0F|/GP6">
                  <field name="Severity">warn</field>
                  <value name="TEXT">
                    <shadow type="text" id="qpkU^12=3FBQc!*$`]z2">
                      <field name="TEXT">----- Start Bewässerung 1 ------</field>
                    </shadow>
                  </value>
                  <next>
                    <block type="control" id="Ug1,cg%B}!1:$32DALow">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">sonoff.0.Sonoff4CHGarten.POWER1</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="$%Cwm!n4%2evxR?G~O2g">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="#IQ35Gsdiqs7q-`-HQ+1">
                          <field name="VAR" id="3eB$2W@DF:EW1g*m75Zg">cn1</field>
                          <value name="VALUE">
                            <block type="get_value" id="b?l5jm.nu1;L)1w:o1rE">
                              <field name="ATTR">val</field>
                              <field name="OID">admin.0.Bewässerung_Dauer_1</field>
                            </block>
                          </value>
                          <next>
                            <block type="timeouts_setinterval" id="_sLBD`c+El`j3nFOuUnk">
                              <field name="NAME">Intervall</field>
                              <field name="INTERVAL">1</field>
                              <field name="UNIT">sec</field>
                              <statement name="STATEMENT">
                                <block type="math_change" id="A:o.bS|YSqTZIXO,RYsq">
                                  <field name="VAR" id="3eB$2W@DF:EW1g*m75Zg">cn1</field>
                                  <value name="DELTA">
                                    <shadow type="math_number" id="B+g$AFW9SCLlqMpzkOE4">
                                      <field name="NUM">-1</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="controls_if" id="Yp=BM9L*8-zaDM=,Yru$">
                                      <value name="IF0">
                                        <block type="logic_compare" id="J5-^zoj8EO|C5jUh`rYi">
                                          <field name="OP">LTE</field>
                                          <value name="A">
                                            <block type="variables_get" id="dgoR|fpuLn]gZFDY9@z-">
                                              <field name="VAR" id="3eB$2W@DF:EW1g*m75Zg">cn1</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="k4}].3J+$BT76=hy}Weu">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="timeouts_clearinterval" id="]q%@S9Axuf%V_^Z-#S3L">
                                          <field name="NAME">Intervall</field>
                                          <next>
                                            <block type="control" id="GmOZ.kl$D(e@@ilhhbUA">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">sonoff.0.Sonoff4CHGarten.POWER1</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="yRaL4Zuu1Y4S9ifLWeA%">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="debug" id="n/O42/m|n:i)pzvYt0if">
                  <field name="Severity">warn</field>
                  <value name="TEXT">
                    <shadow type="text" id="/csjK0gf1QUORu}CDkOT">
                      <field name="TEXT">----- Ende Bewässerung 1 ------</field>
                    </shadow>
                  </value>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="schedule" id="-8J[8-rahq!PgM^t)bm)" x="138" y="138">
          <field name="SCHEDULE">*/15 * * * * *</field>
          <statement name="STATEMENT">
            <block type="procedures_callnoreturn" id="O9yEz|xTGwizXup64dF9">
              <mutation name="Start_Bewaesserungskreis_1"></mutation>
            </block>
          </statement>
        </block>
      </xml>
      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="3eB$2W@DF:EW1g*m75Zg">cn1</variable>
          <variable type="interval" id="Intervall">Intervall</variable>
        </variables>
        <block type="procedures_defnoreturn" id="YJVcUHF;_!PhZ_/@3DLF" x="462" y="112">
          <field name="NAME">Start_Bewaesserungskreis_1</field>
          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          <statement name="STACK">
            <block type="controls_if" id="C|Rn1cp4KqB^]Rt_ZAF|">
              <value name="IF0">
                <block type="logic_compare" id="KvUx}9:#E}*%xID$4yG@">
                  <field name="OP">GT</field>
                  <value name="A">
                    <block type="get_value" id="6_0D^zKp]sg+?J2tUmFp">
                      <field name="ATTR">val</field>
                      <field name="OID">admin.0.Bewässerung_Dauer_1</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="math_number" id="If;^notV4qpNzp$c8_AF">
                      <field name="NUM">0</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="debug" id="d!P|@?E!?)cCX0F|/GP6">
                  <field name="Severity">warn</field>
                  <value name="TEXT">
                    <shadow type="text" id="qpkU^12=3FBQc!*$`]z2">
                      <field name="TEXT">----- Start Bewässerung 1 ------</field>
                    </shadow>
                  </value>
                  <next>
                    <block type="control" id="Ug1,cg%B}!1:$32DALow">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">sonoff.0.Sonoff4CHGarten.POWER1</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="$%Cwm!n4%2evxR?G~O2g">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="#IQ35Gsdiqs7q-`-HQ+1">
                          <field name="VAR" id="3eB$2W@DF:EW1g*m75Zg">cn1</field>
                          <value name="VALUE">
                            <block type="get_value" id="b?l5jm.nu1;L)1w:o1rE">
                              <field name="ATTR">val</field>
                              <field name="OID">admin.0.Bewässerung_Dauer_1</field>
                            </block>
                          </value>
                          <next>
                            <block type="timeouts_setinterval" id="_sLBD`c+El`j3nFOuUnk">
                              <field name="NAME">Intervall</field>
                              <field name="INTERVAL">1</field>
                              <field name="UNIT">sec</field>
                              <statement name="STATEMENT">
                                <block type="math_change" id="A:o.bS|YSqTZIXO,RYsq">
                                  <field name="VAR" id="3eB$2W@DF:EW1g*m75Zg">cn1</field>
                                  <value name="DELTA">
                                    <shadow type="math_number" id="B+g$AFW9SCLlqMpzkOE4">
                                      <field name="NUM">-1</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="controls_if" id="Yp=BM9L*8-zaDM=,Yru$">
                                      <value name="IF0">
                                        <block type="logic_compare" id="J5-^zoj8EO|C5jUh`rYi">
                                          <field name="OP">LTE</field>
                                          <value name="A">
                                            <block type="variables_get" id="dgoR|fpuLn]gZFDY9@z-">
                                              <field name="VAR" id="3eB$2W@DF:EW1g*m75Zg">cn1</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="k4}].3J+$BT76=hy}Weu">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="timeouts_clearinterval" id="]q%@S9Axuf%V_^Z-#S3L">
                                          <field name="NAME">Intervall</field>
                                          <next>
                                            <block type="control" id="GmOZ.kl$D(e@@ilhhbUA">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">sonoff.0.Sonoff4CHGarten.POWER1</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="yRaL4Zuu1Y4S9ifLWeA%">
                                                  <field name="BOOL">FALSE</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="debug" id="n/O42/m|n:i)pzvYt0if">
                  <field name="Severity">warn</field>
                  <value name="TEXT">
                    <shadow type="text" id="/csjK0gf1QUORu}CDkOT">
                      <field name="TEXT">----- Ende Bewässerung 1 ------</field>
                    </shadow>
                  </value>
                </block>
              </next>
            </block>
          </statement>
        </block>
        <block type="schedule" id="-8J[8-rahq!PgM^t)bm)" x="138" y="138">
          <field name="SCHEDULE">*/15 * * * * *</field>
          <statement name="STATEMENT">
            <block type="procedures_callnoreturn" id="O9yEz|xTGwizXup64dF9">
              <mutation name="Start_Bewaesserungskreis_1"></mutation>
            </block>
          </statement>
        </block>
      </xml>
      
      
      posted in Blockly
      oliverni
      oliverni
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo