Navigation

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

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Aktor schalten bei 2 unterschiedlichen Werten

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

      So hab ich das jetzt mal eingebaut

      97783715-2c66-4e1c-a002-98f26d97035f-image.png

      Ich glaub ich verwechsel da was.
      Der Benebler schaltet da nicht aus.

      Sorry für meine blöden Fragen

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

        @mandragora sagte:

        Der Benebler schaltet da nicht aus.

        Der Benebler muss ausschalten, wenn der Lüfter einschaltet (nicht, wenn der Lüfter schon läuft). Damit der Benebler bei Skript-Start schaltet, ändere es:

        Blockly_temp.JPG

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

          @paul53

          Hallo und Mahlzeit

          Ich hab das jetzt so abgeändert und der Benebler schaltet jetzt. Aber er flappt.
          Siehe mein Kurzvideo:

          2020-12-31_11-32-16.mp4

          Hab es so geändert wie von dir beschrieben. Hab ich da eventuell was übersehen ?

          Das Ganze sieht beim mit jetzt so aus

          8f583191-4266-4cf5-8cda-30f39e17c19e-image.png

          Vielen Dank nochmals und schon vorweg ein gutes und gesundes neues Jahr wünsch ich dir.

          lg
          mandragora

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

            @mandragora sagte:

            Das Ganze sieht beim mit jetzt so aus

            Was sollen das unterste "steuere" in der Funktion und das untere "steuere" im CO2-Trigger? Lösche sie !

            Blockly_temp.JPG

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

              @paul53

              manno.. ich glaub ich sollte mal ein wenig pause machen.
              mach da echt blöde fehler.

              3a0eab3e-06da-49de-acec-39679f174ece-image.png

              so hab ichs mal ausgebessert.
              sollte jetzt doch so sein wie du beschrieben hast.
              oder mach ich schon wieder was falsch ?

              lg
              mandragora

              paul53 2 Replies Last reply Reply Quote 0
              • paul53
                paul53 @mandragora last edited by paul53

                @mandragora sagte:

                mach ich schon wieder was falsch ?

                So passt es, wenn auch "steuere Benebler" unten im CO2-Trigger gelöscht wurde (nach Aufruf Funktion lueften). Es muss so aussehen:

                Blockly_temp.JPG

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

                  @mandragora
                  In der jetzigen Version läuft entweder der Lüfter oder der Benebler, was zu viel Energie verbraucht, da der Lüfter zu schnell die Luftfeuchtigkeit senkt und dadurch der energiehungrige Benebler wieder in Betrieb geht. Anbei eine Variante, bei der im günstigen Luftzustand weder Lüfter noch Benebler laufen:

                  Blockly_temp.JPG

                  <xml xmlns="https://developers.google.com/blockly/xml">
                   <variables>
                     <variable id="8{[Tnur;I1c$*^nwhn^d">CO2_hoch</variable>
                     <variable id="D||vb-)bzhVQF;vX.ON]">entfeuchten</variable>
                     <variable id="We7i8rM)d`aF2[Gw5~vW">luefter</variable>
                     <variable id="CZe?:`PJbK)}:HZ*_W^0">befeuchten</variable>
                     <variable id="6syGaXh^=(_6AEjQ0PU+">benebler</variable>
                   </variables>
                   <block type="comment" id="_j1f_d.s$41p4fETBiI2" x="88" y="-262">
                     <field name="COMMENT">Lüfter</field>
                     <next>
                       <block type="on_ext" id="/}0t2*piu(Gs5DTF`dIy">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                         <field name="CONDITION">any</field>
                         <field name="ACK_CONDITION"></field>
                         <value name="OID0">
                           <shadow type="field_oid" id="h!In4(;{ISP_)Rx)a=m,">
                             <field name="oid">default</field>
                           </shadow>
                         </value>
                         <statement name="STATEMENT">
                           <block type="debug" id="mI1,G7HAk*pUdo)-YqoP">
                             <field name="Severity">log</field>
                             <value name="TEXT">
                               <shadow type="text" id="M|d/5;WSy+sl]@L3{?2!">
                                 <field name="TEXT">test</field>
                               </shadow>
                               <block type="text_join" id="58!22@}p#q==#z4N(B*D">
                                 <mutation items="4"></mutation>
                                 <value name="ADD0">
                                   <block type="text" id="{aGTw]_P^/XbP;rn0An?">
                                     <field name="TEXT">Lüfter: </field>
                                   </block>
                                 </value>
                                 <value name="ADD1">
                                   <block type="on_source" id="78Sx`//:4*`Hg;z`,$J.">
                                     <field name="ATTR">state.val</field>
                                   </block>
                                 </value>
                                 <value name="ADD2">
                                   <block type="text" id="VTLe@DwYcmuyk}+KZk?`">
                                     <field name="TEXT">, Ursprung: </field>
                                   </block>
                                 </value>
                                 <value name="ADD3">
                                   <block type="on_source" id="N;7|j1-0We[v(;1IAth`">
                                     <field name="ATTR">state.from</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </statement>
                       </block>
                     </next>
                   </block>
                   <block type="on_ext" id="+*SWg8m3%X+L#FD0LT=f" x="87" y="288">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                     <field name="CONDITION">ne</field>
                     <field name="ACK_CONDITION"></field>
                     <value name="OID0">
                       <shadow type="field_oid" id="WbZlJcjMVh:.aHZrFU,k">
                         <field name="oid">default</field>
                       </shadow>
                     </value>
                     <statement name="STATEMENT">
                       <block type="controls_if" id="JLq.Se?cs8FHxQzFgkN[">
                         <mutation elseif="1"></mutation>
                         <value name="IF0">
                           <block type="logic_compare" id="n1HQ52SP@9/UZ0kvm]vw">
                             <field name="OP">GT</field>
                             <value name="A">
                               <block type="on_source" id="}9z@]wFSRicUX9~m*hK,">
                                 <field name="ATTR">state.val</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="math_number" id=")gnp,9ER.*;gK(-`JuDL">
                                 <field name="NUM">1200</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="variables_set" id="937INZIs#TEV#L6-{!Rs">
                             <field name="VAR" id="8{[Tnur;I1c$*^nwhn^d">CO2_hoch</field>
                             <value name="VALUE">
                               <block type="logic_boolean" id="3(sqnMUes7;dN(Q})/iP">
                                 <field name="BOOL">TRUE</field>
                               </block>
                             </value>
                           </block>
                         </statement>
                         <value name="IF1">
                           <block type="logic_compare" id="c=c$I8]aUq1)#=;cqR+r">
                             <field name="OP">LT</field>
                             <value name="A">
                               <block type="on_source" id="jT8K-vNYO]s+u],Jk^1Q">
                                 <field name="ATTR">state.val</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="math_number" id="!g(VWN=u6Z#CQsN#:61_">
                                 <field name="NUM">1000</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO1">
                           <block type="variables_set" id="kF:Z.ZX45jkYw4mO1W+;">
                             <field name="VAR" id="8{[Tnur;I1c$*^nwhn^d">CO2_hoch</field>
                             <value name="VALUE">
                               <block type="logic_boolean" id=".wb)J$j61BozHFL5Sa6j">
                                 <field name="BOOL">FALSE</field>
                               </block>
                             </value>
                           </block>
                         </statement>
                         <next>
                           <block type="procedures_callnoreturn" id="T3l6!=GBYDo|erjzRRj}">
                             <mutation name="steuerung"></mutation>
                           </block>
                         </next>
                       </block>
                     </statement>
                     <next>
                       <block type="on_ext" id="^$kw7b|aZq[lj%;yr6*e">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                         <field name="CONDITION">ne</field>
                         <field name="ACK_CONDITION"></field>
                         <value name="OID0">
                           <shadow type="field_oid" id="d,JXN[@`!Sbi{pdrohY+">
                             <field name="oid">default</field>
                           </shadow>
                         </value>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="o+=68RFMCEKtE?$F2d|6">
                             <mutation elseif="1"></mutation>
                             <value name="IF0">
                               <block type="logic_compare" id="U5/.;sO|YY`Yq7h?}orr">
                                 <field name="OP">GTE</field>
                                 <value name="A">
                                   <block type="on_source" id="2U$fkvXsu/+7BA:]P-bG">
                                     <field name="ATTR">state.val</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="iI7v@woIJHj}P_8ti/(s">
                                     <field name="NUM">95</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="variables_set" id="zYf}pO%FqM^yU,7Wunk}">
                                 <field name="VAR" id="D||vb-)bzhVQF;vX.ON]">entfeuchten</field>
                                 <value name="VALUE">
                                   <block type="logic_boolean" id="0tw9YbKw*|rr=7^)*,GL">
                                     <field name="BOOL">TRUE</field>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                             <value name="IF1">
                               <block type="logic_compare" id="M}RgjfdP8D+jdXJ.@+te">
                                 <field name="OP">LTE</field>
                                 <value name="A">
                                   <block type="on_source" id="z.}onau:)~w~vapb%F}@">
                                     <field name="ATTR">state.val</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="L$q(~LEnCw.d@9qeBY_p">
                                     <field name="NUM">90</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO1">
                               <block type="variables_set" id="jd9NK0J{:3P+w,m_oU{;">
                                 <field name="VAR" id="D||vb-)bzhVQF;vX.ON]">entfeuchten</field>
                                 <value name="VALUE">
                                   <block type="logic_boolean" id="`XPyIR/u*mPUTZrI:4P_">
                                     <field name="BOOL">FALSE</field>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                             <next>
                               <block type="controls_if" id="C-dr)_zroms?M[m!In4M">
                                 <mutation elseif="1"></mutation>
                                 <value name="IF0">
                                   <block type="logic_compare" id="i=(VlxX5/jGPX/nCBK`3">
                                     <field name="OP">LTE</field>
                                     <value name="A">
                                       <block type="on_source" id="(HqSUHoLRj1vz%CB=J.@">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="K70diy:,{[akXk}7h#=o">
                                         <field name="NUM">85</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="variables_set" id="(HG,o_1O6A7$AY$o0h_0">
                                     <field name="VAR" id="CZe?:`PJbK)}:HZ*_W^0">befeuchten</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="@V_;J+Sl//)SQ2!vCfB]">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                                 <value name="IF1">
                                   <block type="logic_compare" id="D#*RWCy5DD@mhcVDU~DY">
                                     <field name="OP">GTE</field>
                                     <value name="A">
                                       <block type="on_source" id="wr3fjhvB(zujh6mAt0cy">
                                         <field name="ATTR">state.val</field>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="math_number" id="_^OX]hCq[Vbgmt9N97BT">
                                         <field name="NUM">90</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <statement name="DO1">
                                   <block type="variables_set" id="[Rk9GiM4C!9M}F@_NW?z">
                                     <field name="VAR" id="CZe?:`PJbK)}:HZ*_W^0">befeuchten</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="6BZ}Vz%lzQbK6XoU(m`Q">
                                         <field name="BOOL">FALSE</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                                 <next>
                                   <block type="procedures_callnoreturn" id="J,T)M`/r.f8Q7CvR]j7b">
                                     <mutation name="steuerung"></mutation>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </statement>
                       </block>
                     </next>
                   </block>
                   <block type="variables_set" id="90W/D0PrKfAiWAqxJTsN" x="463" y="338">
                     <field name="VAR" id="8{[Tnur;I1c$*^nwhn^d">CO2_hoch</field>
                     <value name="VALUE">
                       <block type="logic_compare" id="[TV4Ig2S|Nz(i8=)n7Vf">
                         <field name="OP">GT</field>
                         <value name="A">
                           <block type="get_value" id="!rZ{C/}*WsW4s?gz(OL`">
                             <field name="ATTR">val</field>
                             <field name="OID">ID auswählen</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="math_number" id="MrR0Z{x-IgK8ytl4[eeG">
                             <field name="NUM">1200</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <next>
                       <block type="variables_set" id="g!.6S}LT@)V3c)7Q|hg?">
                         <field name="VAR" id="D||vb-)bzhVQF;vX.ON]">entfeuchten</field>
                         <value name="VALUE">
                           <block type="logic_compare" id="~.?22VF?TB-gxXZ-3CcI">
                             <field name="OP">GTE</field>
                             <value name="A">
                               <block type="get_value" id="JER:[|]rhpvRWmup4kNu">
                                 <field name="ATTR">val</field>
                                 <field name="OID">ID auswählen</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="math_number" id="#Xxg5V7IyG@L0~19@`Xv">
                                 <field name="NUM">95</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <next>
                           <block type="variables_set" id="W[p.^Z/xRhdX!*tmX,C[">
                             <field name="VAR" id="CZe?:`PJbK)}:HZ*_W^0">befeuchten</field>
                             <value name="VALUE">
                               <block type="logic_compare" id="74kvL{bQ:ix7qXi.)3?2">
                                 <field name="OP">LTE</field>
                                 <value name="A">
                                   <block type="get_value" id="Kv{X=9UA=gsp)t~Qi,E7">
                                     <field name="ATTR">val</field>
                                     <field name="OID">ID auswählen</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="math_number" id="YlUVO~l;YP+)$~e@UxgC">
                                     <field name="NUM">85</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <next>
                               <block type="procedures_callnoreturn" id="QffG+MgH2CcH),LPb#}j">
                                 <mutation name="steuerung"></mutation>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                   <block type="procedures_defnoreturn" id="Al[nEhetEcB~iB`8{o50" x="487" y="588">
                     <field name="NAME">steuerung</field>
                     <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                     <statement name="STACK">
                       <block type="variables_set" id="kv!?,=C+bc6r4%@QVbb0">
                         <field name="VAR" id="We7i8rM)d`aF2[Gw5~vW">luefter</field>
                         <value name="VALUE">
                           <block type="logic_operation" id="Y5xhg]W|lRrS`E5mX;)?" inline="false">
                             <field name="OP">OR</field>
                             <value name="A">
                               <block type="variables_get" id="LE956${:O}HBN`0Ajh*z">
                                 <field name="VAR" id="8{[Tnur;I1c$*^nwhn^d">CO2_hoch</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="variables_get" id="ozVd[~bBiLm4EkEM/7j^">
                                 <field name="VAR" id="D||vb-)bzhVQF;vX.ON]">entfeuchten</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <next>
                           <block type="controls_if" id="WL7=JiY/,G_~Q/MPko4}">
                             <value name="IF0">
                               <block type="logic_compare" id="ne,O*KqO1%-PT!F14vRL">
                                 <field name="OP">NEQ</field>
                                 <value name="A">
                                   <block type="variables_get" id="XuVJ8ejI5omtt2ntVIh8">
                                     <field name="VAR" id="We7i8rM)d`aF2[Gw5~vW">luefter</field>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="get_value" id="cZ/RQ]f+2qjOjEwO:hHe">
                                     <field name="ATTR">val</field>
                                     <field name="OID">ID auswählen</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="control" id="wvBy4:3~|B^,Qjs)XI%N">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">Object ID</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="variables_get" id="l0(5#$#XERlOY(2xrWnG">
                                     <field name="VAR" id="We7i8rM)d`aF2[Gw5~vW">luefter</field>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                             <next>
                               <block type="variables_set" id="J*C9)z#uCE]}DHLomf05">
                                 <field name="VAR" id="6syGaXh^=(_6AEjQ0PU+">benebler</field>
                                 <value name="VALUE">
                                   <block type="logic_operation" id="}?h_y:Q%{ZA)NG!k~q_F" inline="false">
                                     <field name="OP">AND</field>
                                     <value name="A">
                                       <block type="logic_negate" id="RUU4;.rrFZ!9rQMsQ[b4">
                                         <value name="BOOL">
                                           <block type="variables_get" id="ym)]z.Vk)q4Tej2VB5VC">
                                             <field name="VAR" id="8{[Tnur;I1c$*^nwhn^d">CO2_hoch</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <value name="B">
                                       <block type="variables_get" id="N%gtZbAz`Gn,lyIqIBGO">
                                         <field name="VAR" id="CZe?:`PJbK)}:HZ*_W^0">befeuchten</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <next>
                                   <block type="controls_if" id="?wVb/,C[,{7nAKXEHCI|">
                                     <value name="IF0">
                                       <block type="logic_compare" id="=};[b3rJl`bGD02IH2@$">
                                         <field name="OP">NEQ</field>
                                         <value name="A">
                                           <block type="variables_get" id="]Q?M[D1B{qK+t15pQL7_">
                                             <field name="VAR" id="6syGaXh^=(_6AEjQ0PU+">benebler</field>
                                           </block>
                                         </value>
                                         <value name="B">
                                           <block type="get_value" id="VA-CZaK9%0rP?qFupi3^">
                                             <field name="ATTR">val</field>
                                             <field name="OID">ID auswählen</field>
                                           </block>
                                         </value>
                                       </block>
                                     </value>
                                     <statement name="DO0">
                                       <block type="control" id="F1f,l;c*cQ%bo-PDdHiS">
                                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                         <field name="OID">Object ID</field>
                                         <field name="WITH_DELAY">FALSE</field>
                                         <value name="VALUE">
                                           <block type="variables_get" id="OBnpp|l1o|y-OI#)t?_i">
                                             <field name="VAR" id="6syGaXh^=(_6AEjQ0PU+">benebler</field>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                   </block>
                                 </next>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </statement>
                   </block>
                  </xml>
                  

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

                    @paul53

                    Hallo Paul.
                    Erstmals ein gutes neues Jahr wünsche ich dir.
                    Ich hoffe du hast den Jahreswechsel gut verbracht.

                    Ich hab das Ganze jetzt ausprobiert und es funktioniert sowas von super 🙂 👍
                    Du kannst dir gar nicht vorstellen welche Freude ich jetzt habe 🙂 🙂 🙂

                    Es läuft jetzt mal seit ca. 2 Stunden und die Energieeinsparungen sind spitze.
                    Funktioniert jetzt in einem super Gleichgewicht.
                    Einen Co2 Überschuss hab ich noch nicht provozieren können aber ich bin überzeugt das auch dies super funktionierten wird.
                    Werde jetzt mal das Zelt mit meinem Pilzen bestücken und schauen welche Werte ich da zusammenbekomme.

                    Ich muss mich nochmals ganz herzlich bei dir bedanken für deine Hilfe und Geduld mit mir.
                    Wenn jetzt in meiner Nähe wäre würde ich dir ein ganz großes Bier ausgeben 😉
                    Ich hoffe ich kann mich irgendwann mal revanchieren.

                    Falls es dich / euch interessiert werde ich meine Erfahrungen der nächsten Tage hier nochmals kundtun und ein paar Bilder meiner Zuchtumgebung posten.

                    Danke nochmals an dich und dem gesamten Forum hier.
                    Mit euch und eurer Hilfe macht der ioBroker gleich doppelt so viel Spaß.

                    LG
                    mandragora

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

                      @mandragora sagte:

                      Wenn jetzt in meiner Nähe wäre

                      Puerto de la Cruz ?

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

                        @paul53

                        😄 Leider nicht gerade bei mir um die Ecke.
                        Aber sehr nettes Fleckchen 👍

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        866
                        Online

                        32.0k
                        Users

                        80.4k
                        Topics

                        1.3m
                        Posts

                        blockly
                        2
                        27
                        970
                        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