Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Licht mit Blockly schalten, doch es geht nicht

    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

    Licht mit Blockly schalten, doch es geht nicht

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

      Hey,

      ich bin gerade am rumprobieren, wie ich das hin bekomme. Nur leider tut meine Hardware nicht, was sie laut Software eigentlich tuen soll.

      Ich habe 2 "Funk-Bewegungsmelder mit Taster / HM-Sen-MDIR-WM55" und ein LED Leuchtmittel, welches über die Philips Hue auf 20% gedimmt werden soll. Man will ja nicht gleich total wach werden, wenn man des Nachts mal aus dem Schlafzimmer kommt.

      Die Bewegungsmelder erkennen alle 30 Sekunden ob Bewegung statt findet. Somit muss ich keine Zeitverzögerung einbauen, dass das Licht nicht gleich wieder aus geht.

      Ich hab mal das Programm angehangen.

      Nachtlichtschaltung.png

      Ich hoffe man kann mir da etwas helfen. Problem ist, das Leuchtmittel bleibt dunkel. Aber laut ioBrocker und CCU werden an den Bewegungsmelder jeweils Bewegung erkannt.

      Michael

      Glasfaser 1 Reply Last reply Reply Quote 0
      • BBTown
        BBTown last edited by

        Du hast keinen Trigger ausgewählt auf dem Du reagierst

        1 Reply Last reply Reply Quote 0
        • Glasfaser
          Glasfaser @raspido last edited by

          @raspido
          ich leih dir mal ein trigger 😎

          1.JPG

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

            oder so ...

            23246412-df75-4ac0-a8c6-e7d84ef18761-grafik.png

            <xml xmlns="http://www.w3.org/1999/xhtml">
             <variables>
               <variable type="undefined" id="timeout">timeout</variable>
             </variables>
             <block type="comment" id="#$3P9%vZ34LbjRbpJ[I`" x="38" y="38">
               <field name="COMMENT">falls einer der beiden Bewegungsmelder wahr ist</field>
               <next>
                 <block type="on_ext" id="))WS?GQaV/#h7gyfuf:R">
                   <mutation items="2"></mutation>
                   <field name="CONDITION">true</field>
                   <field name="ACK_CONDITION"></field>
                   <value name="OID0">
                     <shadow type="field_oid" id="(ru6D9Vbmnf6Ray,_76f">
                       <field name="oid">Test.0.BWM-1</field>
                     </shadow>
                   </value>
                   <value name="OID1">
                     <shadow type="field_oid" id="XGCQ1Xn(}kI(`wpVeJwS">
                       <field name="oid">Test.0.BWM-2</field>
                     </shadow>
                   </value>
                   <statement name="STATEMENT">
                     <block type="comment" id="/vX^UO9WAhg6qYh]aNq-">
                       <field name="COMMENT">nur wenn es dunkel ist</field>
                       <next>
                         <block type="controls_if" id="$$JPe#Sy{.cHv0Y)gOx*">
                           <value name="IF0">
                             <block type="logic_compare" id="X[YKFo`m{{V.E`E+xP9n">
                               <field name="OP">LT</field>
                               <value name="A">
                                 <block type="get_value" id="85,qKTPKF3|mzR]FN2Dx">
                                   <field name="ATTR">val</field>
                                   <field name="OID">Test.0.Lichtsensor</field>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="math_number" id="k,3YRwCnH.t16in6/q^$">
                                   <field name="NUM">12</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="comment" id="l;1,d#P.zasSG`1r}w5k">
                               <field name="COMMENT">stoppe timer</field>
                               <next>
                                 <block type="timeouts_cleartimeout" id="hBppvrUuS7yA_wls{jP*">
                                   <field name="NAME">timeout</field>
                                   <next>
                                     <block type="comment" id=",)6woY6sP1EqI0|V94)#">
                                       <field name="COMMENT">schalte Licht ein</field>
                                       <next>
                                         <block type="control" id="cyxGq0Xo+!YDK!bVq%A=">
                                           <mutation delay_input="false"></mutation>
                                           <field name="OID">Test.0.Lampe</field>
                                           <field name="WITH_DELAY">FALSE</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="WGVI@GtyeXV^WMxRiF+[">
                                               <field name="NUM">20</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="timeouts_settimeout" id="P};?_#_aR!wKHPvVqZ5a">
                                               <field name="NAME">timeout</field>
                                               <field name="DELAY">2</field>
                                               <field name="UNIT">min</field>
                                               <statement name="STATEMENT">
                                                 <block type="comment" id=".7=^1hUtQ;{XC@N(*@zv">
                                                   <field name="COMMENT">schalte Licht nach x min. wieder aus</field>
                                                   <next>
                                                     <block type="control" id="{FaLkm9;:S{;I9.:(_VF">
                                                       <mutation delay_input="false"></mutation>
                                                       <field name="OID">Test.0.Lampe</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="math_number" id="B/-Z61QNepvHkjto[KIz">
                                                           <field name="NUM">0</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </statement>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </statement>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
               </next>
             </block>
            </xml>
            

            1 Reply Last reply Reply Quote 0
            • R
              raspido last edited by

              Danke hat super funktioniert.

              Das letzte Beispiel war sogar das, was ich am Ende haben wollte. Muss mich damit mal etwas intensiver beschäftigen. Nur zum Teil fehlt etwas die Zeit.

              Aber naja kommt schon noch. Aber nochmals DANKE.

              Michael

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

              Support us

              ioBroker
              Community Adapters
              Donate

              757
              Online

              31.9k
              Users

              80.3k
              Topics

              1.3m
              Posts

              3
              5
              435
              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