Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Bewegungsmelder und Taster

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Bewegungsmelder und Taster

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

      Hallo folgendes Szenario möchte ich umsetzen:
      Wenn ich in die Waschküche reingehe, soll durch den Bewegungsmelder das Licht und der HmIP-BSL ausgelöst werden. Weiterhin soll die Möglichkeit bestehen, jederzeit über die Taster das Licht an und ausschalten zu können.
      Mithilfe eines ähnliches Blocklys habe ich nun es soweit bekommen, dass der BSL funktioniert, aber es gibt wohl Probleme mit dem Lichtaktor. Ich gehen davon aus, dass die Timeouts falsch gesetzt sind. Würde bitte jemand mal darüber schauen und mir helfen?

      <xml xmlns="https://developers.google.com/blockly/xml">
       <variables>
         <variable id="X25!y9#@JzPxwcR4+Mcp">manuell_ein</variable>
         <variable type="timeout" id="timeout4">timeout4</variable>
         <variable type="timeout" id="timeout2">timeout2</variable>
         <variable type="timeout" id="timeout3">timeout3</variable>
         <variable type="timeout" id="timeout">timeout</variable>
       </variables>
       <block type="on_ext" id="hD#OpGpB9[=Z;5eM|uF]" x="38" y="-137">
         <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="`5U1M,K,ifkx(WJn}S86">
             <field name="oid">hm-rpc.1.000C1D899A62B7.1.PRESENCE_DETECTION_STATE</field>
           </shadow>
         </value>
         <statement name="STATEMENT">
           <block type="controls_if" id="p9_xKwCiT,mH!p{qy+!D">
             <value name="IF0">
               <block type="logic_negate" id="JmwYd7TO8Lg);;/q~drh">
                 <value name="BOOL">
                   <block type="variables_get" id="L53`w6KqBROd_B_3SO*_">
                     <field name="VAR" id="X25!y9#@JzPxwcR4+Mcp">manuell_ein</field>
                   </block>
                 </value>
               </block>
             </value>
             <statement name="DO0">
               <block type="controls_if" id="/^F7c=yv8Rt/S+@30?|~">
                 <value name="IF0">
                   <block type="logic_operation" id="dX%^N3zJ_VR{67robHo[" inline="false">
                     <field name="OP">AND</field>
                     <value name="A">
                       <block type="on_source" id="-P;x`RJK6|G/?k!c(xHi">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="logic_compare" id="g9WUm=Bc=?_A-$37P5P8">
                         <field name="OP">LT</field>
                         <value name="A">
                           <block type="get_value" id="/wHAHS5m%L2GceuaxYa0">
                             <field name="ATTR">val</field>
                             <field name="OID">hm-rpc.1.00091BE9A62C91.1.CURRENT_ILLUMINATION</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="math_number" id="xy{._HqL%?JPi0~#zE!!">
                             <field name="NUM">100</field>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="controls_if" id="u13O_z3k|rOapz)S!plZ">
                     <mutation elseif="1"></mutation>
                     <value name="IF0">
                       <block type="logic_compare" id="Uw@U]v78H@y+W7*Of(r!">
                         <field name="OP">EQ</field>
                         <value name="A">
                           <block type="get_value" id="3?8~vUd_DWVs3RL)sZxN">
                             <field name="ATTR">val</field>
                             <field name="OID">hm-rpc.1.002A1D89AA1663.1.LOCK_TARGET_LEVEL</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="math_number" id="T4?N/Ri$p-@6I83.+S}d">
                             <field name="NUM">0</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <statement name="DO0">
                       <block type="timeouts_cleartimeout" id="vHer$BWE8(KSs~J+e(3?">
                         <field name="NAME">timeout2</field>
                         <next>
                           <block type="control" id="T)J@:]%,}4X{H[a3v6gr">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">hm-rpc.1.001A5D899A8B83.8.COLOR</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="math_number" id="!]`r4Gt)It2=0,VYbLxh">
                                 <field name="NUM">4</field>
                               </block>
                             </value>
                             <next>
                               <block type="timeouts_settimeout" id="G(.;5v:98mv0s9;K~UYK">
                                 <field name="NAME">timeout2</field>
                                 <field name="DELAY">5</field>
                                 <field name="UNIT">sec</field>
                                 <statement name="STATEMENT">
                                   <block type="control" id="aIfDoFBw6J-`95E;vlqb">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">hm-rpc.1.001A5D899A8B83.8.COLOR</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="oSGu2kp#kWq6)*`YULnw">
                                         <field name="NUM">0</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </statement>
                     <value name="IF1">
                       <block type="logic_compare" id="HeFt:W2:UTc-9w0.6)p@">
                         <field name="OP">EQ</field>
                         <value name="A">
                           <block type="get_value" id="Ve/AGys9L~H!_3(No_(S">
                             <field name="ATTR">val</field>
                             <field name="OID">hm-rpc.1.002A1D89AA1663.1.LOCK_TARGET_LEVEL</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="math_number" id="7q+}~h.[JJiNU?xJ2)y|">
                             <field name="NUM">1</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <statement name="DO1">
                       <block type="timeouts_cleartimeout" id="_s7SA-u]jWgtIZzp~,Gt">
                         <field name="NAME">timeout3</field>
                         <next>
                           <block type="control" id="9d#vh#^=Db-!VuouR0RT">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">hm-rpc.1.001A5D899A8B83.14.COLOR</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="math_number" id="B2,S+yx8uAfS*we=W4+K">
                                 <field name="NUM">2</field>
                               </block>
                             </value>
                             <next>
                               <block type="timeouts_settimeout" id="5;y:2nQR*CQ+gwnQmY/[">
                                 <field name="NAME">timeout3</field>
                                 <field name="DELAY">5</field>
                                 <field name="UNIT">sec</field>
                                 <statement name="STATEMENT">
                                   <block type="control" id="Rxv+RBwix20*5jv}J5^,">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">hm-rpc.1.001A5D899A8B83.14.COLOR</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id="{`dJZ0TDt)!39D6vwkXB">
                                         <field name="NUM">0</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </statement>
                     <next>
                       <block type="timeouts_cleartimeout" id="0yj+3;=F2]7Z+ca3LR,/">
                         <field name="NAME">timeout</field>
                         <next>
                           <block type="control" id="7^|#5-@PMWGlZzmp%W7%">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">hm-rpc.1.00161D89938677.10.STATE</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="logic_boolean" id="R/P($h#;2a6~Qrmr]-aR">
                                 <field name="BOOL">TRUE</field>
                               </block>
                             </value>
                             <next>
                               <block type="timeouts_settimeout" id=":WDgD32uwcm`9qJQ4/ch">
                                 <field name="NAME">timeout</field>
                                 <field name="DELAY">5</field>
                                 <field name="UNIT">min</field>
                                 <statement name="STATEMENT">
                                   <block type="control" id="9C1~/RE:swX9jRG$jP_;">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">hm-rpc.1.00161D89938677.10.STATE</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="logic_boolean" id="L-wep!K?evqWB|5c7KV`">
                                         <field name="BOOL">FALSE</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                               </block>
                             </next>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </statement>
               </block>
             </statement>
           </block>
         </statement>
         <next>
           <block type="on_ext" id="kfaS#zj/Iy|ut/EPYAqj">
             <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="3K@N@AAF+rkhY2gjEygU">
                 <field name="oid">hm-rpc.1.00161D89938677.10.STATE</field>
               </shadow>
             </value>
             <statement name="STATEMENT">
               <block type="variables_set" id="7VB[._F?T-!.U58fIf:A">
                 <field name="VAR" id="X25!y9#@JzPxwcR4+Mcp">manuell_ein</field>
                 <value name="VALUE">
                   <block type="on_source" id="jnFnk|:ztbW@1(seH-Tz">
                     <field name="ATTR">state.val</field>
                   </block>
                 </value>
                 <next>
                   <block type="timeouts_cleartimeout" id="O*(1@Lc{)w,pzCoHcR1E">
                     <field name="NAME">timeout4</field>
                     <next>
                       <block type="controls_if" id="!q6;1h~xp/x@-STvEuYq">
                         <value name="IF0">
                           <block type="variables_get" id="nKIm7HUEAaR?8Lf+:F9W">
                             <field name="VAR" id="X25!y9#@JzPxwcR4+Mcp">manuell_ein</field>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="timeouts_settimeout" id="AbGN{%MI0oN-e0^*tk0K">
                             <field name="NAME">timeout4</field>
                             <field name="DELAY">5</field>
                             <field name="UNIT">ms</field>
                             <statement name="STATEMENT">
                               <block type="control" id="pV|bMT=+=d)@.h+U,Bz0">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">hm-rpc.1.00161D89938677.10.STATE</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="logic_boolean" id="Dkx;2)yCeWn6aU#$z^sm">
                                     <field name="BOOL">FALSE</field>
                                   </block>
                                 </value>
                               </block>
                             </statement>
                           </block>
                         </statement>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
             </statement>
           </block>
         </next>
       </block>
      </xml>
      

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

        @jwerlsdf sagte: darüber schauen und mir helfen?

        Die Variable manuell_ein wird so bei jedem Einschalten und nicht nur bei manuellem Einschalten gesetzt. Außerdem wird sofort (5 ms Verzögerung) wieder ausgeschaltet. Richtig:

        Bild_2022-08-25_135330010.png

        J 1 Reply Last reply Reply Quote 1
        • J
          jwerlsdf @paul53 last edited by

          @paul53
          Vielen Dank dir!

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

          Support us

          ioBroker
          Community Adapters
          Donate

          805
          Online

          32.0k
          Users

          80.5k
          Topics

          1.3m
          Posts

          2
          3
          285
          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