Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. [gelöst] Licht mit Bewegungsmelder/Dauerlicht mit Unterputz

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    776

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    18
    1
    6.2k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.5k

[gelöst] Licht mit Bewegungsmelder/Dauerlicht mit Unterputz

Scheduled Pinned Locked Moved Blockly
4 Posts 2 Posters 399 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    belzeBUB
    wrote on last edited by belzeBUB
    #1

    Moin,

    ich nutze ioBroker noch nicht sehr lange und experimentiere herum um dann mit dem System später in unserem bald verfügbaren Haus das zu tun, was ich möchte.

    Im Einklang mit dem WAF muss ich leider auch normale Wandschalter verwenden.
    Da wir quasi alle Schalter im Haus eh austauschen müssen, habe ich zu Testzwecken einen Samotech sm308 (gleich iluminize 511.202) besorgt. Der sm308 ist ein Unterputzactor, der in eine bereits bestehende Verkabelung eingebunden wird und wie ein Relais arbeitet - mit ZigBee anbindung.

    Der Plan ist über eine Schaltwippe, die am sm308 angeschlossen ist, eine reguläre Lampe dauerhaft einzuschalten und die gleiche Lampe per Bewegungsmelder für eine vorgegebene Zeit (2 Minuten und bei Bewegung den Timer zu verlängern) zu schalten.
    Ich habe blocklys gefunde, bin aber zu blöde diese anzupassen - bzw. komme an die Grenze, da der sm308 kein weiteres ereignis ausgibt, wenn er über den Schalter eingeschaltet worden ist.
    Mit Variablen kenne ich mich leider überhaupt nicht aus :(

    Wäre jemand in der Lage mir irgendwie unter die Arme zu greifen?

    Besten Dank und herzliche Grüße,
    Matthias

    iobroker über VM im Proxmox, deconz II am raspberry Pi 1, Synology DS918+, PiHole, Sophos Hardware appliance, Ubiquity Unifi U6-LR APs, Ubiquity Unifi Kameras, diverse Shelly

    paul53P 1 Reply Last reply
    0
    • B belzeBUB

      Moin,

      ich nutze ioBroker noch nicht sehr lange und experimentiere herum um dann mit dem System später in unserem bald verfügbaren Haus das zu tun, was ich möchte.

      Im Einklang mit dem WAF muss ich leider auch normale Wandschalter verwenden.
      Da wir quasi alle Schalter im Haus eh austauschen müssen, habe ich zu Testzwecken einen Samotech sm308 (gleich iluminize 511.202) besorgt. Der sm308 ist ein Unterputzactor, der in eine bereits bestehende Verkabelung eingebunden wird und wie ein Relais arbeitet - mit ZigBee anbindung.

      Der Plan ist über eine Schaltwippe, die am sm308 angeschlossen ist, eine reguläre Lampe dauerhaft einzuschalten und die gleiche Lampe per Bewegungsmelder für eine vorgegebene Zeit (2 Minuten und bei Bewegung den Timer zu verlängern) zu schalten.
      Ich habe blocklys gefunde, bin aber zu blöde diese anzupassen - bzw. komme an die Grenze, da der sm308 kein weiteres ereignis ausgibt, wenn er über den Schalter eingeschaltet worden ist.
      Mit Variablen kenne ich mich leider überhaupt nicht aus :(

      Wäre jemand in der Lage mir irgendwie unter die Arme zu greifen?

      Besten Dank und herzliche Grüße,
      Matthias

      paul53P Offline
      paul53P Offline
      paul53
      wrote on last edited by paul53
      #2

      @belzeBUB
      Beispiel

      <xml xmlns="https://developers.google.com/blockly/xml">
       <variables>
         <variable id="oMYgKO?zc9Py+i-e}(NN">manuell_ein</variable>
         <variable type="timeout" id="timeout">timeout</variable>
       </variables>
       <block type="comment" id="IsRwevbOZ@q=lc}B%IXH" x="-62" y="38">
         <field name="COMMENT">Lichtaktor</field>
         <next>
           <block type="on_ext" id="1;Qu)41_-KjS{+`!cMWf">
             <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="-2A#M^=!!l:mB3]_Vwx%">
                 <field name="oid">default</field>
               </shadow>
             </value>
             <statement name="STATEMENT">
               <block type="variables_set" id="7imQvSpiUyqs{$d%qnX|">
                 <field name="VAR" id="oMYgKO?zc9Py+i-e}(NN">manuell_ein</field>
                 <value name="VALUE">
                   <block type="logic_operation" id="4*1^BUC,!,%-$_-A]_x[" inline="false">
                     <field name="OP">AND</field>
                     <value name="A">
                       <block type="on_source" id="Kw[4l+Hf^3t/.*_]nvH.">
                         <field name="ATTR">state.val</field>
                       </block>
                     </value>
                     <value name="B">
                       <block type="logic_compare" id="(|PZ|O*%ysyydf7yYydj">
                         <field name="OP">NEQ</field>
                         <value name="A">
                           <block type="on_source" id="{Y$2ZIhzXIg.IH;n{?$7">
                             <field name="ATTR">state.from</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="text" id="=6[Tp5mEAKWZD;CQjhQ6">
                             <field name="TEXT">system.adapter.javascript.0</field>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </value>
               </block>
             </statement>
             <next>
               <block type="comment" id="$vS?GTUPGt[ne]6R.A^O">
                 <field name="COMMENT">BWM</field>
                 <next>
                   <block type="on_ext" id="Uq`cxGpw@%3Zy*tJU$gk">
                     <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="sG{EO!85~x_Y$n^Gf9gT">
                         <field name="oid">default</field>
                       </shadow>
                     </value>
                     <statement name="STATEMENT">
                       <block type="controls_if" id="P,Q:/Vy)t`l1tF470JO[">
                         <value name="IF0">
                           <block type="logic_negate" id="0,)@=+{%wJUJ:Ax(#vB2">
                             <value name="BOOL">
                               <block type="variables_get" id="V/{int;RdG,zJ/wHYvrP">
                                 <field name="VAR" id="oMYgKO?zc9Py+i-e}(NN">manuell_ein</field>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="controls_if" id="*GKw=k9eDR[@~q,v}~85">
                             <mutation else="1"></mutation>
                             <value name="IF0">
                               <block type="on_source" id="G$9+RdlX@kbBmr5S*uUl">
                                 <field name="ATTR">state.val</field>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="timeouts_cleartimeout" id="^hO%WmGMcro9D5K+2j+C">
                                 <field name="NAME">timeout</field>
                                 <next>
                                   <block type="control" id="{HaW0eA0$o5zM}9r!gI*">
                                     <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="logic_boolean" id="Zo=Tac9?:-SESH~x?Vb[">
                                         <field name="BOOL">TRUE</field>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                             <statement name="ELSE">
                               <block type="timeouts_settimeout" id="|+3@FTk8y*IO1#!~~R`?">
                                 <field name="NAME">timeout</field>
                                 <field name="DELAY">2</field>
                                 <field name="UNIT">min</field>
                                 <statement name="STATEMENT">
                                   <block type="control" id="D.`LO;$I[6B`+vA.6F/v">
                                     <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="logic_boolean" id="E=XCYUovc!q[8A.~CxgG">
                                         <field name="BOOL">FALSE</field>
                                       </block>
                                     </value>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                           </block>
                         </statement>
                       </block>
                     </statement>
                   </block>
                 </next>
               </block>
             </next>
           </block>
         </next>
       </block>
      </xml>
      

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      B 2 Replies Last reply
      0
      • paul53P paul53

        @belzeBUB
        Beispiel

        <xml xmlns="https://developers.google.com/blockly/xml">
         <variables>
           <variable id="oMYgKO?zc9Py+i-e}(NN">manuell_ein</variable>
           <variable type="timeout" id="timeout">timeout</variable>
         </variables>
         <block type="comment" id="IsRwevbOZ@q=lc}B%IXH" x="-62" y="38">
           <field name="COMMENT">Lichtaktor</field>
           <next>
             <block type="on_ext" id="1;Qu)41_-KjS{+`!cMWf">
               <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="-2A#M^=!!l:mB3]_Vwx%">
                   <field name="oid">default</field>
                 </shadow>
               </value>
               <statement name="STATEMENT">
                 <block type="variables_set" id="7imQvSpiUyqs{$d%qnX|">
                   <field name="VAR" id="oMYgKO?zc9Py+i-e}(NN">manuell_ein</field>
                   <value name="VALUE">
                     <block type="logic_operation" id="4*1^BUC,!,%-$_-A]_x[" inline="false">
                       <field name="OP">AND</field>
                       <value name="A">
                         <block type="on_source" id="Kw[4l+Hf^3t/.*_]nvH.">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_compare" id="(|PZ|O*%ysyydf7yYydj">
                           <field name="OP">NEQ</field>
                           <value name="A">
                             <block type="on_source" id="{Y$2ZIhzXIg.IH;n{?$7">
                               <field name="ATTR">state.from</field>
                             </block>
                           </value>
                           <value name="B">
                             <block type="text" id="=6[Tp5mEAKWZD;CQjhQ6">
                               <field name="TEXT">system.adapter.javascript.0</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </value>
                 </block>
               </statement>
               <next>
                 <block type="comment" id="$vS?GTUPGt[ne]6R.A^O">
                   <field name="COMMENT">BWM</field>
                   <next>
                     <block type="on_ext" id="Uq`cxGpw@%3Zy*tJU$gk">
                       <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="sG{EO!85~x_Y$n^Gf9gT">
                           <field name="oid">default</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="controls_if" id="P,Q:/Vy)t`l1tF470JO[">
                           <value name="IF0">
                             <block type="logic_negate" id="0,)@=+{%wJUJ:Ax(#vB2">
                               <value name="BOOL">
                                 <block type="variables_get" id="V/{int;RdG,zJ/wHYvrP">
                                   <field name="VAR" id="oMYgKO?zc9Py+i-e}(NN">manuell_ein</field>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="controls_if" id="*GKw=k9eDR[@~q,v}~85">
                               <mutation else="1"></mutation>
                               <value name="IF0">
                                 <block type="on_source" id="G$9+RdlX@kbBmr5S*uUl">
                                   <field name="ATTR">state.val</field>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="timeouts_cleartimeout" id="^hO%WmGMcro9D5K+2j+C">
                                   <field name="NAME">timeout</field>
                                   <next>
                                     <block type="control" id="{HaW0eA0$o5zM}9r!gI*">
                                       <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="logic_boolean" id="Zo=Tac9?:-SESH~x?Vb[">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <statement name="ELSE">
                                 <block type="timeouts_settimeout" id="|+3@FTk8y*IO1#!~~R`?">
                                   <field name="NAME">timeout</field>
                                   <field name="DELAY">2</field>
                                   <field name="UNIT">min</field>
                                   <statement name="STATEMENT">
                                     <block type="control" id="D.`LO;$I[6B`+vA.6F/v">
                                       <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="logic_boolean" id="E=XCYUovc!q[8A.~CxgG">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </statement>
                                 </block>
                               </statement>
                             </block>
                           </statement>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
           </next>
         </block>
        </xml>
        

        B Offline
        B Offline
        belzeBUB
        wrote on last edited by
        #3

        @paul53

        Danke Paul! Das habe ich über die Suche offensichtlich nicht gefunden! :(
        Ich werde es später ausprobieren - habe alles schon eingetragen und werde dann mit etwas ruhe den Test wagen!
        Danke!
        Gebe dann Rückmeldung!

        iobroker über VM im Proxmox, deconz II am raspberry Pi 1, Synology DS918+, PiHole, Sophos Hardware appliance, Ubiquity Unifi U6-LR APs, Ubiquity Unifi Kameras, diverse Shelly

        1 Reply Last reply
        0
        • paul53P paul53

          @belzeBUB
          Beispiel

          <xml xmlns="https://developers.google.com/blockly/xml">
           <variables>
             <variable id="oMYgKO?zc9Py+i-e}(NN">manuell_ein</variable>
             <variable type="timeout" id="timeout">timeout</variable>
           </variables>
           <block type="comment" id="IsRwevbOZ@q=lc}B%IXH" x="-62" y="38">
             <field name="COMMENT">Lichtaktor</field>
             <next>
               <block type="on_ext" id="1;Qu)41_-KjS{+`!cMWf">
                 <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="-2A#M^=!!l:mB3]_Vwx%">
                     <field name="oid">default</field>
                   </shadow>
                 </value>
                 <statement name="STATEMENT">
                   <block type="variables_set" id="7imQvSpiUyqs{$d%qnX|">
                     <field name="VAR" id="oMYgKO?zc9Py+i-e}(NN">manuell_ein</field>
                     <value name="VALUE">
                       <block type="logic_operation" id="4*1^BUC,!,%-$_-A]_x[" inline="false">
                         <field name="OP">AND</field>
                         <value name="A">
                           <block type="on_source" id="Kw[4l+Hf^3t/.*_]nvH.">
                             <field name="ATTR">state.val</field>
                           </block>
                         </value>
                         <value name="B">
                           <block type="logic_compare" id="(|PZ|O*%ysyydf7yYydj">
                             <field name="OP">NEQ</field>
                             <value name="A">
                               <block type="on_source" id="{Y$2ZIhzXIg.IH;n{?$7">
                                 <field name="ATTR">state.from</field>
                               </block>
                             </value>
                             <value name="B">
                               <block type="text" id="=6[Tp5mEAKWZD;CQjhQ6">
                                 <field name="TEXT">system.adapter.javascript.0</field>
                               </block>
                             </value>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </statement>
                 <next>
                   <block type="comment" id="$vS?GTUPGt[ne]6R.A^O">
                     <field name="COMMENT">BWM</field>
                     <next>
                       <block type="on_ext" id="Uq`cxGpw@%3Zy*tJU$gk">
                         <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="sG{EO!85~x_Y$n^Gf9gT">
                             <field name="oid">default</field>
                           </shadow>
                         </value>
                         <statement name="STATEMENT">
                           <block type="controls_if" id="P,Q:/Vy)t`l1tF470JO[">
                             <value name="IF0">
                               <block type="logic_negate" id="0,)@=+{%wJUJ:Ax(#vB2">
                                 <value name="BOOL">
                                   <block type="variables_get" id="V/{int;RdG,zJ/wHYvrP">
                                     <field name="VAR" id="oMYgKO?zc9Py+i-e}(NN">manuell_ein</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="controls_if" id="*GKw=k9eDR[@~q,v}~85">
                                 <mutation else="1"></mutation>
                                 <value name="IF0">
                                   <block type="on_source" id="G$9+RdlX@kbBmr5S*uUl">
                                     <field name="ATTR">state.val</field>
                                   </block>
                                 </value>
                                 <statement name="DO0">
                                   <block type="timeouts_cleartimeout" id="^hO%WmGMcro9D5K+2j+C">
                                     <field name="NAME">timeout</field>
                                     <next>
                                       <block type="control" id="{HaW0eA0$o5zM}9r!gI*">
                                         <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="logic_boolean" id="Zo=Tac9?:-SESH~x?Vb[">
                                             <field name="BOOL">TRUE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </next>
                                   </block>
                                 </statement>
                                 <statement name="ELSE">
                                   <block type="timeouts_settimeout" id="|+3@FTk8y*IO1#!~~R`?">
                                     <field name="NAME">timeout</field>
                                     <field name="DELAY">2</field>
                                     <field name="UNIT">min</field>
                                     <statement name="STATEMENT">
                                       <block type="control" id="D.`LO;$I[6B`+vA.6F/v">
                                         <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="logic_boolean" id="E=XCYUovc!q[8A.~CxgG">
                                             <field name="BOOL">FALSE</field>
                                           </block>
                                         </value>
                                       </block>
                                     </statement>
                                   </block>
                                 </statement>
                               </block>
                             </statement>
                           </block>
                         </statement>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
             </next>
           </block>
          </xml>
          

          B Offline
          B Offline
          belzeBUB
          wrote on last edited by
          #4

          @paul53

          Paul - Danke! Läuft! Exakt, wie ich es wollte!
          Großartig!

          iobroker über VM im Proxmox, deconz II am raspberry Pi 1, Synology DS918+, PiHole, Sophos Hardware appliance, Ubiquity Unifi U6-LR APs, Ubiquity Unifi Kameras, diverse Shelly

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Support us

          ioBroker
          Community Adapters
          Donate

          607

          Online

          32.8k

          Users

          82.7k

          Topics

          1.3m

          Posts
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
          ioBroker Community 2014-2025
          logo
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Home
          • Recent
          • Tags
          • Unread 0
          • Categories
          • Unreplied
          • Popular
          • GitHub
          • Docu
          • Hilfe