NEWS
Skript für Remote Sunricher SR-ZG9001K12-DIM-Z4
-
Hallo,
ich habe mir diese Fernbedienung zugelegt und benutze sie über Deconz für meinen ioBroker. Ist die Sunricher SR-ZG9001K12-DIM-Z4 (https://zigbee.blakadder.com/Sunricher_SR-ZG9001K12-DIM-Z4.html) Ich habe keine direkten Abhängigkeiten, sondern werte die Befehle in ioBroker aus. Nach meinem Wissen ist diese Fernbedienung identisch mit z.B. iCasa ICZB-RM11S und anderen.Bei der Fernbedienung gibt es den 1 und 0 Masterknopf oben. Wenn der gedrückt wird, dann simuliert die Fernbedienung bei "Master 1" = alle "1" Befehle der darunter liegenden Wipptaster und bei "Master 0" alle "0" Befehle der darunter liegenden Wipptaster. Dabei werden neben den Codes (2001, 4001, 6001 und 8001 bei gedrückter "1" und 2002, 4002, 6002 und 8002 bei gedrückter "0") auch die Rückmeldungen wie "release_press" der jeweiligen Taster simuliert.
Ist also dafür gedacht, alle in den Wipptastern angelernten Geräte gleichzeitig an- oder auszuschalten. Ich brauche das aber nicht und wollte die Masterknöpfe mit individuellen Befehlen nutzen, ohne dass dabei ioBroker denkt, ich hätte einen Wipptaster gedrückt.
Die Tasten S1 und S2 geben jeweils einen eigenen Code zurück (9002 und 10002) und (da sie eignetlich für Szenen gedacht sind) werden beim Drücken der Master "1" und "0" nicht simuliert und kölnnen daher direkt zugeordnet werden.
Dadurch gibt es (aus meiner Sicht) keinen einfachen Weg, wie man die Masterknöpfe von den Wipptastern entkoppeln kann.Anbei findet ihr ein kleines Blockly Skript, welches diese Aufgabe übernimmt und in 99% der Fälle findet die Entkopplung statt. So kann ich jetzt die Wipptaster "1" und den Masterknopf "1" entkoppelt für eigene Zuordnungen nutzen.
Vom Grundprinzip funktioniert das Skript so, dass es prüft, ob eine Sequenz an Rückmeldungen der Fernbedienung kommt, oder nicht. Im ersten Fall bedeutet es, dass einer der Masterknöpfe gedrückt wurde. Im zweiten Fall,
dass eine Wippe gedrückt wurde.
Ihr braucht dazu 2 Variablen (hier "Sunricher1-0pressed" und "Sunricher1-1pressed").Beste Grüße
Michael
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="}PC@!m*K[T)ZbP.7SL)~">Sunricher1-1</variable> <variable id="cGF@_PX8}xVE)**$l7#k">Sunricher1-0</variable> <variable id="r;T.[:ncn2NUZVzg-06Y">Sunricher1-1ZählenErreicht</variable> <variable id="6Y-,y;k*b[JpdJp=qfv5">i</variable> <variable id="T@gC5n9+OMCUGL3;RBj=">Sunricher1-0ZählenErreicht</variable> <variable id="ju.Bl%1oN#,m6V(f:-B[">m</variable> </variables> <block type="comment" id="_3/zn?l~!lCM]Uhssn7O" x="-1187" y="-37"> <field name="COMMENT">1 und 0</field> <next> <block type="on" id="E4_bz_{18gQY218w.$1l"> <field name="OID">deconz.0.Sensors.19.buttonpressed</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="gTj$(yE``%g=b{r=)~i8"> <value name="IF0"> <block type="logic_compare" id="bYck2:R8^}bKnH46c78#"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="G$l[t+`/N@A%?6c6!4?~"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="=le+fNUIAfH.2V[_692o"> <field name="NUM">2002</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_wait" id="Hr=^jCFnY[i-rv-9dOnA"> <field name="DELAY">10</field> <field name="UNIT">ms</field> <next> <block type="math_change" id="Nh/HTc1weM!U}bIR6M^X"> <field name="VAR" id="}PC@!m*K[T)ZbP.7SL)~">Sunricher1-1</field> <value name="DELTA"> <shadow type="math_number" id="x#gv+}7s(PB9zQF?mR4D"> <field name="NUM">1</field> </shadow> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="0J/SH}XZ/x#):m7c6$-V"> <value name="IF0"> <block type="logic_compare" id="[f$RN8q_kKgXnVom!m%;"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="9kSAM=JZQq8f07~FfCb="> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="5s5.RK*Zc8lvIy^Ipp7s"> <field name="NUM">4002</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_wait" id="2A@X1?KT#%+HCYO)p|^!"> <field name="DELAY">20</field> <field name="UNIT">ms</field> <next> <block type="math_change" id="bXCH^,:~LZrA$BnpuNHW"> <field name="VAR" id="}PC@!m*K[T)ZbP.7SL)~">Sunricher1-1</field> <value name="DELTA"> <shadow type="math_number" id="6*xl0/abw7owQso,#=y%"> <field name="NUM">1</field> </shadow> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="OqQO`hAWM{{F}KrO@ywx"> <value name="IF0"> <block type="logic_compare" id="~l%7J^h.W{$e(7Kc2.i/"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id=",$NF~A|vIR28X%Z`g6=~"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="=RF4K(/4#}ko:!jk$wK]"> <field name="NUM">6002</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_wait" id="t(f7SHE=nwo-]QZ69Il?"> <field name="DELAY">30</field> <field name="UNIT">ms</field> <next> <block type="math_change" id="`G!Y?$:ZLQ%Y:!%#pSiG"> <field name="VAR" id="}PC@!m*K[T)ZbP.7SL)~">Sunricher1-1</field> <value name="DELTA"> <shadow type="math_number" id="%a}gAi)se#[QFP%yzNU]"> <field name="NUM">1</field> </shadow> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="2P-/B}kyOn:rGcQ;p9#b"> <value name="IF0"> <block type="logic_compare" id="*.CC8~aGYi%ivB;og)kR"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="#)]pt+iN*oz0:s_z#|FM"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id=".qi]:#ggAPCM4pc8?soT"> <field name="NUM">8002</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_wait" id="n=[ym22C}y!@CH62HL]n"> <field name="DELAY">40</field> <field name="UNIT">ms</field> <next> <block type="math_change" id="3IPU=#5xWuJ|ZxA7A5z_"> <field name="VAR" id="}PC@!m*K[T)ZbP.7SL)~">Sunricher1-1</field> <value name="DELTA"> <shadow type="math_number" id="2):aVe1oipz2#Zp%GIg="> <field name="NUM">1</field> </shadow> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="5S;`k[`#51;z3tSA-ST:"> <value name="IF0"> <block type="logic_compare" id="D;6Owgw0%V.(K}!62A|S"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="M/+c)Bt#C{iLz7aednz4"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="{?:tv/}WuMCA6{2O):s;"> <field name="NUM">1002</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_wait" id="5F)=U(LFhsh-`Zh+UzrZ"> <field name="DELAY">50</field> <field name="UNIT">ms</field> <next> <block type="math_change" id="DkCksd-?$Uqt^jfQaN_t"> <field name="VAR" id="cGF@_PX8}xVE)**$l7#k">Sunricher1-0</field> <value name="DELTA"> <shadow type="math_number" id="~^K?GZb;zv]7W/5o|6$n"> <field name="NUM">1</field> </shadow> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="i^o6;KRQEUoO,.[cit98"> <value name="IF0"> <block type="logic_compare" id="ZBwv1=s~/]1XHM{_6ePt"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="qQ_pmz8]^4?kBKE_0nNG"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="_JIj*0xY{;bw]BwK*v8d"> <field name="NUM">3002</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_wait" id="H=/7!DKTP%-_ZWHr)GpU"> <field name="DELAY">60</field> <field name="UNIT">ms</field> <next> <block type="math_change" id="|OMK#T}u4zg24SN$5CRo"> <field name="VAR" id="cGF@_PX8}xVE)**$l7#k">Sunricher1-0</field> <value name="DELTA"> <shadow type="math_number" id="Up5tkn1Z+O|i5mO1+0=n"> <field name="NUM">1</field> </shadow> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="r;5hC,-T0AvVPnR7;a]l"> <value name="IF0"> <block type="logic_compare" id="dZ2!-Ua~WfAFHXK/SM~6"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="Rg+YF?z!9*bT:bYS$|~q"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="4;k_PI2G{6qcbwdO*tZ!"> <field name="NUM">5002</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_wait" id="v5b8Z]2g@-yaMpv|:1zk"> <field name="DELAY">70</field> <field name="UNIT">ms</field> <next> <block type="math_change" id="$-Dt6U{XA)y@r#0}U2g$"> <field name="VAR" id="cGF@_PX8}xVE)**$l7#k">Sunricher1-0</field> <value name="DELTA"> <shadow type="math_number" id="D8zw,b98BOj,kan^Cm-3"> <field name="NUM">1</field> </shadow> </value> </block> </next> </block> </statement> <next> <block type="controls_if" id="%uK?o$mWCMUWB!}S$?nO"> <value name="IF0"> <block type="logic_compare" id="9Q1b*RD(dvoD1yu+5I[B"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="OPpMeKdeENL1E%u]+WNL"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="%;oS]G,QgjT/KVBczk~g"> <field name="NUM">7002</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_wait" id="69k_]J_#+RbK~XuYGYSz"> <field name="DELAY">80</field> <field name="UNIT">ms</field> <next> <block type="math_change" id="h@H{g7E-6_lGs@]n%]J`"> <field name="VAR" id="cGF@_PX8}xVE)**$l7#k">Sunricher1-0</field> <value name="DELTA"> <shadow type="math_number" id="tIqg9tQ;e0kp6=36mZZc"> <field name="NUM">1</field> </shadow> </value> </block> </next> </block> </statement> <next> <block type="timeouts_wait" id="La,Cng+w|rwc:J)/rb|D"> <field name="DELAY">100</field> <field name="UNIT">ms</field> <next> <block type="controls_if" id="5P@x25f!uRCf1,Jc4XPR"> <value name="IF0"> <block type="logic_compare" id="TrW#6-V7#b:[`$O~RLzB"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="oqZbqJCjF+er(Z}~F{O$"> <field name="VAR" id="r;T.[:ncn2NUZVzg-06Y">Sunricher1-1ZählenErreicht</field> </block> </value> <value name="B"> <block type="math_number" id="{]3oR))Nlj02ne8Z0kRd"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="math_change" id="]{2.I/jF6D8l~+J,x:I8"> <field name="VAR" id="r;T.[:ncn2NUZVzg-06Y">Sunricher1-1ZählenErreicht</field> <value name="DELTA"> <shadow type="math_number" id="(ZnN;cQpD(Ouk0v8B;UU"> <field name="NUM">1</field> </shadow> </value> <next> <block type="controls_for" id="nszW6QAv/ILV*3Kopki1"> <field name="VAR" id="6Y-,y;k*b[JpdJp=qfv5">i</field> <value name="FROM"> <shadow type="math_number" id="W-KdCa9LPLqkNl|5wP/K"> <field name="NUM">1</field> </shadow> <block type="math_number" id="!#i1]2$WTU?#h@a~s|s4"> <field name="NUM">0</field> </block> </value> <value name="TO"> <shadow type="math_number" id="4baTNF`(lSb|R#p=(:Xk"> <field name="NUM">10</field> </shadow> <block type="variables_get" id="5tcb%B8::)]:@n[lOEbk"> <field name="VAR" id="}PC@!m*K[T)ZbP.7SL)~">Sunricher1-1</field> </block> </value> <value name="BY"> <shadow type="math_number" id="XabQ/:$I]3BIfNv*CsiV"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="controls_if" id=",b?kR3(p@,g2cQOt|e+^"> <value name="IF0"> <block type="logic_compare" id="4,4oQg6[vywev2Z#I6_j"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="mBx#vQ?QiVa*cAFf=ig-"> <field name="VAR" id="6Y-,y;k*b[JpdJp=qfv5">i</field> </block> </value> <value name="B"> <block type="math_number" id="bh,+(M:nPPi!jPUryUeo"> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="3=hn`eF0}e^O_Xa?5n)d"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-1pressed</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="AZGGMU_s(]vxGGf}$:U@"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="debug" id="6FT^W(kU/~hS%tTD+]|O"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="3lYq%l}lCIt.Ir1]g;D-"> <field name="TEXT">Sunricher1-1</field> </shadow> </value> <next> <block type="timeouts_wait" id=")5Up~h_n1+JEOe6Z;m[V"> <field name="DELAY">200</field> <field name="UNIT">ms</field> <next> <block type="update" id="/}j(^giFR)l2*M6sGRtX"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-1pressed</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=".OpJHz}glt@)k4`6rt!n"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </statement> <next> <block type="controls_if" id="/QCOdmm]B:fa^{}}#qZL"> <value name="IF0"> <block type="logic_compare" id="dNUL9J_7DESYY5TDSNYr"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="`^cRGD`.dT[kh;Gt2r7L"> <field name="VAR" id="T@gC5n9+OMCUGL3;RBj=">Sunricher1-0ZählenErreicht</field> </block> </value> <value name="B"> <block type="math_number" id="Ed,~zRSjS;G][h{[;80:"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="math_change" id="2iS1;J^y|,!iZpSBW;`,"> <field name="VAR" id="T@gC5n9+OMCUGL3;RBj=">Sunricher1-0ZählenErreicht</field> <value name="DELTA"> <shadow type="math_number" id="4B;)=fHR]7lg5cOQcOYS"> <field name="NUM">1</field> </shadow> </value> <next> <block type="controls_for" id="wr`zYvf1XRL-KrgZcgT:"> <field name="VAR" id="ju.Bl%1oN#,m6V(f:-B[">m</field> <value name="FROM"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_number" id="8PAW251_b?_p6G4WjpSW"> <field name="NUM">0</field> </block> </value> <value name="TO"> <shadow type="math_number"> <field name="NUM">10</field> </shadow> <block type="variables_get" id="I*T(WOp{![K/4a!,4h26"> <field name="VAR" id="cGF@_PX8}xVE)**$l7#k">Sunricher1-0</field> </block> </value> <value name="BY"> <shadow type="math_number" id="yR.gOWrLA6GQi7(`h)j^"> <field name="NUM">1</field> </shadow> </value> <statement name="DO"> <block type="controls_if" id="B4BRYfxy-z@{17Q0|0Q;"> <value name="IF0"> <block type="logic_compare" id="m89K6,7%I4L8f{.:9G#$"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="_{d8Z6ns,xwTr]0!~H[T"> <field name="VAR" id="ju.Bl%1oN#,m6V(f:-B[">m</field> </block> </value> <value name="B"> <block type="math_number" id="Vd;(JhE*_j)b4BQZ9^{z"> <field name="NUM">2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="~*q3h;@4!Tcd3ZFf3{oS"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-0pressed</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="y-!iEaiFU24xs5(i#CE:"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="debug" id="S#PJ8jE4{!3KQj;iY)A$"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="5_{[}m3=.#2NGY44!`T*"> <field name="TEXT">Sunricher1-0</field> </shadow> </value> <next> <block type="timeouts_wait" id="jpITT/|jX9f4[px$]8JD"> <field name="DELAY">200</field> <field name="UNIT">ms</field> <next> <block type="update" id="MSVj=?RLG)UaMg@7tXRT"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-0pressed</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="#YG|C^M{).GfV)Y_)6Aj"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </statement> <next> <block type="variables_set" id="rlm9[VV1N^6L}ToJn0lx"> <field name="VAR" id="}PC@!m*K[T)ZbP.7SL)~">Sunricher1-1</field> <value name="VALUE"> <block type="math_number" id="uqu~jqDpOa]w~QL`VICk"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="Y,d;1J}rO7kQ6lhJD^Y-"> <field name="VAR" id="cGF@_PX8}xVE)**$l7#k">Sunricher1-0</field> <value name="VALUE"> <block type="math_number" id="+[$/k=C=84Bh+~7}iMOx"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="i!ywOMp^KYHhe_7d8aFP"> <field name="VAR" id="r;T.[:ncn2NUZVzg-06Y">Sunricher1-1ZählenErreicht</field> <value name="VALUE"> <block type="math_number" id="*6!%A!(qE!#FL=mmF|bj"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="iJG6N=aY0%Q`Bf,)iSX^"> <field name="VAR" id="T@gC5n9+OMCUGL3;RBj=">Sunricher1-0ZählenErreicht</field> <value name="VALUE"> <block type="math_number" id="T0bc93D+#obF0E![lhNX"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> <block type="comment" id="NnnJ`#.C#F5V=m7Sh:DS" x="-587" y="-62"> <field name="COMMENT">Knopf 1/0</field> <next> <block type="on" id="W0-Y:,o(vuYQ/+UbYGoq"> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-1pressed</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="4{Y2vQRg7]kIu{k`u$Oq"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.Lights.6.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=":Z/17Ezj$s%=,`T6U$]r"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="on" id="P]}=DtbW_.Zp-bn)RwGn"> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-0pressed</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="control" id="Tf+h]+)6f3U/{:L%ca[)"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.Lights.6.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="|Qn0s/7K?_TOZ@ROkG8)"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> <block type="comment" id="e(pjERN.$.=`G5gXmQ@v" x="263" y="-87"> <field name="COMMENT">1. Reihe aus/an</field> <next> <block type="on" id="oQgqi28UVQcr7@28,!88"> <field name="OID">deconz.0.Sensors.19.buttonevent.1.release_press</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="timeouts_wait" id="xcxHwap=3VR/GDPf.)BD"> <field name="DELAY">200</field> <field name="UNIT">ms</field> <next> <block type="controls_if" id="tYkcdw{77d$I/nbaqkhe"> <value name="IF0"> <block type="logic_compare" id="5%;`iAXKw{nu6@4-)v1Y"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=")(b?*VH]ev1;r!L)$]Vt"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-0pressed</field> </block> </value> <value name="B"> <block type="logic_boolean" id="ekVq}6/1.EftKMf~f8EQ"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="_HJ;Q*eSP2[;tJ-K?KbM"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.1.QEQ1341111.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="fjxa)JJuOI@S-$[zks1T"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> <next> <block type="on" id="FK!=?e)xQ!n0CP;X=8P5"> <field name="OID">deconz.0.Sensors.19.buttonevent.2.release_press</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="timeouts_wait" id=":vw,xs@2O0M-KDb$xbDO"> <field name="DELAY">200</field> <field name="UNIT">ms</field> <next> <block type="controls_if" id="wOIlUn9sJ4GtUrPV)z~b"> <value name="IF0"> <block type="logic_compare" id="*Jzu~}4JJL~V!aVKd}tR"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="tsE}aAmu}8g#SQ6q$$67"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-1pressed</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Tu.jeEc%ugUEE6@oRy6Z"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="pTVo{,bnwH9V~RQ;mj^^"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.1.QEQ1341111.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="+uMpKZT$LoYh}M9qx;3D"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="comment" id="%85VX*}IiF9{F($Vc7-(" x="1038" y="-37"> <field name="COMMENT">2. Reihe aus/an</field> <next> <block type="on" id="Wk^gy{lfjXS?=VH0^^?r"> <field name="OID">deconz.0.Sensors.19.buttonevent.3.release_press</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="timeouts_wait" id="+a{}eD~2pTDm*U.5vgRF"> <field name="DELAY">200</field> <field name="UNIT">ms</field> <next> <block type="controls_if" id="e|YFNfQ+kRpy,:#1#?sn"> <value name="IF0"> <block type="logic_compare" id=")m*)$N|`/_(Zqyq?ktj:"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="$1W1E0_Y%G[*Jb{$fw,)"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-0pressed</field> </block> </value> <value name="B"> <block type="logic_boolean" id="f4.Zgn(weKuirUAa2%Qy"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="_t8Mn(]3:VaKHyPiJWpp"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.Lights.7.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Ytq(_J,j;So;JQSCtybh"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> <next> <block type="on" id="~J7Uj{r3n,jW`=~,bPVV"> <field name="OID">deconz.0.Sensors.19.buttonevent.4.release_press</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="timeouts_wait" id="Zj$N[jp0%8:G8!A1^__M"> <field name="DELAY">200</field> <field name="UNIT">ms</field> <next> <block type="controls_if" id="wc)s6//=7CAsR6C[lI)j"> <value name="IF0"> <block type="logic_compare" id=":yyaWtLIr^yS//bI4G_L"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="~vttM=(tP484m?ZX-3}="> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-1pressed</field> </block> </value> <value name="B"> <block type="logic_boolean" id="zf)uzuu5eZupH9sUozDU"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="B`^GQwO4FS-0Jog(X-w$"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.Lights.7.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="LM`-0`!xTcNEAC.U%5i0"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="comment" id=")C7C|I1xR^.y+93;5h2t" x="1863" y="-37"> <field name="COMMENT">3. Reihe aus/an</field> <next> <block type="on" id="%/P07*:RA[f.a+9Uu6cJ"> <field name="OID">deconz.0.Sensors.19.buttonevent.5.release_press</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="timeouts_wait" id="Bp-1SoB9]Fn3u;x~9qYS"> <field name="DELAY">200</field> <field name="UNIT">ms</field> <next> <block type="controls_if" id="/9!IevkSf%+$O7V:(#PP"> <value name="IF0"> <block type="logic_compare" id="jVA#y_:4KCNYZ18.g):4"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="?5J=!L][ke({K}D.).Ik"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-0pressed</field> </block> </value> <value name="B"> <block type="logic_boolean" id="o0dR4)~@-pBEI,Se)!aO"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="_.6VC=]99=KF]P7YBq,*"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.Lights.7.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="W.N4R5=L@XmPqWC1UMOe"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> <next> <block type="on" id="0z%s)m7S/_/*k;4%^NoQ"> <field name="OID">deconz.0.Sensors.19.buttonevent.6.release_press</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="timeouts_wait" id="pI~Me-+I_}^ak-`UzUnp"> <field name="DELAY">200</field> <field name="UNIT">ms</field> <next> <block type="controls_if" id="}j5Rr[n%mJg!1f{%;y.^"> <value name="IF0"> <block type="logic_compare" id=",7Sh|*x+[|J][Lc[SuNR"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="c,COYQ2J{10fVz*FEG%h"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-1pressed</field> </block> </value> <value name="B"> <block type="logic_boolean" id=":qE#i57xcgKcn*I(mdw0"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="{z/GNQU7(!]^0ArN|oax"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.Lights.7.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="XtBHdzgxr,E4G$3hO~sC"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="comment" id="|WJ.aW3Ab=%+.VOPmQMJ" x="2613" y="-37"> <field name="COMMENT">4. Reihe aus/an</field> <next> <block type="on" id="@daMw02xoT*@r]i`yz*R"> <field name="OID">deconz.0.Sensors.19.buttonevent.7.release_press</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="timeouts_wait" id="bHG+cu`g0b?wIaD]?_+Y"> <field name="DELAY">200</field> <field name="UNIT">ms</field> <next> <block type="controls_if" id="A9z)F@:7XIwB=H@/`|jS"> <value name="IF0"> <block type="logic_compare" id=")4hm;cklz:H#iGE/YVOd"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="dqnV[T]i.?Mc$vbU1s4{"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-0pressed</field> </block> </value> <value name="B"> <block type="logic_boolean" id="57b[?M]/zbg~ZYhC2_CX"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="0VDPP78$2]rwx9XRRdE#"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.Lights.7.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="emi0xp=,cF,}LGScZxX/"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> <next> <block type="on" id="3Yq!bs{8u=iEdVa}nxI:"> <field name="OID">deconz.0.Sensors.19.buttonevent.8.release_press</field> <field name="CONDITION">true</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="timeouts_wait" id="YA@@~sBN7H7wkq-@h)FC"> <field name="DELAY">200</field> <field name="UNIT">ms</field> <next> <block type="controls_if" id="KB5B13QQKe]B16oK7T+("> <value name="IF0"> <block type="logic_compare" id="KScv?4X!bqkvds_3%U+]"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="9X.Zb)Q44uVhKl%1LCEU"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Entscheidungswerte.Fernbedienungen.Sunricher1-1pressed</field> </block> </value> <value name="B"> <block type="logic_boolean" id="#8.Kt{(fQ?R^R$X/R7-t"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="DI:#gwwKL1cAl`P7`WST"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.Lights.7.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Mig-*R/c0,IGFg%c{ko$"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="comment" id="cUHl^)SIBV{l)B~nno.b" x="3388" y="-37"> <field name="COMMENT">5. Reihe aus/an</field> <next> <block type="on" id="[)evpPkKz948(0`f9]38"> <field name="OID">deconz.0.Sensors.19.buttonpressed</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="DQade_o2k_)R:~=q0sC2"> <value name="IF0"> <block type="logic_compare" id="Ik/a}0Q,8|FF?^o5O_=*"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="h8PBE1mJ^vM3+B!/2Ao`"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="]dowLT8YA#.sH+pWq$/O"> <field name="NUM">10002</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="hfb;3eFwJ@QR$8*#f%KH"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.Lights.7.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="??;VSInPL%Aaf)_#fV57"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="on" id=",2CHsih;5VT@)[{f{N3g"> <field name="OID">deconz.0.Sensors.19.buttonpressed</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="l4f_IAN(A)@[i%rJ=HMr"> <value name="IF0"> <block type="logic_compare" id="2C[=OE5?m8f-a;huR4{#"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="G85Ga9ueXOkr:G?q!ZgV"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="#k173[vULs0wPUh_%59S"> <field name="NUM">9002</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="}t4BHfb.GaJ85X+TLHZd"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.Lights.7.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="J91xugC)SNcZtD@;ql+%"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </xml>
-
@michhan sagte in Skript für Remote Sunricher SR-ZG9001K12-DIM-Z4:
Sunricher SR-ZG9001K12-DIM-Z4
Kannst Du mir bitte sagen, welche Versionen Du für deConz, Phoscon und den deConz Adapter eingesetzt hast. Danke schön!
-
@hsteinme
Hi,ioBroker und Phoscon laufen via Proxmox auf einem Intel NUC.
- Linux Phoscon 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64
- Dresden ConBeeII Stick, Version 2.07.01 / 8.12.2020, Firmware 26680700
- IoBroker mit NodeJS V12.22.5, NPM V6.14.14 mit deConz ZigBee Adapter Version 1.3.19
Läuft flüssig und ohne Probleme.
Gruß