Leider funktioniert das nicht. das hatte ich auch am Anfang so fabriziert. Hatte gestern eine Hue Lampe mit dem Zigbee Adapter verbunden und hier war das gleiche Problem wie bei den Osrams das die Hue nicht in die Cloud aufgenommen wurde. Entweder liegt das Problem am Zigbee Adapter oder am Cloud Adapter. Ich denke eher das es am Cloud Adapter liegt da er den Code "smartType": "LIGHT" nicht im Zigbee Code einfügt.
Beiträge von stoecki
-
-
Hmm. Das ist komisch das diese beim Hub auf true bleiben solange gedrückt
-
Der Trigger löst ja aus. Aber nur kurz. Bei einem Dimmer sollter er meiner Meinung solange auslösen bis ich von der Taste wieder weg gehe. Er löst aber nur 1x kurz aus, egal wie lange ich auf der Taste bleibe
-
Hier das Video dazu was du alles über den [definition='64','0']CC2531[/definition] anbinden kannst.
Externer Inhalt www.youtube.comInhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt. -
Ich habe nen [definition='64','0']CC2531[/definition] und die Xiaomi Sensoren, Buttons usw. sind alle über Zigbee auf diesem Stick angebunden und funktionieren auch. Einen Xiaomi Hub hab ich nicht und benötige deswegen auch nicht Mi-Home
-
Das Skript funktioniert leider nicht. Mit dem Long Klick hast du recht. Er müsste auf true stehen bleiben solange ich den Taster gedrückt halte. Bei den Buttons ist es aber so das wenn ein Longklick ausgeführt wird das er nur kurz true und dann wieder auf false wechselt. Also wie ein einfach klick auf den Taster.
-
Hab jetzt mal folgendes Script erstellt das ich im iobroker Forum gefunden habe aber es funktioniert leider auch nicht. Zudem lässt sich dann die Lampe mit dem einfachen Klick nicht mehr ausschalten
Code
Alles anzeigen<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="V7P|6xmV3G,ni~jHG]*O" x="-2287" y="-1438"> <mutation items="4"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="N1pdo/5H[:5PyNXhgvK2"> <field name="oid">zigbee.0.00158d0001e75a97.click</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="=aPr0x52!*^bg1LcR/Gs"> <field name="oid">zigbee.0.00158d0001e75a97.double_click</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="uL!6a4IqJ,hZZH*6V9tm"> <field name="oid">zigbee.0.00158d0001e75a97.triple_click</field> </shadow> </value> <value name="OID3"> <shadow type="field_oid" id="U6JlQv+IrjpM::trG1J`"> <field name="oid">zigbee.0.00158d0001e75a97.long_click</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id=")~WmF+*DFn%BCQa9X~KA"> <value name="IF0"> <block type="get_value" id="6I@s%F_L|1k_]oDV!M61"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0001e75a97.click</field> </block> </value> <statement name="DO0"> <block type="toggle" id="%J0=y^cW{lQnh)zLY^y["> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.color-0x00000000052c02f6.control.power</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> <next> <block type="controls_if" id="HO9xo:.UJg~3)9Hj2[^v"> <value name="IF0"> <block type="get_value" id="k0IhjX9DPOjs=FJ{E,Zz"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0001e75a97.double_click</field> </block> </value> <statement name="DO0"> <block type="control" id="?qf^k!Y2xxpW{DMq2?o="> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.color-0x00000000052c02f6.control.rgb</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="m-j;XN,%J8{3/eN,zy`h"> <field name="TEXT">#000cff</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="USrEY0[R-hNSXkkPE@M|"> <value name="IF0"> <block type="get_value" id="8]bQ:;9jVpzsl9.3XEIe"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0001e75a97.long_click</field> </block> </value> <statement name="DO0"> <block type="control" id="r55gZqTd@.zfQH:Ksww,"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.color-0x00000000052c02f6.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id=";;zDaU.)@R5-%*/U-s_/"> <field name="NUM">0</field> </block> </value> <next> <block type="timeouts_setinterval" id="5DqeYX;*f0:6SWwmI3+D"> <field name="NAME">Intervall</field> <field name="INTERVAL">1</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="controls_if" id="=3Gr#xn/:`ILx9y|(_!0"> <value name="IF0"> <block type="logic_compare" id="V5]8ES=-[Qa|#k07|)/1"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="N9yf?o/jF8alS{sYd)_g"> <field name="ATTR">val</field> <field name="OID">yeelight-2.0.color-0x00000000052c02f6.control.active_bright</field> </block> </value> <value name="B"> <block type="math_number" id="Tu^}z^xyqLECMC,(XcoA"> <field name="NUM">100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="|t1=49LCQf5Z.@83MmF1"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.color-0x00000000052c02f6.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="UPoBCl]`AfDA[f:(N)kD"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="~Y-DJAScb8[e6WoH6Z[F"> <field name="NUM">1</field> </shadow> <block type="get_value" id="Pb/!Em#JlOEdfTvx0wv!"> <field name="ATTR">val</field> <field name="OID">yeelight-2.0.color-0x00000000052c02f6.control.active_bright</field> </block> </value> <value name="B"> <shadow type="math_number" id="OS;{8;r2mn~EV;!@vS;)"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </statement> <next> <block type="timeouts_clearinterval" id="aNMcO)u/hfkV1}#PwJ?D"> <field name="NAME">Intervall</field> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </xml>
-
Ich habe einen Xiaomi Button und eine Yeelight und möchte diese bei langem drücken des Buttons dimmen. Nur weiß ich nicht wie das verwirklichen soll und es überhaupt funktioniert. Kann mir jemand weiterhelfen und evtl. ein Blockly bereitstellen
-
Hab jetzt auch mal ein paar bestellt. Mal schauen ob diese hinter einen Schalter reinpassen
-
So jetzt habe ich herausgefunden wie das funktioniert. Erstmal im Cloud Adapter mit "+" das Zigbee Gerät (z.b. [definition='60','0'][definition='60','0'][definition='60','0']Osram[/definition][/definition][/definition] Steckdose) auswählen und einfügen. Dann denkt man es passiert nix aber er schreibt in den RAW Daten des Zigbee Gerätes den Text "smartName" rein. In den RAW fügt man dann folgende Daten ein und speichert. das ganze.
Dann wieder auf den Cloud Adapter mit "+" das Zigbee Gerät angeben und dann sollte das Gerät in den Smart Geräten erscheinen
-
Hi,
bei mir funktioniert jetzt alles Perfekt. Habe aber alle Xiaomi Geräte über den Zigbee Adapter angebunden. Ist ja klar das der Button sobald er gedrückt wird auf true geht und dann wieder auf false da es ja ein Taster am Xiaomi Button ist. Im Skript steht ja das er dann den Dual [definition='25','0']Sonoff[/definition] (Badlichtpower 1+2) die [definition='60','0']Osram[/definition] Dose (powerstate) umschalten soll. Hier der funktionierende Code. Kannst ja nochmals testen. Freu mich auf ein Feedback
Code
Alles anzeigen<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="V7P|6xmV3G,ni~jHG]*O" x="-1937" y="-1212"> <mutation items="4"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="N1pdo/5H[:5PyNXhgvK2"> <field name="oid">zigbee.0.00158d0002091521.click</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="=aPr0x52!*^bg1LcR/Gs"> <field name="oid">zigbee.0.00158d0002091521.double_click</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="uL!6a4IqJ,hZZH*6V9tm"> <field name="oid">zigbee.0.00158d0002091521.triple_click</field> </shadow> </value> <value name="OID3"> <shadow type="field_oid" id="U6JlQv+IrjpM::trG1J`"> <field name="oid">zigbee.0.00158d0002091521.long_click</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id=")~WmF+*DFn%BCQa9X~KA"> <value name="IF0"> <block type="get_value" id="6I@s%F_L|1k_]oDV!M61"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002091521.click</field> </block> </value> <statement name="DO0"> <block type="toggle" id="%J0=y^cW{lQnh)zLY^y["> <mutation delay_input="false"></mutation> <field name="OID">[definition='84','0']sonoff[/definition].0.Bad Licht.POWER2</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> <next> <block type="controls_if" id="HO9xo:.UJg~3)9Hj2[^v"> <value name="IF0"> <block type="get_value" id="k0IhjX9DPOjs=FJ{E,Zz"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002091521.double_click</field> </block> </value> <statement name="DO0"> <block type="toggle" id="tBc15)SeXqbMQ%]scNme"> <mutation delay_input="false"></mutation> <field name="OID">[definition='84','0']sonoff[/definition].0.Bad Licht.POWER1</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> <next> <block type="controls_if" id="!M.!Vdo?3L;=H*dl-mTP"> <value name="IF0"> <block type="get_value" id="wj}DI*gbg}5[Dl77?(oA"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002091521.triple_click</field> </block> </value> <statement name="DO0"> <block type="toggle" id="h[aP^qwmVhO?Yoqn)XVu"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.3c4c0cc4-29c5-465e-b723-2fcf9e7ca284.powerState</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> <next> <block type="controls_if" id="USrEY0[R-hNSXkkPE@M|"> <value name="IF0"> <block type="get_value" id="8]bQ:;9jVpzsl9.3XEIe"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002091521.long_click</field> </block> </value> <statement name="DO0"> <block type="controls_if" id="w?/T#fvouE*K3}o)8-Zh"> <value name="IF0"> <block type="logic_compare" id="Iog^#_K}Jz00P4=iRuh}"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="N9yf?o/jF8alS{sYd)_g"> <field name="ATTR">val</field> <field name="OID">[definition='84','0']sonoff[/definition].0.Bad Licht.POWER2</field> </block> </value> <value name="B"> <block type="logic_boolean" id="0Zd[8u0#q=6pdqPW,G0Z"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="toggle" id="b#6:@@paM+972|C(Q{xd"> <mutation delay_input="false"></mutation> <field name="OID">[definition='84','0']sonoff[/definition].0.Bad Licht.POWER2</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> <next> <block type="controls_if" id="|(CS}WyEx7zZ1L00N{Na"> <value name="IF0"> <block type="logic_compare" id="VEcU**d_yL{T,pg|Ct5["> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="UbHOv0a~^LK^#|l}-Y^Z"> <field name="ATTR">val</field> <field name="OID">[definition='84','0']sonoff[/definition].0.Bad Licht.POWER1</field> </block> </value> <value name="B"> <block type="logic_boolean" id="3GBEG78GlMDNgf*j[W3)"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="toggle" id="@^JbkA@j`5,PjJu?~1*h"> <mutation delay_input="false"></mutation> <field name="OID">[definition='84','0']sonoff[/definition].0.Bad Licht.POWER1</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> <next> <block type="controls_if" id="x[|{Q#WpHObYIac2t0bu"> <value name="IF0"> <block type="logic_compare" id="ru|?6^kN@4=R;86:`t+R"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="1adYmdO_5JiGT1U_DxX4"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Smart-Home-Devices.3c4c0cc4-29c5-465e-b723-2fcf9e7ca284.powerState</field> </block> </value> <value name="B"> <block type="logic_boolean" id="B@V]5oEYM3ile0UOI|aj"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="toggle" id="O0v^C,mV!r4Nnz-x_h8k"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.3c4c0cc4-29c5-465e-b723-2fcf9e7ca284.powerState</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>
-
Möchte meine 3x [definition='60','0']Osram[/definition] Plugs in der Cloud als Smart-Geräte einbinden, damit ich mit [definition='20','0']Alexa[/definition] darauf zugreifen kann. Nur lässt es der Adapter nicht zu. Die Plugs sind mit einem [definition='64','0']CC2531[/definition] verbunden. Hat jemand ähnliche Probleme?
-
Fehler lag im Code. Versehentlich falschen Schalter angewählt
-
Hab jetzt 2 Blocklys und 2 Variablen angelegt und so funktioniert es auch wie gewünscht. Alles in einem Skript funktioniert anscheinend nicht
Code
Alles anzeigen<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="c:TxUe-9q3?7(|U_%x`F" x="-537" y="-437"> <mutation items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="by=N!78ppzoIlhG[%UkE"> <field name="oid">zigbee.0.00158d00024e506a.isopen</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="mO#70eci3u|YvVN(n;@B"> <field name="oid">ping.0.raspberrypi.192_168_0_49</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="=V.@~[5G)]uS1`2`Zkt4"> <value name="IF0"> <block type="logic_operation" id=":vlJ,{]H~:rnxT(r(I03"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="tJ^jjptF@Ju?{H3u}zHh"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="g^|/]ychwu(z5Kp8.N*t"> <field name="ATTR">val</field> <field name="OID">ping.0.raspberrypi.192_168_0_49</field> </block> </value> <value name="B"> <block type="logic_boolean" id="?[Qz|M`(eoKRvW0+Gs6:"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="G[YpFaNKr_-XZHGwXYa/"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="_4?F|Xqur3VAb2MnK9;4"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="cKqWZlxS@_?oopl66k`Q"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d00024e506a.isopen</field> </block> </value> <value name="B"> <block type="logic_boolean" id="8bqUlZ1Nyb_o%==()dnu"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Z]j9z5mKmnItZ;2y.FWF"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="4kYHQJV:x*dO}D(p[yCX"> <field name="ATTR">val</field> <field name="OID">Meine_Geräte.0.Begrüßung_Stöcki</field> </block> </value> <value name="B"> <block type="logic_boolean" id="xDan_PA-_7NN;AhZ}sP["> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="y1k7X@mKYEnBWuE#{8w3"> <mutation delay_input="false"></mutation> <field name="OID">Meine_Geräte.0.Begrüßung_Stöcki</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="5oV7S5D6OD*UXFx:cWd["> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="timeouts_settimeout" id="ODg.6ny~8@c6B)l8Kjt`"> <field name="NAME">timeout</field> <field name="DELAY">20</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="d}y1S#j*nq87[{U52]Q2"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090LA098187005C.Commands.speak</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="Qg{p[j,x`52Mgzk9+S)E"> <field name="TEXT">Hallo Stöcki Willkommen Zuhause</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </statement> <next> <block type="on" id="eI.yB+5#.2Pt.X(0^aMF"> <field name="OID">ping.0.raspberrypi.192_168_0_49</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id=")b%[`*#_qn3j1wk+myoq"> <value name="IF0"> <block type="logic_compare" id="E~KAod+(s~R%DsKx|1uQ"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="/ie^An)V3}`d#Z~ZDXJq"> <field name="ATTR">val</field> <field name="OID">ping.0.raspberrypi.192_168_0_49</field> </block> </value> <value name="B"> <block type="logic_boolean" id="D{w7]g:p!i[YG]?DqQdh"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id=",N=m0BK:`(,#)%sj~H?i"> <mutation delay_input="false"></mutation> <field name="OID">Meine_Geräte.0.Begrüßung_Stöcki</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Ix|=06DjC4oz4Y,hb|9u"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </xml>
-
Leider ist der Code zu lang:
-
Hab jetzt das mit dem Hilfsvarb herausgefunden und habe das Skript vom Franz umgemodelt damit es mit dem Ping Adapter funktioniert. Zusätzlich habe ich noch eine Person (z.zt. mein Laptop zum testen) eingefügt. Nur das Problem ist das wenn schon 1 Person anwesend ist das Skript dann nicht mehr funktioniert. Vielleicht könnte jemand weiterhelfen um mehrere Personen in das Skript einzufügen.
-
Kann mir bitte jemand kurz erklären bzw. einen Screenshot posten wie das Hilfsvarb angelegt wird? Der Link ist leider Down
-
Hab soeben für meinem Rasenmähroboter Gardena Sileno ein Skript erstellt das wenn es regnet oder zu warm bzw. zu kalt ist das er automatisch in die Station zurückfährt. Die benutzte Hardware wäre Xiaomi 1x Temperatur- und 1x Wasserstandssensor angebunden auf einem Zigbee Stick. Weiß jemand ob man den Xiaomi Bodensensor zwecks der Bodenfeuchte auch am CC2530 oder [definition='64','0']CC2531[/definition] anbinden kann? Vielleicht hat ja jemand hier noch Verbesserungsvorschläge für das Skript
Code
Alles anzeigen<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="+A7wlutQO8gBfqosc.y3" x="-862" y="-287"> <mutation items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="L[i=p{|ii-ai*/YAZ@8s"> <field name="oid">zigbee.0.00158d00023878f9</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="=*YMEuEx]n!98FPdz.8p"> <field name="oid">zigbee.0.00158d0002701fd6.detected</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="V6]e:v6u:?I_dnQ6L_VO"> <value name="IF0"> <block type="logic_compare" id="YL]^MiM0C_d90EjXd7qr"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="yM=9zWrslsViHeXAVGm6"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d00023878f9.temperature</field> </block> </value> <value name="B"> <block type="text" id="H=g~S*6(?G/uCr~jDdCp"> <field name="TEXT">28</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="vs.J|^}}{M%%SJ1bpk;V"> <mutation delay_input="false"></mutation> <field name="OID">gardena.0.devices.57258c97-6a3c-4235-8094-7ce99f4ef987.commands.park_until_further_notice.send</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="gvfoVV5t!!Us3^C~!w.H"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="I5G5,xEQ9|pglEcLrxmF"> <value name="IF0"> <block type="logic_compare" id="0:j(PpuR#q]w,2%zPefn"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="=aOq*pG]LHVvtPf35L-@"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d00023878f9.temperature</field> </block> </value> <value name="B"> <block type="text" id="./tM;5GiY1BD-I9)|6iW"> <field name="TEXT">5</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="r)IqM@+KHcCyL;n|C}++"> <mutation delay_input="false"></mutation> <field name="OID">gardena.0.devices.57258c97-6a3c-4235-8094-7ce99f4ef987.commands.park_until_further_notice.send</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="FX4pGcn{T*VLc~!rKTs,"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="Fka;*|t}*-`SbqlH][O,"> <value name="IF0"> <block type="logic_compare" id="M~uV)}gj0R1:#*W8;u|_"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=";C4ZX5Zy!7cKvi8im7j~"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002701fd6.detected</field> </block> </value> <value name="B"> <block type="logic_boolean" id="4LuZn)urV=lv8oo%d@pS"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="W@d-F3O_9HHWW#dCNkL="> <mutation delay_input="false"></mutation> <field name="OID">gardena.0.devices.57258c97-6a3c-4235-8094-7ce99f4ef987.commands.park_until_further_notice.send</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="A4H}`x`xaT~u.qw:OMjO"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </xml>
-
Habe jetzt auch mal das Skript von der Seite 1 übernommen und habe das Problem das die Lautstärkenregelung etwas zu häftig reagiert und eine feine Abstimmung nicht möglich ist. Gibt es irgendeine Möglichkeit das zu justieren? Z.b. viertel Umdrehung viertel Lautstärke usw.
-
Hallo, ich habe heute ein bisschen gegoogelt und bin darauf gestoßen das man einen normalen Wechselschalter Smart machen kann und verschiedene Geräte ([definition='25','0']Sonoff[/definition], Steckdosen etc.) Smart schalten kann.
Da ich keinen Taster zur Hand hatte bin ich auf den Kugelschreiber Trick gestoßen
Da ich aber im Blockly schreiben noch ziemlich am Anfang stehe benötige ich folgende Hilfe. Wie kann ich erreichen das der Taster nach langer Betätigung den Dual [definition='25','0']Sonoff[/definition] und die [definition='60','0']Osram[/definition] Steckdose auf off schaltet. Es müssten also bei langer Betätigung die Lampen abgefragt werden und die wo an sind dann abzuschalten.
Code
Alles anzeigen<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="V7P|6xmV3G,ni~jHG]*O" x="-1937" y="-1212"> <mutation items="4"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="N1pdo/5H[:5PyNXhgvK2"> <field name="oid">zigbee.0.00158d0002091521.click</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="=aPr0x52!*^bg1LcR/Gs"> <field name="oid">zigbee.0.00158d0002091521.double_click</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="uL!6a4IqJ,hZZH*6V9tm"> <field name="oid">zigbee.0.00158d0002091521.triple_click</field> </shadow> </value> <value name="OID3"> <shadow type="field_oid" id="U6JlQv+IrjpM::trG1J`"> <field name="oid">zigbee.0.00158d0001e75a97.long_click</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id=")~WmF+*DFn%BCQa9X~KA"> <value name="IF0"> <block type="get_value" id="6I@s%F_L|1k_]oDV!M61"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002091521.click</field> </block> </value> <statement name="DO0"> <block type="toggle" id="%J0=y^cW{lQnh)zLY^y["> <mutation delay_input="false"></mutation> <field name="OID">[definition='84','0']sonoff[/definition].0.Bad Licht.POWER2</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> <next> <block type="controls_if" id="HO9xo:.UJg~3)9Hj2[^v"> <value name="IF0"> <block type="get_value" id="k0IhjX9DPOjs=FJ{E,Zz"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002091521.double_click</field> </block> </value> <statement name="DO0"> <block type="toggle" id="tBc15)SeXqbMQ%]scNme"> <mutation delay_input="false"></mutation> <field name="OID">[definition='84','0']sonoff[/definition].0.Bad Licht.POWER1</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> <next> <block type="controls_if" id="!M.!Vdo?3L;=H*dl-mTP"> <value name="IF0"> <block type="get_value" id="wj}DI*gbg}5[Dl77?(oA"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002091521.triple_click</field> </block> </value> <statement name="DO0"> <block type="toggle" id="h[aP^qwmVhO?Yoqn)XVu"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.3c4c0cc4-29c5-465e-b723-2fcf9e7ca284.powerState</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> <next> <block type="controls_if" id="USrEY0[R-hNSXkkPE@M|"> <value name="IF0"> <block type="get_value" id="8]bQ:;9jVpzsl9.3XEIe"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002091521.long_click</field> </block> </value> <statement name="DO0"> <block type="controls_if" id="w?/T#fvouE*K3}o)8-Zh"> <value name="IF0"> <block type="logic_compare" id="Iog^#_K}Jz00P4=iRuh}"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="N9yf?o/jF8alS{sYd)_g"> <field name="ATTR">val</field> <field name="OID">[definition='84','0']sonoff[/definition].0.Bad Licht.POWER2</field> </block> </value> <value name="B"> <block type="logic_boolean" id="0Zd[8u0#q=6pdqPW,G0Z"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="toggle" id="b#6:@@paM+972|C(Q{xd"> <mutation delay_input="false"></mutation> <field name="OID">[definition='84','0']sonoff[/definition].0.Bad Licht.POWER2</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> <next> <block type="controls_if" id="|(CS}WyEx7zZ1L00N{Na"> <value name="IF0"> <block type="logic_compare" id="VEcU**d_yL{T,pg|Ct5["> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="UbHOv0a~^LK^#|l}-Y^Z"> <field name="ATTR">val</field> <field name="OID">[definition='84','0']sonoff[/definition].0.Bad Licht.POWER1</field> </block> </value> <value name="B"> <block type="logic_boolean" id="3GBEG78GlMDNgf*j[W3)"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="toggle" id="@^JbkA@j`5,PjJu?~1*h"> <mutation delay_input="false"></mutation> <field name="OID">[definition='84','0']sonoff[/definition].0.Bad Licht.POWER1</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> <next> <block type="controls_if" id="x[|{Q#WpHObYIac2t0bu"> <value name="IF0"> <block type="logic_compare" id="ru|?6^kN@4=R;86:`t+R"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="1adYmdO_5JiGT1U_DxX4"> <field name="ATTR">val</field> <field name="OID">alexa2.0.Smart-Home-Devices.3c4c0cc4-29c5-465e-b723-2fcf9e7ca284.powerState</field> </block> </value> <value name="B"> <block type="logic_boolean" id="B@V]5oEYM3ile0UOI|aj"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="toggle" id="O0v^C,mV!r4Nnz-x_h8k"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Smart-Home-Devices.3c4c0cc4-29c5-465e-b723-2fcf9e7ca284.powerState</field> <field name="WITH_DELAY">FALSE</field> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>