- Home
- Deutsch
- Skripten / Logik
- Blockly
- *GELÖST* Bestimmter Zeitabschnitt als Bedingung für Blockly
*GELÖST* Bestimmter Zeitabschnitt als Bedingung für Blockly
-
@gezi70 sagte in Bestimmter Zeitabschnitt als Bedingung für Blockly - Wie?:
ich habe ein Skript zur Automatisierung meines Dachfensters erstellt (siehe diesen Thread:
der link zeigt nur ei en Ausschnitt, wie sieht das gsnze Blockly, insbesondere der Trigger aus?
-
@homoran
Das Blockly ist sehr lang. Ich versuche mal den Code hier rein zu bringen...<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="?gPo#pQYYOu=(4;YAvZP">level</variable> <variable id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</variable> <variable id="*_-GmR@MCKPKv:J@BmX9">Aussentemperatur</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="variables_set" id="b`ssTtHESYj*={_g$P@_" x="419" y="-351"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="get_value_var" id="tt*[*@az`V2,;MP*/bHf"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="rmy|I2|zhy8=qlm-Jmfg"> <field name="TEXT">hm-rpc.1.OEQ0888649.1.LEVEL</field> </shadow> </value> </block> </value> <next> <block type="on_ext" id="nCFf$5D~RW7-Ymg+*/U8"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id=",,EX.PPu/%+]#l-y!i3_"> <field name="oid">netatmo.0.Lohgrund-(Indoor).Indoor.Temperature.Temperature</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="pC9Rt(X=ab]p5B{kJXk{"> <field name="oid">weatherunderground.0.forecast.current.temp</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="I@*Ccdo_WIBN!jh;sdxL"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> <value name="VALUE"> <block type="get_value" id="hvv_Nn9@#z?)G?%pmpl)"> <field name="ATTR">val</field> <field name="OID">netatmo.0.Lohgrund-(Indoor).Indoor.Temperature.Temperature</field> </block> </value> <next> <block type="variables_set" id="A:R?pMh{[(e!|=V~db@F"> <field name="VAR" id="*_-GmR@MCKPKv:J@BmX9">Aussentemperatur</field> <value name="VALUE"> <block type="get_value" id="{=*xq:dTi)iovx:FL7:N"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecast.current.temp</field> </block> </value> <next> <block type="controls_if" id="QkG;9AFT;6k#t4Ugx`q~"> <value name="IF0"> <block type="get_value" id="4Vv@+9-y3L;0r,PRuczE"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Schlafzimmersteuerung.Aktionszeit_Dachfenster</field> </block> </value> <statement name="DO0"> <block type="controls_if" id="j{5^ghPLXvGI)Ev$66%V"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id=",nSG@.t}P!6y*HTP*6tA"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id=":pO5YL,l;h|*p3G2PL?C"> <field name="ATTR">val</field> <field name="OID">weatherunderground.0.forecast.current.relativeHumidity</field> </block> </value> <value name="B"> <block type="math_number" id="!NXEa@,k0b94(yX:(I2P"> <field name="NUM">95</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="rkMDuk]ov53B**7{D=rT"> <mutation elseif="2"></mutation> <value name="IF0"> <block type="time_compare" id="KP)RRP)pRVLf:P]G1{fK"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">19:00</field> <field name="END_TIME">22:00</field> </block> </value> <statement name="DO0"> <block type="controls_if" id="=8]uN+vX+D2QDw8s{hV)"> <mutation elseif="1" else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="9MKBOjnE3U$hBBy~q^NH" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="%]YtubWyjW#Y.7~MQf`V"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="z9Gl*js:giKNRSiU@Pn0"> <field name="VAR" id="*_-GmR@MCKPKv:J@BmX9">Aussentemperatur</field> </block> </value> <value name="B"> <block type="variables_get" id="vc$QvfW~T0=TGz2c*uY3"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="+sM6;77(yB)5jE)dqi^k"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="5y43TxyG3Mr0;$}2$)5;"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.temperature</field> </block> </value> <value name="B"> <block type="math_number" id="ES`T+)~B:Tp_b}gG5)++"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="bLk+=,kgiZP^PmtZ?Uv#"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="UA2E]t2f[p.0]E:W|!be" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="t;T~=x$Uu9A{|ma^tnap"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="KWjz+S*z2hZ4WB-BADW%"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="N#=={sp:`]vJSHz$@D@H"> <field name="NUM">20</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id=":iFS]zYy%~H{k]MxGg)A"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="nX+-fJC#lj0kbl2w`o2@"> <field name="VAR" id="*_-GmR@MCKPKv:J@BmX9">Aussentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="{@)@9%nH.|KH2DN-]tdQ"> <field name="NUM">18</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="9@igocO!csf?|E8PBU~2"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="`ULK(Ue@.S{aq?OIH`]+"> <field name="NUM">100</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="bfA.;iwuS3,(ij36NQ+a"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="~MZ:A3Pc+8F5G=~TF4:a"> <field name="NUM">40</field> </block> </value> </block> </statement> </block> </statement> <value name="IF1"> <block type="logic_compare" id="y{)?7=;HhvWEKKA*fn+r"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="?nLl(qlQTA}{mq:uIcK2"> <field name="VAR" id="*_-GmR@MCKPKv:J@BmX9">Aussentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="[[*e61!^3X!o@Tq2Uh,c"> <field name="NUM">17</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="YFx2W.@#YO=BaI_Bz,JY"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="F=_cZArg`8x!BpU?s}}z"> <field name="NUM">0</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="Ez/T{Sdx664P|VowRcd."> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="VvHlGl?:a,~a5Pi0E@i%"> <field name="NUM">0</field> </block> </value> </block> </statement> </block> </statement> <value name="IF1"> <block type="time_compare" id="v3/]k@0XNu%9tY,Cu;A8"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">8:00</field> <field name="END_TIME">10:00</field> </block> </value> <statement name="DO1"> <block type="controls_if" id="_W#h|:v[KZc8Q|@yj}O~"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="%QKJ[#O^k8~BtKEn[mWS" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="jmB,PpgD%],4MgR0,OqC"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="GVcHB9vf~0|u3D$)gN0%"> <field name="VAR" id="*_-GmR@MCKPKv:J@BmX9">Aussentemperatur</field> </block> </value> <value name="B"> <block type="variables_get" id="JjT4yrP;qJ=0BbGoEmye"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="El.j|;FMCNKU]$Na)2Fi"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="r78WNTqWeUzX4=#KY[cf"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.temperature</field> </block> </value> <value name="B"> <block type="math_number" id="#EF.L]294,^ru3cF3:z,"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="ASp-hyK,lRg~)IoB)B[{"> <mutation elseif="2"></mutation> <value name="IF0"> <block type="logic_operation" id="@!d.S7Dx}jM0.gAF8H)|" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="rjmZatx%YrPO7[T~yl8G"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id=".asb:CMRE!t|9VeXd/Nf"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="W70YuY1%zs*!s(mC(6Yz"> <field name="NUM">19</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="hm,Pd/kd{R[ayjtft{#_"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="5?j?bAK7Sz.!eZlO$,9a"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="B*(1%TO:Ad7+#j/N3$a#"> <field name="NUM">3</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="|oQ%`WV![Ag$9InqPP.+"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="m_h0_K;%U)$+/M5pfJ9D"> <field name="NUM">100</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_operation" id="W)|CgY2h.5s18E-Es]4S" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="QR)as%-.8uN0+W~kB*0," inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="aD5S@2:JwEE!~%u)X`:l"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="`%eD|d@b{;X/KgWqH`(-"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="tttO!jV%**XZ^qdg3cY4"> <field name="NUM">19</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="aVa)KWA1-5#0D_;:K:5]"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="4Sio%/7P$~~P2o5FbPpO"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="oQX$4wt%P?Jje9kyH5B%"> <field name="NUM">3</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="qa!S_Pqdtr6,;@5:OLl)" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="{d2:V~+/5L7Q!Z7hRRzp"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id=":[RWlz+?y:FLS3bhf!fZ"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="C#XZyTJ54?K4?U;y8Lv^"> <field name="NUM">19</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="U8S~ZnIgu7VI8$l[qYtP"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="R)Ssnor+36Om,!bHm)fi"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="2CQtMFEjhkRx9IH%W^]_"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="[$8lY2)-D8dB47.W[93r"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="@`+l$-E~?Vj=3WWut!A-"> <field name="NUM">68</field> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_operation" id=",^Da9FMWJ=3x|:O=Qh{^" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="cy!-6Xdgy~y(x9E;!ol}" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="BtSy?Iw@REOzEx6D;`2$"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="vgYrGOGgJ_=@l;ZU%p(("> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="[zXNik$.V*![uv(5/42T"> <field name="NUM">19</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id=":cB9;ZdL-8kUDe|e5p/Z" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="AvXKJS7,3}(I)`W/Pf=U"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ribkb)$.Ap6)Q(5gIF{-"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="#%zRxl@+SS,KghLDOV2b"> <field name="NUM">2</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="5HDMS1d9|pH*Y8E*Yhb["> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Qj?8eWxwL!6|*P;phS|I"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="?;;pDXAdy7+OLajdu!q}"> <field name="NUM">3</field> </block> </value> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="5@MFP=rgfT32~5ajmFC`" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="2-*X+pq`]`C;qarz09Sz"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="F-!~N^-x],HhJDiMp5LZ"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="M`|1cHJT{3bWOABk2|(G"> <field name="NUM">19</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="z|VsmE|NJ?-Ss!9cF}a,"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="~9i4-,8^3@jxm6#o=$yV"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="@~0tkS4C)u._Pmxd(+r+"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO2"> <block type="variables_set" id="$#k]Oo/XrL-M?)amwS6L"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="}N`W!K(pZoF1IM~EATIu"> <field name="NUM">40</field> </block> </value> </block> </statement> </block> </statement> <value name="IF1"> <block type="logic_operation" id="BCKn}h6Zlmq+1^hVnG_F" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="F=c|1kWLPjf@g6{V[xFb" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="FhY8j9}-s49ah]P70e(!"> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="JJ8olm3[T1|.aHK.?+L7"> <field name="VAR" id="*_-GmR@MCKPKv:J@BmX9">Aussentemperatur</field> </block> </value> <value name="B"> <block type="variables_get" id="3WdpxkLyrVT#,%4j5[%."> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="O;l/!a!Fu%uiATiV8FVP"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="Y!G-sDwyi9KJfr?l[pp6"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.temperature</field> </block> </value> <value name="B"> <block type="math_number" id="qqwF(bQTM;4TrO4!!t}n"> <field name="NUM">0.5</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="pJ=h6Z9:].^(0}M{.FOK" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="OXqZA33.m#[=f)7#a-m}"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="7GD!d!hDdpBD!eA_F4T5"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id=",87^bC+Ern_A6;|XMzcJ"> <field name="NUM">17</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="5(;JmMw8`t6KJlw~4xX$"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="oNK@Re1)WU%,1`KF^KZQ"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="p9{FdGtw0WPJj`406dD?"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="zN4N@!$|=uru?%9~r6WK"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="ka1B`-L%-WUq[1Wjl*l?"> <field name="NUM">0</field> </block> </value> </block> </statement> </block> </statement> <value name="IF2"> <block type="time_compare" id="mkKGqkXn_xABHb1IF020"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">10:00</field> <field name="END_TIME">19:00</field> </block> </value> <statement name="DO2"> <block type="controls_if" id="5R.c+?u`4q1kc!QWloLz"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="GsrtDt3niar!F_`GqL$?" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="w9w*kA$hE[Z(gA@=W%at"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="U[@P/3MA|R9%DV+[7`6X"> <field name="VAR" id="*_-GmR@MCKPKv:J@BmX9">Aussentemperatur</field> </block> </value> <value name="B"> <block type="variables_get" id="~sSGQpw2.kJXx|h[}7XU"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="HABB}bahx_RpegxEnE`]"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="VESi_`RsU,Z@bBqoE-RZ"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.temperature</field> </block> </value> <value name="B"> <block type="math_number" id="rPLG,D?y$9qkweR[kDFX"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="EOa$xk*#zUbXe7#lnf%~"> <mutation elseif="2"></mutation> <value name="IF0"> <block type="logic_operation" id="o|]LesAT$E-_4@T{!QU1" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="S#(/z30ZbBAC+86T{;V7"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="!%}aK225Gpmd8#nW#vom"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="3)DDwt4jS0U;VBL,OmT?"> <field name="NUM">19</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="8s0:yCd]gC3/)#$7{_Lz"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="fPNY~!;E7eqIg@bBcJt*"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id=")_U#bh_YJ%0Yf}L-)R57"> <field name="NUM">3</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="QCue]aW!U%h6#`:4m1GY"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="Q7VOd*stS7`6qUsS6;5i"> <field name="NUM">50</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_operation" id="JvimWq/Euj5IAPkz]@1I" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="%xLB~VW3a`$$.oM,StK7" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="w)yGsP^76[KnZ5ep0IU8"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="F+@Y,h(dRahU|Isk5_72"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="Wbrl*~BB,788Frgakru@"> <field name="NUM">19</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="D=C?01}6P6,$0ZG{?u8I"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="hYQ-)fYmNF^NIfBM(b#%"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="fr^NRo@k;Z:mTmDf,)Nc"> <field name="NUM">3</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="+IskUk*SzAmQNcC5(#Js" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="-Da8;~yaj3.VyM#~FXs`"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="d}H(rnhk19wa1@!uZ@Z*"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="^]fR,G@3i5Zx,g,e5n=]"> <field name="NUM">19</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="B_dMWjz#k1wd%RDV)~h2"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="v~rT1P$5f~|y)h+f?jpZ"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="7w%Rcm^/~pzMX5($`)]a"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="Dz3WvBd6_`4(tOe?s)/)"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="7=_?MYRyp.|t7BLV-lof"> <field name="NUM">68</field> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_operation" id="%!XT^-LLo%563JHk8C]p" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="PZ[:#k6)f4Qk]G+|5Uzm" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="FrL~fXH*9kS%G}(ra?gr"> <field name="OP">LTE</field> <value name="A"> <block type="variables_get" id="/`9D[^Gp)`w_v$jYTzN_"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="aD3Ey2U5F%y}U5#4i(ko"> <field name="NUM">19</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id=")*!+Utu:!M6#cTUX5jJ~" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="les0g9Gqfg2tghdIDp*Y"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="kT}g-zwi*q`=zrs:~_ra"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="Lo5f(Sw46.32d]n1jxqD"> <field name="NUM">2</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="LgJl-!Wy;MC;dErgx~30"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="@7b#CF]*MU)+~Cy5ufeP"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="%MJ;Lq}Az1Kn)`oO;1i9"> <field name="NUM">3</field> </block> </value> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="l+[{RK9S*{KXDNWcYPL|" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="}si},VI6AlIG!22r/;G$"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="V0BHh:)k1;JRHpTR(qMS"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="xPXQg`.Nx^Cp?(EGcfrn"> <field name="NUM">19</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="JBC3C=D3z(E-8z`+pS9u"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="N4;{Q_4duo9W}AVu(6gy"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="x`pYYTZBf@^nvA8QN#aq"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO2"> <block type="variables_set" id="6YC.92dEDXIK4hbA*2|D"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="cEjM5k|zPXNruD/:L,B:"> <field name="NUM">40</field> </block> </value> </block> </statement> </block> </statement> <value name="IF1"> <block type="logic_operation" id="*eSL^~1@Os1/CK1DYz-l" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="C[vXD2?3Moar/fSW!]2:" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="==6GYET7g14iJ%r0aVGP"> <field name="OP">GTE</field> <value name="A"> <block type="variables_get" id="aVq6TB.MY!*D5OLE39Y~"> <field name="VAR" id="*_-GmR@MCKPKv:J@BmX9">Aussentemperatur</field> </block> </value> <value name="B"> <block type="variables_get" id="i0k~f$I,NO^aA@/qU10,"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="pnHUlwD-)?qe/!O/svx1"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="j]hbhZA4a$?]:3w5Re!1"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.temperature</field> </block> </value> <value name="B"> <block type="math_number" id="RCr(GO_9cV0;uUfo_r1H"> <field name="NUM">0.5</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="A9(8.g8UWAb.%RYr5=F5" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="8?9}SDz?z?9yF5[vDu_."> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="PcZnjkp/}*{4#*BY9|.i"> <field name="VAR" id="Q0]Lq],ip{HX/6~Fp30x">Innentemperatur</field> </block> </value> <value name="B"> <block type="math_number" id="HHkOJg=T%G_1zf:={#;`"> <field name="NUM">17</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="#cHoZt7/*sf3IbcXj#B-"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="U+Um/(/:koVw(_1ma#qI"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.value.wetterbedingung_sonne_wind</field> </block> </value> <value name="B"> <block type="math_number" id="`G?_Kg9YId?)f*njIV6q"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="e,^wX^O*yw2=0W`vc65U"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="QJ=9R=Q9#@[3fcU)xLwB"> <field name="NUM">0</field> </block> </value> </block> </statement> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="~@.QyU`p;xTp[_{T$ay]"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> <value name="VALUE"> <block type="math_number" id="C_.)F.vp=#hFXd}/$hDe"> <field name="NUM">0</field> </block> </value> </block> </statement> <next> <block type="comment" id="QItG9]J$ysxP0``Jdw`["> <field name="COMMENT">Nur Änderungen senden (Duty cycle)</field> <next> <block type="controls_if" id="O/!TgQ91UEpq*@21AkVz"> <value name="IF0"> <block type="logic_operation" id=":Fx.)AR#]cNL,n@CMB[p" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="{Y5G0%TM/D9hv:{_b2Ae"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="tZS{srpg6/yUvY=/$8^("> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> </block> </value> <value name="B"> <block type="get_value_var" id="3bw2cl;`pW/Mgn2$IxEa"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="^x-V@Rz#PdET7fiTEv]6"> <field name="TEXT">hm-rpc.1.OEQ0888649.1.LEVEL</field> </shadow> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="_#rfMxhBIFQV9StU!`WU"> <value name="BOOL"> <block type="variables_get" id="+{g%6xEEOwb[c%62Jy`U"> <field name="VAR" id="timeout" variabletype="timeout">timeout</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="q=;Vg99Rd|^P0,aXz=4V"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.1.OEQ0888649.1.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="eO()T`SZ`)]65-N:^XKk"> <field name="VAR" id="?gPo#pQYYOu=(4;YAvZP">level</field> </block> </value> <next> <block type="timeouts_settimeout" id="L7;^Cn;lH5YJcZ{l)cw4"> <field name="NAME">timeout</field> <field name="DELAY">30</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="variables_set" id="(pB_C43#)[3V~O]!2?NU"> <field name="VAR" id="timeout" variabletype="timeout">timeout</field> <value name="VALUE"> <block type="logic_null" id="E)0|^qoF,*tk8jzot]Pk"></block> </value> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </xml>
-
@homoran Hier nochmal als Bild:
-
@gezi70 sagte in Bestimmter Zeitabschnitt als Bedingung für Blockly - Wie?:
Ich versuche mal den Code hier rein zu bringen...
nutzt mir am Handy nix, aber das Bild
@gezi70 sagte in Bestimmter Zeitabschnitt als Bedingung für Blockly - Wie?:
Meine Frage wäre: wenn ich nun zwei gleiche Skripte hätte, meinetwegen eins von April bis Mitte Juni und wieder von September bis Oktober, und eines für die Sommermonate, wie kann ich die Zeiträume eingeben ohne einen Cron - Baustein zu verwenden? Ich hatte desöfteren mitbekommen, dass sich zwei Trigger in einem Blockly beißen... Oder macht das in diesem Falle nichts?
warum nicht dafür auch ein falls mit Zeitbereich, bzw zwei mit einem sonst falls für den anderen Zeitabschnitt?
-
@gezi70 sagte: von April bis Mitte Juni und wieder von September bis Oktober, und eines für die Sommermonate
-
@homoran sagte in Bestimmter Zeitabschnitt als Bedingung für Blockly - Wie?:
warum nicht dafür auch ein falls mit Zeitbereich, bzw zwei mit einem sonst falls für den anderen Zeitabschnitt?
@Gezi70
@paul53 hat es dir jetzt für@gezi70 sagte in Bestimmter Zeitabschnitt als Bedingung für Blockly - Wie?:
von April bis Mitte Juni und wieder von September bis Oktober,
gezeigt, jetzt musst du nur noch selber
@gezi70 sagte in Bestimmter Zeitabschnitt als Bedingung für Blockly - Wie?:
für die Sommermonate,
ein weiteres sonst falls einbauen
-
Ich danke euch von ganzem Herzen.
Ich liege leider bereits im Bett und bin nochmal mit dem Tablet fix online gegangen. Morgen mache ich mich dann drüber.
Vielen Dank nochmal! -
@homoran sagte: für die Sommermonate, ein weiteres sonst falls einbauen
Das ist bereits enthalten.
-
@paul53 sagte:
Das ist bereits enthalten.
und ich hab extra dreimal hingesehen!
da hab ich ja doppelt falsch gelegen
Natürlich ist der Sommer drin
Das Blockly steigt ja aus, wenn die erste Bedingung (Sommer) erfüllt ist.
und der sonst falls Teil braucht ja den Sommer dann nicht mehr explizit auszuschließen -
@homoran und @paul53
Ich habe das Skipt von paul53 1:1 übernommen und an die Stelle bevor die Zeiten ins Spiel kommen eingebaut.
Jetzt bin ich gespannt was in den nächsten Tagen passiert (denn es regnet gerade und das Fenster muss zu bleiben).
Ich setze den Status mal auf "gelöst",, in der Hoffnung dass ich es richtig eingesetzt habe. Vielen Dank euch beiden nochmal!