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. Meine persönlichen dummen Fragen zu Blöcken

NEWS

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    11
    1
    524

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.7k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.6k

Meine persönlichen dummen Fragen zu Blöcken

Geplant Angeheftet Gesperrt Verschoben Blockly
9 Beiträge 5 Kommentatoren 869 Aufrufe 4 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.
  • R Offline
    R Offline
    roddor
    schrieb am zuletzt editiert von
    #1

    Moin,

    Ich bin neu hier, aber technisch eigentlich nicht ganz weit weg vom Thema...
    Dennoch hänge ich mich nach den ersten drei Tagen Raspberry/ioBroker und Blockly regelmäßig mit Blöcken auf, die mich wahnsinnig machen, weil ich am Ende sehen kann, dass das so nicht ganz richtig sein kann, weil einfach dämliche Konstrukte sind. Ein Paradebeispiel häng ich mal an.

    Folgende Aufgabe. Im Wohnzimmer gibt es (als einziger Raum - in allen anderen Räumen funktioniert es) zwei Bewegungsmelder (Couchbereich / Essbereich).
    Essbereich und Couchbereich werden Lichttechnisch jeweils mit Bewegungsmeldern geschaltet durch ein anderes Script. Im Wohnzimmer steht aber noch indirekte Beleuchtung die wir per Sprachbefehl starten.

    Diese sollen nun erst dann ausgehen, wenn keiner der beiden Bewegungsmelder für Zeit X (hier 45 Min) etwas erkannt hat. Ausserdem schaltet das Script die jeweiligen Sonos Lautsprecher in den Räumen ab, indem er sie aus den Gruppen hebt. - alles funktioniert soweit auch mit eben einem Bewegungsmelder, aber ich bin schlichtweg mal wieder viel zu aufgeregt für diese Lösung hier mit zwei Meldern :D ...

    <xml xmlns="http://www.w3.org/1999/xhtml">
      <variables>
        <variable type="undefined" id="timeout">timeout</variable>
        <variable type="undefined" id="timeout2">timeout2</variable>
      </variables>
      <block type="on" id="rBZ5+^7}d#.vJ#dbXyqx" x="-1037" y="-462">
        <field name="OID">hue.0.BWM-Couch.presence</field>
        <field name="CONDITION">ne</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="controls_if" id="vS4HFsX5^nam=6x?xMbT">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_operation" id="U#[wkRYtS@wM6ymQ$-9a">
                <field name="OP">OR</field>
                <value name="A">
                  <block type="on_source" id="e`eiN{lCOd|]j@)XR3~*">
                    <field name="ATTR">state.val</field>
                  </block>
                </value>
                <value name="B">
                  <block type="get_value" id="XIQ8,F;w53pGqBco#uf~">
                    <field name="ATTR">val</field>
                    <field name="OID">hue.0.BWM-Esstisch.presence</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="timeouts_cleartimeout" id="pn~;Uhr,4U{j=0~-Sh)J">
                <field name="NAME">timeout</field>
                <next>
                  <block type="timeouts_cleartimeout" id="VB)w*+1%^HhLc-6=5#.b">
                    <field name="NAME">timeout2</field>
                  </block>
                </next>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="timeouts_settimeout" id="0NcEkhk;}xY.cR/ngL[?">
                <field name="NAME">timeout</field>
                <field name="DELAY">45</field>
                <field name="UNIT">min</field>
                <statement name="STATEMENT">
                  <block type="control" id="ul2o=4mZ-.Y=s@[E4~^f">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">tradfri.0.L-65538.lightbulb.state</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="Ja}$6wM9=;L^.APC](iO">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="x}sNQ%,KUo@Oa{ELTdqK">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">tradfri.0.L-65539.lightbulb.state</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="Vuh@G{D.0/Emi(#0]5@B">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="P/dt]AHx+i98=?%jvCH?">
                            <mutation delay_input="false"></mutation>
                            <field name="OID">tradfri.0.L-65540.lightbulb.state</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="pL@8`fscgCe+P)HB2E9?">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="zbHj!{E}8A@w*ojx0.{Q">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">sonos.0.root.192_168_178_39.coordinator</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="text" id="w,Wa/e#Y!$t;@ZS-83mU">
                                    <field name="TEXT">192_168_178_50</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
        </statement>
        <next>
          <block type="on" id="vMwa3m=^ts*{K,6rTf5,">
            <field name="OID">hue.0.BWM-Esstisch.presence</field>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <statement name="STATEMENT">
              <block type="controls_if" id="^00y0J}8i(DB[7:1rBF*">
                <mutation else="1"></mutation>
                <value name="IF0">
                  <block type="logic_operation" id="Jp*~];1Vqn$[4{Xi{e2s">
                    <field name="OP">OR</field>
                    <value name="A">
                      <block type="on_source" id="9vXqj}]K~wTQkc5:u;5*">
                        <field name="ATTR">state.val</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="get_value" id="!Ep!igDSO{LwX/Fj#o7~">
                        <field name="ATTR">val</field>
                        <field name="OID">hue.0.BWM-Couch.presence</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="timeouts_cleartimeout" id="gGc]4`FSADq(G#IEbZFG">
                    <field name="NAME">timeout</field>
                    <next>
                      <block type="timeouts_cleartimeout" id="^:9KrpUb)atWea@*Y^qS">
                        <field name="NAME">timeout2</field>
                      </block>
                    </next>
                  </block>
                </statement>
                <statement name="ELSE">
                  <block type="timeouts_settimeout" id="G2^Iv`TAVm}$}g#q11=0">
                    <field name="NAME">timeout2</field>
                    <field name="DELAY">45</field>
                    <field name="UNIT">min</field>
                    <statement name="STATEMENT">
                      <block type="control" id="`W-J.83wo_b5CPc9Ucd]">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">tradfri.0.L-65538.lightbulb.state</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="04gXFmS?[[aN.=1QLO=$">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="63[*pUu_~l8.d+YgZ{#n">
                            <mutation delay_input="false"></mutation>
                            <field name="OID">tradfri.0.L-65539.lightbulb.state</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="LrIoR$Q~Qm#=R:6$$`n/">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="5u{3/(HGU9bSl{J=Miwc">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">tradfri.0.L-65540.lightbulb.state</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="5*`!?}#wE7lt:}-!U~0h">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="1,RQzX5$auh*Y1V4P.bu">
                                    <mutation delay_input="false"></mutation>
                                    <field name="OID">sonos.0.root.192_168_178_39.coordinator</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="text" id="[L8-Qska:)[8xg0#[K}=">
                                        <field name="TEXT">192_168_178_50</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </xml>
    

    Bildschirmfoto 2020-01-05 um 18.59.09.png

    Kann mir das mal jemand erklären der sowas schonmal gemacht hat? :)

    Dr. BakteriusD 1 Antwort Letzte Antwort
    0
    • R roddor

      Moin,

      Ich bin neu hier, aber technisch eigentlich nicht ganz weit weg vom Thema...
      Dennoch hänge ich mich nach den ersten drei Tagen Raspberry/ioBroker und Blockly regelmäßig mit Blöcken auf, die mich wahnsinnig machen, weil ich am Ende sehen kann, dass das so nicht ganz richtig sein kann, weil einfach dämliche Konstrukte sind. Ein Paradebeispiel häng ich mal an.

      Folgende Aufgabe. Im Wohnzimmer gibt es (als einziger Raum - in allen anderen Räumen funktioniert es) zwei Bewegungsmelder (Couchbereich / Essbereich).
      Essbereich und Couchbereich werden Lichttechnisch jeweils mit Bewegungsmeldern geschaltet durch ein anderes Script. Im Wohnzimmer steht aber noch indirekte Beleuchtung die wir per Sprachbefehl starten.

      Diese sollen nun erst dann ausgehen, wenn keiner der beiden Bewegungsmelder für Zeit X (hier 45 Min) etwas erkannt hat. Ausserdem schaltet das Script die jeweiligen Sonos Lautsprecher in den Räumen ab, indem er sie aus den Gruppen hebt. - alles funktioniert soweit auch mit eben einem Bewegungsmelder, aber ich bin schlichtweg mal wieder viel zu aufgeregt für diese Lösung hier mit zwei Meldern :D ...

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="undefined" id="timeout">timeout</variable>
          <variable type="undefined" id="timeout2">timeout2</variable>
        </variables>
        <block type="on" id="rBZ5+^7}d#.vJ#dbXyqx" x="-1037" y="-462">
          <field name="OID">hue.0.BWM-Couch.presence</field>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="controls_if" id="vS4HFsX5^nam=6x?xMbT">
              <mutation else="1"></mutation>
              <value name="IF0">
                <block type="logic_operation" id="U#[wkRYtS@wM6ymQ$-9a">
                  <field name="OP">OR</field>
                  <value name="A">
                    <block type="on_source" id="e`eiN{lCOd|]j@)XR3~*">
                      <field name="ATTR">state.val</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="get_value" id="XIQ8,F;w53pGqBco#uf~">
                      <field name="ATTR">val</field>
                      <field name="OID">hue.0.BWM-Esstisch.presence</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="timeouts_cleartimeout" id="pn~;Uhr,4U{j=0~-Sh)J">
                  <field name="NAME">timeout</field>
                  <next>
                    <block type="timeouts_cleartimeout" id="VB)w*+1%^HhLc-6=5#.b">
                      <field name="NAME">timeout2</field>
                    </block>
                  </next>
                </block>
              </statement>
              <statement name="ELSE">
                <block type="timeouts_settimeout" id="0NcEkhk;}xY.cR/ngL[?">
                  <field name="NAME">timeout</field>
                  <field name="DELAY">45</field>
                  <field name="UNIT">min</field>
                  <statement name="STATEMENT">
                    <block type="control" id="ul2o=4mZ-.Y=s@[E4~^f">
                      <mutation delay_input="false"></mutation>
                      <field name="OID">tradfri.0.L-65538.lightbulb.state</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="Ja}$6wM9=;L^.APC](iO">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="x}sNQ%,KUo@Oa{ELTdqK">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">tradfri.0.L-65539.lightbulb.state</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="Vuh@G{D.0/Emi(#0]5@B">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="P/dt]AHx+i98=?%jvCH?">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">tradfri.0.L-65540.lightbulb.state</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="pL@8`fscgCe+P)HB2E9?">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="zbHj!{E}8A@w*ojx0.{Q">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">sonos.0.root.192_168_178_39.coordinator</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="text" id="w,Wa/e#Y!$t;@ZS-83mU">
                                      <field name="TEXT">192_168_178_50</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </statement>
          <next>
            <block type="on" id="vMwa3m=^ts*{K,6rTf5,">
              <field name="OID">hue.0.BWM-Esstisch.presence</field>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <statement name="STATEMENT">
                <block type="controls_if" id="^00y0J}8i(DB[7:1rBF*">
                  <mutation else="1"></mutation>
                  <value name="IF0">
                    <block type="logic_operation" id="Jp*~];1Vqn$[4{Xi{e2s">
                      <field name="OP">OR</field>
                      <value name="A">
                        <block type="on_source" id="9vXqj}]K~wTQkc5:u;5*">
                          <field name="ATTR">state.val</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="get_value" id="!Ep!igDSO{LwX/Fj#o7~">
                          <field name="ATTR">val</field>
                          <field name="OID">hue.0.BWM-Couch.presence</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="timeouts_cleartimeout" id="gGc]4`FSADq(G#IEbZFG">
                      <field name="NAME">timeout</field>
                      <next>
                        <block type="timeouts_cleartimeout" id="^:9KrpUb)atWea@*Y^qS">
                          <field name="NAME">timeout2</field>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <statement name="ELSE">
                    <block type="timeouts_settimeout" id="G2^Iv`TAVm}$}g#q11=0">
                      <field name="NAME">timeout2</field>
                      <field name="DELAY">45</field>
                      <field name="UNIT">min</field>
                      <statement name="STATEMENT">
                        <block type="control" id="`W-J.83wo_b5CPc9Ucd]">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">tradfri.0.L-65538.lightbulb.state</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="04gXFmS?[[aN.=1QLO=$">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="63[*pUu_~l8.d+YgZ{#n">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">tradfri.0.L-65539.lightbulb.state</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="LrIoR$Q~Qm#=R:6$$`n/">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="5u{3/(HGU9bSl{J=Miwc">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">tradfri.0.L-65540.lightbulb.state</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="5*`!?}#wE7lt:}-!U~0h">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="1,RQzX5$auh*Y1V4P.bu">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">sonos.0.root.192_168_178_39.coordinator</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="text" id="[L8-Qska:)[8xg0#[K}=">
                                          <field name="TEXT">192_168_178_50</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </next>
        </block>
      </xml>
      

      Bildschirmfoto 2020-01-05 um 18.59.09.png

      Kann mir das mal jemand erklären der sowas schonmal gemacht hat? :)

      Dr. BakteriusD Offline
      Dr. BakteriusD Offline
      Dr. Bakterius
      Most Active
      schrieb am zuletzt editiert von
      #2

      @roddor Vielleicht ganz einfach so:
      blockly.jpg

      R 1 Antwort Letzte Antwort
      0
      • Dr. BakteriusD Dr. Bakterius

        @roddor Vielleicht ganz einfach so:
        blockly.jpg

        R Offline
        R Offline
        roddor
        schrieb am zuletzt editiert von
        #3

        @Dr-Bakterius

        Wie versteh ich den obersten Block denn?

        Wann triggert er? Wenn beide DP war sind? Oder sobald es einer der beiden tut?

        4 J 2 Antworten Letzte Antwort
        0
        • R roddor

          @Dr-Bakterius

          Wie versteh ich den obersten Block denn?

          Wann triggert er? Wenn beide DP war sind? Oder sobald es einer der beiden tut?

          4 Offline
          4 Offline
          4-Real
          schrieb am zuletzt editiert von 4-Real
          #4

          @roddor said in Meine persönlichen dummen Fragen zu Blöcken:

          @Dr-Bakterius

          Wie versteh ich den obersten Block denn?

          Wann triggert er? Wenn beide DP war sind? Oder sobald es einer der beiden tut?

          glaube sobald einer sich auf wahr ändert.

          1 Antwort Letzte Antwort
          1
          • R roddor

            @Dr-Bakterius

            Wie versteh ich den obersten Block denn?

            Wann triggert er? Wenn beide DP war sind? Oder sobald es einer der beiden tut?

            J Offline
            J Offline
            Jan1
            schrieb am zuletzt editiert von
            #5

            @roddor
            Ist ne ODER Funktion.

            R 1 Antwort Letzte Antwort
            2
            • J Jan1

              @roddor
              Ist ne ODER Funktion.

              R Offline
              R Offline
              roddor
              schrieb am zuletzt editiert von
              #6

              @Jan1
              Vielen Dank. Habs mittlerweile auch raus. Meine riesen Schaltung war entstanden, weil ich anfangs zweimal den Block "ObjektID mit Dialog selektieren" drangehängt hatte und der log mich böse ausgeschimpft hatte. Dabei steht der Vorschlag doch schon am Blanko-Block dran....

              Hier mal aus Spass mein Todes-Blockly was mich verrückt macht. Im Groben und Ganzen hab ich es nun laufen, allerdings wollte ich es ja auch Helligkeitsabhängig haben. Hab aber irgendwie massiv Probleme mit dem Delay vom Lightlevel. Gibts da sonst noch was, was viel viel einfacher geht?

              <xml xmlns="http://www.w3.org/1999/xhtml">
                <variables>
                  <variable type="undefined" id="timeout">timeout</variable>
                  <variable type="undefined" id="AusschaltenCouchTag">AusschaltenCouchTag</variable>
                  <variable type="undefined" id="AusschaltenCouch">AusschaltenCouch</variable>
                  <variable type="undefined" id="timeoutmanuellmode">timeoutmanuellmode</variable>
                  <variable type="undefined" id="VerzoegerungTag">VerzoegerungTag</variable>
                  <variable type="undefined" id="VerzoegerungNacht">VerzoegerungNacht</variable>
                </variables>
                <block type="control" id="~Xohq[cGxPe$Rz^?v{6O" x="-1587" y="-1612">
                  <mutation delay_input="false"></mutation>
                  <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="N[u#qj4lQ,bpj(ay,;o8">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id="NhUk:%pE/IQ:QUrW,EDA">
                      <mutation delay_input="false"></mutation>
                      <field name="OID">tradfri.0.L-65543.lightbulb.state</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="=tyDp8N9Q(LbVMkTJ2Bg">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="~o@~.yGHTme~]Ue[24`^">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">tradfri.0.L-65541.lightbulb.state</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="w*G*/{}ifZvgr{?/`qWR">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id=":[xk~eCCuVX+(e$yA2(~">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">tempor.0.BewegungsmelderCouch</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="}tT-#7/BF~+ObXTD)#o,">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="timeouts_settimeout" id="@~hNL;/}G(Ne]P[0Q,`W">
                                  <field name="NAME">timeout</field>
                                  <field name="DELAY">5</field>
                                  <field name="UNIT">sec</field>
                                  <statement name="STATEMENT">
                                    <block type="update" id="ufwzfK`P|tPk:r/BN%mA">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">hue.0.BWM-Couch.presence</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="6(jjL}`OqA)[}F4Ir^m,">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="on" id="O=:g[Bt9N3AaGfC)U)?7">
                                      <field name="OID">hue.0.BWM-Couch.presence</field>
                                      <field name="CONDITION">ne</field>
                                      <field name="ACK_CONDITION"></field>
                                      <statement name="STATEMENT">
                                        <block type="controls_if" id="rSsbn$};BAYnO^LVAq+U">
                                          <mutation elseif="3"></mutation>
                                          <value name="IF0">
                                            <block type="logic_operation" id="9znz6*+?W]24z]T_-y[=" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_operation" id=":4js^vb).bT)g9Nr`gGR" inline="false">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="get_value" id="?US~vUdotOKr9a]/jX{t">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_negate" id="|JDcM$sSosT1oYR.s_%J">
                                                      <value name="BOOL">
                                                        <block type="get_value" id="Rs~/PlrT3|{sJ8iT/-C*">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_operation" id="z-Zp`58pv6tvc],P[^?1" inline="false">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="logic_negate" id=",F4u/:b3ORdM@/@bE{$Q">
                                                      <value name="BOOL">
                                                        <block type="get_value" id="kqo3}$kmSchP[M@BO(@b">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">tempor.0.Nacht</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="on_source" id="].7%$T9%Z[nEgNV}lX[X">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="control" id="?iDUD(Xn2n2fj+VRNa}X">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">tradfri.0.L-65542.lightbulb.brightness</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="/I97`1lUVmN;j#=rQNRI">
                                                  <field name="NUM">80</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="1$U9e,6u=cV:h(J;=,*C">
                                                  <mutation delay_input="false"></mutation>
                                                  <field name="OID">tradfri.0.L-65543.lightbulb.brightness</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="GYIM/%@B),B}`_*}6j%%">
                                                      <field name="NUM">80</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="8058It3ti3MS.WQkZ//B">
                                                      <mutation delay_input="false"></mutation>
                                                      <field name="OID">tradfri.0.L-65541.lightbulb.brightness</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="math_number" id="!m}636Wky$QtY*[UYUNh">
                                                          <field name="NUM">80</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="[kaE:*`Y3-a5q:},w+M!">
                                                          <mutation delay_input="false"></mutation>
                                                          <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="k/#bLr7Dy^y4/$hPAIy:">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="control" id="ZUKhj[=|{Bb@BC!nMrSH">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">tradfri.0.L-65543.lightbulb.state</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="$!7j,hbCF8Vui5W4ay9O">
                                                                  <field name="BOOL">TRUE</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="control" id="_.KTNJ=@dZ;d4L*Qk,9x">
                                                                  <mutation delay_input="false"></mutation>
                                                                  <field name="OID">tradfri.0.L-65541.lightbulb.state</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_boolean" id="%nj,*.n%w6T]BG~+Gwd%">
                                                                      <field name="BOOL">TRUE</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="timeouts_settimeout" id="sG=h2k2-?M{DH3yMU:Mj">
                                                                      <field name="NAME">VerzoegerungTag</field>
                                                                      <field name="DELAY">20</field>
                                                                      <field name="UNIT">ms</field>
                                                                      <statement name="STATEMENT">
                                                                        <block type="debug" id="w4V*V_B#-Bd,3#z:ZTa$">
                                                                          <field name="Severity">log</field>
                                                                          <value name="TEXT">
                                                                            <shadow type="text" id="(n5k45eI:tZ^6J8WFO%B">
                                                                              <field name="TEXT">Couch: Licht eingeschaltet</field>
                                                                            </shadow>
                                                                          </value>
                                                                        </block>
                                                                      </statement>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <value name="IF1">
                                            <block type="logic_operation" id="oEtJy:384:~y{=[%.qwS" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_operation" id="`=j9Q|g$3fXmOdNE+Dh0" inline="false">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="get_value" id="G`%cA`.WW8uo:J9CB@|}">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_negate" id=")iPWZQ(Sd.?/sQO!tf61">
                                                      <value name="BOOL">
                                                        <block type="get_value" id="vPv#naT!AaQXu5O%L~+p">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_operation" id="078I5or?:A@!6;+Y8%K1" inline="false">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="get_value" id="#okSBYTK/a)+Q#F@/v$S">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">tempor.0.Nacht</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="on_source" id="=YrANScXzPON=,^%{*EQ">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO1">
                                            <block type="control" id="{p)+AKe0!~uQ,_d-(CP^">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">tradfri.0.L-65542.lightbulb.brightness</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="uxUwKXN#wXi;AqCU3fXi">
                                                  <field name="NUM">15</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="s$S$qPC6v8f#P*zW{mu^">
                                                  <mutation delay_input="false"></mutation>
                                                  <field name="OID">tradfri.0.L-65543.lightbulb.brightness</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="p7V.*J:w2hu!}W*~26.6">
                                                      <field name="NUM">15</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="r)QkJ@R7`)EMer=qrbXL">
                                                      <mutation delay_input="false"></mutation>
                                                      <field name="OID">tradfri.0.L-65541.lightbulb.brightness</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="math_number" id="@$Y:,y$;Ye3zDF1XJawf">
                                                          <field name="NUM">15</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="C9iko/N{BM,2~-!:m=L2">
                                                          <mutation delay_input="false"></mutation>
                                                          <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="=v5[y]*l$-Rl1sd#Y@[!">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="control" id="4#wEFz;tr6H$~,Y0DK(F">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">tradfri.0.L-65543.lightbulb.state</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="m)^XBzPpZ^#9ePJAEDGv">
                                                                  <field name="BOOL">TRUE</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="control" id="G-,7fmm;sG]g5z%Soe$a">
                                                                  <mutation delay_input="false"></mutation>
                                                                  <field name="OID">tradfri.0.L-65541.lightbulb.state</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_boolean" id="c2M2+kr$!j7`L9-_!Cna">
                                                                      <field name="BOOL">TRUE</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="timeouts_settimeout" id="dz!,#)A?b``rFW=3l.Dn">
                                                                      <field name="NAME">VerzoegerungNacht</field>
                                                                      <field name="DELAY">20</field>
                                                                      <field name="UNIT">ms</field>
                                                                      <statement name="STATEMENT">
                                                                        <block type="debug" id="%sT1;o,Afd(r+z|@jw%F">
                                                                          <field name="Severity">log</field>
                                                                          <value name="TEXT">
                                                                            <shadow type="text" id="_+Hxe$1j,#rq?^dbDYy[">
                                                                              <field name="TEXT">Couch: Licht eingeschaltet (Nachtmodus)</field>
                                                                            </shadow>
                                                                          </value>
                                                                        </block>
                                                                      </statement>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <value name="IF2">
                                            <block type="on_source" id="#ZNN7[qu7raVD;LNKaN-">
                                              <field name="ATTR">state.val</field>
                                            </block>
                                          </value>
                                          <statement name="DO2">
                                            <block type="timeouts_cleartimeout" id="]*.*LFj2NBNpqqsUE2}Y">
                                              <field name="NAME">AusschaltenCouch</field>
                                              <next>
                                                <block type="timeouts_cleartimeout" id="wI]I0:V]^:$^t|f`zf#=">
                                                  <field name="NAME">AusschaltenCouchTag</field>
                                                  <next>
                                                    <block type="timeouts_cleartimeout" id="qevEH.ETP)xRR7Dq0j~3">
                                                      <field name="NAME">timeoutmanuellmode</field>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                          <value name="IF3">
                                            <block type="logic_operation" id="ZC7J^TL7T_zJi}{A3,Rx" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_negate" id="QIz_eC_3Tto`UgSz56Ng">
                                                  <value name="BOOL">
                                                    <block type="on_source" id="N@OLr3,`h#uQnm]FO;s6">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="get_value" id="^pI!_f~xckeh^)TJ7kyT">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO3">
                                            <block type="timeouts_settimeout" id="Le8bzl|@gfIcI2Ded%oN">
                                              <field name="NAME">AusschaltenCouchTag</field>
                                              <field name="DELAY">300</field>
                                              <field name="UNIT">sec</field>
                                              <statement name="STATEMENT">
                                                <block type="control" id="+vcazpx`ns`X=2XEctuX">
                                                  <mutation delay_input="false"></mutation>
                                                  <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="jU3)4g-4s7Oh|u0/CvB.">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="uD2VhMx^#@2p}}RspU4J">
                                                      <mutation delay_input="false"></mutation>
                                                      <field name="OID">tradfri.0.L-65543.lightbulb.state</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="~,,Ntq2l=_f1a]^wWw,8">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="!)|A1[]id`3bj#AX+xpf">
                                                          <mutation delay_input="false"></mutation>
                                                          <field name="OID">tradfri.0.L-65541.lightbulb.state</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="^8RI,AfBb%?tc/X(-k~(">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="debug" id="5-$)O(_U)pjFMM$1At6m">
                                                              <field name="Severity">log</field>
                                                              <value name="TEXT">
                                                                <shadow type="text" id="70M05)9TebG1,74wc$Yf">
                                                                  <field name="TEXT">Couch: Licht ausgeschaltet</field>
                                                                </shadow>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="controls_if" id="J#OAhL_,}aF3]?H0P5g~">
                                              <value name="IF0">
                                                <block type="logic_operation" id="oU)=z1e{vaUHJ%nX5sq_" inline="false">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="logic_negate" id="t,0P0/dsixQe_$IVEa;;">
                                                      <value name="BOOL">
                                                        <block type="on_source" id="1K|$[SBc{B8xd.G}[B`o">
                                                          <field name="ATTR">state.val</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_negate" id="`,9s|uEhr!=H^;1@FhA0">
                                                      <value name="BOOL">
                                                        <block type="get_value" id="B3,T*.CP{g2|L6}L5B:z">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="timeouts_cleartimeout" id="(GXLwLBUlPDs:H:K=iSH">
                                                  <field name="NAME">AusschaltenCouch</field>
                                                  <next>
                                                    <block type="timeouts_cleartimeout" id="|ou4X]P|zWAmU)I0{QeY">
                                                      <field name="NAME">AusschaltenCouchTag</field>
                                                      <next>
                                                        <block type="timeouts_settimeout" id="MO6wao3lVwePuigh|xs(">
                                                          <field name="NAME">timeoutmanuellmode</field>
                                                          <field name="DELAY">28</field>
                                                          <field name="UNIT">min</field>
                                                          <statement name="STATEMENT">
                                                            <block type="control" id="^,Tpt0()-/xQJsK27|l9">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="?oUs;VTz.e;pHVIsI0tP">
                                                                  <field name="BOOL">TRUE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </statement>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="on" id="h}On18Gu`^?i@}1nEMlF">
                                          <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                          <field name="CONDITION">any</field>
                                          <field name="ACK_CONDITION"></field>
                                          <statement name="STATEMENT">
                                            <block type="controls_if" id="e,d{B97P78z#^fRZdpmp">
                                              <mutation elseif="1"></mutation>
                                              <value name="IF0">
                                                <block type="logic_operation" id="#Qsv|z!7a=}P%.Cc20M3" inline="false">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="logic_negate" id="PbG,GD(T25dyTd6rv7|,">
                                                      <value name="BOOL">
                                                        <block type="on_source" id="(W|3#K.#B5cJZrXpm){D">
                                                          <field name="ATTR">state.val</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="get_value" id="GX[edqiVw@VO{{nuZX_X">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="debug" id="qI5r+;AB{h[qIW#.5Cf{">
                                                  <field name="Severity">log</field>
                                                  <value name="TEXT">
                                                    <shadow type="text" id=".xGF*uSu)t(=7Uj*uIX[">
                                                      <field name="TEXT">Couch: Manueller Betrieb</field>
                                                    </shadow>
                                                  </value>
                                                  <next>
                                                    <block type="timeouts_cleartimeout" id="[q9/S{Q4-a.@,=JK5L;?">
                                                      <field name="NAME">AusschaltenCouch</field>
                                                      <next>
                                                        <block type="timeouts_cleartimeout" id="t~1kiS!q/xdLsGQP0KBu">
                                                          <field name="NAME">AusschaltenCouchTag</field>
                                                          <next>
                                                            <block type="control" id="9p@(M#.jFwTcSoZwG7Vn">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">tradfri.0.L-65542.lightbulb.brightness</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="math_number" id="G9q.vl_6l3n]sQ8Xa-|)">
                                                                  <field name="NUM">95</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="control" id="89Nig.voR/:dym65@d]o">
                                                                  <mutation delay_input="false"></mutation>
                                                                  <field name="OID">tradfri.0.L-65543.lightbulb.brightness</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="math_number" id="%%v=Oa%vXzw`Oi6RVu3F">
                                                                      <field name="NUM">95</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="control" id="PUZppaUvHPcDr4P`cVo_">
                                                                      <mutation delay_input="false"></mutation>
                                                                      <field name="OID">tradfri.0.L-65541.lightbulb.brightness</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="math_number" id="c]opl*+kt/1)y.6+=9uH">
                                                                          <field name="NUM">95</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="control" id="=_xHLS(t1!,k|1}[!1}M">
                                                                          <mutation delay_input="false"></mutation>
                                                                          <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="logic_boolean" id="3yP7K#KR(1urqv^LQCD~">
                                                                              <field name="BOOL">TRUE</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="control" id="z7k2GBD!IYZm=fQxof9)">
                                                                              <mutation delay_input="false"></mutation>
                                                                              <field name="OID">tradfri.0.L-65543.lightbulb.state</field>
                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                              <value name="VALUE">
                                                                                <block type="logic_boolean" id="/b6hf1R}on*xenk}y@SI">
                                                                                  <field name="BOOL">TRUE</field>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="control" id="S:HSJ2bb1A1WC:BUEw]k">
                                                                                  <mutation delay_input="false"></mutation>
                                                                                  <field name="OID">tradfri.0.L-65541.lightbulb.state</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="logic_boolean" id="F2o:1e?ya.{f-khEBvxy">
                                                                                      <field name="BOOL">TRUE</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                              <value name="IF1">
                                                <block type="logic_operation" id="C(*2j2AZW{8ZQaZXw*RR" inline="false">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="on_source" id="Qv[0.dobsMT++v}gFAQQ">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="get_value" id="Kl,d?KI@8ol#R~5r.x1K">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO1">
                                                <block type="debug" id="LcqctgrQ_tQ,KM37^}[i">
                                                  <field name="Severity">log</field>
                                                  <value name="TEXT">
                                                    <shadow type="text" id="vA%R`G]GrYI9.lkI[w-A">
                                                      <field name="TEXT">Couch: Automatischer Betrieb</field>
                                                    </shadow>
                                                  </value>
                                                  <next>
                                                    <block type="timeouts_settimeout" id="l5[1^q1gsVphCYM{Z2Kq">
                                                      <field name="NAME">AusschaltenCouch</field>
                                                      <field name="DELAY">30</field>
                                                      <field name="UNIT">sec</field>
                                                      <statement name="STATEMENT">
                                                        <block type="control" id="ujEp)qLun2.$}yIgS{06">
                                                          <mutation delay_input="false"></mutation>
                                                          <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="R#tsS:R^fKG%e-mfvQ=)">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="control" id="t}/yu@)j=5~]#k=QjPJA">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">tradfri.0.L-65543.lightbulb.state</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="DXG]FjNHrQF^a.elpe=a">
                                                                  <field name="BOOL">FALSE</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="control" id="d)f:D]Nul^CI5?f8imTM">
                                                                  <mutation delay_input="false"></mutation>
                                                                  <field name="OID">tradfri.0.L-65541.lightbulb.state</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_boolean" id="(GpN3EeVymiHvnlXR@|L">
                                                                      <field name="BOOL">FALSE</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="debug" id="R[!F0tD%v/V0x63(9+]y">
                                                                      <field name="Severity">log</field>
                                                                      <value name="TEXT">
                                                                        <shadow type="text" id="eQH~0bN$l=Ww_qQ*|B^$">
                                                                          <field name="TEXT">Couch: Licht ausgeschaltet</field>
                                                                        </shadow>
                                                                      </value>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </xml>
              

              Bildschirmfoto 2020-01-05 um 22.14.47.png

              paul53P 1 Antwort Letzte Antwort
              0
              • R roddor

                @Jan1
                Vielen Dank. Habs mittlerweile auch raus. Meine riesen Schaltung war entstanden, weil ich anfangs zweimal den Block "ObjektID mit Dialog selektieren" drangehängt hatte und der log mich böse ausgeschimpft hatte. Dabei steht der Vorschlag doch schon am Blanko-Block dran....

                Hier mal aus Spass mein Todes-Blockly was mich verrückt macht. Im Groben und Ganzen hab ich es nun laufen, allerdings wollte ich es ja auch Helligkeitsabhängig haben. Hab aber irgendwie massiv Probleme mit dem Delay vom Lightlevel. Gibts da sonst noch was, was viel viel einfacher geht?

                <xml xmlns="http://www.w3.org/1999/xhtml">
                  <variables>
                    <variable type="undefined" id="timeout">timeout</variable>
                    <variable type="undefined" id="AusschaltenCouchTag">AusschaltenCouchTag</variable>
                    <variable type="undefined" id="AusschaltenCouch">AusschaltenCouch</variable>
                    <variable type="undefined" id="timeoutmanuellmode">timeoutmanuellmode</variable>
                    <variable type="undefined" id="VerzoegerungTag">VerzoegerungTag</variable>
                    <variable type="undefined" id="VerzoegerungNacht">VerzoegerungNacht</variable>
                  </variables>
                  <block type="control" id="~Xohq[cGxPe$Rz^?v{6O" x="-1587" y="-1612">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="N[u#qj4lQ,bpj(ay,;o8">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="NhUk:%pE/IQ:QUrW,EDA">
                        <mutation delay_input="false"></mutation>
                        <field name="OID">tradfri.0.L-65543.lightbulb.state</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="=tyDp8N9Q(LbVMkTJ2Bg">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="~o@~.yGHTme~]Ue[24`^">
                            <mutation delay_input="false"></mutation>
                            <field name="OID">tradfri.0.L-65541.lightbulb.state</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="w*G*/{}ifZvgr{?/`qWR">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id=":[xk~eCCuVX+(e$yA2(~">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="}tT-#7/BF~+ObXTD)#o,">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="timeouts_settimeout" id="@~hNL;/}G(Ne]P[0Q,`W">
                                    <field name="NAME">timeout</field>
                                    <field name="DELAY">5</field>
                                    <field name="UNIT">sec</field>
                                    <statement name="STATEMENT">
                                      <block type="update" id="ufwzfK`P|tPk:r/BN%mA">
                                        <mutation delay_input="false"></mutation>
                                        <field name="OID">hue.0.BWM-Couch.presence</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="logic_boolean" id="6(jjL}`OqA)[}F4Ir^m,">
                                            <field name="BOOL">TRUE</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="on" id="O=:g[Bt9N3AaGfC)U)?7">
                                        <field name="OID">hue.0.BWM-Couch.presence</field>
                                        <field name="CONDITION">ne</field>
                                        <field name="ACK_CONDITION"></field>
                                        <statement name="STATEMENT">
                                          <block type="controls_if" id="rSsbn$};BAYnO^LVAq+U">
                                            <mutation elseif="3"></mutation>
                                            <value name="IF0">
                                              <block type="logic_operation" id="9znz6*+?W]24z]T_-y[=" inline="false">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="logic_operation" id=":4js^vb).bT)g9Nr`gGR" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="get_value" id="?US~vUdotOKr9a]/jX{t">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_negate" id="|JDcM$sSosT1oYR.s_%J">
                                                        <value name="BOOL">
                                                          <block type="get_value" id="Rs~/PlrT3|{sJ8iT/-C*">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_operation" id="z-Zp`58pv6tvc],P[^?1" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="logic_negate" id=",F4u/:b3ORdM@/@bE{$Q">
                                                        <value name="BOOL">
                                                          <block type="get_value" id="kqo3}$kmSchP[M@BO(@b">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">tempor.0.Nacht</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="on_source" id="].7%$T9%Z[nEgNV}lX[X">
                                                        <field name="ATTR">state.val</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="control" id="?iDUD(Xn2n2fj+VRNa}X">
                                                <mutation delay_input="false"></mutation>
                                                <field name="OID">tradfri.0.L-65542.lightbulb.brightness</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="/I97`1lUVmN;j#=rQNRI">
                                                    <field name="NUM">80</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="1$U9e,6u=cV:h(J;=,*C">
                                                    <mutation delay_input="false"></mutation>
                                                    <field name="OID">tradfri.0.L-65543.lightbulb.brightness</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="math_number" id="GYIM/%@B),B}`_*}6j%%">
                                                        <field name="NUM">80</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="8058It3ti3MS.WQkZ//B">
                                                        <mutation delay_input="false"></mutation>
                                                        <field name="OID">tradfri.0.L-65541.lightbulb.brightness</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="math_number" id="!m}636Wky$QtY*[UYUNh">
                                                            <field name="NUM">80</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="[kaE:*`Y3-a5q:},w+M!">
                                                            <mutation delay_input="false"></mutation>
                                                            <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="k/#bLr7Dy^y4/$hPAIy:">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="ZUKhj[=|{Bb@BC!nMrSH">
                                                                <mutation delay_input="false"></mutation>
                                                                <field name="OID">tradfri.0.L-65543.lightbulb.state</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="$!7j,hbCF8Vui5W4ay9O">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="_.KTNJ=@dZ;d4L*Qk,9x">
                                                                    <mutation delay_input="false"></mutation>
                                                                    <field name="OID">tradfri.0.L-65541.lightbulb.state</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="%nj,*.n%w6T]BG~+Gwd%">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="timeouts_settimeout" id="sG=h2k2-?M{DH3yMU:Mj">
                                                                        <field name="NAME">VerzoegerungTag</field>
                                                                        <field name="DELAY">20</field>
                                                                        <field name="UNIT">ms</field>
                                                                        <statement name="STATEMENT">
                                                                          <block type="debug" id="w4V*V_B#-Bd,3#z:ZTa$">
                                                                            <field name="Severity">log</field>
                                                                            <value name="TEXT">
                                                                              <shadow type="text" id="(n5k45eI:tZ^6J8WFO%B">
                                                                                <field name="TEXT">Couch: Licht eingeschaltet</field>
                                                                              </shadow>
                                                                            </value>
                                                                          </block>
                                                                        </statement>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                            <value name="IF1">
                                              <block type="logic_operation" id="oEtJy:384:~y{=[%.qwS" inline="false">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="logic_operation" id="`=j9Q|g$3fXmOdNE+Dh0" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="get_value" id="G`%cA`.WW8uo:J9CB@|}">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_negate" id=")iPWZQ(Sd.?/sQO!tf61">
                                                        <value name="BOOL">
                                                          <block type="get_value" id="vPv#naT!AaQXu5O%L~+p">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_operation" id="078I5or?:A@!6;+Y8%K1" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="get_value" id="#okSBYTK/a)+Q#F@/v$S">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">tempor.0.Nacht</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="on_source" id="=YrANScXzPON=,^%{*EQ">
                                                        <field name="ATTR">state.val</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO1">
                                              <block type="control" id="{p)+AKe0!~uQ,_d-(CP^">
                                                <mutation delay_input="false"></mutation>
                                                <field name="OID">tradfri.0.L-65542.lightbulb.brightness</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="uxUwKXN#wXi;AqCU3fXi">
                                                    <field name="NUM">15</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="s$S$qPC6v8f#P*zW{mu^">
                                                    <mutation delay_input="false"></mutation>
                                                    <field name="OID">tradfri.0.L-65543.lightbulb.brightness</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="math_number" id="p7V.*J:w2hu!}W*~26.6">
                                                        <field name="NUM">15</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="r)QkJ@R7`)EMer=qrbXL">
                                                        <mutation delay_input="false"></mutation>
                                                        <field name="OID">tradfri.0.L-65541.lightbulb.brightness</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="math_number" id="@$Y:,y$;Ye3zDF1XJawf">
                                                            <field name="NUM">15</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="C9iko/N{BM,2~-!:m=L2">
                                                            <mutation delay_input="false"></mutation>
                                                            <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="=v5[y]*l$-Rl1sd#Y@[!">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="4#wEFz;tr6H$~,Y0DK(F">
                                                                <mutation delay_input="false"></mutation>
                                                                <field name="OID">tradfri.0.L-65543.lightbulb.state</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="m)^XBzPpZ^#9ePJAEDGv">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="G-,7fmm;sG]g5z%Soe$a">
                                                                    <mutation delay_input="false"></mutation>
                                                                    <field name="OID">tradfri.0.L-65541.lightbulb.state</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="c2M2+kr$!j7`L9-_!Cna">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="timeouts_settimeout" id="dz!,#)A?b``rFW=3l.Dn">
                                                                        <field name="NAME">VerzoegerungNacht</field>
                                                                        <field name="DELAY">20</field>
                                                                        <field name="UNIT">ms</field>
                                                                        <statement name="STATEMENT">
                                                                          <block type="debug" id="%sT1;o,Afd(r+z|@jw%F">
                                                                            <field name="Severity">log</field>
                                                                            <value name="TEXT">
                                                                              <shadow type="text" id="_+Hxe$1j,#rq?^dbDYy[">
                                                                                <field name="TEXT">Couch: Licht eingeschaltet (Nachtmodus)</field>
                                                                              </shadow>
                                                                            </value>
                                                                          </block>
                                                                        </statement>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                            <value name="IF2">
                                              <block type="on_source" id="#ZNN7[qu7raVD;LNKaN-">
                                                <field name="ATTR">state.val</field>
                                              </block>
                                            </value>
                                            <statement name="DO2">
                                              <block type="timeouts_cleartimeout" id="]*.*LFj2NBNpqqsUE2}Y">
                                                <field name="NAME">AusschaltenCouch</field>
                                                <next>
                                                  <block type="timeouts_cleartimeout" id="wI]I0:V]^:$^t|f`zf#=">
                                                    <field name="NAME">AusschaltenCouchTag</field>
                                                    <next>
                                                      <block type="timeouts_cleartimeout" id="qevEH.ETP)xRR7Dq0j~3">
                                                        <field name="NAME">timeoutmanuellmode</field>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                            <value name="IF3">
                                              <block type="logic_operation" id="ZC7J^TL7T_zJi}{A3,Rx" inline="false">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="logic_negate" id="QIz_eC_3Tto`UgSz56Ng">
                                                    <value name="BOOL">
                                                      <block type="on_source" id="N@OLr3,`h#uQnm]FO;s6">
                                                        <field name="ATTR">state.val</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="get_value" id="^pI!_f~xckeh^)TJ7kyT">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO3">
                                              <block type="timeouts_settimeout" id="Le8bzl|@gfIcI2Ded%oN">
                                                <field name="NAME">AusschaltenCouchTag</field>
                                                <field name="DELAY">300</field>
                                                <field name="UNIT">sec</field>
                                                <statement name="STATEMENT">
                                                  <block type="control" id="+vcazpx`ns`X=2XEctuX">
                                                    <mutation delay_input="false"></mutation>
                                                    <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="jU3)4g-4s7Oh|u0/CvB.">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="uD2VhMx^#@2p}}RspU4J">
                                                        <mutation delay_input="false"></mutation>
                                                        <field name="OID">tradfri.0.L-65543.lightbulb.state</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="~,,Ntq2l=_f1a]^wWw,8">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="!)|A1[]id`3bj#AX+xpf">
                                                            <mutation delay_input="false"></mutation>
                                                            <field name="OID">tradfri.0.L-65541.lightbulb.state</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="^8RI,AfBb%?tc/X(-k~(">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="debug" id="5-$)O(_U)pjFMM$1At6m">
                                                                <field name="Severity">log</field>
                                                                <value name="TEXT">
                                                                  <shadow type="text" id="70M05)9TebG1,74wc$Yf">
                                                                    <field name="TEXT">Couch: Licht ausgeschaltet</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </statement>
                                            <next>
                                              <block type="controls_if" id="J#OAhL_,}aF3]?H0P5g~">
                                                <value name="IF0">
                                                  <block type="logic_operation" id="oU)=z1e{vaUHJ%nX5sq_" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="logic_negate" id="t,0P0/dsixQe_$IVEa;;">
                                                        <value name="BOOL">
                                                          <block type="on_source" id="1K|$[SBc{B8xd.G}[B`o">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_negate" id="`,9s|uEhr!=H^;1@FhA0">
                                                        <value name="BOOL">
                                                          <block type="get_value" id="B3,T*.CP{g2|L6}L5B:z">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="timeouts_cleartimeout" id="(GXLwLBUlPDs:H:K=iSH">
                                                    <field name="NAME">AusschaltenCouch</field>
                                                    <next>
                                                      <block type="timeouts_cleartimeout" id="|ou4X]P|zWAmU)I0{QeY">
                                                        <field name="NAME">AusschaltenCouchTag</field>
                                                        <next>
                                                          <block type="timeouts_settimeout" id="MO6wao3lVwePuigh|xs(">
                                                            <field name="NAME">timeoutmanuellmode</field>
                                                            <field name="DELAY">28</field>
                                                            <field name="UNIT">min</field>
                                                            <statement name="STATEMENT">
                                                              <block type="control" id="^,Tpt0()-/xQJsK27|l9">
                                                                <mutation delay_input="false"></mutation>
                                                                <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="?oUs;VTz.e;pHVIsI0tP">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="on" id="h}On18Gu`^?i@}1nEMlF">
                                            <field name="OID">tempor.0.BewegungsmelderCouch</field>
                                            <field name="CONDITION">any</field>
                                            <field name="ACK_CONDITION"></field>
                                            <statement name="STATEMENT">
                                              <block type="controls_if" id="e,d{B97P78z#^fRZdpmp">
                                                <mutation elseif="1"></mutation>
                                                <value name="IF0">
                                                  <block type="logic_operation" id="#Qsv|z!7a=}P%.Cc20M3" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="logic_negate" id="PbG,GD(T25dyTd6rv7|,">
                                                        <value name="BOOL">
                                                          <block type="on_source" id="(W|3#K.#B5cJZrXpm){D">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="get_value" id="GX[edqiVw@VO{{nuZX_X">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="debug" id="qI5r+;AB{h[qIW#.5Cf{">
                                                    <field name="Severity">log</field>
                                                    <value name="TEXT">
                                                      <shadow type="text" id=".xGF*uSu)t(=7Uj*uIX[">
                                                        <field name="TEXT">Couch: Manueller Betrieb</field>
                                                      </shadow>
                                                    </value>
                                                    <next>
                                                      <block type="timeouts_cleartimeout" id="[q9/S{Q4-a.@,=JK5L;?">
                                                        <field name="NAME">AusschaltenCouch</field>
                                                        <next>
                                                          <block type="timeouts_cleartimeout" id="t~1kiS!q/xdLsGQP0KBu">
                                                            <field name="NAME">AusschaltenCouchTag</field>
                                                            <next>
                                                              <block type="control" id="9p@(M#.jFwTcSoZwG7Vn">
                                                                <mutation delay_input="false"></mutation>
                                                                <field name="OID">tradfri.0.L-65542.lightbulb.brightness</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="G9q.vl_6l3n]sQ8Xa-|)">
                                                                    <field name="NUM">95</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="89Nig.voR/:dym65@d]o">
                                                                    <mutation delay_input="false"></mutation>
                                                                    <field name="OID">tradfri.0.L-65543.lightbulb.brightness</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_number" id="%%v=Oa%vXzw`Oi6RVu3F">
                                                                        <field name="NUM">95</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="control" id="PUZppaUvHPcDr4P`cVo_">
                                                                        <mutation delay_input="false"></mutation>
                                                                        <field name="OID">tradfri.0.L-65541.lightbulb.brightness</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="math_number" id="c]opl*+kt/1)y.6+=9uH">
                                                                            <field name="NUM">95</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="control" id="=_xHLS(t1!,k|1}[!1}M">
                                                                            <mutation delay_input="false"></mutation>
                                                                            <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="logic_boolean" id="3yP7K#KR(1urqv^LQCD~">
                                                                                <field name="BOOL">TRUE</field>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="control" id="z7k2GBD!IYZm=fQxof9)">
                                                                                <mutation delay_input="false"></mutation>
                                                                                <field name="OID">tradfri.0.L-65543.lightbulb.state</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="logic_boolean" id="/b6hf1R}on*xenk}y@SI">
                                                                                    <field name="BOOL">TRUE</field>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="control" id="S:HSJ2bb1A1WC:BUEw]k">
                                                                                    <mutation delay_input="false"></mutation>
                                                                                    <field name="OID">tradfri.0.L-65541.lightbulb.state</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="logic_boolean" id="F2o:1e?ya.{f-khEBvxy">
                                                                                        <field name="BOOL">TRUE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                                <value name="IF1">
                                                  <block type="logic_operation" id="C(*2j2AZW{8ZQaZXw*RR" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="on_source" id="Qv[0.dobsMT++v}gFAQQ">
                                                        <field name="ATTR">state.val</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="get_value" id="Kl,d?KI@8ol#R~5r.x1K">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO1">
                                                  <block type="debug" id="LcqctgrQ_tQ,KM37^}[i">
                                                    <field name="Severity">log</field>
                                                    <value name="TEXT">
                                                      <shadow type="text" id="vA%R`G]GrYI9.lkI[w-A">
                                                        <field name="TEXT">Couch: Automatischer Betrieb</field>
                                                      </shadow>
                                                    </value>
                                                    <next>
                                                      <block type="timeouts_settimeout" id="l5[1^q1gsVphCYM{Z2Kq">
                                                        <field name="NAME">AusschaltenCouch</field>
                                                        <field name="DELAY">30</field>
                                                        <field name="UNIT">sec</field>
                                                        <statement name="STATEMENT">
                                                          <block type="control" id="ujEp)qLun2.$}yIgS{06">
                                                            <mutation delay_input="false"></mutation>
                                                            <field name="OID">tradfri.0.L-65542.lightbulb.state</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="R#tsS:R^fKG%e-mfvQ=)">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="t}/yu@)j=5~]#k=QjPJA">
                                                                <mutation delay_input="false"></mutation>
                                                                <field name="OID">tradfri.0.L-65543.lightbulb.state</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="DXG]FjNHrQF^a.elpe=a">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="control" id="d)f:D]Nul^CI5?f8imTM">
                                                                    <mutation delay_input="false"></mutation>
                                                                    <field name="OID">tradfri.0.L-65541.lightbulb.state</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="(GpN3EeVymiHvnlXR@|L">
                                                                        <field name="BOOL">FALSE</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="debug" id="R[!F0tD%v/V0x63(9+]y">
                                                                        <field name="Severity">log</field>
                                                                        <value name="TEXT">
                                                                          <shadow type="text" id="eQH~0bN$l=Ww_qQ*|B^$">
                                                                            <field name="TEXT">Couch: Licht ausgeschaltet</field>
                                                                          </shadow>
                                                                        </value>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </xml>
                

                Bildschirmfoto 2020-01-05 um 22.14.47.png

                paul53P Offline
                paul53P Offline
                paul53
                schrieb am zuletzt editiert von
                #7

                @roddor
                Da alle 3 Aktoren mit den gleichen Werten gesteuert werden, kann man die Ansteuerung in einer Funktion licht(ein, helligkeit) zusammenfassen.

                Blockly_temp.JPG

                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

                4 1 Antwort Letzte Antwort
                1
                • paul53P paul53

                  @roddor
                  Da alle 3 Aktoren mit den gleichen Werten gesteuert werden, kann man die Ansteuerung in einer Funktion licht(ein, helligkeit) zusammenfassen.

                  Blockly_temp.JPG

                  4 Offline
                  4 Offline
                  4-Real
                  schrieb am zuletzt editiert von 4-Real
                  #8

                  @paul53 said in Meine persönlichen dummen Fragen zu Blöcken:

                  @roddor
                  Da alle 3 Aktoren mit den gleichen Werten gesteuert werden, kann man die Ansteuerung in einer Funktion licht(ein, helligkeit) zusammenfassen.

                  Blockly_temp.JPG

                  also..Ich verstehe deine Variante jetzt irgendwie nicht...
                  kannst du das irgendwie ein wenig erläutern...?
                  was bringt ihm "licht" "ein" "helligkeit"?
                  Ich verstehe deine Vorgehensweise nicht...könntest du dies ein wenig erläutern...Interessant sieht es ja nämlich aus..

                  paul53P 1 Antwort Letzte Antwort
                  0
                  • 4 4-Real

                    @paul53 said in Meine persönlichen dummen Fragen zu Blöcken:

                    @roddor
                    Da alle 3 Aktoren mit den gleichen Werten gesteuert werden, kann man die Ansteuerung in einer Funktion licht(ein, helligkeit) zusammenfassen.

                    Blockly_temp.JPG

                    also..Ich verstehe deine Variante jetzt irgendwie nicht...
                    kannst du das irgendwie ein wenig erläutern...?
                    was bringt ihm "licht" "ein" "helligkeit"?
                    Ich verstehe deine Vorgehensweise nicht...könntest du dies ein wenig erläutern...Interessant sieht es ja nämlich aus..

                    paul53P Offline
                    paul53P Offline
                    paul53
                    schrieb am zuletzt editiert von paul53
                    #9

                    @4-Real sagte:

                    was bringt ihm "licht" "ein" "helligkeit"?

                    Anstelle von 6 (bzw. 3) x "steuere" erfolgt der Aufruf der Funktion mit Übergabe der passenden Werte.

                    Blockly_temp.JPG

                    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

                    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

                    904

                    Online

                    32.5k

                    Benutzer

                    81.8k

                    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