Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Blockly Script mit Button Starten und Stoppen?

    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

    Blockly Script mit Button Starten und Stoppen?

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

      @EFE sagte in Blockly Script mit Button Starten und Stoppen?:

      @BBTown kannst du en ersten Script auch zur Verfügung stellen

      Dort sind allerdings ausschließlich meine Datenpunkte enthalten, ob dir das wirklich hilft??

      <xml xmlns="http://www.w3.org/1999/xhtml">
       <block type="on_ext" id="EJM|@:jmZIaH#kui+f}?" x="-363" y="-262">
         <mutation items="1"></mutation>
         <field name="CONDITION">ne</field>
         <field name="ACK_CONDITION"></field>
         <value name="OID0">
           <shadow type="field_oid" id="Xg0)VZfR^U5/0{4J:HqZ">
             <field name="oid">hm-rega.0.7593</field>
           </shadow>
         </value>
         <statement name="STATEMENT">
           <block type="controls_if" id="@UF!NZ3RUJZlg:z1iZ1q">
             <mutation elseif="2"></mutation>
             <value name="IF0">
               <block type="logic_compare" id="sL!|(9Gl)G1=#b}%S%v:">
                 <field name="OP">EQ</field>
                 <value name="A">
                   <block type="get_value" id="X+QvPs:Bh(q-QD#Zv|T3">
                     <field name="ATTR">val</field>
                     <field name="OID">hm-rega.0.7593</field>
                   </block>
                 </value>
                 <value name="B">
                   <block type="math_number" id="bNapoZ!@=lF%l,Q!:H0-">
                     <field name="NUM">0</field>
                   </block>
                 </value>
               </block>
             </value>
             <statement name="DO0">
               <block type="controls_if" id="2PT@(%F7NJe9Wgtc3OaZ">
                 <value name="IF0">
                   <block type="logic_compare" id="kJB(hGFGwed%/I)C.2;W">
                     <field name="OP">LT</field>
                     <value name="A">
                       <block type="get_value" id="ERuix#=mLC]ZGqalAB)%">
                         <field name="ATTR">val</field>
                         <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="s^0,*y!#4a(_V]/0.AIu">
                         <field name="NUM">100</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="control" id="!_P%)Kc!T./|Ot=*wQ@3">
                     <mutation delay_input="false"></mutation>
                     <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="math_number" id="DGr90Ck8YkOk7N??.A}h">
                         <field name="NUM">100</field>
                       </block>
                     </value>
                   </block>
                 </statement>
               </block>
             </statement>
             <value name="IF1">
               <block type="logic_operation" id="5/[f?gy}xFOj6r.gVC*+" inline="false">
                 <field name="OP">AND</field>
                 <value name="A">
                   <block type="logic_compare" id="7mqP4=LP^:NXWE#bQd%L">
                     <field name="OP">EQ</field>
                     <value name="A">
                       <block type="get_value" id="?XT@KMJqfYGo1?sh`lly">
                         <field name="ATTR">val</field>
                         <field name="OID">hm-rega.0.7593</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="67CKvU4k1.,N5d?TC.(0">
                         <field name="NUM">2</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <value name="B">
                   <block type="logic_compare" id="*2kdugY._@cQmmZ6pw%+">
                     <field name="OP">EQ</field>
                     <value name="A">
                       <block type="get_value" id="k]7?ID2}/Uc}1rm@2A*;">
                         <field name="ATTR">val</field>
                         <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="logic_boolean" id="BblGTk_=Bi7NkkBqFIxl">
                         <field name="BOOL">FALSE</field>
                       </block>
                     </value>
                   </block>
                 </value>
               </block>
             </value>
             <statement name="DO1">
               <block type="control" id="783TJZ6)XOYN|8(TC+gN">
                 <mutation delay_input="false"></mutation>
                 <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
                 <field name="WITH_DELAY">FALSE</field>
                 <value name="VALUE">
                   <block type="math_number" id="hr*ER6I`m27TsBV3rm(a">
                     <field name="NUM">38</field>
                   </block>
                 </value>
               </block>
             </statement>
             <value name="IF2">
               <block type="logic_operation" id="f3|5[I{_VuS#boV]GO~h" inline="false">
                 <field name="OP">AND</field>
                 <value name="A">
                   <block type="logic_compare" id="/bS(,id]^:`JMmvMu/:D">
                     <field name="OP">EQ</field>
                     <value name="A">
                       <block type="get_value" id="9;{g)=PGUiYgq.s3axfG">
                         <field name="ATTR">val</field>
                         <field name="OID">hm-rega.0.7593</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="}a_5,w,]lS4Qmv{%=twA">
                         <field name="NUM">1</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <value name="B">
                   <block type="logic_compare" id="r*{[YCM9T#3d|QK9t.ac">
                     <field name="OP">EQ</field>
                     <value name="A">
                       <block type="get_value" id="=)kQ`[~g5v5):jirVJ4!">
                         <field name="ATTR">val</field>
                         <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="logic_boolean" id="(a4rl_Sg52F2{?.:)cq]">
                         <field name="BOOL">FALSE</field>
                       </block>
                     </value>
                   </block>
                 </value>
               </block>
             </value>
             <statement name="DO2">
               <block type="control" id="/#Yc2XIRDNLpYpq{nPlX">
                 <mutation delay_input="false"></mutation>
                 <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
                 <field name="WITH_DELAY">FALSE</field>
                 <value name="VALUE">
                   <block type="math_number" id="{?OEro[Sp;;Oh^Y1TZrO">
                     <field name="NUM">0</field>
                   </block>
                 </value>
               </block>
             </statement>
           </block>
         </statement>
       </block>
      </xml>
      

      1 Reply Last reply Reply Quote 0
      • BBTown
        BBTown @EFE last edited by

        @EFE sagte in Blockly Script mit Button Starten und Stoppen?:

        Und ich aber die Terrassentür um 23 Uhr schließe fährt die Rolladen nicht runter.
        Muss ich dann manuell runterfahren oder?
        Müsste deinen Script ändern oder?

        Die Frage ist, ob Du das Prinzip verinnerlicht hast?!
        Dann solltest Du das ganze für dich ableiten können.

        1 Reply Last reply Reply Quote 0
        • E
          EFE last edited by EFE

          @BBTown Vielen Dank,
          jetzt zum verständnis !
          Dieser Script ist zum Steuern der Rolladen
          Bild Text

          und dieser für den Fenster Kontakt Steuerung
          Bild Text


          <xml xmlns="http://www.w3.org/1999/xhtml">
          <block type="on_ext" id="}(GJM@hL_WGqGrc=8w/?" x="-212" y="-213">
          <mutation items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
          <shadow type="field_oid" id="eX%{FY%1v=!Qqn.iM,@J">
          <field name="oid">hm-rpc.0.MEQ1234567.1.STATE</field>
          </shadow>
          </value>
          <statement name="STATEMENT">
          <block type="controls_if" id="4w0gzUO?@K-NOGYg7+r@">
          <mutation elseif="1" else="1"></mutation>
          <value name="IF0">
          <block type="logic_compare" id="Oom?srzbcRy)WcYq[UH+">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="get_value" id="MQXWOArZuXwZ3dYIk"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%Tg8ve|k7J+w[Bv}?ghD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="gz=8AcC1KO8_a*;YS4=A"> <field name="COMMENT">Rolladen der Terrassentür wird durch öffnen der Terrassentür ebenfalls geöffnet</field> <next> <block type="controls_if" id=";wh;FMUU^^!Utc[=^_wy"> <value name="IF0"> <block type="logic_compare" id="x-W?vDRT0BNhEBCT*_n="> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="X{-wM(v}1Y!JknTP=F|-"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> </block> </value> <value name="B"> <block type="math_number" id="oZmBA,#RlGAi4RCuDfsb"> <field name="NUM">85</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="uD!0PTu/3joo[^2w8shG"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="nd+(CWJB4!K^OkS3idq">
          <field name="NUM">100</field>
          </block>
          </value>
          </block>
          </statement>
          <next>
          <block type="comment" id="gGP?{Jr*EmX|,Ki:RhG">
          <field name="COMMENT">Sofern es dunkel ist, wird zudem das Licht auf der Terrasse eingeschaltet</field>
          <next>
          <block type="controls_if" id="HT3pi:h5/3+@
          [sEH#n"> <value name="IF0"> <block type="logic_compare" id="Rf*ihJbquW];D]-f.NC="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/DEXxlR_Z0L6|3%k63nP"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.JEQ1234567.17.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%#0v7bA24?hSs::IpObR"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="}^-}DGLEB,u2%p@aFn-J"> <value name="IF0"> <block type="logic_compare" id="X{xe/C^B)4%RuFXdf">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="get_value" id="jT/bcv25;,+Z@w9nD~">
          <field name="ATTR">val</field>
          <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
          </block>
          </value>
          <value name="B">
          <block type="logic_boolean" id="gUSPCYhI/J%OceX[Dd%R">
          <field name="BOOL">FALSE</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="control" id="tYSXDVXW5F?L{R_ZW+W_">
          <mutation delay_input="false"></mutation>
          <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="logic_boolean" id="lidnbx)JL/=G}EDOLTV"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="OyISy(j?S{8i?-~#I8y@" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="~hS[Cjr/R0l:ff]]uW#w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="@lwKG;sSWO]FsRNncLb8"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="R)|X3p)o3/%[zU)4c1EK"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="LJ|_^U(3W3Ss8P]6afl^"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="K2[m]1V@VS6vOcTYQ+u">
          <field name="ATTR">val</field>
          <field name="OID">hm-rega.0.7593</field>
          </block>
          </value>
          <value name="B">
          <block type="math_number" id="(/E(hHvGt^12C*/;tG"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="controls_if" id="8NNyZtz5wVuMEGm|yFQ">
          <value name="IF0">
          <block type="logic_compare" id="6Nd6=uptK*%0czHTU64V">
          <field name="OP">NEQ</field>
          <value name="A">
          <block type="get_value" id="=gF.CUJp%[N]5#]%:gYX">
          <field name="ATTR">val</field>
          <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
          </block>
          </value>
          <value name="B">
          <block type="math_number" id="7M}z!EExPaHZM[Qp|*#2">
          <field name="NUM">40</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="control" id="eiD[xuc^*ifI}OLHqw">
          <mutation delay_input="false"></mutation>
          <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="math_number" id="|~tgkuN@3F,B@fnf{G">
          <field name="NUM">40</field>
          </block>
          </value>
          </block>
          </statement>
          </block>
          </statement>
          <statement name="ELSE">
          <block type="comment" id="^ksDmSwf+EXR!.|1NHU?">
          <field name="COMMENT">Rolladen der Terrassentür wird durch schließen der Terrassentür ebenfalls geschlossen</field>
          <next>
          <block type="comment" id="y(BFsGJP?j5fVO20~6=0">
          <field name="COMMENT">Wenn alle anderen Rolladen ebenfalls verschlossen sind</field>
          <next>
          <block type="controls_if" id=":Af{QMfu#{MRB:w5i[Dx">
          <value name="IF0">
          <block type="logic_compare" id="|emPlsVSnBx^6le|82e|">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="get_value" id="G~-)]2%9ZeuZvYGEc4"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.7593</field> </block> </value> <value name="B"> <block type="math_number" id=".w6Xh[!@IcPHNgsbWbw">
          <field name="NUM">1</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="controls_if" id="P}?2ue7H#/Q@RM.:o~/I">
          <value name="IF0">
          <block type="logic_compare" id="n~qbMHVDBBBaKV#9}9kZ">
          <field name="OP">GT</field>
          <value name="A">
          <block type="get_value" id="L
          [pOa.y~yB,1iM@Un)t">
          <field name="ATTR">val</field>
          <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
          </block>
          </value>
          <value name="B">
          <block type="math_number" id="vb1F!{{zwk/G1mcs^shm">
          <field name="NUM">0</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="control" id="[bi}.kofkjfswY2|Ee
          ,">
          <mutation delay_input="false"></mutation>
          <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="math_number" id="w42~amA;C,Dl3lJcDhgr">
          <field name="NUM">0</field>
          </block>
          </value>
          </block>
          </statement>
          <next>
          <block type="comment" id="95j::wTcj#3_VD#vB}d-">
          <field name="COMMENT">Sofern das Licht auf der Terrasse eingeschaltet war, wird es ausgeschaltet</field>
          <next>
          <block type="controls_if" id="W]}#MhXQ!%AhrXwmPo45">
          <value name="IF0">
          <block type="logic_compare" id="7m,u;LdeLY6xVwE?)=(E">
          <field name="OP">EQ</field>
          <value name="A">
          <block type="get_value" id="G:-:~=dbAg%1S6+u=vS">
          <field name="ATTR">val</field>
          <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
          </block>
          </value>
          <value name="B">
          <block type="logic_boolean" id="p_xhlR(9|klSS@,Y]m;.">
          <field name="BOOL">TRUE</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="control" id="21_4j
          ~FI.CA=ytw0dkl">
          <mutation delay_input="false"></mutation>
          <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="logic_boolean" id="S-?9G23mEHWC7j=gn]Is">
          <field name="BOOL">FALSE</field>
          </block>
          </value>
          </block>
          </statement>
          <next>
          <block type="comment" id="B.~DeR_3dHQ[-l/v^*@"> <field name="COMMENT">Sofern die Steckdose der Terrasse eingeschaltet war, wird diese ausgeschaltet</field> <next> <block type="controls_if" id="-#zR)oGXP7tefe4Pgh|i"> <value name="IF0"> <block type="logic_compare" id="VHf7!XQ9=E{riEC0*}ky"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ShwexER{_Sc3U^XkKfU">
          <field name="ATTR">val</field>
          <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
          </block>
          </value>
          <value name="B">
          <block type="logic_boolean" id="zVR;nFt#n=*QNyVT?IL,">
          <field name="BOOL">TRUE</field>
          </block>
          </value>
          </block>
          </value>
          <statement name="DO0">
          <block type="control" id="^-R.4u(oJLL+HrFzE4Vy">
          <mutation delay_input="false"></mutation>
          <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
          <block type="logic_boolean" id="IFUjkVv%8GcAigKHZJ%r">
          <field name="BOOL">FALSE</field>
          </block>
          </value>
          </block>
          </statement>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </next>
          </block>
          </statement>
          </block>
          </next>
          </block>
          </next>
          </block>
          </statement>
          </block>
          </statement>
          </block>
          </xml>

          oder ?
          ich muss dadran basteln !
          ich muss meine eigenen Datenpunkte eintragen.

          BBTown E 3 Replies Last reply Reply Quote 0
          • BBTown
            BBTown @EFE last edited by

            @EFE das sind doch beides die gleichen?!

            E 1 Reply Last reply Reply Quote 0
            • E
              EFE @BBTown last edited by

              @BBTown said in Blockly Script mit Button Starten und Stoppen?:

              @EFE das sind doch beides die gleichen?!

              stimmt...:)
              ich meinte
              alt text

              BBTown 1 Reply Last reply Reply Quote 0
              • BBTown
                BBTown @EFE last edited by

                @EFE und zu was ?
                zu 1 oder zu 2?

                1 Reply Last reply Reply Quote 0
                • BBTown
                  BBTown @EFE last edited by

                  @EFE hier steht es doch ausführlich

                  1 Reply Last reply Reply Quote 0
                  • E
                    EFE @EFE last edited by

                    @EFE sagte in Blockly Script mit Button Starten und Stoppen?:

                    @BBTown Vielen Dank,
                    jetzt zum verständnis !
                    Dieser Script ist zum Steuern der Rolladen
                    Bild Text

                    und dieser für den Fenster Kontakt Steuerung
                    Bild Text


                    <xml xmlns="http://www.w3.org/1999/xhtml">
                    <block type="on_ext" id="}(GJM@hL_WGqGrc=8w/?" x="-212" y="-213">
                    <mutation items="1"></mutation>
                    <field name="CONDITION">ne</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                    <shadow type="field_oid" id="eX%{FY%1v=!Qqn.iM,@J">
                    <field name="oid">hm-rpc.0.MEQ1234567.1.STATE</field>
                    </shadow>
                    </value>
                    <statement name="STATEMENT">
                    <block type="controls_if" id="4w0gzUO?@K-NOGYg7+r@">
                    <mutation elseif="1" else="1"></mutation>
                    <value name="IF0">
                    <block type="logic_compare" id="Oom?srzbcRy)WcYq[UH+">
                    <field name="OP">EQ</field>
                    <value name="A">
                    <block type="get_value" id="MQXWOArZuXwZ3dYIk"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%Tg8ve|k7J+w[Bv}?ghD"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="gz=8AcC1KO8_a*;YS4=A"> <field name="COMMENT">Rolladen der Terrassentür wird durch öffnen der Terrassentür ebenfalls geöffnet</field> <next> <block type="controls_if" id=";wh;FMUU^^!Utc[=^_wy"> <value name="IF0"> <block type="logic_compare" id="x-W?vDRT0BNhEBCT*_n="> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="X{-wM(v}1Y!JknTP=F|-"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> </block> </value> <value name="B"> <block type="math_number" id="oZmBA,#RlGAi4RCuDfsb"> <field name="NUM">85</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="uD!0PTu/3joo[^2w8shG"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="nd+(CWJB4!K^OkS3idq">
                    <field name="NUM">100</field>
                    </block>
                    </value>
                    </block>
                    </statement>
                    <next>
                    <block type="comment" id="gGP?{Jr*EmX|,Ki:RhG">
                    <field name="COMMENT">Sofern es dunkel ist, wird zudem das Licht auf der Terrasse eingeschaltet</field>
                    <next>
                    <block type="controls_if" id="HT3pi:h5/3+@
                    [sEH#n"> <value name="IF0"> <block type="logic_compare" id="Rf*ihJbquW];D]-f.NC="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/DEXxlR_Z0L6|3%k63nP"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.JEQ1234567.17.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="%#0v7bA24?hSs::IpObR"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="}^-}DGLEB,u2%p@aFn-J"> <value name="IF0"> <block type="logic_compare" id="X{xe/C^B)4%RuFXdf">
                    <field name="OP">EQ</field>
                    <value name="A">
                    <block type="get_value" id="jT/bcv25;,+Z@w9nD~">
                    <field name="ATTR">val</field>
                    <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
                    </block>
                    </value>
                    <value name="B">
                    <block type="logic_boolean" id="gUSPCYhI/J%OceX[Dd%R">
                    <field name="BOOL">FALSE</field>
                    </block>
                    </value>
                    </block>
                    </value>
                    <statement name="DO0">
                    <block type="control" id="tYSXDVXW5F?L{R_ZW+W_">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                    <block type="logic_boolean" id="lidnbx)JL/=G}EDOLTV"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="OyISy(j?S{8i?-~#I8y@" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="~hS[Cjr/R0l:ff]]uW#w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="@lwKG;sSWO]FsRNncLb8"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1234567.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="R)|X3p)o3/%[zU)4c1EK"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="LJ|_^U(3W3Ss8P]6afl^"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="K2[m]1V@VS6vOcTYQ+u">
                    <field name="ATTR">val</field>
                    <field name="OID">hm-rega.0.7593</field>
                    </block>
                    </value>
                    <value name="B">
                    <block type="math_number" id="(/E(hHvGt^12C*/;tG"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="controls_if" id="8NNyZtz5wVuMEGm|yFQ">
                    <value name="IF0">
                    <block type="logic_compare" id="6Nd6=uptK*%0czHTU64V">
                    <field name="OP">NEQ</field>
                    <value name="A">
                    <block type="get_value" id="=gF.CUJp%[N]5#]%:gYX">
                    <field name="ATTR">val</field>
                    <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
                    </block>
                    </value>
                    <value name="B">
                    <block type="math_number" id="7M}z!EExPaHZM[Qp|*#2">
                    <field name="NUM">40</field>
                    </block>
                    </value>
                    </block>
                    </value>
                    <statement name="DO0">
                    <block type="control" id="eiD[xuc^*ifI}OLHqw">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                    <block type="math_number" id="|~tgkuN@3F,B@fnf{G">
                    <field name="NUM">40</field>
                    </block>
                    </value>
                    </block>
                    </statement>
                    </block>
                    </statement>
                    <statement name="ELSE">
                    <block type="comment" id="^ksDmSwf+EXR!.|1NHU?">
                    <field name="COMMENT">Rolladen der Terrassentür wird durch schließen der Terrassentür ebenfalls geschlossen</field>
                    <next>
                    <block type="comment" id="y(BFsGJP?j5fVO20~6=0">
                    <field name="COMMENT">Wenn alle anderen Rolladen ebenfalls verschlossen sind</field>
                    <next>
                    <block type="controls_if" id=":Af{QMfu#{MRB:w5i[Dx">
                    <value name="IF0">
                    <block type="logic_compare" id="|emPlsVSnBx^6le|82e|">
                    <field name="OP">EQ</field>
                    <value name="A">
                    <block type="get_value" id="G~-)]2%9ZeuZvYGEc4"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.7593</field> </block> </value> <value name="B"> <block type="math_number" id=".w6Xh[!@IcPHNgsbWbw">
                    <field name="NUM">1</field>
                    </block>
                    </value>
                    </block>
                    </value>
                    <statement name="DO0">
                    <block type="controls_if" id="P}?2ue7H#/Q@RM.:o~/I">
                    <value name="IF0">
                    <block type="logic_compare" id="n~qbMHVDBBBaKV#9}9kZ">
                    <field name="OP">GT</field>
                    <value name="A">
                    <block type="get_value" id="L
                    [pOa.y~yB,1iM@Un)t">
                    <field name="ATTR">val</field>
                    <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
                    </block>
                    </value>
                    <value name="B">
                    <block type="math_number" id="vb1F!{{zwk/G1mcs^shm">
                    <field name="NUM">0</field>
                    </block>
                    </value>
                    </block>
                    </value>
                    <statement name="DO0">
                    <block type="control" id="[bi}.kofkjfswY2|Ee
                    ,">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">hm-rpc.1.KEQ1234567.3.LEVEL</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                    <block type="math_number" id="w42~amA;C,Dl3lJcDhgr">
                    <field name="NUM">0</field>
                    </block>
                    </value>
                    </block>
                    </statement>
                    <next>
                    <block type="comment" id="95j::wTcj#3_VD#vB}d-">
                    <field name="COMMENT">Sofern das Licht auf der Terrasse eingeschaltet war, wird es ausgeschaltet</field>
                    <next>
                    <block type="controls_if" id="W]}#MhXQ!%AhrXwmPo45">
                    <value name="IF0">
                    <block type="logic_compare" id="7m,u;LdeLY6xVwE?)=(E">
                    <field name="OP">EQ</field>
                    <value name="A">
                    <block type="get_value" id="G:-:~=dbAg%1S6+u=vS">
                    <field name="ATTR">val</field>
                    <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
                    </block>
                    </value>
                    <value name="B">
                    <block type="logic_boolean" id="p_xhlR(9|klSS@,Y]m;.">
                    <field name="BOOL">TRUE</field>
                    </block>
                    </value>
                    </block>
                    </value>
                    <statement name="DO0">
                    <block type="control" id="21_4j
                    ~FI.CA=ytw0dkl">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">hm-rpc.1.JEQ1234567.16.STATE</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                    <block type="logic_boolean" id="S-?9G23mEHWC7j=gn]Is">
                    <field name="BOOL">FALSE</field>
                    </block>
                    </value>
                    </block>
                    </statement>
                    <next>
                    <block type="comment" id="B.~DeR_3dHQ[-l/v^*@"> <field name="COMMENT">Sofern die Steckdose der Terrasse eingeschaltet war, wird diese ausgeschaltet</field> <next> <block type="controls_if" id="-#zR)oGXP7tefe4Pgh|i"> <value name="IF0"> <block type="logic_compare" id="VHf7!XQ9=E{riEC0*}ky"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ShwexER{_Sc3U^XkKfU">
                    <field name="ATTR">val</field>
                    <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
                    </block>
                    </value>
                    <value name="B">
                    <block type="logic_boolean" id="zVR;nFt#n=*QNyVT?IL,">
                    <field name="BOOL">TRUE</field>
                    </block>
                    </value>
                    </block>
                    </value>
                    <statement name="DO0">
                    <block type="control" id="^-R.4u(oJLL+HrFzE4Vy">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">hm-rpc.1.KEQ1234567.3.STATE</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                    <block type="logic_boolean" id="IFUjkVv%8GcAigKHZJ%r">
                    <field name="BOOL">FALSE</field>
                    </block>
                    </value>
                    </block>
                    </statement>
                    </block>
                    </next>
                    </block>
                    </next>
                    </block>
                    </next>
                    </block>
                    </next>
                    </block>
                    </statement>
                    </block>
                    </next>
                    </block>
                    </next>
                    </block>
                    </statement>
                    </block>
                    </statement>
                    </block>
                    </xml>

                    oder ?
                    ich muss dadran basteln !
                    ich muss meine eigenen Datenpunkte eintragen.

                    BBTown 1 Reply Last reply Reply Quote 0
                    • BBTown
                      BBTown @EFE last edited by

                      @EFE sagte in Blockly Script mit Button Starten und Stoppen?:

                      Dieser Script ist zum Steuern der Rolladen

                      Nein ... dieses Script steuert einzig und allein den Rolladen der Terrassentür.

                      1 Reply Last reply Reply Quote 0
                      • E
                        EFE last edited by

                        @BBTown ok jetzt hab ich es verstanden !
                        Ich mach mich mal an die Arbeit für deine Mühe und deiner Vorlagen vielen danke 🙂

                        1 Reply Last reply Reply Quote 0
                        • E
                          EFE last edited by

                          Hi @BBTown ,
                          ich hab mal rumgebastelt aber das ende vom Lied.

                          Rolladen fahren nach Astro morgens Hoch
                          abends auch runter kurz vorher meldet das Alexa soweit super aber.....

                          Screenshot at Juni 16 12-57-44.png

                          Ich habe ein Fensterkontakt an die Terrassentüre eingebaut genauer gesagt ein Sonof v1 mit Tasmota .
                          Sobald dieser Auf ist Triggert es auf false
                          und bei Geschlossen auf true.
                          ist auch im iobroker zu sehen !

                          Ich will den Kontakt dazu nutzten steht die Türe auf false dann soll das Rolladen Wohnzimmer Schließen deaktiviert werden.

                          Wenn die Terrassentüre später als nach Sonnenuntergang geschlossen wird ,
                          dann muss ich diese Manuell runterfahren währe ja kein Problem
                          und da ja der Kontakt auf true(tTerrassentüre Geschlossen)steht sollte bei nächsten Sonnenuntergang die Rollos automatisch runterfahren .
                          Ich hab den Blockly gelöst und in ein neuen Blocky geschrieben .
                          Screenshot at Juni 16 14-05-29.png

                          Ich hab es mit diesem Blockly versucht aber es klappt nicht.
                          Wie gesagt Türe auf nicht Triggern sobald zu bei nächsten mal Triggern
                          hab ich da etwas übersehen ??

                          Screenshot at Juni 16 14-19-19.png

                          BBTown 1 Reply Last reply Reply Quote 0
                          • BBTown
                            BBTown @EFE last edited by

                            @EFE Du magst es offensichtlich nicht nach meinem Prinzip einrichten, sondern willst es unbedingt anders handhaben.
                            Dann kann ich dir leider nicht helfen

                            1 Reply Last reply Reply Quote 0
                            • E
                              EFE last edited by EFE

                              Ja, bin irgendwie nicht klar gekommen mit deinem Script.
                              Fans es zu kompliziert

                              1 Reply Last reply Reply Quote 0
                              • iomountain
                                iomountain last edited by

                                @EFE
                                Trigger in Trigger geht so nicht, was du anstatt dem inneren Trigger brauchst ist eine Abfrageblock mit "und" und der Trigger Astro sollte die äußere Klammer sein. Aber dann bist du wieder bei der Lösung von @BBTown.
                                PS.: man kann nicht genug Debug-Bausteine verwenden um zu sehen was läuft.

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                619
                                Online

                                31.9k
                                Users

                                80.2k
                                Topics

                                1.3m
                                Posts

                                5
                                27
                                2955
                                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