Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Hilfe bei HUE Bewegungsmelder mit HMIP Schalter

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Hilfe bei HUE Bewegungsmelder mit HMIP Schalter

    This topic has been deleted. Only users with topic management privileges can see it.
    • Armilar
      Armilar Most Active Forum Testing @Chrissel last edited by Armilar

      @chrissel

      2 Trigger sollten auch reichen, wenn du den Schaltaktor auch als Toggle nutzt. Dann geht der Schalter bei false nicht ins leere, wenn der Zustand durch die Short_Press bereits auf false ist.

      Im ersten Trigger wird auf jeden Schaltimpuls reagiert, egal ob vom einem der 2 HmIP-Taster oder vom "Schaltaktor für Markenschalter". Faktisch könnte hier auch noch ein Sprachassistent sein unwesen treiben. Fakt ist: Anschalten mit 100%Helligkeit oder aus.
      a969ad5f-545d-4895-b83f-320304d2ead6-image.png

      Im zweiten Trigger, wird, falls das Licht durch einen Schaltaktor ausgeschaltet wurde, bei jeder Bewegung für 30 Sekunden (fraglich ob die Bewegungsmelder in 30 Sekunden erneut feuern können) das Licht bei Helligkeit 50% angeschaltet. Falls keine Bewegung mehr registriert wird --> dann aus.
      010cf52d-acc0-4847-b99d-6ae8ccf7951e-image.png

      Stellt sich allerdings die Frage, ob der Dämmerungssensor im gleichen Raum ist. In diesem Fall würde der Wert wahrscheinlich nicht mehr unter 50 (Lux oder was auch immer) sein und das Licht, nachdem der Timer abgelaufen ist, nicht erneut anschalten.

      Der Dämmerungssensor macht aus meiner Sicht auch nur Sinn für die dauerhaften kalten und dunklen Tage... Ansonsten kannst du besser mit der Annahme arbeiten, dass ab einem gewissen Sonnenstand in Relation zum Horizont (+- Offset), die gleiche Situation (Nennen wir sie mal Dämmerung 😉 ) erreicht wird. Das lässt sich prima berechnen (oder ist bereits in Astro-Funktionen enthalten) und kostet auch noch weniger als ein HmIP-Dämmerungssensor.

      Ein weiterer Gedanke könnte "ein" zentraler Outdoor-Helligkeitssensor sein, der keinen direkten Kontakt zu künstlichen Lichtquellen (Straßenlaternen oder anderen Outdoor-Lampen) hat. Damit würde auch bei hoher Bewölkung, eine Korrelation zur Innenbeleuchtung (je Raum) möglich sein.

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</variable>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="comment" id="%5#:n,n1s9(Eq!c5IQw=" x="-288" y="-62">
          <field name="COMMENT">Bei Skriptstart Schalterzustand holen</field>
          <next>
            <block type="variables_set" id="HV:;E/c|k}l@RhdicG)p">
              <field name="VAR" id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</field>
              <value name="VALUE">
                <block type="get_value_var" id="4Uk8aTCTdja~%SCq`2B3">
                  <field name="ATTR">val</field>
                  <value name="OID">
                    <shadow type="text" id="g}1elDNUp=daHW3g}}g4">
                      <field name="TEXT">Hier Datenpunktzustand von Schalter</field>
                    </shadow>
                  </value>
                </block>
              </value>
              <next>
                <block type="comment" id="!5ho6j?(]lDYZcDjj`*i">
                  <field name="COMMENT">Schaltaktor </field>
                  <next>
                    <block type="on_ext" id="05R]q!b;p@GX=]E@;St|">
                      <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="rDRUQcoeTj*)/7($.()j">
                          <field name="oid">default</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="r/dzJgVQ5tyc8Diufqi1">
                          <mutation else="1"></mutation>
                          <value name="IF0">
                            <block type="on_source" id="jFf,nD1{JK`nUo}tDlG~">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="variables_set" id="zU5.*Wp.fNZ88(i*%hgC">
                              <field name="VAR" id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="C~:RgN%csOCKA7B0#{+g">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="comment" id="E]|J$Zs|*V}tt;d3d])m">
                                  <field name="COMMENT">Lampe an mit 100%</field>
                                  <next>
                                    <block type="control" id="#?wVwAFkDzYb^hTbEsjw">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">Object ID</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="{-Z%((97i8%fh+8XSRKB">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id=",6I#:py5L8I.K]Kd*+3T">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">Object ID</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id=",uTQfphl42j8^NvY]!4D">
                                              <field name="NUM">100</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <statement name="ELSE">
                            <block type="variables_set" id=":e%3CmyxTPg7r%%T}KHz">
                              <field name="VAR" id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="ZR#=N!OEHVd/,YMwRSg=">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="comment" id="k,Nd)b8!A/*P(NDxZd_p">
                                  <field name="COMMENT">Lampe aus</field>
                                  <next>
                                    <block type="control" id="~H!m{=#GR4?T#z%k(!^y">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">Object ID</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="`_DY6/^(jb-b81U~0NQ(">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <next>
                        <block type="comment" id="Kj{oGI]b,CiFb*mg4YFW">
                          <field name="COMMENT">Bewegungsmelder 1 und 2</field>
                          <next>
                            <block type="on_ext" id="Y3|[nyNeB|}yNS6|D9.5">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                              <field name="CONDITION">ne</field>
                              <field name="ACK_CONDITION"></field>
                              <value name="OID0">
                                <shadow type="field_oid" id="08(h|AdcD%84FUslZ2zM">
                                  <field name="oid">default</field>
                                </shadow>
                              </value>
                              <value name="OID1">
                                <shadow type="field_oid" id="u;Tj[-9WV639t|7n!HuC">
                                  <field name="oid">default</field>
                                </shadow>
                              </value>
                              <statement name="STATEMENT">
                                <block type="controls_if" id="Zyu87a^(h-$s#|fCIwZf">
                                  <value name="IF0">
                                    <block type="logic_operation" id="IJi:|#89ZyY6wMLy@)2[" inline="false">
                                      <field name="OP">AND</field>
                                      <value name="A">
                                        <block type="logic_compare" id="b/@^db5p=-=E,TS;c0,s">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="variables_get" id="/w-{6iQjI5(~ymD(vX![">
                                              <field name="VAR" id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_boolean" id="ll*!mYhNo`yV/ztXi8z`">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_compare" id="212@crDX,_J={:S%oLEI">
                                          <field name="OP">LT</field>
                                          <value name="A">
                                            <block type="get_value_var" id="OUDt[wbhyh/JJ/*m[f-2">
                                              <field name="ATTR">val</field>
                                              <value name="OID">
                                                <shadow type="text" id="H0][x(*nstYC]06F}tu?">
                                                  <field name="TEXT">Hier Dämmerungssensor</field>
                                                </shadow>
                                              </value>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id=":+$F=Zj!Gxu`Wx27H!Zb">
                                              <field name="NUM">50</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="comment" id="*~c?fHGWR4lJ72.=2_.l">
                                      <field name="COMMENT">Lampe an mit 50%</field>
                                      <next>
                                        <block type="control" id="kux!iyrX^y4e,8z$8NNP">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">Object ID</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="eFtGH;.-~R#i-%~6jqA$">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="Ap:dJzM{=$IfJnqrc|5Z">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">Object ID</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="T`7;q4ibHMlr}#vo2OPo">
                                                  <field name="NUM">50</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="comment" id=";uNpY:jY/|iPP`a1,a{N">
                                                  <field name="COMMENT">Timer neu beginnen, fall jem. anwesend</field>
                                                  <next>
                                                    <block type="timeouts_cleartimeout" id="%c*y(rZ4hi-yKv%QD6~W">
                                                      <field name="NAME">timeout</field>
                                                      <next>
                                                        <block type="timeouts_settimeout_variable" id="SfJ+)uf088/c+ZiC!Ql^">
                                                          <field name="NAME">timeout</field>
                                                          <value name="DELAY_MS">
                                                            <shadow type="math_number" id="+O;[x_/T1k65U81Wia~Q">
                                                              <field name="NUM">30000</field>
                                                            </shadow>
                                                          </value>
                                                          <statement name="STATEMENT">
                                                            <block type="comment" id="!3f*nfQEHb,LY6T;QBmj">
                                                              <field name="COMMENT">Lampe aus</field>
                                                              <next>
                                                                <block type="control" id="5#EeMHu};WgxvUzQX=*p">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">Object ID</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_boolean" id="(c-o,M.;Nx+~F4=?hkV#">
                                                                      <field name="BOOL">FALSE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                              <next>
                                <block type="comment" id="9vhwgL56)siyu$-R~E4!">
                                  <field name="COMMENT">Taster auf Press Short</field>
                                  <next>
                                    <block type="on_ext" id="KUG-wo_5svX{K=XHDH.#">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                      <field name="CONDITION">ne</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                        <shadow type="field_oid" id="nPCv@nH_/8bFwI+9{@fO">
                                          <field name="oid">default</field>
                                        </shadow>
                                      </value>
                                      <value name="OID1">
                                        <shadow type="field_oid" id="}DyUT@2dwRZWB@=h^)kY">
                                          <field name="oid">default</field>
                                        </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="variables_set" id="u1PU+kHg8phs[FTyS*-6">
                                          <field name="VAR" id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</field>
                                          <value name="VALUE">
                                            <block type="logic_negate" id="-,_1eBPjEC)2?x+kF`kB">
                                              <value name="BOOL">
                                                <block type="variables_get" id="lFdVaar0_-O(6y`/kx5^">
                                                  <field name="VAR" id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="controls_if" id="Mv/Qsf=!u0l}ROQ8W3i.">
                                              <mutation else="1"></mutation>
                                              <value name="IF0">
                                                <block type="variables_get" id=",373yy78HXq=o1!Oe$2m">
                                                  <field name="VAR" id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</field>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="comment" id="0H#xuT;}IA[!)Z9`2V~J">
                                                  <field name="COMMENT">Lampe an mit 100%</field>
                                                  <next>
                                                    <block type="control" id="j.RW(,@Mm)fMeup/ZXxM">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">Object ID</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="?P)OAS,4#?L3=m[i6PL_">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="H46Y]5P`14.h66Vn55Oz">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">Object ID</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="math_number" id="z]UpB*,4|`{@I5q,XLiP">
                                                              <field name="NUM">100</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                              <statement name="ELSE">
                                                <block type="comment" id="WDCR_(?Q%d9b3e=@4Xs_">
                                                  <field name="COMMENT">Lampe aus</field>
                                                  <next>
                                                    <block type="control" id="_RXhx+bX#YBN:XoRO:#D">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">Object ID</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="5lG|,kkoy(blOZjwY!gk">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      

      Das dürfte eigentlich schon alles sein.

      C 1 Reply Last reply Reply Quote 0
      • C
        Chrissel @Armilar last edited by

        @armilar

        Vielen Dank für die schnelle Antwort. Ich werde das heute Abend auf jeden Fall noch testen und melde mich dann nochmal.

        Der Dämmerungssensor befindet sich im Außenbereich.

        Armilar 1 Reply Last reply Reply Quote 0
        • Armilar
          Armilar Most Active Forum Testing @Chrissel last edited by

          @chrissel sagte in Hilfe bei HUE Bewegungsmelder mit HMIP Schalter:

          Der Dämmerungssensor befindet sich im Außenbereich.

          Perfekt... 👍

          C 1 Reply Last reply Reply Quote 0
          • C
            Chrissel @Armilar last edited by Chrissel

            @armilar

            Habe die Schaltung soweit fertiggestellt. Leider funktioniert diese irgendwie nicht so richtig. Ich betrete den Raum, Licht geht an i.O., nach 30 Sek leider auch wieder aus obwohl eine erneute Bewegung stattfindet. Ich bewege mich weiter im Raum leider keine Reaktion und auf einmal geht die Lampe wieder an und dann nach ca. 20 Sek wieder aus. Wenn ich den Raum betrete geht das Licht an und wenn ich dann den Schalter betätige, geht die Lampe aus und fängt dann willkürlich an zu blinken.

            Screenshot_20221102_204026.png

            Screenshot_20221102_204141.png

            <xml xmlns="https://developers.google.com/blockly/xml">
              <variables>
                <variable id="R8XY_=dk_G6-)1S:=;EB">Schalter_an</variable>
                <variable type="timeout" id="timeout">timeout</variable>
              </variables>
              <block type="variables_set" id="}CItR,h-o^cddY32vu^5" x="-962" y="-562">
                <field name="VAR" id="R8XY_=dk_G6-)1S:=;EB">Schalter_an</field>
                <value name="VALUE">
                  <block type="get_value_var" id="0q6t?M5`Fikei=DZlhh.">
                    <field name="ATTR">val</field>
                    <value name="OID">
                      <shadow type="text" id="?.8o;mOO^kQNr#1}@]JM">
                        <field name="TEXT"></field>
                      </shadow>
                      <block type="field_oid" id="-^w]~qRX}9(3~@URdZ2G">
                        <field name="oid">hm-rpc.1.00085BE98F0B6B.4.STATE</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="on_ext" id="c7Gs~,7*5`nU:tgPpD1C">
                    <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="9F=1(uB*uwuXi5KB*$M7">
                        <field name="oid">hm-rpc.1.00085BE98F0B6B.4.STATE</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="variables_set" id="NA-DRD]+w3loXX%yr=8{">
                        <field name="VAR" id="R8XY_=dk_G6-)1S:=;EB">Schalter_an</field>
                        <value name="VALUE">
                          <block type="logic_negate" id="0IQ$4]^glz]n7ZvSG%)7">
                            <value name="BOOL">
                              <block type="variables_get" id="*7+!g,~o2]_V29LvHxsR">
                                <field name="VAR" id="R8XY_=dk_G6-)1S:=;EB">Schalter_an</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="controls_if" id="$|2iFM}3R.O-|dHgEs).">
                            <mutation else="1"></mutation>
                            <value name="IF0">
                              <block type="variables_get" id="zJs8@_pAJL:OY$9C)Siu">
                                <field name="VAR" id="R8XY_=dk_G6-)1S:=;EB">Schalter_an</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="ejv^DGVv2yXQ=`MIV+R[">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">hm-rpc.1.00085BE98F0B6B.4.STATE</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="6tY4H}u:syM`e46:9|2n">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="p/e8O-y#,YLe,Zh?)}6w">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">hue.1.Esstisch_Zone.level</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="9lUnH,vwW:,oC|])RO1J">
                                        <field name="NUM">100</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <statement name="ELSE">
                              <block type="control" id="~E(QOxBZHBonTF-c$,BG">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">hm-rpc.1.00085BE98F0B6B.4.STATE</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="AU,,(tfUYR1[[u$cUeu!">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <next>
                      <block type="on_ext" id="{TRn~M)~m`2NiLo?Vh(=">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id="}A|NB2FWvKg+_w*x/;$]">
                            <field name="oid">hue.0.BWM_Esszimmer_1.presence</field>
                          </shadow>
                        </value>
                        <value name="OID1">
                          <shadow type="field_oid" id="Y^t!0Zi^(KqJ`qS3:^|A">
                            <field name="oid">hue.0.BWM_Esszimmer_2.presence</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="controls_if" id="tpX(rch{||1_(57j,#S,">
                            <value name="IF0">
                              <block type="logic_operation" id="1D:`9XxVK^Y_TtYZnPCs" inline="false">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="l,*{NQVI3S(_cUAL|ryR">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="variables_get" id="HXPD6fA#yb]S9^EX..2E">
                                        <field name="VAR" id="R8XY_=dk_G6-)1S:=;EB">Schalter_an</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="`VyjOsk67)AIff0w)A$6">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="*hL92__WJVU[PHAcUe}n">
                                    <field name="OP">LT</field>
                                    <value name="A">
                                      <block type="get_value_var" id="=0KlD14_@F%;sLJ$_$L;">
                                        <field name="ATTR">val</field>
                                        <value name="OID">
                                          <shadow type="text" id="k0u}J.;zQlEUtWkC#gB8">
                                            <field name="TEXT"></field>
                                          </shadow>
                                          <block type="field_oid" id="OXLFC%D@pUpxy.$.VF3z">
                                            <field name="oid">hm-rpc.1.0031DD89A9F6B4.1.ILLUMINATION</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="?o%^VARl/wOq=$4MVRdz">
                                        <field name="NUM">50</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="(3k-^%_7_@d-CYk$!gcp">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">hm-rpc.1.00085BE98F0B6B.4.STATE</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="u2|_@DTRHxNC{HIYO6-c">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="hLpBAr^.e0Re4B_uuUQX">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">hue.1.Esstisch_Zone.level</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="7LBj=0Dp92aP+F-/yNjF">
                                        <field name="NUM">50</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="timeouts_cleartimeout" id="w5g~`hSS.X/CKhm`N,z`">
                                        <field name="NAME">timeout</field>
                                        <next>
                                          <block type="timeouts_settimeout" id=";_(;ov3s*%^G3}OG8%a:">
                                            <field name="NAME">timeout</field>
                                            <field name="DELAY">30</field>
                                            <field name="UNIT">sec</field>
                                            <statement name="STATEMENT">
                                              <block type="control" id="imjPn!$@UuwI[2ltY;w$">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">hm-rpc.1.00085BE98F0B6B.4.STATE</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="tYb)8MV+3vTllq),#7A{">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </xml>
            
            1 Reply Last reply Reply Quote 0
            • Armilar
              Armilar Most Active Forum Testing last edited by Armilar

              @chrissel

              Das Blockly (Code) ist ein wenig kurz. Aber ich versuche es mal so. Es sind Fehler in der Zuordnung deiner Datenpunkte.

              Zunächst einmal sollte beim Schalter in dem ersten "falls - mache" und im "sonst" nicht der Schalter rein, sondern die Lampe. Vermute mal Esstisch_Zone.on (oder ähnlich - falls genauer, benötige ich die Datenpunkte aus Schalter und Lampe)

              Esstisch_Zone.level = 0 muss nicht gesetzt werden. (aus ist aus)

              Das gleiche im 2. Trigger. Da hat nur die Lampe etwas zu suchen. Nicht der Schalter

              Also 4 x Schalter gegen Esszimmer_Zone.on austauschen. Die obersten beiden Zeilen mit dem Schalter (Variable und erster Trigger) sind korrekt.

              Wo sind die Taster mit dem Short_Press im oberen Trigger?

              C 1 Reply Last reply Reply Quote 0
              • C
                Chrissel @Armilar last edited by Chrissel

                @armilar

                Die Taster habe ich durch den Schaltaktor ersetzt. Dieser ist über die RaspberryMatic mit Direktverknüpfungen von den Tastern verknüpft.

                Jetzt verstehe ich auch meinen Gedankenfehler. Über den Aktor schalte ich den Strom von der Lampe weg und somit gibt es keine Rückmeldung von der Lampe.

                Gibt es keine Möglichkeit das die Lampe nicht am Dauerstrom hängt?

                Armilar 3 Replies Last reply Reply Quote 0
                • Armilar
                  Armilar Most Active Forum Testing @Chrissel last edited by Armilar

                  @chrissel

                  Ich nahm an, dass die Lampe bereits im Dauerstrom hängt. Das kann natürlich sonst nicht funktionieren, wenn der Schalter der Lampe die Spannung nimmt...

                  Prinzipiell ja (Elektrik Erfahrung???)

                  Also Schaltaktor ohne Lampe (d.h. nur L1 und N) und Lampe (hängt jetzt wahrscheinlich im L1 out) vom Schaltaktor trennen (abnehmen) und ebenfalls direkt mit L1 verbinden.

                  C 1 Reply Last reply Reply Quote 0
                  • Armilar
                    Armilar Most Active Forum Testing @Chrissel last edited by

                    @chrissel

                    Oder den Schalter mit der Lampe einschalten und eingeschaltet (Tesa drauf 😉 ) lassen.

                    Bei Shelly und Tasmota kannst du die auch softwareseitig auf Dauerstrom setzten. Bei HmIP weiß ich das nicht...

                    Du hast ja noch die beiden Taster

                    Wäre dann das:

                    <xml xmlns="https://developers.google.com/blockly/xml">
                      <variables>
                        <variable id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</variable>
                        <variable type="timeout" id="timeout">timeout</variable>
                      </variables>
                      <block type="comment" id="%5#:n,n1s9(Eq!c5IQw=" x="-211" y="-215">
                        <field name="COMMENT">Bei Skriptstart Schalterzustand holen</field>
                        <next>
                          <block type="variables_set" id="HV:;E/c|k}l@RhdicG)p">
                            <field name="VAR" id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</field>
                            <value name="VALUE">
                              <block type="get_value_var" id="4Uk8aTCTdja~%SCq`2B3">
                                <field name="ATTR">val</field>
                                <value name="OID">
                                  <shadow type="text" id="g}1elDNUp=daHW3g}}g4">
                                    <field name="TEXT"></field>
                                  </shadow>
                                  <block type="text" id="-hF)-,iT1uI.H0JTb$fg" disabled="true">
                                    <field name="TEXT">*** HIER DER ERSTE SHORT_PRESS ***</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="comment" id="!5ho6j?(]lDYZcDjj`*i">
                                <field name="COMMENT">Schaltaktor oder Short Press</field>
                                <next>
                                  <block type="on_ext" id="05R]q!b;p@GX=]E@;St|">
                                    <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="rDRUQcoeTj*)/7($.()j">
                                        <field name="oid">default</field>
                                      </shadow>
                                      <block type="text" id="[Yc@Z4z)jH`(k1,$UF~s" disabled="true">
                                        <field name="TEXT">*** HIER DER ERSTE SHORT_PRESS ***</field>
                                      </block>
                                    </value>
                                    <statement name="STATEMENT">
                                      <block type="variables_set" id="u1PU+kHg8phs[FTyS*-6">
                                        <field name="VAR" id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</field>
                                        <value name="VALUE">
                                          <block type="logic_negate" id="-,_1eBPjEC)2?x+kF`kB">
                                            <value name="BOOL">
                                              <block type="variables_get" id="lFdVaar0_-O(6y`/kx5^">
                                                <field name="VAR" id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="controls_if" id="Mv/Qsf=!u0l}ROQ8W3i.">
                                            <mutation else="1"></mutation>
                                            <value name="IF0">
                                              <block type="variables_get" id=",373yy78HXq=o1!Oe$2m">
                                                <field name="VAR" id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</field>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="comment" id="0H#xuT;}IA[!)Z9`2V~J">
                                                <field name="COMMENT">Lampe an mit 100%</field>
                                                <next>
                                                  <block type="control_ex" id="!,zPo7oqw@=Yq=8tf*`C" inline="true">
                                                    <field name="TYPE">false</field>
                                                    <field name="CLEAR_RUNNING">FALSE</field>
                                                    <value name="OID">
                                                      <shadow type="field_oid" id="nYPb?D_aX0Ru,L_Qk9;g">
                                                        <field name="oid">Object ID</field>
                                                      </shadow>
                                                      <block type="text" id="0m,GFH@x5VU!2},r{%$3">
                                                        <field name="TEXT">hue.1.Esstisch_Zone.on</field>
                                                      </block>
                                                    </value>
                                                    <value name="VALUE">
                                                      <shadow type="logic_boolean" id="QPs5Od2cP/GentlSIBn4">
                                                        <field name="BOOL">TRUE</field>
                                                      </shadow>
                                                      <block type="logic_boolean" id="?P)OAS,4#?L3=m[i6PL_">
                                                        <field name="BOOL">TRUE</field>
                                                      </block>
                                                    </value>
                                                    <value name="DELAY_MS">
                                                      <shadow type="math_number" id="l]-l%{8~c?VrX8%8dn5u">
                                                        <field name="NUM">0</field>
                                                      </shadow>
                                                    </value>
                                                    <next>
                                                      <block type="control_ex" id="-3FDTTfrtNuTBM:b)0tQ" inline="true">
                                                        <field name="TYPE">false</field>
                                                        <field name="CLEAR_RUNNING">FALSE</field>
                                                        <value name="OID">
                                                          <shadow type="field_oid">
                                                            <field name="oid">Object ID</field>
                                                          </shadow>
                                                          <block type="text" id="]=N+01,rYZY#ISEKLeIK">
                                                            <field name="TEXT">hue.1.Esstisch_Zone.level</field>
                                                          </block>
                                                        </value>
                                                        <value name="VALUE">
                                                          <shadow type="logic_boolean" id="|l*NV|IUDkxJk^Kf?2c$">
                                                            <field name="BOOL">TRUE</field>
                                                          </shadow>
                                                          <block type="math_number" id="%Ux(iAs%GEdGc}eo2H1X">
                                                            <field name="NUM">100</field>
                                                          </block>
                                                        </value>
                                                        <value name="DELAY_MS">
                                                          <shadow type="math_number" id="@}+sdKgUOJe3`~:%6lLO">
                                                            <field name="NUM">0</field>
                                                          </shadow>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                            <statement name="ELSE">
                                              <block type="comment" id="WDCR_(?Q%d9b3e=@4Xs_">
                                                <field name="COMMENT">Lampe aus</field>
                                                <next>
                                                  <block type="control_ex" id="H$]$`01WG|42K?}H!;2f" inline="true">
                                                    <field name="TYPE">false</field>
                                                    <field name="CLEAR_RUNNING">FALSE</field>
                                                    <value name="OID">
                                                      <shadow type="field_oid">
                                                        <field name="oid">Object ID</field>
                                                      </shadow>
                                                      <block type="text" id="hifT$(dgt5*e0K,n8BGg">
                                                        <field name="TEXT">hue.1.Esstisch_Zone.on</field>
                                                      </block>
                                                    </value>
                                                    <value name="VALUE">
                                                      <shadow type="logic_boolean">
                                                        <field name="BOOL">TRUE</field>
                                                      </shadow>
                                                      <block type="logic_boolean" id="q30XD=r162}M~h49=qVr">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                    <value name="DELAY_MS">
                                                      <shadow type="math_number" id="1Q94JJc]dVAHFwo7bV8y">
                                                        <field name="NUM">0</field>
                                                      </shadow>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="comment" id="Kj{oGI]b,CiFb*mg4YFW">
                                        <field name="COMMENT">Bewegungsmelder 1 und 2</field>
                                        <next>
                                          <block type="on_ext" id="Y3|[nyNeB|}yNS6|D9.5">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                            <field name="CONDITION">ne</field>
                                            <field name="ACK_CONDITION"></field>
                                            <value name="OID0">
                                              <shadow type="field_oid" id="08(h|AdcD%84FUslZ2zM">
                                                <field name="oid">default</field>
                                              </shadow>
                                              <block type="text" id="cJ8|k5LU)P)I}9}^XdX`">
                                                <field name="TEXT">hue.0.BWM_Esszimmer_1.presence</field>
                                              </block>
                                            </value>
                                            <value name="OID1">
                                              <shadow type="field_oid" id="u;Tj[-9WV639t|7n!HuC">
                                                <field name="oid">default</field>
                                              </shadow>
                                              <block type="text" id="^$v_tQbfJ$-W6[U2Ej;C">
                                                <field name="TEXT">hue.0.BWM_Esszimmer_2.presence</field>
                                              </block>
                                            </value>
                                            <statement name="STATEMENT">
                                              <block type="controls_if" id="Zyu87a^(h-$s#|fCIwZf">
                                                <value name="IF0">
                                                  <block type="logic_operation" id="IJi:|#89ZyY6wMLy@)2[" inline="false">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="logic_compare" id="b/@^db5p=-=E,TS;c0,s">
                                                        <field name="OP">EQ</field>
                                                        <value name="A">
                                                          <block type="variables_get" id="/w-{6iQjI5(~ymD(vX![">
                                                            <field name="VAR" id="!FOaYVU(Wv^Q7Hn[[b22">Schalter_an</field>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_boolean" id="ll*!mYhNo`yV/ztXi8z`">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_compare" id="212@crDX,_J={:S%oLEI">
                                                        <field name="OP">LT</field>
                                                        <value name="A">
                                                          <block type="get_value_var" id="OUDt[wbhyh/JJ/*m[f-2">
                                                            <field name="ATTR">val</field>
                                                            <value name="OID">
                                                              <shadow type="text" id="H0][x(*nstYC]06F}tu?">
                                                                <field name="TEXT"></field>
                                                              </shadow>
                                                              <block type="text" id="4glO$AXZ9lNjpX1U%G+%">
                                                                <field name="TEXT">hm-rpc.1.0031DD89A9F6B4.1.ILLUMINATION</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="math_number" id=":+$F=Zj!Gxu`Wx27H!Zb">
                                                            <field name="NUM">50</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="comment" id="*~c?fHGWR4lJ72.=2_.l">
                                                    <field name="COMMENT">Lampe an mit 50%</field>
                                                    <next>
                                                      <block type="control_ex" id="R(0@q%:m/mo+1LMT#cwq" inline="true">
                                                        <field name="TYPE">false</field>
                                                        <field name="CLEAR_RUNNING">FALSE</field>
                                                        <value name="OID">
                                                          <shadow type="field_oid">
                                                            <field name="oid">Object ID</field>
                                                          </shadow>
                                                          <block type="text" id=",^SZp_Oq=76YFqMqtRB^">
                                                            <field name="TEXT">hue.1.Esstisch_Zone.on</field>
                                                          </block>
                                                        </value>
                                                        <value name="VALUE">
                                                          <shadow type="logic_boolean">
                                                            <field name="BOOL">TRUE</field>
                                                          </shadow>
                                                          <block type="logic_boolean" id="y.h@O4!=W.8`UH?Z0[{`">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                        <value name="DELAY_MS">
                                                          <shadow type="math_number" id="BouMt=#pp*fzNhcgw?Ov">
                                                            <field name="NUM">0</field>
                                                          </shadow>
                                                        </value>
                                                        <next>
                                                          <block type="control_ex" id="Y`g(MO%ZC{DIX1h{YsW+" inline="true">
                                                            <field name="TYPE">false</field>
                                                            <field name="CLEAR_RUNNING">FALSE</field>
                                                            <value name="OID">
                                                              <shadow type="field_oid">
                                                                <field name="oid">Object ID</field>
                                                              </shadow>
                                                              <block type="text" id="i0vPCWU@BSqhvh99Z=XH">
                                                                <field name="TEXT">hue.1.Esstisch_Zone.level</field>
                                                              </block>
                                                            </value>
                                                            <value name="VALUE">
                                                              <shadow type="logic_boolean">
                                                                <field name="BOOL">TRUE</field>
                                                              </shadow>
                                                              <block type="math_number" id="@X?^5#YQ;Y2r$P)dBz;n">
                                                                <field name="NUM">50</field>
                                                              </block>
                                                            </value>
                                                            <value name="DELAY_MS">
                                                              <shadow type="math_number" id="dKAg[.SIwU|3JA6Nl^?(">
                                                                <field name="NUM">0</field>
                                                              </shadow>
                                                            </value>
                                                            <next>
                                                              <block type="comment" id=";uNpY:jY/|iPP`a1,a{N">
                                                                <field name="COMMENT">Timer neu beginnen, fall jem. anwesend</field>
                                                                <next>
                                                                  <block type="timeouts_cleartimeout" id="%c*y(rZ4hi-yKv%QD6~W">
                                                                    <field name="NAME">timeout</field>
                                                                    <next>
                                                                      <block type="timeouts_settimeout_variable" id="SfJ+)uf088/c+ZiC!Ql^">
                                                                        <field name="NAME">timeout</field>
                                                                        <value name="DELAY_MS">
                                                                          <shadow type="math_number" id="+O;[x_/T1k65U81Wia~Q">
                                                                            <field name="NUM">30000</field>
                                                                          </shadow>
                                                                        </value>
                                                                        <statement name="STATEMENT">
                                                                          <block type="comment" id="!3f*nfQEHb,LY6T;QBmj">
                                                                            <field name="COMMENT">Lampe aus</field>
                                                                            <next>
                                                                              <block type="control_ex" id="N|rdNiXlIm!$%or:)/_}" inline="true">
                                                                                <field name="TYPE">false</field>
                                                                                <field name="CLEAR_RUNNING">FALSE</field>
                                                                                <value name="OID">
                                                                                  <shadow type="field_oid">
                                                                                    <field name="oid">Object ID</field>
                                                                                  </shadow>
                                                                                  <block type="text" id="!:FB`+|E#?;ue]hqX3CU">
                                                                                    <field name="TEXT">hue.1.Esstisch_Zone.on</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="VALUE">
                                                                                  <shadow type="logic_boolean">
                                                                                    <field name="BOOL">TRUE</field>
                                                                                  </shadow>
                                                                                  <block type="logic_boolean" id="$+UbA$}=z!*M*b3Wp,`|">
                                                                                    <field name="BOOL">FALSE</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="DELAY_MS">
                                                                                  <shadow type="math_number" id="pdoPz?!SC2rvDTJ(:cZ1">
                                                                                    <field name="NUM">0</field>
                                                                                  </shadow>
                                                                                </value>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </statement>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </xml>
                    

                    1 Reply Last reply Reply Quote 0
                    • Armilar
                      Armilar Most Active Forum Testing @Chrissel last edited by Armilar

                      @chrissel

                      Ich gehe davon aus, das es ein Elektriker macht.

                      b5c542c0-2af0-43ef-b49d-23c16186462f-image.png

                      Wenn das dein Aktor ist, dann steckt wahrscheinlich in 1 oder 2 deine Esszimmerlampe. Die muss mit (L1 der ja schon in L steckt) ebenfalls in L

                      An N änderst du nichts

                      Dann hängt der Aktor an "Dauerstrom" und die Lampe ebenfalls. Die Schaltung ist danach natürlich ausschließlich logisch, d.h. wenn du den Schalter betätigst, steuerst du ausschließlich über ioBroker die Lampe.

                      1 Reply Last reply Reply Quote 0
                      • C
                        Chrissel @Armilar last edited by

                        @armilar

                        Habe jetzt in der Raspberry Ausgang 2 (L1) auf Dauerstrom gesetzt und jetzt funktioniert die Schaltung. Leider ist somit der Messwertkanal 7 (Spannung, Strom, Leistung etc.) ohne Funktion.

                        <xml xmlns="https://developers.google.com/blockly/xml">
                          <variables>
                            <variable id="R8XY_=dk_G6-)1S:=;EB">Schalter_an</variable>
                            <variable type="timeout" id="timeout">timeout</variable>
                          </variables>
                          <block type="variables_set" id="}CItR,h-o^cddY32vu^5" x="-962" y="-562">
                            <field name="VAR" id="R8XY_=dk_G6-)1S:=;EB">Schalter_an</field>
                            <value name="VALUE">
                              <block type="get_value_var" id="0q6t?M5`Fikei=DZlhh.">
                                <field name="ATTR">val</field>
                                <value name="OID">
                                  <shadow type="text" id="?.8o;mOO^kQNr#1}@]JM">
                                    <field name="TEXT"></field>
                                  </shadow>
                                  <block type="field_oid" id="-^w]~qRX}9(3~@URdZ2G">
                                    <field name="oid">hm-rpc.1.00085BE98F0B6B.5.STATE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <next>
                              <block type="on_ext" id="c7Gs~,7*5`nU:tgPpD1C">
                                <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="9F=1(uB*uwuXi5KB*$M7">
                                    <field name="oid">hm-rpc.1.00085BE98F0B6B.5.STATE</field>
                                  </shadow>
                                </value>
                                <statement name="STATEMENT">
                                  <block type="variables_set" id="NA-DRD]+w3loXX%yr=8{">
                                    <field name="VAR" id="R8XY_=dk_G6-)1S:=;EB">Schalter_an</field>
                                    <value name="VALUE">
                                      <block type="logic_negate" id="0IQ$4]^glz]n7ZvSG%)7">
                                        <value name="BOOL">
                                          <block type="variables_get" id="*7+!g,~o2]_V29LvHxsR">
                                            <field name="VAR" id="R8XY_=dk_G6-)1S:=;EB">Schalter_an</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="controls_if" id="$|2iFM}3R.O-|dHgEs).">
                                        <mutation else="1"></mutation>
                                        <value name="IF0">
                                          <block type="variables_get" id="zJs8@_pAJL:OY$9C)Siu">
                                            <field name="VAR" id="R8XY_=dk_G6-)1S:=;EB">Schalter_an</field>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="control" id="ejv^DGVv2yXQ=`MIV+R[">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">hue.1.Esstisch_Zone.on</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="6tY4H}u:syM`e46:9|2n">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="p/e8O-y#,YLe,Zh?)}6w">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">hue.1.Esstisch_Zone.level</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="9lUnH,vwW:,oC|])RO1J">
                                                    <field name="NUM">100</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <statement name="ELSE">
                                          <block type="control" id="~E(QOxBZHBonTF-c$,BG">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">hue.1.Esstisch_Zone.on</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="AU,,(tfUYR1[[u$cUeu!">
                                                <field name="BOOL">FALSE</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <next>
                                  <block type="on_ext" id="{TRn~M)~m`2NiLo?Vh(=">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                    <field name="CONDITION">ne</field>
                                    <field name="ACK_CONDITION"></field>
                                    <value name="OID0">
                                      <shadow type="field_oid" id="}A|NB2FWvKg+_w*x/;$]">
                                        <field name="oid">hue.0.BWM_Esszimmer_1.presence</field>
                                      </shadow>
                                    </value>
                                    <value name="OID1">
                                      <shadow type="field_oid" id="Y^t!0Zi^(KqJ`qS3:^|A">
                                        <field name="oid">hue.0.BWM_Esszimmer_2.presence</field>
                                      </shadow>
                                    </value>
                                    <statement name="STATEMENT">
                                      <block type="controls_if" id="tpX(rch{||1_(57j,#S,">
                                        <value name="IF0">
                                          <block type="logic_operation" id="1D:`9XxVK^Y_TtYZnPCs" inline="false">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="logic_compare" id="l,*{NQVI3S(_cUAL|ryR">
                                                <field name="OP">EQ</field>
                                                <value name="A">
                                                  <block type="variables_get" id="HXPD6fA#yb]S9^EX..2E">
                                                    <field name="VAR" id="R8XY_=dk_G6-)1S:=;EB">Schalter_an</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="logic_boolean" id="`VyjOsk67)AIff0w)A$6">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="logic_compare" id="*hL92__WJVU[PHAcUe}n">
                                                <field name="OP">LT</field>
                                                <value name="A">
                                                  <block type="get_value_var" id="=0KlD14_@F%;sLJ$_$L;">
                                                    <field name="ATTR">val</field>
                                                    <value name="OID">
                                                      <shadow type="text" id="k0u}J.;zQlEUtWkC#gB8">
                                                        <field name="TEXT"></field>
                                                      </shadow>
                                                      <block type="field_oid" id="OXLFC%D@pUpxy.$.VF3z">
                                                        <field name="oid">hm-rpc.1.0031DD89A9F6B4.1.ILLUMINATION</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="math_number" id="?o%^VARl/wOq=$4MVRdz">
                                                    <field name="NUM">50</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="control" id="(3k-^%_7_@d-CYk$!gcp">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">hue.1.Esstisch_Zone.on</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id="u2|_@DTRHxNC{HIYO6-c">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="hLpBAr^.e0Re4B_uuUQX">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">hue.1.Esstisch_Zone.level</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="7LBj=0Dp92aP+F-/yNjF">
                                                    <field name="NUM">50</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="timeouts_cleartimeout" id="w5g~`hSS.X/CKhm`N,z`">
                                                    <field name="NAME">timeout</field>
                                                    <next>
                                                      <block type="timeouts_settimeout" id=";_(;ov3s*%^G3}OG8%a:">
                                                        <field name="NAME">timeout</field>
                                                        <field name="DELAY">30</field>
                                                        <field name="UNIT">sec</field>
                                                        <statement name="STATEMENT">
                                                          <block type="control" id="imjPn!$@UuwI[2ltY;w$">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">hue.1.Esstisch_Zone.on</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="tYb)8MV+3vTllq),#7A{">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </xml>
                        
                        Armilar 1 Reply Last reply Reply Quote 0
                        • Armilar
                          Armilar Most Active Forum Testing @Chrissel last edited by Armilar

                          @chrissel

                          Klar, der ist ja nicht mehr in der Messleitung.

                          Evtl. findest du Infos, ob es bei HmIP eine ähnliche Funktion gibt wie bei Tasmota die "PowerOnState" https://tasmota.github.io/docs/PowerOnState/ mit Parameter 4 = turn relay(s) ON and disable further relay control

                          bzw. eine Entkoppelung der Relays vom Schalter (bei Power = On)

                          Zu den HmIP-Schaltaktoren kann ich das nicht beantworten, da ich keine habe...

                          C 1 Reply Last reply Reply Quote 0
                          • C
                            Chrissel @Armilar last edited by

                            @armilar

                            Erstmal vielen Dank für die Hilfe.

                            Mein Gedanke war, dass die Philips Hue Lampen nicht die ganze Zeit im Standby laufen. Erst wenn der Aktor den Strom einschaltet.

                            Die Funktion ist mir bei HmIP noch nicht bekannt, werde gleich mal die CCU3 durchsuchen.

                            Armilar 1 Reply Last reply Reply Quote 0
                            • Armilar
                              Armilar Most Active Forum Testing @Chrissel last edited by

                              @chrissel

                              Das eigentliche Problem ist der Helligkeitsunterschied. Wenn die Lampe stromlos war, muss sie sich zunächst über den Hub widerverbinden und "wirklich Online" sein, damit sie über den ioBroker und den anderen Komponenten (BWM) geschaltet werden kann.
                              Ansonsten könnten auch die Taster und BWM den Schaltaktor bedienen. Und erst wenn der wirklich die Lampe angeschaltet hat, mit etlicher Verzögerung die Helligkeit steuern. So ein bisschen durch Brust geschossene Lösung mit Kompromissen.

                              Alternativ kannst du auch die Spannung bei Level 50 und 100 messen und die über einen separaten Datenpunkt über die Zeit in der die Lampe je Level an ist zuordnen.

                              Viel Erfolg bei der Lösungssuche mit dem Aktor...

                              Armilar 1 Reply Last reply Reply Quote 0
                              • Armilar
                                Armilar Most Active Forum Testing @Armilar last edited by

                                @armilar

                                Vielleicht hilft dir das? Ob der Messaktor aber dann funktioniert ist aber nach wie vor fraglich! Ausprobieren...

                                https://de.elv.com/forum/taster-und-relais-getrennt-nutzbar-17286

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                831
                                Online

                                32.0k
                                Users

                                80.5k
                                Topics

                                1.3m
                                Posts

                                2
                                16
                                241
                                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