Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Script Logik Optimierung für Licht Steuerung

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Script Logik Optimierung für Licht Steuerung

    This topic has been deleted. Only users with topic management privileges can see it.
    • paul53
      paul53 @TDCroPower last edited by

      @TDCroPower sagte:

      Wird das zum einschalt oder ausschalt Moment hinzugefügt?

      Als falls-Klammer um alles:
      falls nicht manuell

      T 1 Reply Last reply Reply Quote 1
      • paul53
        paul53 @TDCroPower last edited by

        @TDCroPower sagte:

        ich nutze im Astrocheck die "Golden Hour", da mir der Zeitpunkt besser gefällt...

        Muss dann der Datenpunkt "Nachtcheck" noch zusätzlich ausgewertet werden ?

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

          @paul53 ...
          "Als falls-Klammer um alles:
          falls nicht manuell"

          • hat noch nicht so recht Klick gemacht, auf was trigger ich denn deine falls Bedingung und welcher "Wert" und "Ursprung" werden dort gesetzt?
          • das "setze manuell" finde ich komischerweise in der Objektliste bei Blockly nicht, wo hast du das her?

          "Muss dann der Datenpunkt "Nachtcheck" noch zusätzlich ausgewertet werden ?"

          • hast Recht, macht dort keinen Sinn mehr und ist entfernt, somit habe ich nur ein UND Operator anstatt die doppel UND Verschachtelung.
          paul53 1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @TDCroPower last edited by paul53

            @TDCroPower sagte:

            "Wert" und "Ursprung"

            Wert und Ursprung sind Eigenschaften des Trigger-Datenpunktes. Man findet sie unter "Trigger"

            @TDCroPower sagte in Script Logik Optimierung für Licht Steuerung:

            das "setze manuell" finde ich komischerweise in der Objektliste bei Blockly nicht

            manuell ist eine selbst erstellte Variable

            <xml xmlns="https://developers.google.com/blockly/xml">
              <variables>
                <variable id="RaKJ([P?@SjE_,fgC*ln">manuell</variable>
              </variables>
              <block type="comment" id="c7yyXLmxz7|=z/`=rokJ" x="137" y="37">
                <field name="COMMENT">Yeelight</field>
                <next>
                  <block type="on_ext" id="`6l9crvz3C3cmmYX[HWb">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                    <field name="CONDITION">ne</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                      <shadow type="field_oid" id="}(%qYwJdXJ8l}dGSWlmE">
                        <field name="oid">default</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="variables_set" id="sildTX1OG~9ks0OI7W4z">
                        <field name="VAR" id="RaKJ([P?@SjE_,fgC*ln">manuell</field>
                        <value name="VALUE">
                          <block type="logic_operation" id="hg1?}4;+pul#a[6VWj1e" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="on_source" id="/uA]`zP3uiF[==!$bK,s">
                                <field name="ATTR">state.val</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="Aw8sFj*$|v[b$)q_fI|3">
                                <field name="OP">NEQ</field>
                                <value name="A">
                                  <block type="on_source" id="+DWHUEw0E=W|8wnlDu`_">
                                    <field name="ATTR">state.from</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="iw?GmVwAx-ME{Fg7W*NI">
                                    <field name="TEXT">system.adapter.javascript.0</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </xml>
            

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

              @paul53 sorry falls ich mich falsch ausgedrückt habe, die Trigger Werte finde ich und nutze ich schon in einigen Scripten.
              Suche aber dein "setze "manuell" auf...", das finde ich nirgendwo und erst recht nicht in der Triggerfarbe.

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

                @TDCroPower sagte:

                das finde ich nirgendwo und erst recht nicht in der Triggerfarbe.

                Es ist kein Trigger, sondern eine Variable, die leider die gleiche Farbe hat. Man muss erst oben klicken, um eine Variable zu erstellen, bevor man sie verwenden kann.

                Blockly_temp.JPG

                T 1 Reply Last reply Reply Quote 1
                • T
                  TDCroPower @paul53 last edited by

                  @paul53 danke für den Hinweis, ja die Farbwahl ist wirklich unvorteilhaft um es gut nach vollziehen zu können.

                  Bleibt nur noch die Frage wie ich das in mein Beispiel implementiere.
                  Ich habe die Logik leider nicht verstanden, wie ich das gegen meinen Bewegungssensor halten kann.

                  Kannst du mir vielleicht einen weiteren Tipp geben um es besser zu verstehen?

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

                    @TDCroPower sagte:

                    nicht verstanden, wie ich das gegen meinen Bewegungssensor halten kann.

                    Die Variable manuell wird true, wenn das Licht einschaltet (Wert = true) wird, die Quelle für die Wertänderung aber nicht die Javascript-Instanz ist. Mit der Auswertung der Variablen manuell muss das Schalten durch den BWM verhindert werden.

                    Blockly_temp.JPG

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

                      @paul53 ich glaube ich habe es jetzt umsetzen können.
                      Siehst du da vielleicht noch einen Fehler?

                      Zunächst habe ich einen Datenpunkt mit default "false" erstellt...
                      Bildschirmfoto 2020-06-24 um 12.53.29.png

                      Und dann deine Trigger Logik vor der BWM Abfrage gesetzt und im Ausschaltzustand die Abfrage auf die "manuell" Funktion hinzugefügt...
                      Bildschirmfoto 2020-06-24 um 12.53.47.png

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

                        @TDCroPower sagte:

                        Siehst du da vielleicht noch einen Fehler?

                        Ja, der Datenpunkt "Kueche_manuell" ist zu viel. Der Vergleichswert für Ursprung muss der String "system.adapter.javascript.0" sein.

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

                          @paul53 ah ok, dachte das wäre lediglich ein Platzhalter mit dem Textfeld.
                          Was macht denn das Textfeld in diesem Moment?

                          Hier noch die aktuelle Version...
                          Bildschirmfoto 2020-06-24 um 13.02.38.png

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

                            @TDCroPower sagte:

                            Was macht denn das Textfeld in diesem Moment?

                            Das ist der Vergleichswert, der nicht erfüllt sein darf (ungleich). Bau einen Debug-Block mit Ausgabe von Ursprung ein, dann siehst Du es.

                            T 1 Reply Last reply Reply Quote 1
                            • T
                              TDCroPower @paul53 last edited by

                              @paul53 aha, der hat im Ursprung wer ihn gesteuert hat...

                              Bildschirmfoto 2020-06-24 um 13.12.48.png

                              Hier habe ich die yeelight 1x über die Objektliste und 1x per Taster geschaltet...
                              Bildschirmfoto 2020-06-24 um 13.14.55.png

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

                                @TDCroPower
                                So kannst Du es vollständig verfolgen:

                                Blockly_temp.JPG

                                T 1 Reply Last reply Reply Quote 1
                                • T
                                  TDCroPower @paul53 last edited by

                                  @paul53 ich glaube jetzt habe ich. Ich musste auch beim einschalten auf die Funktion prüfen, da ich verschiedene Helligkeitsstufen für Taster und Bewegungserkennung habe.
                                  Im Debug Output sieht es soweit gut aus und das Licht schaltet genauso wie ich es mir gewünscht habe.

                                  Lediglich die if Bedingung vom einschalten ist jetzt ziemlich gewachsen mit 2x UND und 1x ODER oder 😁

                                  Bildschirmfoto 2020-06-24 um 13.36.00.png
                                  Bildschirmfoto 2020-06-24 um 13.36.09.png

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

                                    @TDCroPower sagte:

                                    die if Bedingung vom einschalten ist jetzt ziemlich gewachsen mit 2x UND und 1x ODER oder

                                    Hättest Du eine große Klammer "falls nicht manuell" darum gemacht, wäre es einfacher gewesen.

                                    T 1 Reply Last reply Reply Quote 1
                                    • T
                                      TDCroPower @paul53 last edited by

                                      @paul53 ajajaj es kann so einfach sein ;)...

                                      Bildschirmfoto 2020-06-24 um 20.20.57.png

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        TDCroPower last edited by TDCroPower

                                        Nach erfolgreichem Wohnungsumzug haben sich die Voraussetzung ein wenig geändert.
                                        In der alten Wohnung, hatte ich Xiaomi LED Strips verwendet bei der ich den integrierten Taster zum Ein-/Ausschalten verwendete.
                                        Dies konnte man ja dank der Lösung von @paul53 per Variable und Wert/Ursprung lösen.

                                        In der neuen Küche habe ich auf die 4x BlitzWolf LT-11 Strips gesetzt und zum manuellen Dauerbetrieb habe ich 2x Aqara ZigBee Taster jeweils für die Linke und Rechte Seite montiert.

                                        Logik bleibt ähnlich...

                                        Falls man(n) die Küche in der Nacht betritt, triggert der Aqara Bewegungssensor die linke und rechte Unterseite.
                                        Nach über 120 Sekunden keine Bewegungserkennung sollen die beiden Unterseiten wieder ausgeschaltet werden.
                                        Dies funktioniert soweit wie es soll, konnte ja fast komplett aus der alten Xiaomi Logik übernommen werden.

                                        Mein Problem ist die Dauerbeleuchtung über die beiden Taster.
                                        Irgendwie habe ich da ein Problem, denn aktuell schaltet er zwar die Beleucht oben und unten zwar an, jedoch kann ich diese nicht ausschalten bzw. greift wohl zusätzlich noch die Bewegungslogik mit ein? Obwohl gerade am Tag der Datenpunkt "Nachtcheck" eigentlich auf "false" steht.

                                        Hier mal die Blockly Logik aktuell und unten drunter ein Blockly export...

                                        Taster rechts:
                                        Taster_rechts.png

                                        Taster links:
                                        Taster_links.png

                                        Aqara Bewegungssensor:
                                        BWM.png

                                        Blockly export:

                                        <xml xmlns="https://developers.google.com/blockly/xml">
                                          <variables>
                                            <variable id="3t=Qb]Fgt~!a8nbX30:r">Taster rechts</variable>
                                            <variable id="sQQhM6(ocGqUgVaj;U/f">Taster links</variable>
                                          </variables>
                                          <block type="comment" id="31f(lHiPEPOxDwdpLg/9" x="38" y="38">
                                            <field name="COMMENT">Aqara Taster rechts</field>
                                            <next>
                                              <block type="on_ext" id="u9+^qFj!il,42nv7{!L-">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                <field name="CONDITION">ne</field>
                                                <field name="ACK_CONDITION"></field>
                                                <value name="OID0">
                                                  <shadow type="field_oid" id="oZ`6emoMfq7|l@lmht]x">
                                                    <field name="oid">zigbee.0.00158d0004272786.click</field>
                                                  </shadow>
                                                </value>
                                                <statement name="STATEMENT">
                                                  <block type="variables_set" id="K,H{#eIPV`p:t)xE+Msc">
                                                    <field name="VAR" id="3t=Qb]Fgt~!a8nbX30:r">Taster rechts</field>
                                                    <value name="VALUE">
                                                      <block type="on_source" id="Jrf?D.6)`?/4*,LnoJY5">
                                                        <field name="ATTR">state.val</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="comment" id="g3iz/f4wMp,4Ts.@g{8L">
                                                        <field name="COMMENT">Oben rechts</field>
                                                        <next>
                                                          <block type="controls_if" id="kS$VoSrJh_=rsaC0+!R~">
                                                            <mutation else="1"></mutation>
                                                            <value name="IF0">
                                                              <block type="logic_compare" id="!cXeK$hSSgwk+nVo$o!L">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="%,z7VQCzrkyX@edF.neZ">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">alexa2.0.Smart-Home-Devices.46efd144-cd48-4d82-935f-c63d5a11d02c.powerState</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="L:p0o#lF=#:ulwLY^.gR">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="control" id=":51g~C}3?/byXN1W!*I[">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">alexa2.0.Smart-Home-Devices.46efd144-cd48-4d82-935f-c63d5a11d02c.brightness</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="JMvjNGWH$ECn4v_yowje">
                                                                    <field name="NUM">70</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                            <statement name="ELSE">
                                                              <block type="control" id="y2Pcpt3@An?Wg#pf{df9">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">alexa2.0.Smart-Home-Devices.46efd144-cd48-4d82-935f-c63d5a11d02c.powerState</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="kO0O%QFJ|jF~0x(/;QY!">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="comment" id="Sy`3-fFAT{9rUo_6n#{M">
                                                                <field name="COMMENT">Unten rechts</field>
                                                                <next>
                                                                  <block type="controls_if" id="C$c}fC5z68c3+ABY8nOO">
                                                                    <mutation else="1"></mutation>
                                                                    <value name="IF0">
                                                                      <block type="logic_compare" id=".j7!d*CoBY+Uv$dfuF;Q">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="]+R0HPfLJrUm]@bKsDk#">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.powerState</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_boolean" id="N,holrneR4?)~np?Q7i|">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="control" id="9GI:z4NoYUWJsUjq`2I!">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.brightness</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="math_number" id="8E$aeUEO3uJRIN,$3kol">
                                                                            <field name="NUM">70</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </statement>
                                                                    <statement name="ELSE">
                                                                      <block type="control" id="E3qSiOS0c?FAEW-(j`(D">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.powerState</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="logic_boolean" id="s?/);FmKgD`?o+6MHhTn">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </statement>
                                                                    <next>
                                                                      <block type="comment" id="P0(h[Q7D5zJid70.*]n%">
                                                                        <field name="COMMENT">Ausschalten</field>
                                                                        <next>
                                                                          <block type="controls_if" id="Dzbk6;)q{zT.fPZ@rsr;">
                                                                            <value name="IF0">
                                                                              <block type="logic_operation" id="bucL$jly2f@qvqqus#7M" inline="false">
                                                                                <field name="OP">AND</field>
                                                                                <value name="A">
                                                                                  <block type="logic_compare" id="0g#0}qyGQ#+xF[0!23nl">
                                                                                    <field name="OP">EQ</field>
                                                                                    <value name="A">
                                                                                      <block type="get_value" id=".3JDWSEKcL3Ve1a{r7v?">
                                                                                        <field name="ATTR">val</field>
                                                                                        <field name="OID">alexa2.0.Smart-Home-Devices.46efd144-cd48-4d82-935f-c63d5a11d02c.powerState</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <block type="logic_boolean" id="4r@Y]ve$KmBqR_;6/BC~">
                                                                                        <field name="BOOL">TRUE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <block type="logic_compare" id="f8}A+C,3P}@tXR.$yFkt">
                                                                                    <field name="OP">EQ</field>
                                                                                    <value name="A">
                                                                                      <block type="get_value" id="`S7hh0y7VZM}92QJ3qv_">
                                                                                        <field name="ATTR">val</field>
                                                                                        <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.powerState</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <block type="logic_boolean" id="4m(lHFa6TKJrq=5;eL6#">
                                                                                        <field name="BOOL">TRUE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <statement name="DO0">
                                                                              <block type="control" id="fYuY1{1Wj9i`Er5dUT@E">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">alexa2.0.Smart-Home-Devices.46efd144-cd48-4d82-935f-c63d5a11d02c.powerState</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="logic_boolean" id="g31Q%}3ZNx4.xSximS{{">
                                                                                    <field name="BOOL">FALSE</field>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="control" id="+/+2ne:c!K_UvY9`fd3|">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                    <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.powerState</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="logic_boolean" id="T{3v]$}-cXhPl[C7$imZ">
                                                                                        <field name="BOOL">FALSE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </statement>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="comment" id="j+@VY`FL;j$B1Yg$ig6U">
                                                    <field name="COMMENT">Aqara Taster links</field>
                                                    <next>
                                                      <block type="on_ext" id="}P]}6!@*aq5X!k4FY(%o">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                        <field name="CONDITION">ne</field>
                                                        <field name="ACK_CONDITION"></field>
                                                        <value name="OID0">
                                                          <shadow type="field_oid" id="Y({{mltANZ_R~AXFP?yc">
                                                            <field name="oid">zigbee.0.00158d0004283edb.click</field>
                                                          </shadow>
                                                        </value>
                                                        <statement name="STATEMENT">
                                                          <block type="variables_set" id="KU)FQCD8lF#B@3$kvvkE">
                                                            <field name="VAR" id="sQQhM6(ocGqUgVaj;U/f">Taster links</field>
                                                            <value name="VALUE">
                                                              <block type="on_source" id="|q05AE*F1q^C.HP=2)-t">
                                                                <field name="ATTR">state.val</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="comment" id="XGfLf-vcbi*(98#%$_F1">
                                                                <field name="COMMENT">Oben links</field>
                                                                <next>
                                                                  <block type="controls_if" id="iuW:sQrIlU:BSr}.?9BG" disabled="true">
                                                                    <mutation else="1"></mutation>
                                                                    <value name="IF0">
                                                                      <block type="logic_compare" id="$m2s5|F|cb8bi[7DBjmC">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="|1l/`60`AM]#L?7]/G%g">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">alexa2.0.Smart-Home-Devices.48c5ef2e-f9e6-4bb3-9405-9314fa8b2d99.powerState</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_boolean" id="$sU,E@*0y{+jPN;Z43wT">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="control" id="pH|=P}4CQnF=DvbLvYu7">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">alexa2.0.Smart-Home-Devices.48c5ef2e-f9e6-4bb3-9405-9314fa8b2d99.brightness</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="math_number" id="ZLLG?~a,+m`lmEe6R_*h">
                                                                            <field name="NUM">70</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </statement>
                                                                    <statement name="ELSE">
                                                                      <block type="control" id="PyIzT]tHWJO%5mYW|2.:">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">alexa2.0.Smart-Home-Devices.48c5ef2e-f9e6-4bb3-9405-9314fa8b2d99.powerState</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="logic_boolean" id="W|D@:Npa04V%[jJ5lz8u">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </statement>
                                                                    <next>
                                                                      <block type="comment" id="kFX~OdN(MkL*xx0;+(:1">
                                                                        <field name="COMMENT">Unten links</field>
                                                                        <next>
                                                                          <block type="controls_if" id="?a*#/I].=F5#}FY!?528">
                                                                            <mutation else="1"></mutation>
                                                                            <value name="IF0">
                                                                              <block type="logic_compare" id="J2[UyAE)pY`3iQ,T0AE]">
                                                                                <field name="OP">EQ</field>
                                                                                <value name="A">
                                                                                  <block type="get_value" id="aP]$*/K=pbglhr4jy+$U">
                                                                                    <field name="ATTR">val</field>
                                                                                    <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.powerState</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <block type="logic_boolean" id="{!u;Nuj*i.*DuUu50z@P">
                                                                                    <field name="BOOL">FALSE</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <statement name="DO0">
                                                                              <block type="control" id="T,^gYI}pl},E}rX2REX]">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.brightness</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="math_number" id=":u0F/H1tZpE++o{1ByjC">
                                                                                    <field name="NUM">70</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </statement>
                                                                            <statement name="ELSE">
                                                                              <block type="control" id="4W[=/::6[cBZs7%V:V^-">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.powerState</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="logic_boolean" id="EMzW+[QST7lT*U0;M14V">
                                                                                    <field name="BOOL">FALSE</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </statement>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                        <next>
                                                          <block type="comment" id="vuC+ONZrR({6+_1N4doL">
                                                            <field name="COMMENT">Aqara BWM</field>
                                                            <next>
                                                              <block type="on" id="u;;D50`#m*Z;%2.Ey?nD">
                                                                <field name="OID">zigbee.0.00158d0004512481.no_motion</field>
                                                                <field name="CONDITION">ne</field>
                                                                <field name="ACK_CONDITION"></field>
                                                                <statement name="STATEMENT">
                                                                  <block type="controls_if" id="J!J@+d=):1Z6{ljOvpwc">
                                                                    <value name="IF0">
                                                                      <block type="logic_operation" id="0aK/YaLFHb|H(G7$GPZ{" inline="false">
                                                                        <field name="OP">OR</field>
                                                                        <value name="A">
                                                                          <block type="logic_negate" id="c[8zhX]@xf(0w^F*uSuJ">
                                                                            <value name="BOOL">
                                                                              <block type="variables_get" id="!u2rt7tx(]/)p{dF8ur)">
                                                                                <field name="VAR" id="sQQhM6(ocGqUgVaj;U/f">Taster links</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_negate" id="^|GZ}g4*InD1k#qK[/(:">
                                                                            <value name="BOOL">
                                                                              <block type="variables_get" id="bqAckYr+lNe=HNWEi8Zo">
                                                                                <field name="VAR" id="3t=Qb]Fgt~!a8nbX30:r">Taster rechts</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="comment" id="0Uq*WE2I^QkX5J[9Tk^e">
                                                                        <field name="COMMENT">Unterschrank ausschalten</field>
                                                                        <next>
                                                                          <block type="controls_if" id="_@z*T/e|S/KN!,KJn=LU">
                                                                            <value name="IF0">
                                                                              <block type="logic_operation" id="J()`x(SC,p.1Sif=:8r2" inline="false">
                                                                                <field name="OP">OR</field>
                                                                                <value name="A">
                                                                                  <block type="logic_compare" id="ITG~)7okR$pu23NW2m)!">
                                                                                    <field name="OP">GT</field>
                                                                                    <value name="A">
                                                                                      <block type="get_value" id="Pc|DBMEL1SGc~aszPGfQ">
                                                                                        <field name="ATTR">val</field>
                                                                                        <field name="OID">zigbee.0.00158d0004512481.no_motion</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <block type="math_number" id="l5a1Xx}$ZrO8x!TErKzC">
                                                                                        <field name="NUM">120</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <block type="logic_compare" id="P}`JBjN3xcW:G+q`SpPl">
                                                                                    <field name="OP">EQ</field>
                                                                                    <value name="A">
                                                                                      <block type="get_value" id="lcJiDjY*!,[81k0A9S*%">
                                                                                        <field name="ATTR">val</field>
                                                                                        <field name="OID">javascript.0.Nachtcheck</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <block type="logic_boolean" id="7,F}%3uG#Bi:uD%p]%}o">
                                                                                        <field name="BOOL">FALSE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <statement name="DO0">
                                                                              <block type="comment" id="GRcFCihJDF${U|Bk7^hP">
                                                                                <field name="COMMENT">Unten links</field>
                                                                                <next>
                                                                                  <block type="control" id="7Y;9Y2Z_rMOf1sdc}10y">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                    <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.powerState</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="logic_boolean" id="ZEePuUdX9,I0rWdANKfB">
                                                                                        <field name="BOOL">FALSE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <next>
                                                                                      <block type="comment" id="|[8fMR$.qp#nLsq5jN;b">
                                                                                        <field name="COMMENT">Unten rechts</field>
                                                                                        <next>
                                                                                          <block type="control" id="MC!(?0D*{%Q5e}DN7Skr">
                                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                            <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.powerState</field>
                                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                                            <value name="VALUE">
                                                                                              <block type="logic_boolean" id=",RaHGegt9Rxf?a+=n9QS">
                                                                                                <field name="BOOL">FALSE</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </statement>
                                                                            <next>
                                                                              <block type="comment" id="Og0Rb,EQwNceqy4aW0AW">
                                                                                <field name="COMMENT">Unterschrank einschalten</field>
                                                                                <next>
                                                                                  <block type="controls_if" id="VrE1nydx(PtY4ZVUncAu">
                                                                                    <value name="IF0">
                                                                                      <block type="logic_operation" id="7#|]EJug:Zl*=#-64r*X" inline="false">
                                                                                        <field name="OP">AND</field>
                                                                                        <value name="A">
                                                                                          <block type="logic_compare" id="Sv*{o@n1eeM.@s99WV)9">
                                                                                            <field name="OP">LTE</field>
                                                                                            <value name="A">
                                                                                              <block type="get_value" id="0$_7YL_;}ZaIVO44@y1V">
                                                                                                <field name="ATTR">val</field>
                                                                                                <field name="OID">zigbee.0.00158d0004512481.no_motion</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <block type="math_number" id="wwN@zr6]3L$:O?@57P:-">
                                                                                                <field name="NUM">120</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <block type="logic_compare" id="?}XYwl[Pfml@Arc8Kno8">
                                                                                            <field name="OP">EQ</field>
                                                                                            <value name="A">
                                                                                              <block type="get_value" id="=u;Di;v*?-2=AUMWtuC!">
                                                                                                <field name="ATTR">val</field>
                                                                                                <field name="OID">javascript.0.Nachtcheck</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <block type="logic_boolean" id="M+YO+;s+6{^l#CldeY;E">
                                                                                                <field name="BOOL">TRUE</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <statement name="DO0">
                                                                                      <block type="comment" id="BjWH(WH-u0]oQ6wdz]]M">
                                                                                        <field name="COMMENT">Unten links</field>
                                                                                        <next>
                                                                                          <block type="control" id=")Y?z!NDZ56z+T*umX)};">
                                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                            <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.brightness</field>
                                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                                            <value name="VALUE">
                                                                                              <block type="math_number" id="P4Y}:T8{{Jzm(=UP=yvM">
                                                                                                <field name="NUM">10</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <next>
                                                                                              <block type="comment" id="m}xQ~/g/fiW7R~.-S.-`">
                                                                                                <field name="COMMENT">Unten rechts</field>
                                                                                                <next>
                                                                                                  <block type="control" id="l5V@B1115be9[hh#aAQN">
                                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                                    <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.brightness</field>
                                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                                    <value name="VALUE">
                                                                                                      <block type="math_number" id="*qdDM9S_8YpE8SovdD.+">
                                                                                                        <field name="NUM">10</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </next>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </statement>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                  </block>
                                                                </statement>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                          <block type="controls_if" id="1u;6?xx+*7ce?^vQyX!}" x="63" y="2213">
                                            <value name="IF0">
                                              <block type="logic_operation" id="GHp#nB*Qn_waDZ~pq5,;" inline="false">
                                                <field name="OP">OR</field>
                                                <value name="A">
                                                  <block type="logic_negate" id="I1S,f^U+X:;/i|84V.5@">
                                                    <value name="BOOL">
                                                      <block type="variables_get" id="IR6:+mDC9/!=EL;OYTgK">
                                                        <field name="VAR" id="sQQhM6(ocGqUgVaj;U/f">Taster links</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_negate" id="Vq,:Myb??m%DDC!iCS_j">
                                                    <value name="BOOL">
                                                      <block type="variables_get" id="97]=Q`EO]||ZmLBs`_uU">
                                                        <field name="VAR" id="3t=Qb]Fgt~!a8nbX30:r">Taster rechts</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="comment" id="3$lyhmL]+FT=Sz+!A.V%">
                                                <field name="COMMENT">Unterschrank ausschalten</field>
                                                <next>
                                                  <block type="controls_if" id="3lIs-RiJ/.xDpmX5|3@_">
                                                    <value name="IF0">
                                                      <block type="logic_operation" id="[|^K8q/D9u.xHapy^p]H" inline="false">
                                                        <field name="OP">OR</field>
                                                        <value name="A">
                                                          <block type="logic_compare" id="m`H]/fu(mlsf$sy-F|iZ">
                                                            <field name="OP">GT</field>
                                                            <value name="A">
                                                              <block type="get_value" id="DbLFb?vO1~1TVO2M1{]O">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">zigbee.0.00158d0004512481.no_motion</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="math_number" id=";%:mgwI]|^:nkJP,/?U:">
                                                                <field name="NUM">120</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_compare" id="EcbU8@.N=|v`e?I=IPns">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="get_value" id="#HM*%|!JF(VB{oG]@[Ku">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">javascript.0.Nachtcheck</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_boolean" id="Sqr,4+G~_)OP9T4QY]Y5">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="comment" id="}2otntyv:zpHHOMXE3LI">
                                                        <field name="COMMENT">Unten links</field>
                                                        <next>
                                                          <block type="control" id="!T3N:q1rhE^mId=ZaWaX">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.powerState</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="IIz%a|Oz!@yjW$2w,-vX">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="comment" id="9j37y*#Uw#^u4ihUuCE?">
                                                                <field name="COMMENT">Unten rechts</field>
                                                                <next>
                                                                  <block type="control" id="]EbnCc7}}p(,k,dBU?z}">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.powerState</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="M7TKmcAq~,j8]~IHp^y%">
                                                                        <field name="BOOL">FALSE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="comment" id="x%(`JI1@5Xm^TS%qa!Tm">
                                                        <field name="COMMENT">Unterschrank einschalten</field>
                                                        <next>
                                                          <block type="controls_if" id="!gsGCagI}vy/Q1iwmTdO">
                                                            <value name="IF0">
                                                              <block type="logic_operation" id="g*05sWKl3~Hg(ob^Q,E%" inline="false">
                                                                <field name="OP">AND</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="K5$uTjXcsltoHmtT`H?z">
                                                                    <field name="OP">LTE</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="*gOa^iv97#$c~S:uV;mn">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">zigbee.0.00158d0004512481.no_motion</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="math_number" id="ETC:HeXEIXJQ=b:2)b=Q">
                                                                        <field name="NUM">120</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_compare" id="u^qB%UldesAQ@4^%2Rfn">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="sPWPV1Psz=@1SASZcWJ9">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">javascript.0.Nachtcheck</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_boolean" id="9^Oi?](U8y,sO@QyulTA">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="comment" id="GVf*A,+uaW/|(Bhe_@kK">
                                                                <field name="COMMENT">Unten links</field>
                                                                <next>
                                                                  <block type="control" id="6a@~SGkSwChj{_!qkSa?">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">alexa2.0.Smart-Home-Devices.b3535e91-aead-44a1-8b17-2c8b1c1c2d4b.brightness</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_number" id="_4$6N$1QBE#rBaTr*LI]">
                                                                        <field name="NUM">10</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="comment" id="w;HvP1,.{19|IyYmg!uX">
                                                                        <field name="COMMENT">Unten rechts</field>
                                                                        <next>
                                                                          <block type="control" id="RoaY$B=zRXcmwaHtjvi9">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">alexa2.0.Smart-Home-Devices.f31f759c-1d77-48fd-be97-dce756a82609.brightness</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="math_number" id="!v;H)`bus}.8JHOy[X|}">
                                                                                <field name="NUM">10</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </xml>
                                        

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

                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        684
                                        Online

                                        31.9k
                                        Users

                                        80.2k
                                        Topics

                                        1.3m
                                        Posts

                                        3
                                        24
                                        2835
                                        Loading More Posts
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        Community
                                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                        The ioBroker Community 2014-2023
                                        logo