Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. roddor

    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

    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 11
    • Best 0
    • Groups 1

    roddor

    @roddor

    Starter

    0
    Reputation
    9
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    roddor Follow
    Starter

    Latest posts made by roddor

    • RE: Meine persönlichen dummen Fragen zu Blöcken

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

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

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

      Bildschirmfoto 2020-01-05 um 22.14.47.png

      posted in Blockly
      R
      roddor
    • RE: Meine persönlichen dummen Fragen zu Blöcken

      @Dr-Bakterius

      Wie versteh ich den obersten Block denn?

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

      posted in Blockly
      R
      roddor
    • Meine persönlichen dummen Fragen zu Blöcken

      Moin,

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

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

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

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

      Bildschirmfoto 2020-01-05 um 18.59.09.png

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

      posted in Blockly
      R
      roddor
    • RE: [gelöst] Lampe leuchten lassen in Farbe bei Anruf

      @Jan1

      ich bin eh erstmal damit beschäftigt unnötige Blöcke zu löschen für die nächsten Stunden. Vermutlich hab ich gleich 50% mehr Speicher aufm Raspi! - aber das hat mich mal richtig weiter gebracht grade! Nochmal danke.

      posted in Skripten / Logik
      R
      roddor
    • RE: [gelöst] Lampe leuchten lassen in Farbe bei Anruf

      @Jan1

      Ach eins noch! In deinem Blockly der oberste rote Block "Wert" - wie ist der zu verstehen? Nimmt das Bezug auf das Objekt des Triggers? Sprich "Wert" = "tr-064.0.callmonitor.ringing = wahr" ??

      posted in Skripten / Logik
      R
      roddor
    • RE: [gelöst] Lampe leuchten lassen in Farbe bei Anruf

      @Jan1

      Ich komm aus der Elektrotechnik. Baue Brandmeldesysteme. SPS und Co sind mir nicht Fremd, wenn auch eher selten geworden. Ich bin erst 2-3 Tage dran an dem Thema hier, weshalb man sich wohl zumindest zum jetztigen Zeitpunkt manchmal noch Wege beibringt, die nicht die effektivsten sind. Mein Problem ist aber auch, immer gleich zu viel zu wollen.

      In so einer Endlosschleife steck ich zum Beispiel auch grade mit meinen Bewegungsmeldern die nur Tagsüber arbeiten sollen, wenn es zu dunkel im Raum ist. Nachts jedoch immer, aber in anderer Helligkeit. Zusätzlich möchte ich die ganze Bewegungsmelder aber auch deaktivieren können. Lampen die in dem Moment an sind sollen an bleiben. Lampen die aus sind, sollen aus bleiben. Nach dem wieder aktivieren soll alles wieder laufen. Vielleicht einfach zu viel für Tag 3, weil ich schon nicht damit klar komme, dass die Hue Motion erst bei Bewegung auch den Lichtsensor aktualisieren. Wird der Raum also zu dunkel, muss der Motionsensor erst zweimal auf True, weil er erst nach dem ersten Mal weiss dass es zu dunkel ist... ich kann nichtmal mehr erklären, aber evtl. wird das zu einem Suizidgrund :))

      ...is aber auch Offtopic. Muss mir da mal 'nen eigenes Thema zu bauen bei Zeiten.

      posted in Skripten / Logik
      R
      roddor
    • RE: [gelöst] Lampe leuchten lassen in Farbe bei Anruf

      @Jan1

      Ach das heisst ich brauch nie "=WAHR" sondern nur den Datenpunkt? Oder eben nicht "Datenpunkt = falsch" sondern "Nicht Datenpunkt"?

      posted in Skripten / Logik
      R
      roddor
    • RE: [gelöst] Lampe leuchten lassen in Farbe bei Anruf

      @Jan1

      Oh Gott ist das einfach, wenn man es einmal irgendwo gesehen hat. 🙂

      1000 Dank!

      PS: Den anderen Adapter muss ich mir dann nochmal mal anschauen. Hatte den meiner Meinung nach schon drauf, da ich gesehen hatte, das bei meinem nichts mehr geht, aber hatte im anderen deutlich weniger Funktionen oder ich hab da in meiner Woche 1 irgendwie mal wieder was übersehen.

      posted in Skripten / Logik
      R
      roddor
    • RE: [gelöst] Lampe leuchten lassen in Farbe bei Anruf

      @Jan1

      Nein, genau das ist leider nicht selbsterklärend für mich.

      Ich kann wählen: Setze variable NAME auf "..."
      Nun kann ich später sagen "Steuere Objekt mit "TEST"

      ...soweit ist mir das klar. Ich kann nach meinem Verständnis nun aber in die Variable nur True und False setzen oder wie kann ich ein Zahlenwert - zb den der Hue Light.Level in die Variable schreiben? Oder seh ich den Wald vor lauter Bäumen nicht?

      posted in Skripten / Logik
      R
      roddor
    • RE: [gelöst] Lampe leuchten lassen in Farbe bei Anruf

      @Homoran

      War Beitrag #1. 😉

      Hatte während des Tippen im Editor einfach nur auf Picture geklickt. Da wurde ein Link gefordert - warum auch immer der Knopf dann da ist.
      Habs nun aber gefunden, danke!!

      Bildschirmfoto 2020-01-05 um 13.36.03.png

      posted in Skripten / Logik
      R
      roddor
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo