Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Kino Steuerung mit Blockly und Harmony

    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

    Kino Steuerung mit Blockly und Harmony

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      chris077 last edited by

      @dslraser ich Steuer die Befehle mit der Fernbedienung, mußte aber die pause und Play tasten mir mit dem fakeroku doppelt belegen damit die Tasten funktionieren wie ich das möchte. Ich habe nicht viel Ahnung davon und habe das so ausprobiert was so irgendwie funktioniert.

      <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="comment" id="=1Mr!Es=pxZ0/mSH)^Qx" x="938" y="-561">
          <field name="COMMENT">Start über vis button (Kino Start)</field>
          <next>
            <block type="on_ext" id="z~f7[o:yuf,yP1.PF^mR">
              <mutation items="2"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id=")#$rje?7`]#jZflu|u8-">
                  <field name="oid">harmony.0.Harmony_Hub.activities.Fernsehen_TV</field>
                </shadow>
              </value>
              <value name="OID1">
                <shadow type="field_oid" id="MT!|yGw3`Z5:nGeqsWU9">
                  <field name="oid">harmony.0.Harmony_Hub.activities.Fire_TV</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="comment" id="D;*;4V]wMXMA$Ge#Q~3@">
                  <field name="COMMENT">Kino Start</field>
                  <next>
                    <block type="comment" id=":nrn$FI_DCUpqO$P-$rv">
                      <field name="COMMENT">Leinwand runter</field>
                      <next>
                        <block type="controls_if" id=".do+p+.jk^v]OsI[~;xR" disabled="true">
                          <value name="IF0">
                            <block type="logic_compare" id="3(yFm$+c~hF2egbj;}Vi">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="B!Wy!ZOQ`xK6:37hrlRu">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hm-rpc.1.NEQ1219284.1.LEVEL</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="math_number" id="ozraD@AR*J8nlj18/#4Z">
                                  <field name="NUM">100</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="controls_if" id="SF|mv+H:ZswT_$b~~Qf?">
                              <value name="IF0">
                                <block type="logic_compare" id="Yc69$W{v:(JM=d~iG,#l">
                                  <field name="OP">GTE</field>
                                  <value name="A">
                                    <block type="math_arithmetic" id="8YLpjx1L,.]0Mgdw0LOY">
                                      <field name="OP">ADD</field>
                                      <value name="A">
                                        <shadow type="math_number" id="Iu2;S56Mp.(|Z[O{_xSF">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="get_value" id="EjRnWvmXd$GT1V[K`!pN">
                                          <field name="ATTR">val</field>
                                          <field name="OID">harmony.0.Harmony_Hub.activities.Fernsehen_TV</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <shadow type="math_number" id="l4-eNRKH1):IfhG]L=^~">
                                          <field name="NUM">1</field>
                                        </shadow>
                                        <block type="get_value" id="mv.7QZ=w%a25:p5qB^@v">
                                          <field name="ATTR">val</field>
                                          <field name="OID">harmony.0.Harmony_Hub.activities.Fire_TV</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="3R.%*3,c#3:}B3hTbSRR">
                                      <field name="NUM">1</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="control" id="jCCH5-HAi7fT1YK*WWIn">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">hm-rpc.1.NEQ1219284.1.LEVEL</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="aQ^!l0xX4+o=1Nf]b|a)">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                            </block>
                          </statement>
                          <next>
                            <block type="comment" id="T+m)au,R@,4C=QV}:jmy">
                              <field name="COMMENT">Kino Ende</field>
                              <next>
                                <block type="comment" id="FA}9wr-_,n#BmtC}]#C7">
                                  <field name="COMMENT">Leinwand rauf</field>
                                  <next>
                                    <block type="controls_if" id="TD|7A5T%u9wj`_*ML!G/" disabled="true">
                                      <value name="IF0">
                                        <block type="logic_compare" id="*tLr6J5*?lai+%|]I)QZ">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id=":-Z85khP6=~9#q6RCth`">
                                              <field name="ATTR">val</field>
                                              <field name="OID">hm-rpc.1.NEQ1219284.1.LEVEL</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="Ra-?6[X~wvNO?D@FoXNs">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="controls_if" id="dQ[WR7XQdw8.eBk*;S8T">
                                          <value name="IF0">
                                            <block type="logic_compare" id="c,tf;t.ud1GD?~yV6GC)">
                                              <field name="OP">EQ</field>
                                              <value name="A">
                                                <block type="math_arithmetic" id="$X#_/O-^YHSb]T5ewbb%">
                                                  <field name="OP">ADD</field>
                                                  <value name="A">
                                                    <shadow type="math_number" id="Iu2;S56Mp.(|Z[O{_xSF">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="get_value" id="nCyoDhFqx17d]]MT.:b|">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">harmony.0.Harmony_Hub.activities.Fernsehen_TV</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <shadow type="math_number" id="l4-eNRKH1):IfhG]L=^~">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="get_value" id="]/~E}heZHkH!64HZ[I06">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">harmony.0.Harmony_Hub.activities.Fire_TV</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="7Iq$+n3,{41$=b8,3gf2">
                                                  <field name="NUM">0</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="timeouts_settimeout" id="okt]iWfC#FB,}WlI9:]}">
                                              <field name="NAME">timeout</field>
                                              <field name="DELAY">5</field>
                                              <field name="UNIT">sec</field>
                                              <statement name="STATEMENT">
                                                <block type="control" id="`h=1?C=|ye*-LFrSrPHf">
                                                  <mutation delay_input="false"></mutation>
                                                  <field name="OID">hm-rpc.1.NEQ1219284.1.LEVEL</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="4?M.+?6DWd$!3b(*2WTr">
                                                      <field name="NUM">100</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="comment" id="TcixG-2tybTibf#||@$,">
                                          <field name="COMMENT">Kino An</field>
                                          <next>
                                            <block type="comment" id="RfWCw$4K-l$=-aT0-Y/I">
                                              <field name="COMMENT">Licht an</field>
                                              <next>
                                                <block type="controls_if" id="(f7iaWhswqsxzOu.bfio">
                                                  <value name="IF0">
                                                    <block type="logic_operation" id="7Y!7`J[r#k:fzwY|)mo4" inline="false">
                                                      <field name="OP">OR</field>
                                                      <value name="A">
                                                        <block type="logic_compare" id="Jc46-Pp.5;T7T;_e2=.i">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="$N)/#A6(f$D(K/o]d0#N">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">harmony.0.Harmony_Hub.activities.Fernsehen_TV</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id="*iOs(#k=YSO.!!Rh!HZ9">
                                                              <field name="NUM">2</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_compare" id="{y#[qIQDiaWd#5Xm[157">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="XNV1y:=bp[Z8j~=/IfRA">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">harmony.0.Harmony_Hub.activities.Fire_TV</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id="IfEx}Z*R/v`A?wax)HA+">
                                                              <field name="NUM">2</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="controls_if" id="_#Gv$`Z:!b8.X6+todXw">
                                                      <value name="IF0">
                                                        <block type="logic_operation" id="!UIbbfb$Bm,qfeg}11$I" inline="false">
                                                          <field name="OP">AND</field>
                                                          <value name="A">
                                                            <block type="logic_compare" id="Ja|DfhJT{$13^69^buIo">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="get_value" id="wGC^qMY1V5S@B,0YHkVF">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">hue.0.Wandlampen.on</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_boolean" id="gbC:2#uCU[=H:UlFJJu_">
                                                                  <field name="BOOL">FALSE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_compare" id="VR$`OJ=VFu[A=jfYWK^m">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="get_value" id="Dgh#jX2AVvcF{-btK}!S">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">hue.0.Spots_Leinwand.on</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_boolean" id="NJVJh4~`S[G.qKE;%V#4">
                                                                  <field name="BOOL">FALSE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="toggle" id="V=W`.2X]*SOGSsm{5kOC">
                                                          <mutation delay_input="false"></mutation>
                                                          <field name="OID">hue.0.Wandlampen.scene_hell</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <next>
                                                            <block type="toggle" id="$9xOA/iMSQI.aOY6ONaX">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">hue.0.Spots_Leinwand.scene_hell</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <next>
                                                                <block type="debug" id="sV=Z(n=w@RuLT=~RC5*8">
                                                                  <field name="Severity">log</field>
                                                                  <value name="TEXT">
                                                                    <shadow type="text" id="+U1jyTg0|k-a#||9~3UO">
                                                                      <field name="TEXT">Kino An wurde gedrückt und Licht geht an</field>
                                                                    </shadow>
                                                                  </value>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </statement>
                                                  <next>
                                                    <block type="comment" id="vH(e$=lNlJ!S(*n{$T,t">
                                                      <field name="COMMENT">Kino Aus</field>
                                                      <next>
                                                        <block type="comment" id="NwGAw*#YKZlR,8fkqcqL">
                                                          <field name="COMMENT">Licht aus</field>
                                                          <next>
                                                            <block type="controls_if" id="qzw1Y5=FCmx7;HTv-Ujh">
                                                              <value name="IF0">
                                                                <block type="logic_operation" id="n:NhC!}Clj]xqHaB.`jk" inline="false">
                                                                  <field name="OP">OR</field>
                                                                  <value name="A">
                                                                    <block type="logic_compare" id="{KF@SCqtu/[B2n5kv6T`">
                                                                      <field name="OP">EQ</field>
                                                                      <value name="A">
                                                                        <block type="get_value" id="ul_ysWgc+xc?CSFu5YZ2">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">harmony.0.Harmony_Hub.activities.Fernsehen_TV</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="math_number" id="1*K*KCs8k78^T3jb{^%s">
                                                                          <field name="NUM">0</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_compare" id="y@W,mWR3t102BaaUwf!7">
                                                                      <field name="OP">EQ</field>
                                                                      <value name="A">
                                                                        <block type="get_value" id="FoyojBF4*Ut)cKz3v1rQ">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">harmony.0.Harmony_Hub.activities.Fire_TV</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="math_number" id="Py[(:m`CH?yBjhlO:72_">
                                                                          <field name="NUM">0</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <statement name="DO0">
                                                                <block type="timeouts_settimeout" id="awMzb`_c!t)VQ:BzWUvS">
                                                                  <field name="NAME">timeout2</field>
                                                                  <field name="DELAY">5</field>
                                                                  <field name="UNIT">sec</field>
                                                                  <statement name="STATEMENT">
                                                                    <block type="control" id="`d,93^l5@8$xJ|SN;dJw">
                                                                      <mutation delay_input="false"></mutation>
                                                                      <field name="OID">hue.0.hgrp-0000000112.command</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="text" id="iatN9Qv-iIrPm~gwo0V(">
                                                                          <field name="TEXT">{"on":false,"transitiontime":100}</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="control" id="4V#XU/%hb!vAlh:jv)W?">
                                                                          <mutation delay_input="false"></mutation>
                                                                          <field name="OID">hue.0.hgrp-0000024576.command</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="text" id="K=+,I#Hsm7%5Wt_c@pkD">
                                                                              <field name="TEXT">{"on":false,"transitiontime":100}</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="debug" id="a,.K8~_S,;cW#e=a3FDg">
                                                                              <field name="Severity">log</field>
                                                                              <value name="TEXT">
                                                                                <shadow type="text" id="x7Kyy^IwiS[W@Xp+doz{">
                                                                                  <field name="TEXT">Kino Aus wurde gedrückt und Licht geht 5sec später aus</field>
                                                                                </shadow>
                                                                              </value>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                </block>
                                                              </statement>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="comment" id="^[;{Uct`v,[XEEE^TZ|Z">
                  <field name="COMMENT">Bei Film Start</field>
                  <next>
                    <block type="comment" id="jWk9Q[lWON1J?gbPml[Q">
                      <field name="COMMENT">Licht Aus</field>
                      <next>
                        <block type="on_ext" id="/~D5EC{^ugfP|va{z4K7">
                          <mutation items="1"></mutation>
                          <field name="CONDITION">true</field>
                          <field name="ACK_CONDITION"></field>
                          <value name="OID0">
                            <shadow type="field_oid" id="a0f*xd~JpB!7OEt,mR9Z">
                              <field name="oid">fakeroku.0.ioBroker.keys.Play</field>
                            </shadow>
                          </value>
                          <statement name="STATEMENT">
                            <block type="controls_if" id="jPl_=EdC(+~TSjET{y37">
                              <value name="IF0">
                                <block type="logic_operation" id="F+6c;*rDDS?5`z27:Nf8" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="logic_compare" id="=4b1DU]@4og@#6#bkVV2">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="^R6QX}V`)C/sVQ+(k/a5">
                                          <field name="ATTR">val</field>
                                          <field name="OID">hue.0.hgrp-0000000112.on</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="T$XoW4hN{psjfCE-SBs:">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id="=#T4Nyqfe~w$;)eqFwWR">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="oc,gr(gn7wX7yxcSuM;8">
                                          <field name="ATTR">val</field>
                                          <field name="OID">hue.0.hgrp-0000024576.on</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="-k!lB+qUe;Ey-vJL$OY[">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="control" id="1yHXSXOrwH62cz!by2_2">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">hue.0.hgrp-0000000112.command</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="text" id=":[B%Gr:lyKf!h,ZzvLkF">
                                      <field name="TEXT">{"on":false,"transitiontime":50}</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="/n7%sL_H9Cgy=!K0??}#">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">hue.0.hgrp-0000024576.command</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="text" id="U!h$J(JZ,!2HD+I%(du[">
                                          <field name="TEXT">{"on":false,"transitiontime":50}</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="debug" id="4kTU|cL{T%aOm58/;OQ:">
                                          <field name="Severity">log</field>
                                          <value name="TEXT">
                                            <shadow type="text" id="0ilButD5X8dZSD`4N+#o">
                                              <field name="TEXT">play wurde gedrückt und Licht geht aus</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </statement>
                          <next>
                            <block type="comment" id="K)A%3*gi5TBL!P@(kpQ{">
                              <field name="COMMENT">Licht Pause</field>
                              <next>
                                <block type="on_ext" id="6A07o`WL8|a]Z5AEy%aD">
                                  <mutation items="1"></mutation>
                                  <field name="CONDITION">true</field>
                                  <field name="ACK_CONDITION"></field>
                                  <value name="OID0">
                                    <shadow type="field_oid" id="w;(5i4Y}0~#a!^}eGmXW">
                                      <field name="oid">fakeroku.0.ioBroker.keys.Home</field>
                                    </shadow>
                                  </value>
                                  <statement name="STATEMENT">
                                    <block type="comment" id="JHWP[(:C)D7[g;TMEM`d">
                                      <field name="COMMENT">Licht Pause an</field>
                                      <next>
                                        <block type="controls_if" id="e),LJcf}Bx;1A#bP1[?c">
                                          <value name="IF0">
                                            <block type="logic_operation" id="A%#?9#~s2~_wKN?4;669" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="q_H5|JPD}}XD0Izo^uFe">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="!uL=HeDeD0(y,DInx~Y[">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">hue.0.hgrp-0000000112.on</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="Tn4C6Paju;8-A(,o$TZD">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="Wt;LH|n()|?diu%|+=wp">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="$W{}Od6*67FEeQ:rO[Wi">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">hue.0.hgrp-0000024576.on</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id=";@l`@Tt(Ni7eBwaI3YH=">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="control" id="QsF*A8Whp`A9=L9uo}2Y">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">hue.0.hgrp-0000000112.on</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="jkKi`}z=x8axBC*+M_Al">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="SaKAaF(~4vRad7AP{7,i">
                                                  <mutation delay_input="false"></mutation>
                                                  <field name="OID">hue.0.hgrp-0000024576.on</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="Sj2:lKHvkFK|7)|/4Gg8">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="debug" id="o;Y9,n(4NEl-]3)n%(3i">
                                                      <field name="Severity">log</field>
                                                      <value name="TEXT">
                                                        <shadow type="text" id="p;ckNI;A%e_Pp,,~*)=p">
                                                          <field name="TEXT">pause wurde gedrückt und Licht geht an</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
        <block type="math_arithmetic" id="yEp7+0o%|9jqAm}:7A=4" disabled="true" x="1712" y="63">
          <field name="OP">ADD</field>
          <value name="A">
            <shadow type="math_number" id="Iu2;S56Mp.(|Z[O{_xSF">
              <field name="NUM">1</field>
            </shadow>
          </value>
          <value name="B">
            <shadow type="math_number" id="l4-eNRKH1):IfhG]L=^~">
              <field name="NUM">1</field>
            </shadow>
          </value>
        </block>
        <block type="logic_compare" id=")}*?9(1S6[4`:;eJ*M6p" disabled="true" x="1638" y="388">
          <field name="OP">EQ</field>
          <value name="A">
            <block type="math_arithmetic" id="[]I{X0W[K]h-ynSA[@RY">
              <field name="OP">ADD</field>
              <value name="A">
                <shadow type="math_number" id="Iu2;S56Mp.(|Z[O{_xSF">
                  <field name="NUM">1</field>
                </shadow>
                <block type="get_value" id="0Xw^.hWjN%?i9[fOb?V~">
                  <field name="ATTR">val</field>
                  <field name="OID">harmony.0.Harmony_Hub.activities.Fernsehen_TV</field>
                </block>
              </value>
              <value name="B">
                <shadow type="math_number" id="l4-eNRKH1):IfhG]L=^~">
                  <field name="NUM">1</field>
                </shadow>
                <block type="get_value" id="in5#-rnF7LprK])VYQ.m">
                  <field name="ATTR">val</field>
                  <field name="OID">harmony.0.Harmony_Hub.activities.Fire_TV</field>
                </block>
              </value>
            </block>
          </value>
          <value name="B">
            <block type="math_number" id="k=KJbG4zu)iq?%GRTe2l">
              <field name="NUM">0</field>
            </block>
          </value>
        </block>
        <block type="comment" id="!Iz=w_yLn8#-rUmR4*C;" x="1738" y="1063">
          <field name="COMMENT">Licht Pause an</field>
          <next>
            <block type="controls_if" id="DX2v$i[%LU!+6`p*6N,z" disabled="true">
              <value name="IF0">
                <block type="logic_operation" id="?P~{pene}d(YM+M/gJaR" inline="false">
                  <field name="OP">AND</field>
                  <value name="A">
                    <block type="logic_compare" id="E.7,(H,~@;!P+_Xm_TM*">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="laU?n=!T)mlv/,s){hI{">
                          <field name="ATTR">val</field>
                          <field name="OID">hue.0.hgrp-0000000112.on</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="B4l;:Y8as~^GQ|_7;hfI">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_compare" id="pzN6yBVqK`-WDT+!Zy;#">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="FeaAqtGk3-jBxT*C5~GM">
                          <field name="ATTR">val</field>
                          <field name="OID">hue.0.hgrp-0000024576.on</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="KKpR}i1PsQ?J=t:C$ov;">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="control" id="U^KyX@bu^dy0Ex*l1]oH">
                  <mutation delay_input="false"></mutation>
                  <field name="OID">hue.0.hgrp-0000000112.command</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="text" id="ksRYy)D[w7t=H!2U*(.o">
                      <field name="TEXT">{"on":false,"transitiontime":100}</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id="VAT2,E6qBqWmXhCqudS(">
                      <mutation delay_input="false"></mutation>
                      <field name="OID">hue.0.hgrp-0000024576.command</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="text" id="TgR?8Co^g5O?M?;(TrJP">
                          <field name="TEXT">{"on":false,"transitiontime":100}</field>
                        </block>
                      </value>
                      <next>
                        <block type="debug" id="VmHHy`4Rz(S!39muMiVo">
                          <field name="Severity">log</field>
                          <value name="TEXT">
                            <shadow type="text" id="c0NNb0Djub@Sv,HoGwMN">
                              <field name="TEXT">pause wurde gedrück und Licht geht an</field>
                            </shadow>
                          </value>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </next>
        </block>
      </xml>
      
      dslraser 2 Replies Last reply Reply Quote 0
      • dslraser
        dslraser Forum Testing Most Active @chris077 last edited by

        @chris077
        2 = an , das heißt, Deine Harmony Aktion geht erst auf 2 wenn sie tatsächlich an ist, also ausgeführt wurde.
        Zum Rest kann ich ohne Bild oder Code nix sagen.

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

          @chris077
          kann ich mir später gern mal ansehen. (Bin noch länger unterwegs)

          1 Reply Last reply Reply Quote 0
          • C
            chris077 last edited by

            @dslraser sehr gerne, Danke

            Ps. ich habe nochmal activity x + activity y >_1 ausprobiert. Irgendwie Funktioniert das besser, das Licht geht sofort an Hmm???

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

              @chris077 sagte in Kino Steuerung mit Blockly und Harmony:

              @dslraser sehr gerne, Danke

              Ps. ich habe nochmal activity x + activity y >_1 ausprobiert. Irgendwie Funktioniert das besser, das Licht geht sofort an Hmm???

              ja, das wird schneller gehen, aber ich weiß nicht ob das so gut ist. Der Trigger steht ja auf wurde geändert, das heißt, wenn der Wert sich von 0 auf 1 verändert, dann wird in Deinem Beispiel geschaltet, aber es wird dann eigentlich nochmal geschaltet, weil sich der Wert noch von von 1 auf 2 ändert, auch das bekommt der Trigger ja mit.

              1 Reply Last reply Reply Quote 0
              • C
                chris077 last edited by

                @dslraser ok, kann es vielleicht daran liegen das ich nicht = sonder gleich oder größer genommen habe (>mit unterstrich)? Habe das mal irgendwo so gesehen und nachgebaut, deswegen habe ich das so und da das dann so funktionierte habe ich mir keine weiteren Gedanken mehr darüber gemacht.

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

                  @chris077 sagte in Kino Steuerung mit Blockly und Harmony:

                  @dslraser ich Steuer die Befehle mit der Fernbedienung, mußte aber die pause und Play tasten mir mit dem fakeroku doppelt belegen damit die Tasten funktionieren wie ich das möchte. Ich habe nicht viel Ahnung davon und habe das so ausprobiert was so irgendwie funktioniert.

                  <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="comment" id="=1Mr!Es=pxZ0/mSH)^Qx" x="938" y="-561">
                      <field name="COMMENT">Start über vis button (Kino Start)</field>
                      <next>
                        <block type="on_ext" id="z~f7[o:yuf,yP1.PF^mR">
                          <mutation items="2"></mutation>
                          <field name="CONDITION">ne</field>
                          <field name="ACK_CONDITION"></field>
                          <value name="OID0">
                            <shadow type="field_oid" id=")#$rje?7`]#jZflu|u8-">
                              <field name="oid">harmony.0.Harmony_Hub.activities.Fernsehen_TV</field>
                            </shadow>
                          </value>
                          <value name="OID1">
                            <shadow type="field_oid" id="MT!|yGw3`Z5:nGeqsWU9">
                              <field name="oid">harmony.0.Harmony_Hub.activities.Fire_TV</field>
                            </shadow>
                          </value>
                          <statement name="STATEMENT">
                            <block type="comment" id="D;*;4V]wMXMA$Ge#Q~3@">
                              <field name="COMMENT">Kino Start</field>
                              <next>
                                <block type="comment" id=":nrn$FI_DCUpqO$P-$rv">
                                  <field name="COMMENT">Leinwand runter</field>
                                  <next>
                                    <block type="controls_if" id=".do+p+.jk^v]OsI[~;xR" disabled="true">
                                      <value name="IF0">
                                        <block type="logic_compare" id="3(yFm$+c~hF2egbj;}Vi">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="B!Wy!ZOQ`xK6:37hrlRu">
                                              <field name="ATTR">val</field>
                                              <field name="OID">hm-rpc.1.NEQ1219284.1.LEVEL</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="ozraD@AR*J8nlj18/#4Z">
                                              <field name="NUM">100</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="controls_if" id="SF|mv+H:ZswT_$b~~Qf?">
                                          <value name="IF0">
                                            <block type="logic_compare" id="Yc69$W{v:(JM=d~iG,#l">
                                              <field name="OP">GTE</field>
                                              <value name="A">
                                                <block type="math_arithmetic" id="8YLpjx1L,.]0Mgdw0LOY">
                                                  <field name="OP">ADD</field>
                                                  <value name="A">
                                                    <shadow type="math_number" id="Iu2;S56Mp.(|Z[O{_xSF">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="get_value" id="EjRnWvmXd$GT1V[K`!pN">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">harmony.0.Harmony_Hub.activities.Fernsehen_TV</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <shadow type="math_number" id="l4-eNRKH1):IfhG]L=^~">
                                                      <field name="NUM">1</field>
                                                    </shadow>
                                                    <block type="get_value" id="mv.7QZ=w%a25:p5qB^@v">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">harmony.0.Harmony_Hub.activities.Fire_TV</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="3R.%*3,c#3:}B3hTbSRR">
                                                  <field name="NUM">1</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="control" id="jCCH5-HAi7fT1YK*WWIn">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">hm-rpc.1.NEQ1219284.1.LEVEL</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="aQ^!l0xX4+o=1Nf]b|a)">
                                                  <field name="NUM">0</field>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="comment" id="T+m)au,R@,4C=QV}:jmy">
                                          <field name="COMMENT">Kino Ende</field>
                                          <next>
                                            <block type="comment" id="FA}9wr-_,n#BmtC}]#C7">
                                              <field name="COMMENT">Leinwand rauf</field>
                                              <next>
                                                <block type="controls_if" id="TD|7A5T%u9wj`_*ML!G/" disabled="true">
                                                  <value name="IF0">
                                                    <block type="logic_compare" id="*tLr6J5*?lai+%|]I)QZ">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="get_value" id=":-Z85khP6=~9#q6RCth`">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">hm-rpc.1.NEQ1219284.1.LEVEL</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="Ra-?6[X~wvNO?D@FoXNs">
                                                          <field name="NUM">0</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="controls_if" id="dQ[WR7XQdw8.eBk*;S8T">
                                                      <value name="IF0">
                                                        <block type="logic_compare" id="c,tf;t.ud1GD?~yV6GC)">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="math_arithmetic" id="$X#_/O-^YHSb]T5ewbb%">
                                                              <field name="OP">ADD</field>
                                                              <value name="A">
                                                                <shadow type="math_number" id="Iu2;S56Mp.(|Z[O{_xSF">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="get_value" id="nCyoDhFqx17d]]MT.:b|">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">harmony.0.Harmony_Hub.activities.Fernsehen_TV</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <shadow type="math_number" id="l4-eNRKH1):IfhG]L=^~">
                                                                  <field name="NUM">1</field>
                                                                </shadow>
                                                                <block type="get_value" id="]/~E}heZHkH!64HZ[I06">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">harmony.0.Harmony_Hub.activities.Fire_TV</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id="7Iq$+n3,{41$=b8,3gf2">
                                                              <field name="NUM">0</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="timeouts_settimeout" id="okt]iWfC#FB,}WlI9:]}">
                                                          <field name="NAME">timeout</field>
                                                          <field name="DELAY">5</field>
                                                          <field name="UNIT">sec</field>
                                                          <statement name="STATEMENT">
                                                            <block type="control" id="`h=1?C=|ye*-LFrSrPHf">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">hm-rpc.1.NEQ1219284.1.LEVEL</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="math_number" id="4?M.+?6DWd$!3b(*2WTr">
                                                                  <field name="NUM">100</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </statement>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </statement>
                                                  <next>
                                                    <block type="comment" id="TcixG-2tybTibf#||@$,">
                                                      <field name="COMMENT">Kino An</field>
                                                      <next>
                                                        <block type="comment" id="RfWCw$4K-l$=-aT0-Y/I">
                                                          <field name="COMMENT">Licht an</field>
                                                          <next>
                                                            <block type="controls_if" id="(f7iaWhswqsxzOu.bfio">
                                                              <value name="IF0">
                                                                <block type="logic_operation" id="7Y!7`J[r#k:fzwY|)mo4" inline="false">
                                                                  <field name="OP">OR</field>
                                                                  <value name="A">
                                                                    <block type="logic_compare" id="Jc46-Pp.5;T7T;_e2=.i">
                                                                      <field name="OP">EQ</field>
                                                                      <value name="A">
                                                                        <block type="get_value" id="$N)/#A6(f$D(K/o]d0#N">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">harmony.0.Harmony_Hub.activities.Fernsehen_TV</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="math_number" id="*iOs(#k=YSO.!!Rh!HZ9">
                                                                          <field name="NUM">2</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_compare" id="{y#[qIQDiaWd#5Xm[157">
                                                                      <field name="OP">EQ</field>
                                                                      <value name="A">
                                                                        <block type="get_value" id="XNV1y:=bp[Z8j~=/IfRA">
                                                                          <field name="ATTR">val</field>
                                                                          <field name="OID">harmony.0.Harmony_Hub.activities.Fire_TV</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="math_number" id="IfEx}Z*R/v`A?wax)HA+">
                                                                          <field name="NUM">2</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <statement name="DO0">
                                                                <block type="controls_if" id="_#Gv$`Z:!b8.X6+todXw">
                                                                  <value name="IF0">
                                                                    <block type="logic_operation" id="!UIbbfb$Bm,qfeg}11$I" inline="false">
                                                                      <field name="OP">AND</field>
                                                                      <value name="A">
                                                                        <block type="logic_compare" id="Ja|DfhJT{$13^69^buIo">
                                                                          <field name="OP">EQ</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="wGC^qMY1V5S@B,0YHkVF">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">hue.0.Wandlampen.on</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="logic_boolean" id="gbC:2#uCU[=H:UlFJJu_">
                                                                              <field name="BOOL">FALSE</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="logic_compare" id="VR$`OJ=VFu[A=jfYWK^m">
                                                                          <field name="OP">EQ</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="Dgh#jX2AVvcF{-btK}!S">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">hue.0.Spots_Leinwand.on</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="logic_boolean" id="NJVJh4~`S[G.qKE;%V#4">
                                                                              <field name="BOOL">FALSE</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <statement name="DO0">
                                                                    <block type="toggle" id="V=W`.2X]*SOGSsm{5kOC">
                                                                      <mutation delay_input="false"></mutation>
                                                                      <field name="OID">hue.0.Wandlampen.scene_hell</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <next>
                                                                        <block type="toggle" id="$9xOA/iMSQI.aOY6ONaX">
                                                                          <mutation delay_input="false"></mutation>
                                                                          <field name="OID">hue.0.Spots_Leinwand.scene_hell</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <next>
                                                                            <block type="debug" id="sV=Z(n=w@RuLT=~RC5*8">
                                                                              <field name="Severity">log</field>
                                                                              <value name="TEXT">
                                                                                <shadow type="text" id="+U1jyTg0|k-a#||9~3UO">
                                                                                  <field name="TEXT">Kino An wurde gedrückt und Licht geht an</field>
                                                                                </shadow>
                                                                              </value>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                </block>
                                                              </statement>
                                                              <next>
                                                                <block type="comment" id="vH(e$=lNlJ!S(*n{$T,t">
                                                                  <field name="COMMENT">Kino Aus</field>
                                                                  <next>
                                                                    <block type="comment" id="NwGAw*#YKZlR,8fkqcqL">
                                                                      <field name="COMMENT">Licht aus</field>
                                                                      <next>
                                                                        <block type="controls_if" id="qzw1Y5=FCmx7;HTv-Ujh">
                                                                          <value name="IF0">
                                                                            <block type="logic_operation" id="n:NhC!}Clj]xqHaB.`jk" inline="false">
                                                                              <field name="OP">OR</field>
                                                                              <value name="A">
                                                                                <block type="logic_compare" id="{KF@SCqtu/[B2n5kv6T`">
                                                                                  <field name="OP">EQ</field>
                                                                                  <value name="A">
                                                                                    <block type="get_value" id="ul_ysWgc+xc?CSFu5YZ2">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">harmony.0.Harmony_Hub.activities.Fernsehen_TV</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="math_number" id="1*K*KCs8k78^T3jb{^%s">
                                                                                      <field name="NUM">0</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <value name="B">
                                                                                <block type="logic_compare" id="y@W,mWR3t102BaaUwf!7">
                                                                                  <field name="OP">EQ</field>
                                                                                  <value name="A">
                                                                                    <block type="get_value" id="FoyojBF4*Ut)cKz3v1rQ">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">harmony.0.Harmony_Hub.activities.Fire_TV</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="math_number" id="Py[(:m`CH?yBjhlO:72_">
                                                                                      <field name="NUM">0</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <statement name="DO0">
                                                                            <block type="timeouts_settimeout" id="awMzb`_c!t)VQ:BzWUvS">
                                                                              <field name="NAME">timeout2</field>
                                                                              <field name="DELAY">5</field>
                                                                              <field name="UNIT">sec</field>
                                                                              <statement name="STATEMENT">
                                                                                <block type="control" id="`d,93^l5@8$xJ|SN;dJw">
                                                                                  <mutation delay_input="false"></mutation>
                                                                                  <field name="OID">hue.0.hgrp-0000000112.command</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="text" id="iatN9Qv-iIrPm~gwo0V(">
                                                                                      <field name="TEXT">{"on":false,"transitiontime":100}</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="control" id="4V#XU/%hb!vAlh:jv)W?">
                                                                                      <mutation delay_input="false"></mutation>
                                                                                      <field name="OID">hue.0.hgrp-0000024576.command</field>
                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                      <value name="VALUE">
                                                                                        <block type="text" id="K=+,I#Hsm7%5Wt_c@pkD">
                                                                                          <field name="TEXT">{"on":false,"transitiontime":100}</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <next>
                                                                                        <block type="debug" id="a,.K8~_S,;cW#e=a3FDg">
                                                                                          <field name="Severity">log</field>
                                                                                          <value name="TEXT">
                                                                                            <shadow type="text" id="x7Kyy^IwiS[W@Xp+doz{">
                                                                                              <field name="TEXT">Kino Aus wurde gedrückt und Licht geht 5sec später aus</field>
                                                                                            </shadow>
                                                                                          </value>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </statement>
                                                                            </block>
                                                                          </statement>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                          <next>
                            <block type="comment" id="^[;{Uct`v,[XEEE^TZ|Z">
                              <field name="COMMENT">Bei Film Start</field>
                              <next>
                                <block type="comment" id="jWk9Q[lWON1J?gbPml[Q">
                                  <field name="COMMENT">Licht Aus</field>
                                  <next>
                                    <block type="on_ext" id="/~D5EC{^ugfP|va{z4K7">
                                      <mutation items="1"></mutation>
                                      <field name="CONDITION">true</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                        <shadow type="field_oid" id="a0f*xd~JpB!7OEt,mR9Z">
                                          <field name="oid">fakeroku.0.ioBroker.keys.Play</field>
                                        </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="controls_if" id="jPl_=EdC(+~TSjET{y37">
                                          <value name="IF0">
                                            <block type="logic_operation" id="F+6c;*rDDS?5`z27:Nf8" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_compare" id="=4b1DU]@4og@#6#bkVV2">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="^R6QX}V`)C/sVQ+(k/a5">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">hue.0.hgrp-0000000112.on</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="T$XoW4hN{psjfCE-SBs:">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="logic_compare" id="=#T4Nyqfe~w$;)eqFwWR">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="oc,gr(gn7wX7yxcSuM;8">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">hue.0.hgrp-0000024576.on</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="-k!lB+qUe;Ey-vJL$OY[">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="control" id="1yHXSXOrwH62cz!by2_2">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">hue.0.hgrp-0000000112.command</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="text" id=":[B%Gr:lyKf!h,ZzvLkF">
                                                  <field name="TEXT">{"on":false,"transitiontime":50}</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="/n7%sL_H9Cgy=!K0??}#">
                                                  <mutation delay_input="false"></mutation>
                                                  <field name="OID">hue.0.hgrp-0000024576.command</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="text" id="U!h$J(JZ,!2HD+I%(du[">
                                                      <field name="TEXT">{"on":false,"transitiontime":50}</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="debug" id="4kTU|cL{T%aOm58/;OQ:">
                                                      <field name="Severity">log</field>
                                                      <value name="TEXT">
                                                        <shadow type="text" id="0ilButD5X8dZSD`4N+#o">
                                                          <field name="TEXT">play wurde gedrückt und Licht geht aus</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="comment" id="K)A%3*gi5TBL!P@(kpQ{">
                                          <field name="COMMENT">Licht Pause</field>
                                          <next>
                                            <block type="on_ext" id="6A07o`WL8|a]Z5AEy%aD">
                                              <mutation items="1"></mutation>
                                              <field name="CONDITION">true</field>
                                              <field name="ACK_CONDITION"></field>
                                              <value name="OID0">
                                                <shadow type="field_oid" id="w;(5i4Y}0~#a!^}eGmXW">
                                                  <field name="oid">fakeroku.0.ioBroker.keys.Home</field>
                                                </shadow>
                                              </value>
                                              <statement name="STATEMENT">
                                                <block type="comment" id="JHWP[(:C)D7[g;TMEM`d">
                                                  <field name="COMMENT">Licht Pause an</field>
                                                  <next>
                                                    <block type="controls_if" id="e),LJcf}Bx;1A#bP1[?c">
                                                      <value name="IF0">
                                                        <block type="logic_operation" id="A%#?9#~s2~_wKN?4;669" inline="false">
                                                          <field name="OP">AND</field>
                                                          <value name="A">
                                                            <block type="logic_compare" id="q_H5|JPD}}XD0Izo^uFe">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="get_value" id="!uL=HeDeD0(y,DInx~Y[">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">hue.0.hgrp-0000000112.on</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_boolean" id="Tn4C6Paju;8-A(,o$TZD">
                                                                  <field name="BOOL">FALSE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_compare" id="Wt;LH|n()|?diu%|+=wp">
                                                              <field name="OP">EQ</field>
                                                              <value name="A">
                                                                <block type="get_value" id="$W{}Od6*67FEeQ:rO[Wi">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">hue.0.hgrp-0000024576.on</field>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="logic_boolean" id=";@l`@Tt(Ni7eBwaI3YH=">
                                                                  <field name="BOOL">FALSE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="control" id="QsF*A8Whp`A9=L9uo}2Y">
                                                          <mutation delay_input="false"></mutation>
                                                          <field name="OID">hue.0.hgrp-0000000112.on</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="jkKi`}z=x8axBC*+M_Al">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="control" id="SaKAaF(~4vRad7AP{7,i">
                                                              <mutation delay_input="false"></mutation>
                                                              <field name="OID">hue.0.hgrp-0000024576.on</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="Sj2:lKHvkFK|7)|/4Gg8">
                                                                  <field name="BOOL">TRUE</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="debug" id="o;Y9,n(4NEl-]3)n%(3i">
                                                                  <field name="Severity">log</field>
                                                                  <value name="TEXT">
                                                                    <shadow type="text" id="p;ckNI;A%e_Pp,,~*)=p">
                                                                      <field name="TEXT">pause wurde gedrückt und Licht geht an</field>
                                                                    </shadow>
                                                                  </value>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                    <block type="math_arithmetic" id="yEp7+0o%|9jqAm}:7A=4" disabled="true" x="1712" y="63">
                      <field name="OP">ADD</field>
                      <value name="A">
                        <shadow type="math_number" id="Iu2;S56Mp.(|Z[O{_xSF">
                          <field name="NUM">1</field>
                        </shadow>
                      </value>
                      <value name="B">
                        <shadow type="math_number" id="l4-eNRKH1):IfhG]L=^~">
                          <field name="NUM">1</field>
                        </shadow>
                      </value>
                    </block>
                    <block type="logic_compare" id=")}*?9(1S6[4`:;eJ*M6p" disabled="true" x="1638" y="388">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="math_arithmetic" id="[]I{X0W[K]h-ynSA[@RY">
                          <field name="OP">ADD</field>
                          <value name="A">
                            <shadow type="math_number" id="Iu2;S56Mp.(|Z[O{_xSF">
                              <field name="NUM">1</field>
                            </shadow>
                            <block type="get_value" id="0Xw^.hWjN%?i9[fOb?V~">
                              <field name="ATTR">val</field>
                              <field name="OID">harmony.0.Harmony_Hub.activities.Fernsehen_TV</field>
                            </block>
                          </value>
                          <value name="B">
                            <shadow type="math_number" id="l4-eNRKH1):IfhG]L=^~">
                              <field name="NUM">1</field>
                            </shadow>
                            <block type="get_value" id="in5#-rnF7LprK])VYQ.m">
                              <field name="ATTR">val</field>
                              <field name="OID">harmony.0.Harmony_Hub.activities.Fire_TV</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="k=KJbG4zu)iq?%GRTe2l">
                          <field name="NUM">0</field>
                        </block>
                      </value>
                    </block>
                    <block type="comment" id="!Iz=w_yLn8#-rUmR4*C;" x="1738" y="1063">
                      <field name="COMMENT">Licht Pause an</field>
                      <next>
                        <block type="controls_if" id="DX2v$i[%LU!+6`p*6N,z" disabled="true">
                          <value name="IF0">
                            <block type="logic_operation" id="?P~{pene}d(YM+M/gJaR" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_compare" id="E.7,(H,~@;!P+_Xm_TM*">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="laU?n=!T)mlv/,s){hI{">
                                      <field name="ATTR">val</field>
                                      <field name="OID">hue.0.hgrp-0000000112.on</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="B4l;:Y8as~^GQ|_7;hfI">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_compare" id="pzN6yBVqK`-WDT+!Zy;#">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="FeaAqtGk3-jBxT*C5~GM">
                                      <field name="ATTR">val</field>
                                      <field name="OID">hue.0.hgrp-0000024576.on</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="KKpR}i1PsQ?J=t:C$ov;">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="U^KyX@bu^dy0Ex*l1]oH">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">hue.0.hgrp-0000000112.command</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="text" id="ksRYy)D[w7t=H!2U*(.o">
                                  <field name="TEXT">{"on":false,"transitiontime":100}</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="VAT2,E6qBqWmXhCqudS(">
                                  <mutation delay_input="false"></mutation>
                                  <field name="OID">hue.0.hgrp-0000024576.command</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="text" id="TgR?8Co^g5O?M?;(TrJP">
                                      <field name="TEXT">{"on":false,"transitiontime":100}</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="debug" id="VmHHy`4Rz(S!39muMiVo">
                                      <field name="Severity">log</field>
                                      <value name="TEXT">
                                        <shadow type="text" id="c0NNb0Djub@Sv,HoGwMN">
                                          <field name="TEXT">pause wurde gedrück und Licht geht an</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </xml>
                  

                  Ich habe es mal importiert und kurz drüber geschaut. (ist noch ganz schon "durcheinander und unübersichtlich")
                  Da lässt sich noch einiges kürzen. Aber nun muss ich leider sagen, das ich von dem Fake Roku Dingens zwar schon gelesen habe, aber bisher nicht verwendet habe. Das macht es dann für mich schwer zu helfen bzw. nach zu vollziehen.

                  1 Reply Last reply Reply Quote 0
                  • C
                    chris077 last edited by

                    Guten morgen,

                    @dslraser danke dir erstmal fürs drüber gucken und Bemühung.

                    Was könnte ich deiner Meinung nach tun um es besser hin zu bekommen? Da dies mein erstes Blockly ist und ich nicht viel Ahnung davon habe, fällt es mir schwer.

                    Mit der Fernbedienung und Fakeroku habe ich gemacht da die Tasten sonst nicht funktionieren. Gibt es da eine andere Lösung für? Wie hast du das mit der Fernbedienung umgesetzt.

                    LG Christian

                    1 Reply Last reply Reply Quote 0
                    • C
                      chris077 last edited by

                      Ich wollte ja gerne noch die Astro Funktion einbauen und stelle gerade fest das ich bei den Instanzen in den Adaptereinstellungen vom admin.0 keine Einstellungen machen kann. Kann mir vielleicht jemand sagen woran das liegt?

                      Screenshot (10).png

                      BBTown 1 Reply Last reply Reply Quote 0
                      • BBTown
                        BBTown @chris077 last edited by

                        @chris077
                        Du guckst an der falschen Stelle ...
                        Astro-Standort.gif

                        1 Reply Last reply Reply Quote 0
                        • C
                          chris077 last edited by

                          @BBTown upps 🙂 da habe ich gar nicht dran gedacht Danke

                          1 Reply Last reply Reply Quote 0
                          • D
                            dos1973 last edited by

                            Hallo zusammen,

                            ich hänge mich mal hier dran.
                            Ich habe auch eine Harmony, aber mich nerven die X-Doppelten Aktionen, also TV / TV+Beamer, Bluray/ Bluray+Beamer etc.
                            Ich habe dadurch x Szenen und es ist schon passiert, dass Frau/ Kinder unachtsam eine Beamer Aktion gestartet haben... und dann beginnt die "Transformation" des Wohnzimmers 😉

                            da mein TV genau wie meine Leinwand nur Display ist, lösche ich jetzt alle Beamer Aktivitäten und führe den Beamer als "Zusatz" für die eigentliche Activity.

                            So schaut es aus und funktioniert.
                            Bildschirmfoto 2019-11-30 um 23.43.49.png

                            Ich habe einen DP, den ich derzeit via VIS aktiviere/ Deaktiviere und damit dass Kino ein/ ausschalte.

                            ein paar Fragen habe ich.

                            • ich setze alle Befehle einfach ab, ohne vorher abzufragen.
                              Ist das OK?

                            Die Rolladen, sollen am Tag wieder hochgefahren werden, ich nutze dafür die DP des Shutter Controls. Ich würde aber die Range gerne 30min vorziehen. Möchte vermeiden, wenn die Rollos sowieso in 30min runtergehen, die dann nocheinmal hochzufahren.

                            • ich finde aber keine Möglichkeit hier ein (-30min) vor dem Block einzugeben

                            Bildschirmfoto 2019-11-30 um 23.52.48.png

                            Ich nutze Hue Szenen, für das Licht

                            • kann ich eine vorgefertigte Szene (Raum) mit "Transition" starten
                              Meine Versuche klappen da nicht, hätte jemand ggfs ein Beispiel. Die vorherigen Beispiele beziehen sich immer auf eine Lampe.

                            Danke

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

                              @dos1973 sagte in Kino Steuerung mit Blockly und Harmony:

                              Hallo zusammen,

                              ich hänge mich mal hier dran.
                              Ich habe auch eine Harmony, aber mich nerven die X-Doppelten Aktionen, also TV / TV+Beamer, Bluray/ Bluray+Beamer etc.
                              Ich habe dadurch x Szenen und es ist schon passiert, dass Frau/ Kinder unachtsam eine Beamer Aktion gestartet haben... und dann beginnt die "Transformation" des Wohnzimmers 😉

                              da mein TV genau wie meine Leinwand nur Display ist, lösche ich jetzt alle Beamer Aktivitäten und führe den Beamer als "Zusatz" für die eigentliche Activity.

                              So schaut es aus und funktioniert.
                              Bildschirmfoto 2019-11-30 um 23.43.49.png

                              Ich habe einen DP, den ich derzeit via VIS aktiviere/ Deaktiviere und damit dass Kino ein/ ausschalte.

                              ein paar Fragen habe ich.

                              • ich setze alle Befehle einfach ab, ohne vorher abzufragen.
                                Ist das OK?

                              Die Rolladen, sollen am Tag wieder hochgefahren werden, ich nutze dafür die DP des Shutter Controls. Ich würde aber die Range gerne 30min vorziehen. Möchte vermeiden, wenn die Rollos sowieso in 30min runtergehen, die dann nocheinmal hochzufahren.

                              • ich finde aber keine Möglichkeit hier ein (-30min) vor dem Block einzugeben

                              Bildschirmfoto 2019-11-30 um 23.52.48.png

                              Ich nutze Hue Szenen, für das Licht

                              • kann ich eine vorgefertigte Szene (Raum) mit "Transition" starten
                                Meine Versuche klappen da nicht, hätte jemand ggfs ein Beispiel. Die vorherigen Beispiele beziehen sich immer auf eine Lampe.

                              Danke

                              Du kannst doch alle Deine Geräte prüfen ob sie vielleicht schon an oder eben aus sind und nur das schalten was benötigt wird.

                              Transitiontime geht auch für mehrere Lampen, oder eben für den ganzen Raum, wenn Du z.B. in der HUE App einen Raum erstellt hast und dort alle Lampen drinn sind, aber ich glaube nicht als Szene.

                              Hier z.B. mein Wohnzimmer, dort geht jede Lame einzeln, oder eben den ganzen Raum alle Lampen gleichzeitig.

                              Screenshot_20191201-003745_Hue.jpg

                              Ich habe jede Lampe (manchmal sogar einzelne Birnen einer Lampe) einzeln, oder eben den Raum dazu erstellt.

                              Screenshot_20191201-004016_Chrome.jpg

                              1 Reply Last reply Reply Quote 0
                              • D
                                dos1973 last edited by

                                Ja, ich habe in einem Raum eine Szene mit ausgewählten lampen.

                                Das Einschalten klappt, Zack an!

                                aber ich würde gerne diese Szene langsam hochdimmen bis der Szenen Helligkeit Level 40% erreicht ist.

                                Alles andere einzeln Lampen steuern ist klar...

                                1 Reply Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators last edited by

                                  Den thread habt ihr schon gefunden?

                                  https://forum.iobroker.net/topic/19364/kinoskript-in-blocky-aber-wie/10

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    dos1973 @Homoran last edited by

                                    @Homoran
                                    da steht ja auch nicht mehr drin als hier...

                                    meine Frage war ob sich fertige Szenen mit TransitionTime ausführen lassen.
                                    einzelne Lampen funktioniert, aber eine Gruppe/ Raum möchte ich.

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

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    990
                                    Online

                                    31.9k
                                    Users

                                    80.3k
                                    Topics

                                    1.3m
                                    Posts

                                    8
                                    45
                                    3245
                                    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