- Home
- Deutsch
- Skripten / Logik
- Blockly
- Mehrere Aktoren zu einer Gruppe zusammenfassen
Mehrere Aktoren zu einer Gruppe zusammenfassen
This topic has been deleted. Only users with topic management privileges can see it.
-
Hallo,
Ich bin aktuell dabei meine Homematic-Programme auf ioBroker (Blockly) umzustellen.
Blockly ist für mich jedoch ziemlich neu.Könnte man folgendes Blockly vereinfachen, bzw. alle Aktoren in eine Gruppe zusammenfassen.
Ich habe alle Aktoren zu den Funktionnen enum.functions.Weihnachtsbeleuchtung hinzugefügt. Diese läßt sich aber nicht anwählen.Teil 1
Teil 2
Anbei noch der Code
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="comment" id="3#Uf,//AEYi0?CqW(=nt" x="262" y="-1337"> <field name="COMMENT">Einschalten mit Betriebsart_ioBroker=2 (Weihnacht)</field> <next> <block type="comment" id="m3nB{SJPu.t17ZJ)vs[d"> <field name="COMMENT">Weihnachtsbeleuchtung früh ein</field> <next> <block type="controls_if" id="J5ptsF-wM9vx]5|;cAL7"> <value name="IF0"> <block type="logic_operation" id="^!Sd+Xvki4i#,=DF8uQC"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="]AITe8n7ROt(^Z@1~5t7"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="X:/Bm`Y?_{l?aQA`2^wT"> <field name="ATTR">val</field> <field name="OID">javascript.0.Eigene_Datenpunkte.Betriebsart_ioBroker</field> </block> </value> <value name="B"> <block type="text" id="Yic1C/K6L^:D-TnEs!.f"> <field name="TEXT">2</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare_ex" id="Y7%Myl4I*UCq,c7y3~dZ"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">==</field> <value name="START_TIME"> <shadow type="text" id="%:{QpH-yBerbq)QM2L,w"> <field name="TEXT">04:30</field> </shadow> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="%1Cxj)nmM0uJ0/n[,jWv"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota101.POWER</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="^[;rsI72JRQk_N%Q(tql"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="wn5v@8w0)xb_wbd*q$lQ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota102.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="=Z@1ia|nJ)8T9z6.-x(W"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="AiLHn`(eJF=+?h+xA)X$"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota103.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">4</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="yi[]VfxtckzecYc?6TB;"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="G-}8:1XPG#ys_mYi$wFe"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota104.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">6</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="l(nJzScYm!8:rMg=LX54"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="OCiyO4V7iDXZ$#o{P!!H"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota105.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="|KT#K`%{]6G^R)CvdLwW"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="i*O]B;OIx6$5rj`YQg~^"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota106.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="gce[TI4Dw#@e6o9nSyqs"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="r/vbvc0RNTAp/|GyojPD"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota107.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">12</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="MZ+z-GH[T6GLjm:=[nTE"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="v?aBa);$)(;gS0rVsCB%"> <field name="COMMENT">Weihnachtsbeleuchtung früh aus</field> <next> <block type="controls_if" id="ZzGGHLb^+N-J@AE]W:v_"> <value name="IF0"> <block type="logic_operation" id="[SZyJ;H^EBqkM4YFNH67"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="kElV@onQ{j}S?9N0@v^h"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="VcD=,,{Tu=oBmNdU|}d("> <field name="ATTR">val</field> <field name="OID">javascript.0.Eigene_Datenpunkte.Betriebsart_ioBroker</field> </block> </value> <value name="B"> <block type="text" id="d9bqXao,p]vZh!V?@~)7"> <field name="TEXT">2</field> </block> </value> </block> </value> <value name="B"> <block type="time_astro" id="%Dd[7BZ3zG~}nB_8R`Gj"> <field name="TYPE">sunrise</field> <field name="OFFSET">+15</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="5?ss,vmKIKDRz)wC|5hC"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota101.POWER</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="iH15:rM==J6I9Rem-hk;"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="pMC:`L-9!@rMqNEu-hU%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota102.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="a=~7]9K~!B%5~0.]L=dX"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="[j$_fgu]^h;]{5x2A8R+"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota103.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">4</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="lZFL7s4dvj{%kseHv]kv"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="ZXkD@0gT$X_H3CT[({?:"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota104.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">6</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="`TnXdF3,2U)%*-$oW4@A"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="LyM8IP5t}euP_uBeY;A|"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota105.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="+5C(Q!c},,i@Me75M^u8"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="J/0nE{y3_3FeT%9bgGKJ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota106.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="DC#/@D:h`wfDCuS1yzNh"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="}:-jOtHcQ^18!zZ|FUg="> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota107.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">12</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="}y%i8snk^gcpq3,=GP?9"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="=WZ%7maT8S/KoAW83+xx"> <field name="COMMENT">Weihnachtsbeleuchtung abends ein</field> <next> <block type="controls_if" id=",{n7IvPy6kX7e=3!o-HF"> <value name="IF0"> <block type="logic_operation" id="7[ETwB8yZS=}R,RTS.hM"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="DfI2_N^z(8Mfgx(O1qHj"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="p.o]a`VR~EY[D30_ico8"> <field name="ATTR">val</field> <field name="OID">javascript.0.Eigene_Datenpunkte.Betriebsart_ioBroker</field> </block> </value> <value name="B"> <block type="text" id="JTx#X!hJVe/0sZ8-tSbL"> <field name="TEXT">2</field> </block> </value> </block> </value> <value name="B"> <block type="time_astro" id="n$si.fU3#j46o@qEsr~("> <field name="TYPE">sunset</field> <field name="OFFSET">-15</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="!f}NlBOj{Bi4`yb`HYS7"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota101.POWER</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="Uunt1JPBB:q*nw0w_,GJ"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="i!2Zy.,]*-$D=b(;50+C"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota102.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="c*VC{6[{pd1YP;UbTbcS"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="em7Rnj)Ru5so5t4.`NY7"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota103.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">4</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="LMLP2agUSnuYZs5CQRW^"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="l0NFGdlK2?h1=:w{GcSl"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota104.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">6</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="gT9ainGo(~h6p1ryU=O$"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="s526~(3YU!X6+ydCi8et"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota105.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="CQ6[IL7wL@Ln-;[ALt4Y"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="0b{xp@/a)VJGf,jHb${n"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota106.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="#/,E*_3V5-}Kt$_@;?V%"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="@M9Pe?AtehP0lZz^cbN("> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota107.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">12</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="q}9N=STuPfXC=)hr+!.}"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="?Ct+|%;J|xFlp8`:G+wh"> <field name="COMMENT">Weihnachtsbeleuchtung abends aus</field> <next> <block type="controls_if" id=",QnJ+x8gU*[]kC!jDdO{"> <value name="IF0"> <block type="logic_operation" id="gcj`*-4cZ;Z3i*h4ZMUO"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="e{7eliAt/Ym|O2.zm9al"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="-|1H8q2)YJ`Sv,+**8kw"> <field name="ATTR">val</field> <field name="OID">javascript.0.Eigene_Datenpunkte.Betriebsart_ioBroker</field> </block> </value> <value name="B"> <block type="text" id="=3YR*TlPdO#f:E!4}h#A"> <field name="TEXT">2</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare_ex" id="=:N0`-?.|:uao0a*PTG;"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">==</field> <value name="START_TIME"> <shadow type="text" id="DfM81!}edBHPNj+L#;+h"> <field name="TEXT">00:30</field> </shadow> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="#/$w_;/`6`Tm5IhiQYAj"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota101.POWER</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="T47A]_Sg`/?AzuwN6ZK4"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="ZSeu,jFpe57%Rc4Q:N/}"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota102.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="=WtIlOnZSB|SDL^xfi0d"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="^g7D6o!Fm#n{t}G/{?u("> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota103.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">4</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="jhC:Bu9~=B-PuPd1)?2S"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="rfl]1;U[s*?_6]7KXMm%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota104.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">6</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Kw{zxU]/$-d{u*`x)){?"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="ywhj-|Nn/]gE[l;HE?-@"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota105.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="%W@D;E;aTjda,v#xtJi!"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="TN|hbSpa[`+}`U!!Xa@l"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota106.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="6()a,0XF(tM?f.@SR(D*"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="iV7i*PJNqJq2=Af^F-d)"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonoff.0.Tasmota107.POWER</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">12</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="YYxppNL456xzUB_@w:a6"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
-
$('channel[state.id=*](functions="Weihnachtsbeleuchtung")');
-
@MCU
Super, Danke. Probiere ich heute abend aus.
Da kann ich dann aber keine Verzögerung der einzelnen Aktoren einbauen, oder?Kann es zu Problemen kommen wenn 7 Tasmotas und 4-5 HM-Aktoren gleichzeitig fiunken?
Habe noch keine Erfahrung damit. Bei HM habe ich bisher immer eine Verzögerung einprogrammiert.Grüße,
strike -