NEWS
Aqara Cube mit 26 Funktionen -
-
Habe mal die befohlen ruhige Zeit genutzt und mich mit der Cube von Aqara etwas länger beschäftigt. Rausgekommen ist eine Fernbedienung für den Fernseher was noch etwas mehr kann. Die Scripte sortieren die Seiten der Würfel und speichern zwischen und lösen Beliebige Befehle auf.
ich habe die Seiten mit 40 x 40 mm Klebern beschriftet, die Anmerkung meiner Frau das verstehen zu wollen auch angenommen.anbei die Codes:
Cube fallen lassen (von einer Hand auf die andere)
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="on" id="nL73|VCYPH_}r4Fqs|`/" x="213" y="113"> <field name="OID">zigbee.0.00158d0005483f0d.fall</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="LhyJpbm-dAbRUj:rNQ?H"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub.activities.Fernsehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="aJVhLDSCGT4Gf!nSqz7E"> <field name="NUM">2</field> </block> </value> </block> </statement> </block> </xml>
Shaken (Würfel in die Hand und schütteln):
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="create" id="h~Y.M4=l9[F}Y}u!~1-J" x="262" y="-1013"> <field name="NAME">javascript.0.cube.event swing</field> <value name="VALUE"> <block type="logic_boolean" id="q{fAMUo~}}z4Gr]iQhKY"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="on" id="vk6`K/WE;c:kteYGYuR,"> <field name="OID">zigbee.0.00158d0005483f0d.shake</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="update" id="+z8)2]qlfEPq?_HT[;`6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.event swing</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="c2(BvUk}1Q0?GAES`^-8"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="update" id="?/(p$(#C|!%+7|*L^{fV"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.cube.event swing</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="x(z[6%]_0TNGZVMSC(#l"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> <block type="on" id="O*,dn!{[2-8%b8SbPG:V" x="262" y="-612"> <field name="OID">javascript.0.cube.event swing</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="-~3p$!=FNhZHI9bEg.[+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).Source</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="fLE~%ePsxB058$y9{]zQ"> <field name="NUM">1</field> </block> </value> </block> </statement> </block> </xml>
Auf den Tisch legen und nach links drehen (vorher muss eine Kippbewegung erfolgen!)
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="create" id="t.t9ia3BBk,U/l[|R9N(" x="263" y="-1013"> <field name="NAME">javascript.0.cube.event nach links drehen</field> <value name="VALUE"> <block type="logic_boolean" id="[Mf=8CYE/7zJ2l2Qa`%R"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="on" id="vk6`K/WE;c:kteYGYuR,"> <field name="OID">zigbee.0.00158d0005483f0d.rotate_left</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="update" id="+z8)2]qlfEPq?_HT[;`6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.event nach links drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="c2(BvUk}1Q0?GAES`^-8"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="update" id="?/(p$(#C|!%+7|*L^{fV"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.cube.event nach links drehen</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">500</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="x(z[6%]_0TNGZVMSC(#l"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> <block type="comment" id="PE7Na{yK;jzZezB^UaS!" x="288" y="-562"> <field name="COMMENT">nach links drehen</field> <next> <block type="on_ext" id="PL4EP`az*P}cG94snIq8"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid"> <field name="oid">mihome.0.devices.cube_158d0002486a98.tap_twice</field> </shadow> <block type="field_oid" id="))ct#uc{D0{bt?Ja{AT:"> <field name="oid">javascript.0.cube.event nach links drehen</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id="~$iPc}R~f?7-PwyA+o.T"> <mutation elseif="5"></mutation> <value name="IF0"> <block type="logic_compare" id="_-oHx5.HkwQWk4wcnu]@"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Tqh6v}:dFCHT)(a~2Bg#"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.flip90_to</field> </block> </value> <value name="B"> <block type="math_number" id="!+zx_HxQ[Piv^_skoR@n"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="A.O##vECF]K;Pq-zDKu{"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.nach links drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="GO;#zHRC#=vAHoKhCpJ="> <field name="NUM">6</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="(9?OR:*4W6SnMgFfkgiL"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="AE7N3=s[Ac(GNVWD%g.W"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.flip90_to</field> </block> </value> <value name="B"> <block type="math_number" id="k1y[iu[*|H##5kanWn*e"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO1"> <block type="update" id="n4uy|y3C6l__`~Z*zLwq"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.nach links drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="dA0H*j_s77Qi|AG854?o"> <field name="NUM">3</field> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_compare" id="h|v-qB`obX0ag@uu$0-_"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="b~2F=JAcERWR2PUNbKh]"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.flip90_to</field> </block> </value> <value name="B"> <block type="math_number" id="N)tZWe(uB,pz6t:kU^tk"> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO2"> <block type="update" id="iogtlP],B3fX3E);|JEb"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.nach links drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="qzk0fWX?6x3,=f/;.oD2"> <field name="NUM">2</field> </block> </value> </block> </statement> <value name="IF3"> <block type="logic_compare" id="D3pnlco1b2]dEr9DAql-"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="6I+}4Z1hGB]1b.}sy@h^"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.flip90_to</field> </block> </value> <value name="B"> <block type="math_number" id="zt[Frs_c/LQ(mJi{|n0X"> <field name="NUM">3</field> </block> </value> </block> </value> <statement name="DO3"> <block type="update" id="y.eP3r(D8hoO!)8Ov8BK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.nach links drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id=":R!@n;LDb~18)0%147@."> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF4"> <block type="logic_compare" id="L386XJtvYYXWEmG.aZ[s"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="[IG81.2V-h!GRzMBE|Lg"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.flip90_to</field> </block> </value> <value name="B"> <block type="math_number" id=":jt9WF#hXQO9[z:Vu%Z%"> <field name="NUM">4</field> </block> </value> </block> </value> <statement name="DO4"> <block type="update" id="YA~_|y)ALDpPiYE##WKw"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.nach links drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="mCvj5Cl3J^pj.*A?REoL"> <field name="NUM">4</field> </block> </value> </block> </statement> <value name="IF5"> <block type="logic_compare" id="p1.jk!sU5jEc^k^8T%x7"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="RS-Y*S,]5j|f~Pt3$0Ek"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.flip90_to</field> </block> </value> <value name="B"> <block type="math_number" id="+_SHqYCY`j|SX,O3@`nU"> <field name="NUM">5</field> </block> </value> </block> </value> <statement name="DO5"> <block type="update" id="0RlGspf^*k8ZL.]F%T)4"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.nach links drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="NA#pL;CF?l=#/N)wj%KI"> <field name="NUM">5</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> <block type="create" id="ZUFrrSQ@H=7C4QdX=d9R" x="288" y="163"> <field name="NAME">javascript.0.cube.nach links drehen</field> <value name="VALUE"> <block type="math_number" id="xEm1saoQ6==6:-ezdw_l"> <field name="NUM">0</field> </block> </value> <next> <block type="on_ext" id="b|LMFkSBo,R]*?+9,6VO"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="Z{G+oAdPX]u5#^~fO:HO"> <field name="oid">javascript.0.cube.nach links drehen</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="/R;UYgsm/Wh-`bx_pK{y"> <mutation elseif="5"></mutation> <value name="IF0"> <block type="logic_compare" id="hR]A?jVyDJ2GY%6~T~kj"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="JU7tb47`u:n!z*:,P}Ix"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.nach links drehen</field> </block> </value> <value name="B"> <block type="math_number" id="9hjsn@^`iqe!/_;NuS9B"> <field name="NUM">6</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="_2kJI2bh$A-4S}RV$;DF"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).VolumeDown</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="]35I`ASws,@[At..Uqqk"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="3@@2Jj:dHKffHmaB6[li"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="c+Nt!rxV/XR!}}Ud=(pR"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.nach links drehen</field> </block> </value> <value name="B"> <block type="math_number" id="/mfA?5(G@5=kX#RFQ9aP"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="Sn(LE9T|43|l~;{OWQn;"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.3a6b0f3e-4e41-48e3-84f3-7bc7547137d2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="@6CNcmCdQzqgf]8t^{%r"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="tmRX4JhtWDkgE`lmw%R["> <field name="NUM">1</field> </shadow> <block type="get_value" id="t/Y)Y;Ode#2t%yPma7:l"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Fernsehlicht02.Dimmer</field> </block> </value> <value name="B"> <shadow type="math_number" id="B1%i%oq2u|}ap8@v^+Lz"> <field name="NUM">15</field> </shadow> </value> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_compare" id="4h!PiIP#?ynKE[QZG(+a"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="GIY8zA]yK0d]omn]AMXF"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.nach links drehen</field> </block> </value> <value name="B"> <block type="math_number" id="r-:4!_K#GvN=oAikn{WK"> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO2"> <block type="control" id="@%KOjcfQ5]*f+4hBx|]@"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).DirectionLeft</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Q,Wf%6p:06lH]4aF[g^#"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF3"> <block type="logic_compare" id="~*N5?|q3B$9!v-4]Um{Z"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="{Mx/CAn#)O-^Ku@payA$"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.nach links drehen</field> </block> </value> <value name="B"> <block type="math_number" id="~6JWlPn!kj51v;M=1stk"> <field name="NUM">3</field> </block> </value> </block> </value> <statement name="DO3"> <block type="control" id="vwM%2v{-n[`3y|Nv7S1A"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G2A0QU06837604LQ.Commands.speak-volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="dVtmu5Y.PV,IN#c@yI);"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="get_value" id="L?k{PFk1lqAG,F[i9(Xq"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Echo-Devices.G2A0QU06837604LQ.Commands.speak-volume</field> </block> </value> <value name="B"> <shadow type="math_number" id="b52`};V9y#eH?cFgzkn|"> <field name="NUM">10</field> </shadow> </value> </block> </value> <next> <block type="control" id="Gh$~G)=(z~tB5%NEtx~1"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.6eea597ff3284c4397f6446a42607e04.Commands.speak-volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="P{}`Gmzoa%{lAV?*`3IL"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="get_value" id="JKZXM2~377Y6lnlQ!Ix5"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Echo-Devices.G2A0QU06837604LQ.Commands.speak-volume</field> </block> </value> <value name="B"> <shadow type="math_number" id="b;$]3S9g4i(ZNrmyXxwM"> <field name="NUM">10</field> </shadow> </value> </block> </value> </block> </next> </block> </statement> <value name="IF4"> <block type="logic_compare" id="_NI=8r$tu9V]RTR-[C2o"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="09x*Y0vJWt)+*f}x8`UE"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.nach links drehen</field> </block> </value> <value name="B"> <block type="math_number" id="4/z-ujWbTn#EeO[-w(::"> <field name="NUM">4</field> </block> </value> </block> </value> <statement name="DO4"> <block type="control" id="@`S:B}-,1v_?RMzW51_?"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).DirectionDown</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="?/T?UeKbT*AV/a9mc)nd"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF5"> <block type="logic_compare" id="8ww;8dHVXnF%6RZ87_[?"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="B#0lGhtxJ*f{jBgPV(,;"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.nach links drehen</field> </block> </value> <value name="B"> <block type="math_number" id="d)0.9J,--yP_xbLdg:vl"> <field name="NUM">5</field> </block> </value> </block> </value> <statement name="DO5"> <block type="control" id="gX@9Zmc0Tgpd]`?zc,mK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).Rewind</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="#4o~~(BhX}-wb@Jpwgwv"> <field name="NUM">1</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </xml>
nach rechts drehen (Kippbewegung nicht vergessen!)
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="create" id="U]3}gC.#c#b0Z6z%MLRM" x="1088" y="-1037"> <field name="NAME">javascript.0.cube.event nach rechts drehen</field> <value name="VALUE"> <block type="logic_boolean" id="1DePMr,J0cvXA9gF|Jq%"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="on" id="LYa|YSXO5~{u5qAE[Vd+"> <field name="OID">zigbee.0.00158d0005483f0d.rotate_right</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="update" id="1?;[HwCN4.nD~X$~$C$c"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.event nach rechts drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="v,%i=;2aKE#UHSKIiGY^"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="update" id="Fb=IKMgidrY`X}4.w,Tk"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.cube.event nach rechts drehen</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">500</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="*-2C^:_ab^OamL}wtt%c"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> <block type="comment" id="+m?o40QuaQdS@?,k=Ip!" x="1087" y="-663"> <field name="COMMENT">nach rechts drehen</field> <next> <block type="on_ext" id="I7{|@-?amC3^DVBGw;B7"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid"> <field name="oid">mihome.0.devices.cube_158d0002486a98.tap_twice</field> </shadow> <block type="field_oid" id="a9B6G8crxO?vOXJ$t:,u"> <field name="oid">javascript.0.cube.event nach rechts drehen</field> </block> </value> <statement name="STATEMENT"> <block type="controls_if" id="5c7;FVSi6{$s/_/O,)mp"> <mutation elseif="5"></mutation> <value name="IF0"> <block type="logic_compare" id="YXY@PgT$R!v_78F2(^$T"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="c_3]$p6?=6Og!WcB#z0@"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.flip90_to</field> </block> </value> <value name="B"> <block type="math_number" id="Y.:]KOHd0.NLcVWA|/cG"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="A.O##vECF]K;Pq-zDKu{"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.nach rechts drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="GO;#zHRC#=vAHoKhCpJ="> <field name="NUM">6</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="74}k(ZurVZ2)RNE#WT|Z"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="52VeZ)vBM#Hj1G`X)S~m"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.flip90_to</field> </block> </value> <value name="B"> <block type="math_number" id="InK1K+.!L9ik1fBS|$O|"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO1"> <block type="update" id="}c[BC12g/*{%]95-Tj+j"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.nach rechts drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="93D~W?j@@tq2:{mhY!$T"> <field name="NUM">3</field> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_compare" id="7kCiVq7gal}(lW:3LYS."> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="W--=qB`|VB.w1YB}bAvr"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.flip90_to</field> </block> </value> <value name="B"> <block type="math_number" id="*FpFZE=R}:Ij/U)rZ$X1"> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO2"> <block type="update" id="a?n55@zqrW8JkP%;V!s%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.nach rechts drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="vyQu.HGNQ~@H)Km:g1)A"> <field name="NUM">2</field> </block> </value> </block> </statement> <value name="IF3"> <block type="logic_compare" id="zuGt!X?$;r+f/{(@)m21"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="sI%v(a]);ORp,0V=YI!C"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.flip90_to</field> </block> </value> <value name="B"> <block type="math_number" id="A4M,EJL6$fHraM-U6$;:"> <field name="NUM">3</field> </block> </value> </block> </value> <statement name="DO3"> <block type="update" id="KLEkxJT1:kq]U=Chz[Wn"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.nach rechts drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="]h;If0*uz8M7hhnN|(EB"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF4"> <block type="logic_compare" id="ic*bUqM(}WD]-(7({4D`"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="f9Xq^2J/m/dzHqVr~f$Q"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.flip90_to</field> </block> </value> <value name="B"> <block type="math_number" id="yu3@wd}(au|EJ_0k#l$R"> <field name="NUM">4</field> </block> </value> </block> </value> <statement name="DO4"> <block type="update" id="?r6Ta#pl?}iPgQ|(%lnT"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.nach rechts drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="W}cH3M=Npp!m4,8:sGeT"> <field name="NUM">4</field> </block> </value> </block> </statement> <value name="IF5"> <block type="logic_compare" id="aatCz9wmD-;*lp3]L6lR"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="6KfmLS)d:nL4$m84/BQ="> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.flip90_to</field> </block> </value> <value name="B"> <block type="math_number" id="aFxHnR}BTP;[~0O#yuL_"> <field name="NUM">5</field> </block> </value> </block> </value> <statement name="DO5"> <block type="update" id=";h@3-A8E)g2MP$QE-ROA"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.nach rechts drehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="{ZMK$SL,/3_^^OL(8YlV"> <field name="NUM">5</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> <block type="create" id="ZUFrrSQ@H=7C4QdX=d9R" x="1088" y="63"> <field name="NAME">javascript.0.cube.nach rechts drehen</field> <value name="VALUE"> <block type="math_number" id="xEm1saoQ6==6:-ezdw_l"> <field name="NUM">1</field> </block> </value> <next> <block type="on_ext" id="b|LMFkSBo,R]*?+9,6VO"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="Z{G+oAdPX]u5#^~fO:HO"> <field name="oid">javascript.0.cube.nach rechts drehen</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="/R;UYgsm/Wh-`bx_pK{y"> <mutation elseif="5"></mutation> <value name="IF0"> <block type="logic_compare" id="hR]A?jVyDJ2GY%6~T~kj"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="JU7tb47`u:n!z*:,P}Ix"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.nach rechts drehen</field> </block> </value> <value name="B"> <block type="math_number" id="9hjsn@^`iqe!/_;NuS9B"> <field name="NUM">6</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="v_GY`x6X5BC;+[a28c#?"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).VolumeUp</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="R^PRk$MF[X=WOBx.wo|S"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="Q9!q$1nYCq1Fy:;dVh{2"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="J@66{b[J}!:L~}#c;@=~"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.nach rechts drehen</field> </block> </value> <value name="B"> <block type="math_number" id="U-[R+A%;J])6jJ9Qp9(/"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="Sn(LE9T|43|l~;{OWQn;"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.3a6b0f3e-4e41-48e3-84f3-7bc7547137d2.brightness</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="@6CNcmCdQzqgf]8t^{%r"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="tmRX4JhtWDkgE`lmw%R["> <field name="NUM">1</field> </shadow> <block type="get_value" id="t/Y)Y;Ode#2t%yPma7:l"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Fernsehlicht01.Dimmer</field> </block> </value> <value name="B"> <shadow type="math_number" id="B1%i%oq2u|}ap8@v^+Lz"> <field name="NUM">15</field> </shadow> </value> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_compare" id="6E;S{)/dC7crUg(rN^c$"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Nv@Q_ZWy/~o,(In`Y;~v"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.nach rechts drehen</field> </block> </value> <value name="B"> <block type="math_number" id="1VHu|eEW/p2~i-OABq-:"> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO2"> <block type="control" id="b84Ze~,8PnUirLc)?aBQ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).DirectionRight</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="]I6R5q):bv+yvI8MYlq("> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF3"> <block type="logic_compare" id="Z#^u|5)K1bd1lX6f*3$a"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="mVcWt5STH3^ZU$7adqwB"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.nach rechts drehen</field> </block> </value> <value name="B"> <block type="math_number" id="7K{E64(eYMEYE/l)l()t"> <field name="NUM">3</field> </block> </value> </block> </value> <statement name="DO3"> <block type="control" id="vwM%2v{-n[`3y|Nv7S1A"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G2A0QU06837604LQ.Commands.speak-volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="dVtmu5Y.PV,IN#c@yI);"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="get_value" id="L?k{PFk1lqAG,F[i9(Xq"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Echo-Devices.G2A0QU06837604LQ.Commands.speak-volume</field> </block> </value> <value name="B"> <shadow type="math_number" id="b52`};V9y#eH?cFgzkn|"> <field name="NUM">10</field> </shadow> </value> </block> </value> </block> </statement> <value name="IF4"> <block type="logic_compare" id="n,^^2ycXl/=TB}D~3(S~"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="fY?{nJwa~?9a%sKH7:(D"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.nach rechts drehen</field> </block> </value> <value name="B"> <block type="math_number" id="0N=N%o:Da-=VvgpUZg(t"> <field name="NUM">4</field> </block> </value> </block> </value> <statement name="DO4"> <block type="control" id="H!NQKYDyM72IfHulxa5W"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).DirectionUp</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="tz.cQrUNBZ(DlP3OB|:e"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF5"> <block type="logic_compare" id="hMd+%9|D6i6MkiMgy#VY"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="YzxLNDGryQTr!B9vFVjd"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.nach rechts drehen</field> </block> </value> <value name="B"> <block type="math_number" id="nY)[~13h.$b59w?!$;nA"> <field name="NUM">5</field> </block> </value> </block> </value> <statement name="DO5"> <block type="control" id="?Azgq_r~2fvf]u+m^C5|"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).FastForward</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="(ky4X*RSMFJg`~Q.Cjut"> <field name="NUM">1</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </xml>
auf den Tisch schlagen:
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="create" id="tP2}|HYPYa`Z8iZS:X4J" x="-412" y="-1012"> <field name="NAME">javascript.0.cube.event aufschlagen</field> <value name="VALUE"> <block type="logic_boolean" id="j-FN.Tc?3)/W~Q0U])hj"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="on" id="xm0RQ$YNYALOjdQsqGYY"> <field name="OID">zigbee.0.00158d0005483f0d.tap</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="a!4QWZA}H?6)jk^mJ)~{"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.event aufschlagen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=".-1`)QmetQKv2S_L1gM."> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="CUImZ14$3f#nKGO[vap%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.cube.event aufschlagen</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="#Q/}HJ-ek)b|QDfDU)EH"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> <block type="comment" id=".5:*v?vl#6?]o=}tIpTt" x="-430" y="-569"> <field name="COMMENT">aufschlagen</field> <next> <block type="on_ext" id="#dU%bHFVm/~[XFv;e5M5"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="luObs(yNi=oW98s~lUkF"> <field name="oid">mihome.0.devices.cube_158d0002486a98.tap_twice</field> </shadow> <block type="field_oid" id="3u[W/+y^{q%%^),T7$P`"> <field name="oid">javascript.0.cube.event aufschlagen</field> </block> </value> <statement name="STATEMENT"> <block type="comment" id="i#/{!y%;}[ra*El]aW)3"> <field name="COMMENT">Flächen Sortieren</field> <next> <block type="timeouts_wait" id="vqPOKdmerE^~I_Rq0|V,"> <field name="DELAY">300</field> <field name="UNIT">ms</field> <next> <block type="controls_if" id="}ALdaBPzO6d9(C?*%@},"> <mutation elseif="5"></mutation> <value name="IF0"> <block type="logic_compare" id="-#v;URerTX7p@Q@,e*ta"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="g/^S)p6I]O2MBscEge=E"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.tap_side</field> </block> </value> <value name="B"> <block type="math_number" id="h=wg6LwT5[#K:GOnwA~f"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="U?P@7bIWchgz$2c}Q(5}"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.aufschlagen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="{Js~J+Wcc(x{2[Ddl_Mp"> <field name="NUM">6</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="z7ud:tz(CJADoN/n}ZFr"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="?r8!Dq.(nzGG6B8mF0W7"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.tap_side</field> </block> </value> <value name="B"> <block type="math_number" id="*%]G=0v=%i?ZG7gFl/1k"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO1"> <block type="update" id="!77f@=SI}a@-Ih%XCbf?"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.aufschlagen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="G/0XseXpsh{vZ+K6A#m^"> <field name="NUM">3</field> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_compare" id="/?iUi{53q_RQYooKrV}F"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="zQ!/x~Tir[*0Atw~32uh"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.tap_side</field> </block> </value> <value name="B"> <block type="math_number" id="l/+E}b$yzxbx_T$f.N.j"> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO2"> <block type="update" id="O]gh-A?REp|;U,b7`6kM"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.aufschlagen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="^`N5IDbF/bVAY)cA@bcJ"> <field name="NUM">2</field> </block> </value> </block> </statement> <value name="IF3"> <block type="logic_compare" id="NTaOLZ),}v.SUEj|z`}{"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="$@[+3G5?9(I}u.b2r-r*"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.tap_side</field> </block> </value> <value name="B"> <block type="math_number" id="fja70xN)l9#RaUz;EuB{"> <field name="NUM">3</field> </block> </value> </block> </value> <statement name="DO3"> <block type="update" id="1cZ.LT97sL[~K2mzE?{y"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.aufschlagen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="IG5r*M?;UER$%k$hk!y."> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF4"> <block type="logic_compare" id="CD*!pth53dwq_KwL*0?R"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="UbMe:6O3{kqxX@Dhl(2a"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.tap_side</field> </block> </value> <value name="B"> <block type="math_number" id="wvA=q]Br#OE%4YPIIm0Q"> <field name="NUM">4</field> </block> </value> </block> </value> <statement name="DO4"> <block type="update" id="Okm]#-$]1v`%jjlw7lX3"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.aufschlagen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="+PQ{`y6L[@T+ye(,AC.b"> <field name="NUM">4</field> </block> </value> </block> </statement> <value name="IF5"> <block type="logic_compare" id="o5}H*O@lp[C1Xi`@Om0b"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="I{@U{oV#9s4|{u.LQ=h4"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.tap_side</field> </block> </value> <value name="B"> <block type="math_number" id="?RHe,,Bw#s.[7zyB]4X,"> <field name="NUM">5</field> </block> </value> </block> </value> <statement name="DO5"> <block type="update" id="z#VlO4`_]$Um]f!_uiav"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.aufschlagen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="lnn`953326NRSNn!YE`8"> <field name="NUM">5</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> <block type="create" id="R]+|IK%?vXpnbyD}Q=x*" x="-462" y="138"> <field name="NAME">javascript.0.cube.aufschlagen</field> <value name="VALUE"> <block type="math_number" id="fGJavW5,%CER}6,F;[uL"> <field name="NUM">1</field> </block> </value> <next> <block type="on_ext" id=",:zKsADH3W{h?[FBcQiO"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="*OlX.$*{$TsqiU)Y;Nv."> <field name="oid">javascript.0.cube.aufschlagen</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="jP%w+-`3o$0#G3f@c:vZ"> <mutation elseif="5"></mutation> <value name="IF0"> <block type="logic_compare" id="|*n0):i?wbcPrUKHQ1*Z"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="K]N[d@(5K+|`s*rVac[4"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.aufschlagen</field> </block> </value> <value name="B"> <block type="math_number" id="Cq$y7W;6dp23H@cABL`P"> <field name="NUM">6</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="rX]AG@ZQ!N}`kb.91gsY"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub.activities.Fernsehen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id=")-[[:EqR-m0Ls_}t,)C$"> <field name="NUM">0</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="l_,AsuL+%P{JM0|/j{{8"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="`A11nYyx,3Y705n=%!g8"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.aufschlagen</field> </block> </value> <value name="B"> <block type="math_number" id="Bo=9}PWQa#+h2le}Dv-r"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="v[`8Z=02Fej)fn`BJGgV"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.WZ_01.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Dqzz#;dF%v8,(1hb?(at"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_compare" id="Ukt^*4r#7w;K7{)}oxEc"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="2.a1m3~ix%=n44B5oG|Z"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.aufschlagen</field> </block> </value> <value name="B"> <block type="math_number" id=".XZs=OdX1u3Dh8oon{/b"> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO2"> <block type="control" id="LB0=TJ(BE7Mf96+:iMN%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).Return</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="#Y1$z60##Qu5njK_=p%X"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF3"> <block type="logic_compare" id="`5$cz(AD}4kI}K|9$QC;"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="5FuNt!$KQka*ZG#OD39:"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.aufschlagen</field> </block> </value> <value name="B"> <block type="math_number" id="Zj-B::9=@DTL-*4q%,j%"> <field name="NUM">3</field> </block> </value> </block> </value> <statement name="DO3"> <block type="control" id="h|R+HY!IuB}B:C`5@5$c"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G2A0QU06837604LQ.Player.controlPause</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="e@5+5bA8IlrgVx((/22b"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <value name="IF4"> <block type="logic_compare" id="Q%Zfk.R0y`:ZHI:xwLn2"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ij}nxjR~!E~pxA|g+icx"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.aufschlagen</field> </block> </value> <value name="B"> <block type="math_number" id="]t,V^]n]zhG1$kse?oR4"> <field name="NUM">4</field> </block> </value> </block> </value> <statement name="DO4"> <block type="control" id="(}7er:gG!3]=eP;Fav,("> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).Select</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="c|43%%zE=6IJWsRtBQ7V"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF5"> <block type="logic_compare" id="55Tn0:QCdY-|Ss}f,6vO"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="j{f31;l=[uC!jQ=P[6x?"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.aufschlagen</field> </block> </value> <value name="B"> <block type="math_number" id=",*D=68C!73}vZ|Y*nq72"> <field name="NUM">5</field> </block> </value> </block> </value> <statement name="DO5"> <block type="control" id="y060HT=xa2P+=*m/D$EC"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).Stop</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="#blhgGKsQ.WgSj=I@+P*"> <field name="NUM">1</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </xml>
auf dem Tisch wischen:
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="create" id="A%({=#Wze}Wzzp|aYZeZ" x="2013" y="-937"> <field name="NAME">javascript.0.cube.event wischen</field> <value name="VALUE"> <block type="logic_boolean" id="V)LeYUN_}kIbPHkvZ{:)"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="on" id="Y(%hHD}mWLF8+tT(-x:W"> <field name="OID">zigbee.0.00158d0005483f0d.slide</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="update" id="mz`-|QSUrN,vOXfq9joi"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.event wischen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="cpoHh/5?_@?RF3INBS#f"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="update" id="6YeT[bTG.$6[eYv3j!*["> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.cube.event wischen</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1500</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="k@tSd?-u~j~}]duU8ELk"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </next> </block> <block type="on_ext" id="l1:.8;l--{5h[qZtSuCr" x="2013" y="-487"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid"> <field name="oid">mihome.0.devices.cube_158d0002486a98.tap_twice</field> </shadow> <block type="field_oid" id=":7+R*0QO+kYFGO?U+.6m"> <field name="oid">javascript.0.cube.event wischen</field> </block> </value> <statement name="STATEMENT"> <block type="comment" id="QW940R8)#G!FKcJNIi(r"> <field name="COMMENT">Flächen sortieren</field> <next> <block type="controls_if" id="yoa73K*LhBeP0}K)+fgd"> <mutation elseif="5"></mutation> <value name="IF0"> <block type="logic_compare" id="^g9vDOg7:}:z)I}]Kl?F"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="2zv.Xpzj|f?jzdA*)8yX"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.slide_side</field> </block> </value> <value name="B"> <block type="math_number" id="H=RDESDX%5{Ed7y-sV[B"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="hR1D7y)5W8Uf$Mq/gs@M"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.wischen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="+PPhtRt{0^-Hov.MFF.w"> <field name="NUM">6</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="1/jcj-M.crHiNPh,APWS"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="j!:9!5KfYS]}C0,?#,hv"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.slide_side</field> </block> </value> <value name="B"> <block type="math_number" id="Qjl=xu4}{@]~VbbApHk`"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO1"> <block type="update" id="~sIKX9SnaiKCpObj|Fu^"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.wischen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="(,`%IoT_w90lkz!!-~8z"> <field name="NUM">3</field> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_compare" id="jz${;sOKY.HB[VSmi8L,"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="5BAbRw({4*!`?A!@ht9$"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.slide_side</field> </block> </value> <value name="B"> <block type="math_number" id="R/B3Q9=Fon$djsY_Nm3T"> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO2"> <block type="update" id="ktz.%`h,);vtx3;3x_I9"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.wischen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="N6-2eM50QrsatxHw,5Wr"> <field name="NUM">2</field> </block> </value> </block> </statement> <value name="IF3"> <block type="logic_compare" id="DFN5snCMKbzqcvDD;gc~"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=")_u!(B[(R9:VT{spl1p2"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.slide_side</field> </block> </value> <value name="B"> <block type="math_number" id="$bn,oYt@IzYmA29UaV%O"> <field name="NUM">3</field> </block> </value> </block> </value> <statement name="DO3"> <block type="update" id=":A+bTV#:=xfj,EY#R8R8"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.wischen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="K.{Hs-?FC;GMXF{bB.wO"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF4"> <block type="logic_compare" id="gG6,:0rkOLUQIji=4xHR"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Jsnu[,Yr(u6U.de`_Io."> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.slide_side</field> </block> </value> <value name="B"> <block type="math_number" id="~F#ih{@^/HHJ5-,s4Guh"> <field name="NUM">4</field> </block> </value> </block> </value> <statement name="DO4"> <block type="update" id="]AWwH/mFD96D{do}7NY2"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.wischen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="g1r^t8/*cIh/TpK!XTqH"> <field name="NUM">4</field> </block> </value> </block> </statement> <value name="IF5"> <block type="logic_compare" id="u?d--pY/L!i+mO.?n!fE"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="=SxY_BU_+Zb={2.3E}s?"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0005483f0d.slide_side</field> </block> </value> <value name="B"> <block type="math_number" id="m=Me*BUhR*Su,FH1ju-P"> <field name="NUM">5</field> </block> </value> </block> </value> <statement name="DO5"> <block type="update" id="#qHLC%[YFU_(pNpS;|)m"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.cube.wischen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="6Y6~F/iTiLkz~9o41R~X"> <field name="NUM">5</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> <block type="create" id="ZUFrrSQ@H=7C4QdX=d9R" x="2013" y="188"> <field name="NAME">javascript.0.cube.wischen</field> <value name="VALUE"> <block type="math_number" id="xEm1saoQ6==6:-ezdw_l"> <field name="NUM">0</field> </block> </value> <next> <block type="create" id=".{!hxs^MaEdACzNeowJ0"> <field name="NAME">javascript.0.cube.tempwerte.Pause</field> <value name="VALUE"> <block type="logic_boolean" id="Yy4{/r+v{gm1[E7~(14|"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="on_ext" id="b|LMFkSBo,R]*?+9,6VO"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="Z{G+oAdPX]u5#^~fO:HO"> <field name="oid">javascript.0.cube.wischen</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="/R;UYgsm/Wh-`bx_pK{y"> <mutation elseif="6"></mutation> <value name="IF0"> <block type="logic_compare" id="hR]A?jVyDJ2GY%6~T~kj"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="JU7tb47`u:n!z*:,P}Ix"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.wischen</field> </block> </value> <value name="B"> <block type="math_number" id="9hjsn@^`iqe!/_;NuS9B"> <field name="NUM">6</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="Gc*{.U,Vmt:BeCXb5dqK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).Mute</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="}$H-UHwwSl1DXry]Bzt|"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="3@@2Jj:dHKffHmaB6[li"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="c+Nt!rxV/XR!}}Ud=(pR"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.wischen</field> </block> </value> <value name="B"> <block type="math_number" id="/mfA?5(G@5=kX#RFQ9aP"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="v5%S*yh+$Eak5VAi?b1`"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.WZ_01.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="`(RT^R;AKLuk-F`2v*KH"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_compare" id="4h!PiIP#?ynKE[QZG(+a"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="GIY8zA]yK0d]omn]AMXF"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.wischen</field> </block> </value> <value name="B"> <block type="math_number" id="r-:4!_K#GvN=oAikn{WK"> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO2"> <block type="control" id="r$.__9+!Pf.iXjY2QXY/"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).Select</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="F,o?FhX)x3TeA)9c]3ac"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF3"> <block type="logic_compare" id="~*N5?|q3B$9!v-4]Um{Z"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="{Mx/CAn#)O-^Ku@payA$"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.wischen</field> </block> </value> <value name="B"> <block type="math_number" id="~6JWlPn!kj51v;M=1stk"> <field name="NUM">3</field> </block> </value> </block> </value> <statement name="DO3"> <block type="control" id="qtBVCq9~m8S_rdVwq**z"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G2A0QU06837604LQ.Player.controlNext</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q@6Pmg@6gC`vo(-`f4`_"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <value name="IF4"> <block type="logic_compare" id="_NI=8r$tu9V]RTR-[C2o"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="09x*Y0vJWt)+*f}x8`UE"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.wischen</field> </block> </value> <value name="B"> <block type="math_number" id="4/z-ujWbTn#EeO[-w(::"> <field name="NUM">4</field> </block> </value> </block> </value> <statement name="DO4"> <block type="control" id="B)GZrByCF+uTmYn03^]a"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).Guide</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id=")eIiSOOXNR%wv08[|,@O"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF5"> <block type="logic_operation" id="{18foi{9n|c7a0Z|,9oL" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="8ww;8dHVXnF%6RZ87_[?"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="B#0lGhtxJ*f{jBgPV(,;"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.wischen</field> </block> </value> <value name="B"> <block type="math_number" id="d)0.9J,--yP_xbLdg:vl"> <field name="NUM">5</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="xJ^b(E+q7]le+t!6:)~u"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="?a?iHG0e~jP[Z~ir4uJ}"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.tempwerte.Pause</field> </block> </value> <value name="B"> <block type="logic_boolean" id="z|!m%u?6lY0ot=#Bf+~2"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO5"> <block type="control" id="G?d5EDiHR]l4cb1d-OGg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).Pause</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="z:?vTG^w-+10%g.P4mgp"> <field name="NUM">1</field> </block> </value> <next> <block type="update" id=".N9}ynlsSwt!/r!%pAV["> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.cube.tempwerte.Pause</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">300</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="^)Ja75P}KoI~UHq7P+1="> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </statement> <value name="IF6"> <block type="logic_operation" id="FB!!,@ZWI0/$^Sr~3q+q" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="yIJ6k?85H%A]x_@D1SU`"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="35::/fh~z@ak4mV*{jo4"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.wischen</field> </block> </value> <value name="B"> <block type="math_number" id="d,j$`!sO+B`w5u(i)KuG"> <field name="NUM">5</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="gX#OPZHZ+o0rRr(nrjx7"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ML}dpl=udQOB81QZCGZ{"> <field name="ATTR">val</field> <field name="OID">javascript.0.cube.tempwerte.Pause</field> </block> </value> <value name="B"> <block type="logic_boolean" id="TZi4.?)1`+?RWAw/Dfe~"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO6"> <block type="control" id="/#-kua6*x|j,N1v~Gjqp"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">harmony.0.harmony_hub._TV__Samsung_6_Series_(55).Play</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Ut4tAMT]JaL^J]/_c+0A"> <field name="NUM">1</field> </block> </value> <next> <block type="update" id="%uKBYkYwF5BDzQcp6^0f"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">javascript.0.cube.tempwerte.Pause</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">300</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="-wXLVPoGMZzD8ay^=t4_"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </xml>
Viel Spaß mit dem Cube. Ich habe meine Geräte wie auch eine Lichtsteuerung mit drin gelassen. Wenn Ihr Verbesserungsvorschläge zum Script habt stellt sie ruhig ein, ich hatte die meisten Probleme mit doppelten Befehlsabwürfen, weil "true" recht kurz kam.
Beste Grüße aus Zwickau! -
@newpaint2 sagte in Aqara Cube mit 26 Funktionen -:
Wenn Ihr Verbesserungsvorschläge zum Script habt
Je nach Integration lässt sich beim Drehen des Würfels auch der Winkel auswerten (in Home Assistant auf jeden Fall möglich), d.h. wir können zwischen 90° oder 180° Drehen unterscheiden.
Theoretisch möglich, ob es dann auch für alle im Haushalt bedienbar bleibt, lasse ich offen.Viele Grüße
Florian -
@florianshj ja das war auch mein erster Gedanke - die Datenpunkte werden angelegt - ich habe bei der Drehung und beim Wischen immer die Seite aus der 90 Grad-Kippbewegung als Ausgangsfläche genommen. Bei der 180 Grad-Drehung würden die Kipp-Befehle dann daneben gehen. Ich schreib das Script, aber du erklärst es deiner Frau.
-
Ich habe mir auch aus interesse dan Cube geholt und Suche aktuell nach einer Verwendung. Lichtsteuerung, Harmony, Musik oder auch alles zusammen ist ja prinzipiell möglich. Was mich aber aktuell noch sört ist die fehldene Erkennung einer Drehbewegung. Die wäre ja super entspannt für lauter/leiser heller/dunkler.
Bei mir ist der Cube über Deconz eingebunden. Heißt ich habe anstatt der Objekte Flip rechts/links nur Zahlenwerte 1003 / 2005 / 7007 etc. ansich ja nicht viel anders, allerdings scheint der Deconz Adapter ein Drehen des Cubes nicht zu erkennen.
Sind hier im Forum lösungen bekannt? Meine Suche verlief bis jetzt im Sande...
-
Wie verändern sich denn die Zahlenwerte bei Bewegung? Bei der Einbindung in Home Assistant werden auch "nur" positive oder negative Zahlenwerte übertragen, die die Drehung rechts oder links und "wie weit" gedreht wurde repräsentieren. Im Blockly muss dann nur geprüft werden, ob die Zahl negativ oder positiv ist.
-
Unterscheidet sich demnach von der Einbindung in Deconz.
1003 Drehung von Seite 3 auf Seite 1
4006 Drehung von Seite 4 auf 4
1000 Schieben auf Seite 1
2000 Schieben auf Seite 2
7007 Schütteln
7008 FallenNatürlich ist es ein leichtes die Fälle abzufragen und Aktionen zu hinterlgen. Mir fehlt nur das Drehen
-
@manu4771 sagte in Aqara Cube mit 26 Funktionen -:
Deconz
Stehen hier nicht alle Infos dazu?
https://github.com/dresden-elektronik/deconz-rest-plugin/issues/138#issuecomment-325101635"For now I'll continue to use the angle * 100 as its state.buttonevent value (which is positive for clock-wise rotation and negative for counter-clock-wise rotation, whereas in physics, positive angles are counter-clockwise)."
-
@newpaint2 sagte in Aqara Cube mit 26 Funktionen -:
Diese Aufteilung, die Beschriftung und die Anwendung des Zauberwürfels ist eine super Idee. So super, dass ich nicht umhin gekommen bin, diese Idee auch für mich umzusetzen:
Dieser Würfel ist an meinem Schreibtisch stationiert, um von dort aus 6 Lichter bzw. Lichtergruppen im Wohnzimmer steuern zu können. Die zugehörige Logik habe ich über zwei Javascripte im ioBroker umgesetzt. Das erste Skript "decodiert" die Würfelbewegungen in Bewegungstyp und zugehörige Seitennummer des Würfels. Das zweite Skript setzt darauf auf, um die zugehörigen Aktionen der Lichter anzuwerfen.
Sobald die nächste Fuhre Zauberwürfel eintrifft, werde ich diesen Würfel für den Standort Couchtisch clonen. Zwischenzeitlich werde ich mir eine weitere Variante eines Zauberwürfels basteln, mit dem ich im Esszimmer zwei Lichter (ein, aus, dimmen) sowie grundlegende Funktionen der dortigen Musikberieselungsanlage (ein, aus, Lautstärke, Pause an/aus, Titel vor/zurück, Anwahl vorgegebener Favoriten, Zufallsauswahl) bedienen kann.
Besten Dank für die Bereitstellung Deiner super Idee und schönen Gruß von Paderborn nach Zwickau.
-
@hsteinme
Habe heute mal wieder geschaut, siehe da (-; sieht echt gut aus was du angestellt hast. Meine Frau ist noch immer nicht so gaz begeistert, obwohl sie für sich behauptet Multitasking zu beherrschen. Wenn Freunde mal wegen der Corona-Auflage ohne Frauen aufschlagen bleibt die normale Fernbedienung liegen... und natürlich gab es schon 3 Haushalte die den Cube auch wollen und sich jetzt für SmartHome begeistern.
Viele Grüße zurück aus Zwickau -
@manu4771
Probier mal den Zigbee-Adapter, geht jetzt auch mit dem Donecz-Stick, die Programierer sind erreichbar und lösen auch knifflige Probleme sehr schnell. habe jetzt 35 Geräte drin und habe meine gesamten RF-Sensoren ausgetauscht.