Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • 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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
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
    13
    1
    146

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

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

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

Geplant Angeheftet Gesperrt Verschoben Blockly
4 Beiträge 2 Kommentatoren 383 Aufrufe 3 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • B Offline
    B Offline
    belzeBUB
    schrieb am zuletzt editiert von 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 Antwort Letzte Antwort
    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
      schrieb am zuletzt editiert von 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 Antworten Letzte Antwort
      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
        schrieb am zuletzt editiert von
        #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 Antwort Letzte Antwort
        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
          schrieb am zuletzt editiert von
          #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 Antwort Letzte Antwort
          0
          Antworten
          • In einem neuen Thema antworten
          Anmelden zum Antworten
          • Älteste zuerst
          • Neuste zuerst
          • Meiste Stimmen


          Support us

          ioBroker
          Community Adapters
          Donate

          542

          Online

          32.7k

          Benutzer

          82.4k

          Themen

          1.3m

          Beiträge
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
          ioBroker Community 2014-2025
          logo
          • Anmelden

          • Du hast noch kein Konto? Registrieren

          • Anmelden oder registrieren, um zu suchen
          • Erster Beitrag
            Letzter Beitrag
          0
          • Home
          • Aktuell
          • Tags
          • Ungelesen 0
          • Kategorien
          • Unreplied
          • Beliebt
          • GitHub
          • Docu
          • Hilfe