Navigation

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

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Markise AUF / ZU Regen / Wind

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

      Könnt ihr mir über dieses Skript kurz drüberschauen, ob ich was vergessen habe oder einen Logikfehler eingebaut habe.
      Ich möchte nicht, dass mir die Markise davon fliegt. 🙂

      <xml xmlns="http://www.w3.org/1999/xhtml">
      <variables>
      <variable type="undefined" id="timeout3">timeout3</variable>
      <variable type="undefined" id="timeout4">timeout4</variable>
      <variable type="undefined" id="timeout2">timeout2</variable>
      </variables>
      <block type="on_ext" id="0.Tcg.|FVV@zWgm#c9X" x="-1237" y="-12"> <mutation items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="9N:~4[Ubr[Pfw%7Tajp]"> <field name="oid">javascript.0.Regen</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id=".ajiR}(6tHBbQsIR2cq5"> <field name="oid">javascript.0.Wind</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="6z?G6LOhk.*pUJ[3nBly"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="(^1Ymf._%Znb7+8yh+e}"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="o@j/1V#|3=UD.RzQXy^b"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="{7Is|D.,kxItJ_bK:XS}"> <field name="ATTR">val</field> <field name="OID">javascript.0.Regen</field> </block> </value> <value name="B"> <block type="text" id="hKsfoH1S)-VE8mUk}s9E"> <field name="TEXT">Regen</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="q{}FDHOXk|3qg60S7d~f"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="+4ri0UBGpu}1+(exICSj"> <field name="ATTR">val</field> <field name="OID">javascript.0.Wind</field> </block> </value> <value name="B"> <block type="text" id="Y2AjZ@=8MJbx=sIv0Rm_"> <field name="TEXT">Kein Wind</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control_ex" id="GdxLk(H{J[(l__d%L,H6"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="%IFjtn9qKJn,YBezkIDY"> <field name="oid">rflink.0.channels.BrelMotor_1.BLIND_41_ZU</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id="*PgLQuJ;/Mr9o2f8fOn5"> <field name="BOOL">TRUE</field> </shadow> </value> <value name="DELAY_MS"> <shadow type="math_number" id="LFl|NmeM_88bD8OIA36q"> <field name="NUM">0</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="YjN-x-csaPd%9hP5*IKP"> <field name="NAME">timeout3</field> <field name="DELAY">12</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control_ex" id="7s)UtVK|j%@NjiE(r/zY"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="^]EYt7Zl1p3l/+RsIa;f"> <field name="oid">rflink.0.channels.BrelMotor_1.BLIND_STOP_41</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id="T*MgSZ@sN5[ibKyI?eR5"> <field name="BOOL">TRUE</field> </shadow> </value> <value name="DELAY_MS"> <shadow type="math_number" id=".sncOg3vAp=[t8V#f]Q2"> <field name="NUM">0</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="DiT0F9C}Ev9G_O0e6ua">
      <field name="NAME">timeout4</field>
      <field name="DELAY">2</field>
      <field name="UNIT">sec</field>
      <statement name="STATEMENT">
      <block type="control_ex" id="gzg8CYe2fG^vmEm!;Nr"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="ex!lvTl2{*B*]Xu8BO=w"> <field name="oid">rflink.0.channels.BrelMotor_1.BLIND_41_ZU</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id="(cj2/qjmlKjapXj[y_KR"> <field name="BOOL">FALSE</field> </shadow> </value> <value name="DELAY_MS"> <shadow type="math_number" id="liocXn#BgYb}tUsh=f"> <field name="NUM">0</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="tx+r[H8n+2nJPu8;f%8O"> <field name="NAME">timeout2</field> <field name="DELAY">11</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control_ex" id="v6XZ7R]C?p#Un~qC=9)|"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="MLOp|OOOIkE88~whqu=N"> <field name="oid">rflink.0.channels.BrelMotor_1.BLIND_STOP_41</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id="dnflsA}ChFCd|Wvd}75Q"> <field name="BOOL">TRUE</field> </shadow> </value> <value name="DELAY_MS"> <shadow type="math_number" id="HLVbLCvvMb;]hHV2@+5">
      <field name="NUM">0</field>
      </shadow>
      </value>
      </block>
      </statement>
      </block>
      </next>
      </block>
      </statement>
      </block>
      </next>
      </block>
      </statement>
      </block>
      </next>
      </block>
      </statement>
      <value name="IF1">
      <block type="logic_operation" id="85j@T+LZ@9dr59_keRkx">
      <field name="OP">OR</field>
      <value name="A">
      <block type="logic_compare" id=")BO7rPDr#8rm~4U)vQ!0">
      <field name="OP">EQ</field>
      <value name="A">
      <block type="get_value" id="haKIKct]1#g)?*^7^o">
      <field name="ATTR">val</field>
      <field name="OID">javascript.0.Regen</field>
      </block>
      </value>
      <value name="B">
      <block type="text" id="B;S~4QTF/q_P2z,BmG|M">
      <field name="TEXT">Kein Regen</field>
      </block>
      </value>
      </block>
      </value>
      <value name="B">
      <block type="logic_compare" id="(bt03@z2e*GRAMVY3KZE">
      <field name="OP">NEQ</field>
      <value name="A">
      <block type="get_value" id="*0D1F=!/}W%8SdanndJt">
      <field name="ATTR">val</field>
      <field name="OID">javascript.0.Wind</field>
      </block>
      </value>
      <value name="B">
      <block type="text" id="ji{=p|J#/Nu8bg[c.h!n">
      <field name="TEXT">Kein Wind</field>
      </block>
      </value>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO1">
      <block type="control_ex" id="9rwMgpV4e~|-r@geH1GZ">
      <field name="TYPE">false</field>
      <field name="CLEAR_RUNNING">FALSE</field>
      <value name="OID">
      <shadow type="field_oid" id="y1fi!C@DTn{^Bk@Z={e!">
      <field name="oid">rflink.0.channels.BrelMotor_1.BLIND_41_ZU</field>
      </shadow>
      </value>
      <value name="VALUE">
      <shadow type="logic_boolean" id="xNQ`_}Lc2drcpyj%+Nu8">
      <field name="BOOL">TRUE</field>
      </shadow>
      </value>
      <value name="DELAY_MS">
      <shadow type="math_number" id="L6H)tzc+x3nzvRiUJ0Pz">
      <field name="NUM">0</field>
      </shadow>
      </value>
      </block>
      </statement>
      </block>
      </statement>
      </block>
      </xml>

      Regen:
      Zuerst muss ich die Markise zu fahren ca.20 Sekunden (ich weiß ja nicht wo sie steht)
      2 Sekunden Wartezeit mit STOP
      11 Sekunden Auffahren
      STOP

      Wind:
      Sofort Zufahren und alle anderen Ausführungen Stoppen, bis 1 Stunde lang "kein Wind".
      Wie Verzögere ich das vernünftig?

      Änderung zu "kein Regen":
      Zufahren (Regenabfrage "kein Regen") ist in einem anderen Script mit Netatmo "one hour no rain" verzögert.

      Bitte um Ratschläge und Ideen

      Liebe Grüße

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

      Support us

      ioBroker
      Community Adapters
      Donate

      938
      Online

      31.7k
      Users

      79.7k
      Topics

      1.3m
      Posts

      blockly
      1
      1
      311
      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