- Home
- Deutsch
- ioBroker Allgemein
- Unlogisch, oder?
Unlogisch, oder?
-
@Jan1 Hmm, klingt so weit logisch.....
Nicht immer ganz einfach die Logik zu schnellen wenn man gedanklich vertieft ist.Ich wollte halt vermeiden, dass immer wenn sich der Helligkeitswert ändert, das Objekt neu gesetzt wird.
Sondern nur neu gesetzt wenn größer oder kleiner 125. -
@Uli977
Hi, dann mach doch unten aus dem "sonst" ein "sonst falls" und dann ne Abrage ob der Wert kleiner als 125 ist und ob "Rollo hell" wahr ist -
@Uli977 sagte:
vermeiden, dass immer wenn sich der Helligkeitswert ändert, das Objekt neu gesetzt wird.
Sondern nur neu gesetzt wenn größer oder kleiner 125.Verwende eine Funktion anstelle der Abfrage des Ist-Zustandes im Bedingungs-Block und rufe sie zweimal auf.
-
@paul53 Das habe ich nicht verstanden. Kannst du mir das mal beispielhaft hier einbauen?
<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="vh$1Vf/:fEcxImN2n]k0" x="216" y="158"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="tfo!K_/{iAV9vOD,pUJY"> <field name="oid">hm-rpc.1.JEQ0127504.1.BRIGHTNESS</field> </shadow> </value> <statement name="STATEMENT"> <block type="comment" id="3CV12[Y.V7D.=iojL2E8"> <field name="COMMENT">Hell = Rollos Hoch</field> <next> <block type="controls_if" id="^$G6+:/WMZ|/WDB2fU#y"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="{nDDIm4l*Z:g9].e=6C6" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="KHO9xlj^73pIkb0+b`Wf"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="nG{dVB}AuR1/FS{N9@Ip"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.JEQ0127504.1.BRIGHTNESS</field> </block> </value> <value name="B"> <block type="math_number" id="Rl0JN=!80xgl5#n:]M/e"> <field name="NUM">125</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="jBdHxI2JqKwjN+GmSqz$" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="gb8@[=FK[/8fWlPn98~N" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="X3l,9dGhy[#al5e6UK}8"> <mutation end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">06:20</field> </block> </value> <value name="B"> <block type="logic_operation" id="xV*ut;]jRi:[vg}GUzAD"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="(!wu7Fe}G_Sp+-Xp#WJ="> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="ZOQ@u!;+UE24u%*!b9_I"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="x#9d(+umIVLR5}fcUI95"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="!H|u[@([;Oi#rKZBj!?1"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="3G_H|t2k7j?@UPrk}sxm"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="Zr.RQ+G+)4!LJw)}%JR*"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="V9HqfHfSj]+8E`cl5?Lo" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="F:Di?ZhZGohui{!i%vjA"> <mutation end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">07:20</field> </block> </value> <value name="B"> <block type="logic_operation" id="d)0(f^d.T}j~m()zFclQ"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="kwm^uszT!E7p4s/Jnhck"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="6,;gs.halVW.Y(zJ^a9H"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="05HB+edMRk+*}d3VSPCl"> <field name="NUM">6</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="X%~Vwv_8^+.TyyQtGJ|z"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="Qn4jafy(s/td9{FoAAjm"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="@a~*DJG!_+:$9c3;(|TR"> <field name="NUM">7</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="@?o}Iyi?XW#8ZByV0.rC"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.02_Rollos_Hell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="=z?*v!k]E(X!*pR^2okN"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="pushover" id="4|k:GHBv8v6oTYjjF68{" disabled="true"> <field name="INSTANCE"></field> <field name="SOUND"></field> <field name="PRIORITY">0</field> <field name="LOG"></field> <value name="MESSAGE"> <shadow type="text" id="eyA^I/w3/r9R%9FP{tLH"> <field name="TEXT">Rollos Hell AN</field> </shadow> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="control" id="l4L?F=?:Rb/sN+:Y7rYD"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.02_Rollos_Hell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="IERWc#kn@ijHN!U%Ui[^"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="comment" id="aDQI.zN@Y0?NS{0`Cl%h"> <field name="COMMENT">Dämmerung = Rollos Halb</field> <next> <block type="controls_if" id="WrmUXh.v%WGEhh{7qD=s"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id=",t^`Vq%U#ZHsusV_}0T#" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="f%*j_g*W7XIVN#rFCr`d" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="wBH@cHDAGXQl4t#6[V%$"> <field name="OP">LTE</field> <value name="A"> <block type="get_value" id="WA.:D@HD])@WLlSO|Gvx"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.JEQ0127504.1.BRIGHTNESS</field> </block> </value> <value name="B"> <block type="math_number" id="uIx]|)7*Hl=$%Hy]#^]T"> <field name="NUM">125</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="c+2VkY,,W-xSGDG,O@eo"> <field name="OP">GTE</field> <value name="A"> <block type="get_value" id="?u~RXQ~VYegl44Jkg]X*"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.JEQ0127504.1.BRIGHTNESS</field> </block> </value> <value name="B"> <block type="math_number" id="%avq4Z+Ip?}|GNV?|qiT"> <field name="NUM">105</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="-=^Ak@FKNg$j((cX+Z1," inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="E5op(4xW2Dv/z7FRB1ug" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="uC1hISQgqpAga62cr+D8"> <field name="OP">OR</field> <value name="A"> <block type="time_compare" id="1uQT`*Amom~*fX#ZB2AS"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">06:15</field> <field name="END_TIME">10:00</field> </block> </value> <value name="B"> <block type="time_compare" id="=/;Y=.5XI{:=hss+Ed};"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">16:30</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="dL`fY?M2;UoVsJ_d%!3Z"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="I{?,c%0{-`3tsiJdm]uY"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="}3Xv%RKs;@iBi~)Vx:Le"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="zl5XW)sp}XS-(8xxJ!S="> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="XS:b%JJS)vO}7CR-SiH="> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="PWCo%By|o/Ft=f_~+$ao"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="5IPDj?4T-x*,{V8f9nXx"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="ab$yI6qv2Y+OmXLz`;yP" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="1(EUrvh.y5q{!qn@#rFG"> <field name="OP">OR</field> <value name="A"> <block type="time_compare" id="vGV1fZfc+zYt(ewXxvY!"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">07:15</field> <field name="END_TIME">10:00</field> </block> </value> <value name="B"> <block type="time_compare" id="3vD:`(5CWOI?jo_9PRQx"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">16:30</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="mx7L(A+HHRyY{2%wYPlY"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="}V/RE1JlSG|NP=S?Sv=e"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="b86gLl[+s)zcK`BWixG:"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="^T(C=9D[[vk!~Ss|4%~Z"> <field name="NUM">6</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id=")l[}Vin`Q5a3~V47Fh1{"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="y}/}cS`o?HUzlc,$v5vK"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="J+9O;KtBdj,76TIFI1Yo"> <field name="NUM">7</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="AOBDiRl;jYW=Z[WG++%%"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.01_Rollos_Dämmerung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="5L6AyjyC`8.:~^1yeaSF"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="pushover" id="FN?%|roNq:pU5Qs:]@YW" disabled="true"> <field name="INSTANCE"></field> <field name="SOUND"></field> <field name="PRIORITY">0</field> <field name="LOG"></field> <value name="MESSAGE"> <shadow type="text" id="|0lN~.oJ_)-x*4tsx5Jb"> <field name="TEXT">Rollos Dämmerung AN</field> </shadow> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="control" id="e{scLL_Wuw/CcL~e2)+S"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.01_Rollos_Dämmerung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Kb]^cEoW[{YGkajitBgs"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="comment" id="yaPNb~E7!a9neR5)(UWz"> <field name="COMMENT">Dunkel = Rollos Runter</field> <next> <block type="controls_if" id="5eP+!pNjWSP96Fvjo+RY"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="@2~EQb?HpAQ01wtII]-c" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="{_h@TGUJY`dUfb9gj:M("> <field name="OP">LT</field> <value name="A"> <block type="get_value" id=")HNSRuOfojP_tERH5/N["> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.JEQ0127504.1.BRIGHTNESS</field> </block> </value> <value name="B"> <block type="math_number" id="%)wvV|;NkUVh@}KH-9s%"> <field name="NUM">105</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="4`I:O+}-mE2{$1vvtwie"> <mutation end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">20:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="dJztT|k(pQoHksax)7?c"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.03_Rollos_Dunkel</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="!3z,F)E`F9!i@kmg!5h)"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="pushover" id="9JZnsogK$rZpG5yR3pXv" disabled="true"> <field name="INSTANCE"></field> <field name="SOUND"></field> <field name="PRIORITY">0</field> <field name="LOG"></field> <value name="MESSAGE"> <shadow type="text" id="]],9cSQ(!f$?^|{*vO=1"> <field name="TEXT">Rollos Dunkel AN</field> </shadow> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="control" id="5Rz4mw9U6{CsvH[f^/(A"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.03_Rollos_Dunkel</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="6YMgu6^Ql$XG@lV0l/dF"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>
Eigentlich will ich nur hier sehen können, wann sich der Status zuletzt geändert hat. Aber er zeigt hier immer die letzte Aktualisierung.
-
@Uli977 sagte:
Kannst du mir das mal beispielhaft hier einbauen?
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="syU,#JZP%PfjRY~TR}y}">an</variable> </variables> <block type="procedures_defnoreturn" id="i,rn}%)D74@At@*q%T*J" x="1063" y="162"> <mutation> <arg name="an" varid="syU,#JZP%PfjRY~TR}y}"></arg> </mutation> <field name="NAME">Rolloshoch</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="controls_if" id="oDVP[wHj1?nE{Y65Xlg#"> <value name="IF0"> <block type="logic_compare" id="S0k]xJj^92IX/=426Mgo"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="n@{0}l7?wIrv}=6zB_oM"> <field name="VAR" id="syU,#JZP%PfjRY~TR}y}" variabletype="">an</field> </block> </value> <value name="B"> <block type="get_value_var" id="sX|w;aWHBY-^Ebp1!ibN"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="-z6%VF@:8i}(gJ*!{MvX"> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.02_Rollos_Hell</field> </shadow> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="@?o}Iyi?XW#8ZByV0.rC"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.02_Rollos_Hell</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="OX_Gy~4*UQq:kRzx!~x1"> <field name="VAR" id="syU,#JZP%PfjRY~TR}y}" variabletype="">an</field> </block> </value> <next> <block type="controls_if" id="5lvLDb0fo_q^x82|G}[X"> <value name="IF0"> <block type="variables_get" id="LoO`b~q20.~Sv_x5ah{/"> <field name="VAR" id="syU,#JZP%PfjRY~TR}y}" variabletype="">an</field> </block> </value> <statement name="DO0"> <block type="pushover" id="4|k:GHBv8v6oTYjjF68{" disabled="true"> <field name="INSTANCE"></field> <field name="SOUND"></field> <field name="PRIORITY">0</field> <field name="LOG"></field> <value name="MESSAGE"> <shadow type="text" id="eyA^I/w3/r9R%9FP{tLH"> <field name="TEXT">Rollos Hell AN</field> </shadow> </value> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> <block type="on_ext" id="vh$1Vf/:fEcxImN2n]k0" x="284" y="206"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="tfo!K_/{iAV9vOD,pUJY"> <field name="oid">hm-rpc.1.JEQ0127504.1.BRIGHTNESS</field> </shadow> </value> <statement name="STATEMENT"> <block type="comment" id="3CV12[Y.V7D.=iojL2E8"> <field name="COMMENT">Hell = Rollos Hoch</field> <next> <block type="controls_if" id="^$G6+:/WMZ|/WDB2fU#y"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="{nDDIm4l*Z:g9].e=6C6" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="KHO9xlj^73pIkb0+b`Wf"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id="U28dcR#%rb0P{r$L?D[;"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="Rl0JN=!80xgl5#n:]M/e"> <field name="NUM">125</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="jBdHxI2JqKwjN+GmSqz$" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="gb8@[=FK[/8fWlPn98~N" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="X3l,9dGhy[#al5e6UK}8"> <mutation end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">06:20</field> </block> </value> <value name="B"> <block type="logic_compare" id="!H|u[@([;Oi#rKZBj!?1"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="3G_H|t2k7j?@UPrk}sxm"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="Zr.RQ+G+)4!LJw)}%JR*"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="V9HqfHfSj]+8E`cl5?Lo" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="F:Di?ZhZGohui{!i%vjA"> <mutation end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">07:20</field> </block> </value> <value name="B"> <block type="logic_compare" id="kwm^uszT!E7p4s/Jnhck"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="6,;gs.halVW.Y(zJ^a9H"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="05HB+edMRk+*}d3VSPCl"> <field name="NUM">6</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="procedures_callnoreturn" id="+5L;V(0vm?h,DsB~iaS3" inline="true"> <mutation name="Rolloshoch"> <arg name="an"></arg> </mutation> <value name="ARG0"> <block type="logic_boolean" id="+dU!,!j2jGU0yZ+M-YPi"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="procedures_callnoreturn" id="vjE6CT#1x)R}-=KP`r~+" inline="true"> <mutation name="Rolloshoch"> <arg name="an"></arg> </mutation> <value name="ARG0"> <block type="logic_boolean" id="[=d$DBB)cY4-dXc]MwN="> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="comment" id="aDQI.zN@Y0?NS{0`Cl%h"> <field name="COMMENT">Dämmerung = Rollos Halb</field> <next> <block type="controls_if" id="WrmUXh.v%WGEhh{7qD=s"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id=",t^`Vq%U#ZHsusV_}0T#" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="f%*j_g*W7XIVN#rFCr`d" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="wBH@cHDAGXQl4t#6[V%$"> <field name="OP">LTE</field> <value name="A"> <block type="on_source" id="v~uZ/~lo5=*.H,XT!ZVm"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="uIx]|)7*Hl=$%Hy]#^]T"> <field name="NUM">125</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="o-ybV|H#h}4}3W+uCrUM"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="aSc1qCZ5eXSW5#*w:;Q0"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="`pZQ|SN8^=8T4l~3aht["> <field name="NUM">105</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="-=^Ak@FKNg$j((cX+Z1," inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="E5op(4xW2Dv/z7FRB1ug" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="uC1hISQgqpAga62cr+D8" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="time_compare" id="1uQT`*Amom~*fX#ZB2AS"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">06:15</field> <field name="END_TIME">10:00</field> </block> </value> <value name="B"> <block type="time_compare" id="=/;Y=.5XI{:=hss+Ed};"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">16:30</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="XS:b%JJS)vO}7CR-SiH="> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="PWCo%By|o/Ft=f_~+$ao"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="5IPDj?4T-x*,{V8f9nXx"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="ab$yI6qv2Y+OmXLz`;yP" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="1(EUrvh.y5q{!qn@#rFG" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="time_compare" id="vGV1fZfc+zYt(ewXxvY!"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">07:15</field> <field name="END_TIME">10:00</field> </block> </value> <value name="B"> <block type="time_compare" id="3vD:`(5CWOI?jo_9PRQx"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">16:30</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="}V/RE1JlSG|NP=S?Sv=e"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="b86gLl[+s)zcK`BWixG:"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="^T(C=9D[[vk!~Ss|4%~Z"> <field name="NUM">6</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="procedures_callnoreturn" id=")ZDU?[tm5IuV3-HBHp)M" inline="true"> <mutation name="Rolloshalb"> <arg name="an"></arg> </mutation> <value name="ARG0"> <block type="logic_boolean" id="^yyi2(r3h88M(`MFzoR="> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="procedures_callnoreturn" id="{3.l=+PQz0tDR-rvR_5$" inline="true"> <mutation name="Rolloshalb"> <arg name="an"></arg> </mutation> <value name="ARG0"> <block type="logic_boolean" id="x*jp(J`FNtaz/31,WtC;"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="comment" id="yaPNb~E7!a9neR5)(UWz"> <field name="COMMENT">Dunkel = Rollos Runter</field> <next> <block type="controls_if" id="5eP+!pNjWSP96Fvjo+RY"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="@2~EQb?HpAQ01wtII]-c" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="X+:5g/m#RW[KQqU4@Y~r"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="n}(_%2FfNuZI;@=GvCjk"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="|P1bNP1=9XyI+uRyu7w8"> <field name="NUM">105</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="4`I:O+}-mE2{$1vvtwie"> <mutation end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">20:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="procedures_callnoreturn" id="{mTzcgJ1y?:0EBJr^uhu" inline="true"> <mutation name="Rollosrunter"> <arg name="an"></arg> </mutation> <value name="ARG0"> <block type="logic_boolean" id="rq0$ip*SepuSuxr9ROUM"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="procedures_callnoreturn" id="l]2N6^!^Lp!kuYJ]Vh~^" inline="true"> <mutation name="Rollosrunter"> <arg name="an"></arg> </mutation> <value name="ARG0"> <block type="logic_boolean" id="]X^,TmLrJA@zy1~L+c{o"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> <block type="procedures_defnoreturn" id="EZPCn)sFX=wvr||6@`N]" x="1063" y="613"> <mutation> <arg name="an" varid="syU,#JZP%PfjRY~TR}y}"></arg> </mutation> <field name="NAME">Rolloshalb</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="controls_if" id=",tJPZL9nsKcYblR3ZYM}"> <value name="IF0"> <block type="logic_compare" id="YvO]|7|4yC]LOA?/7%y6"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="?:Y}fvg%qAA%,umbH6b+"> <field name="VAR" id="syU,#JZP%PfjRY~TR}y}" variabletype="">an</field> </block> </value> <value name="B"> <block type="get_value_var" id="0iyM=(vCxl|W*B#?W2]/"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="}7N4;uCFL~-sXMaRPP*."> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.01_Rollos_Dämmerung</field> </shadow> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="AOBDiRl;jYW=Z[WG++%%"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.01_Rollos_Dämmerung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="7us_@%rno](p6n.os@sD"> <field name="VAR" id="syU,#JZP%PfjRY~TR}y}" variabletype="">an</field> </block> </value> <next> <block type="controls_if" id="}=h/OyQo)py$p(a+L(kb"> <value name="IF0"> <block type="variables_get" id="),7@/tYeO:F%m%1T)YD["> <field name="VAR" id="syU,#JZP%PfjRY~TR}y}" variabletype="">an</field> </block> </value> <statement name="DO0"> <block type="pushover" id="5d/)EMjg|zN.zk*?7D{d" disabled="true"> <field name="INSTANCE"></field> <field name="SOUND"></field> <field name="PRIORITY">0</field> <field name="LOG"></field> <value name="MESSAGE"> <shadow type="text" id="Rgyur-G.g_VEyu,1}|CP"> <field name="TEXT">Rollos Dämmerung AN</field> </shadow> </value> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> <block type="procedures_defnoreturn" id="?:2Ew^*p60OIplI^w/C," x="1062" y="1062"> <mutation> <arg name="an" varid="syU,#JZP%PfjRY~TR}y}"></arg> </mutation> <field name="NAME">Rollosrunter</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="controls_if" id="GAw}e}1td~5_z)7I[|08"> <value name="IF0"> <block type="logic_compare" id="-vt#p/Z7!Brn(p)*8Nxd"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="zY|1B;mugpM=rGhRol)M"> <field name="VAR" id="syU,#JZP%PfjRY~TR}y}" variabletype="">an</field> </block> </value> <value name="B"> <block type="get_value_var" id="pbm8lyIl{5uUWHyKLf!S"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="yv0X(!B|o6X]@E%~D07P"> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.03_Rollos_Dunkel</field> </shadow> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="dJztT|k(pQoHksax)7?c"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.03_Rollos_Dunkel</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="-b^j0g(pAGL#|s-Zh:;q"> <field name="VAR" id="syU,#JZP%PfjRY~TR}y}" variabletype="">an</field> </block> </value> <next> <block type="controls_if" id="q#K}}wW[30SNdO$Kp7!Z"> <value name="IF0"> <block type="variables_get" id="{)2(L6c1c%QN|E@)*.gA"> <field name="VAR" id="syU,#JZP%PfjRY~TR}y}" variabletype="">an</field> </block> </value> <statement name="DO0"> <block type="pushover" id="9JZnsogK$rZpG5yR3pXv" disabled="true"> <field name="INSTANCE"></field> <field name="SOUND"></field> <field name="PRIORITY">0</field> <field name="LOG"></field> <value name="MESSAGE"> <shadow type="text" id="]],9cSQ(!f$?^|{*vO=1"> <field name="TEXT">Rollos Dunkel AN</field> </shadow> </value> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> </xml>
-
@paul53 Uff...... das ist ja was! Kleines Thema, kompliziertes Programm.
Danke dir!
-
@Uli977
Wenn man noch die Datenpunkt-ID und den Pushover-Text an die Funktion übergibt, kommt man mit einer Funktion aus.<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="xg+w6vJ%Q(GS7z~M+Yx7">id</variable> <variable type="" id="syU,#JZP%PfjRY~TR}y}">an</variable> <variable type="" id="3U:fR:NTK]((S%BF:qKU">text</variable> </variables> <block type="on_ext" id="vh$1Vf/:fEcxImN2n]k0" x="284" y="206"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="tfo!K_/{iAV9vOD,pUJY"> <field name="oid">hm-rpc.1.JEQ0127504.1.BRIGHTNESS</field> </shadow> </value> <statement name="STATEMENT"> <block type="comment" id="3CV12[Y.V7D.=iojL2E8"> <field name="COMMENT">Hell = Rollos Hoch</field> <next> <block type="controls_if" id="^$G6+:/WMZ|/WDB2fU#y"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="{nDDIm4l*Z:g9].e=6C6" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="KHO9xlj^73pIkb0+b`Wf"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id="U28dcR#%rb0P{r$L?D[;"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="Rl0JN=!80xgl5#n:]M/e"> <field name="NUM">125</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="jBdHxI2JqKwjN+GmSqz$" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="gb8@[=FK[/8fWlPn98~N" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="X3l,9dGhy[#al5e6UK}8"> <mutation end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">06:20</field> </block> </value> <value name="B"> <block type="logic_compare" id="!H|u[@([;Oi#rKZBj!?1"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="3G_H|t2k7j?@UPrk}sxm"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="Zr.RQ+G+)4!LJw)}%JR*"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="V9HqfHfSj]+8E`cl5?Lo" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="F:Di?ZhZGohui{!i%vjA"> <mutation end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">07:20</field> </block> </value> <value name="B"> <block type="logic_compare" id="kwm^uszT!E7p4s/Jnhck"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="6,;gs.halVW.Y(zJ^a9H"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="05HB+edMRk+*}d3VSPCl"> <field name="NUM">6</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="procedures_callnoreturn" id="+5L;V(0vm?h,DsB~iaS3" inline="false"> <mutation name="Rollos"> <arg name="id"></arg> <arg name="an"></arg> <arg name="text"></arg> </mutation> <value name="ARG0"> <block type="text" id="E_vbv1WsYGPy@e8h5Rot"> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.02_Rollos_Hell</field> </block> </value> <value name="ARG1"> <block type="logic_boolean" id="+dU!,!j2jGU0yZ+M-YPi"> <field name="BOOL">TRUE</field> </block> </value> <value name="ARG2"> <block type="text" id="u:.LP3Y|dT3)VQtY3T4^"> <field name="TEXT">Rollos Hell AN</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="procedures_callnoreturn" id="vjE6CT#1x)R}-=KP`r~+" inline="false"> <mutation name="Rollos"> <arg name="id"></arg> <arg name="an"></arg> <arg name="text"></arg> </mutation> <value name="ARG0"> <block type="text" id="`QDlCvb_6oa_n@{vMwaV"> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.02_Rollos_Hell</field> </block> </value> <value name="ARG1"> <block type="logic_boolean" id="[=d$DBB)cY4-dXc]MwN="> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="comment" id="aDQI.zN@Y0?NS{0`Cl%h"> <field name="COMMENT">Dämmerung = Rollos Halb</field> <next> <block type="controls_if" id="WrmUXh.v%WGEhh{7qD=s"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id=",t^`Vq%U#ZHsusV_}0T#" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="f%*j_g*W7XIVN#rFCr`d" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="wBH@cHDAGXQl4t#6[V%$"> <field name="OP">LTE</field> <value name="A"> <block type="on_source" id="v~uZ/~lo5=*.H,XT!ZVm"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="uIx]|)7*Hl=$%Hy]#^]T"> <field name="NUM">125</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="o-ybV|H#h}4}3W+uCrUM"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="aSc1qCZ5eXSW5#*w:;Q0"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="`pZQ|SN8^=8T4l~3aht["> <field name="NUM">105</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="-=^Ak@FKNg$j((cX+Z1," inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="E5op(4xW2Dv/z7FRB1ug" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="uC1hISQgqpAga62cr+D8" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="time_compare" id="1uQT`*Amom~*fX#ZB2AS"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">06:15</field> <field name="END_TIME">10:00</field> </block> </value> <value name="B"> <block type="time_compare" id="=/;Y=.5XI{:=hss+Ed};"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">16:30</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="XS:b%JJS)vO}7CR-SiH="> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="PWCo%By|o/Ft=f_~+$ao"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="5IPDj?4T-x*,{V8f9nXx"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="ab$yI6qv2Y+OmXLz`;yP" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="1(EUrvh.y5q{!qn@#rFG" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="time_compare" id="vGV1fZfc+zYt(ewXxvY!"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">07:15</field> <field name="END_TIME">10:00</field> </block> </value> <value name="B"> <block type="time_compare" id="3vD:`(5CWOI?jo_9PRQx"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">16:30</field> <field name="END_TIME">23:00</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="}V/RE1JlSG|NP=S?Sv=e"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="b86gLl[+s)zcK`BWixG:"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="^T(C=9D[[vk!~Ss|4%~Z"> <field name="NUM">6</field> </block> </value> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="procedures_callnoreturn" id="bWmLO.%/G~Zo$Ap`T5kG" inline="false"> <mutation name="Rollos"> <arg name="id"></arg> <arg name="an"></arg> <arg name="text"></arg> </mutation> <value name="ARG0"> <block type="text" id="lTzB5sZ|nM;b(;g=ijw}"> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.01_Rollos_Dämmerung</field> </block> </value> <value name="ARG1"> <block type="logic_boolean" id="O+_q6EoiWn|QvL=mQT}}"> <field name="BOOL">TRUE</field> </block> </value> <value name="ARG2"> <block type="text" id="s6di?Zk#|3ttJ%7}g7fD"> <field name="TEXT">Rollos Dämmerung AN</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="procedures_callnoreturn" id="b=V,5lRSm)bm2RHF%Ihj" inline="false"> <mutation name="Rollos"> <arg name="id"></arg> <arg name="an"></arg> <arg name="text"></arg> </mutation> <value name="ARG0"> <block type="text" id="KyneViF}gMi;A::{HA$N"> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.01_Rollos_Dämmerung</field> </block> </value> <value name="ARG1"> <block type="logic_boolean" id="G(i=#_HON{Lv#.+UWhGu"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <next> <block type="comment" id="yaPNb~E7!a9neR5)(UWz"> <field name="COMMENT">Dunkel = Rollos Runter</field> <next> <block type="controls_if" id="5eP+!pNjWSP96Fvjo+RY"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="@2~EQb?HpAQ01wtII]-c" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="X+:5g/m#RW[KQqU4@Y~r"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="n}(_%2FfNuZI;@=GvCjk"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="|P1bNP1=9XyI+uRyu7w8"> <field name="NUM">105</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="4`I:O+}-mE2{$1vvtwie"> <mutation end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">20:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="procedures_callnoreturn" id="#i_1$6}ezl$#/4F8o]Y1" inline="false"> <mutation name="Rollos"> <arg name="id"></arg> <arg name="an"></arg> <arg name="text"></arg> </mutation> <value name="ARG0"> <block type="text" id="p1Bz5Pw1_LgyA3-P9;Or"> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.03_Rollos_Dunkel</field> </block> </value> <value name="ARG1"> <block type="logic_boolean" id="m-b0vNWg7%rAxoc0R/kl"> <field name="BOOL">TRUE</field> </block> </value> <value name="ARG2"> <block type="text" id="K#)Gl0No3R0h,!re0A4{"> <field name="TEXT">Rollos Dunkel AN</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="procedures_callnoreturn" id="(c`327xh[N8ed!d6U!kl" inline="false"> <mutation name="Rollos"> <arg name="id"></arg> <arg name="an"></arg> <arg name="text"></arg> </mutation> <value name="ARG0"> <block type="text" id="$wvBb9km^@k:k3RQnDfT"> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.03_Rollos_Dunkel</field> </block> </value> <value name="ARG1"> <block type="logic_boolean" id="+7((+Vo%_wga7FxKJL_Y"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> <block type="procedures_defnoreturn" id="i,rn}%)D74@At@*q%T*J" x="912" y="1038"> <mutation> <arg name="id" varid="xg+w6vJ%Q(GS7z~M+Yx7"></arg> <arg name="an" varid="syU,#JZP%PfjRY~TR}y}"></arg> <arg name="text" varid="3U:fR:NTK]((S%BF:qKU"></arg> </mutation> <field name="NAME">Rollos</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="controls_if" id="oDVP[wHj1?nE{Y65Xlg#"> <value name="IF0"> <block type="logic_compare" id="S0k]xJj^92IX/=426Mgo"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="n@{0}l7?wIrv}=6zB_oM"> <field name="VAR" id="syU,#JZP%PfjRY~TR}y}" variabletype="">an</field> </block> </value> <value name="B"> <block type="get_value_var" id="sX|w;aWHBY-^Ebp1!ibN"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="-z6%VF@:8i}(gJ*!{MvX"> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.02_Rollos_Hell</field> </shadow> <block type="variables_get" id="k[3+0un*MG@|x!)Gv$[$"> <field name="VAR" id="xg+w6vJ%Q(GS7z~M+Yx7" variabletype="">id</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control_ex" id="nQNoF|lS6ca^`4v8#JBj" inline="true"> <field name="TYPE">true</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="V*`k!$zP/XOwU}470*!R"> <field name="oid">Object ID</field> </shadow> <block type="variables_get" id="Rn0EETx*IGvA+AmM8t$t"> <field name="VAR" id="xg+w6vJ%Q(GS7z~M+Yx7" variabletype="">id</field> </block> </value> <value name="VALUE"> <shadow type="logic_boolean" id="AJ#yt*m6@rS?;X5!U=v;"> <field name="BOOL">TRUE</field> </shadow> <block type="variables_get" id="OX_Gy~4*UQq:kRzx!~x1"> <field name="VAR" id="syU,#JZP%PfjRY~TR}y}" variabletype="">an</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="i.j,FDpkCoigAop}F]GD"> <field name="NUM">0</field> </shadow> </value> <next> <block type="controls_if" id="5lvLDb0fo_q^x82|G}[X"> <value name="IF0"> <block type="variables_get" id="LoO`b~q20.~Sv_x5ah{/"> <field name="VAR" id="syU,#JZP%PfjRY~TR}y}" variabletype="">an</field> </block> </value> <statement name="DO0"> <block type="pushover" id="4|k:GHBv8v6oTYjjF68{" disabled="true"> <field name="INSTANCE"></field> <field name="SOUND"></field> <field name="PRIORITY">0</field> <field name="LOG"></field> <value name="MESSAGE"> <shadow type="text" id="eyA^I/w3/r9R%9FP{tLH"> <field name="TEXT">Rollos Hell AN</field> </shadow> <block type="variables_get" id="q}4rjh,i-~BwSB_!;^lp"> <field name="VAR" id="3U:fR:NTK]((S%BF:qKU" variabletype="">text</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> </xml>
-
@paul53 .... Danke!
-->Wenn man noch die Datenpunkt-ID und den Pushover-Text an die Funktion übergibt, kommt man mit einer Funktion aus.
Liegt aber ausßerhalb meines Horizontes..... leider!Ich versuche mal das Erste herzuleiten.
Du setzt also
Rolloshoch an = wahr
sonst
Rolloshoch an = falsch (also quasi aus)
nach Rolloshoch an (ist also der Tigger, denke ich)
Falles Rolloshoch an ist und dies ungleich dem Datenpunkt 02_Rollos_hell ist, dann setzt eben diesen Datenpunkt auf an.Habe ich das halbwegs richtig erfasst?
-
@Uli977 sagte:
nach Rolloshoch an (ist also der Tigger, denke ich)
Rolloshoch ist der Name der Funktion.
@Uli977 sagte in Unlogisch, oder?:
Falles Rolloshoch an ist und dies ungleich dem Datenpunkt 02_Rollos_hell ist, dann setzt eben diesen Datenpunkt auf an.
Falls der Wert von an ungleich dem Wert des Datenpunktes ist, wird der Datenpunkt auf den Wert von an (true oder false) gesetzt.
@Uli977 sagte in Unlogisch, oder?:
Du setzt also
Rolloshoch an = wahr
sonst
Rolloshoch an = falsch (also quasi aus)Der Aufruf der Funktion Rolloshoch erfolgt mit Übergabe von wahr bzw. falsch an den Funktionsparameter an.
-
@Uli977
Übrigens:- Wenn in der Zeit zwischen 20:00 Uhr und 23:00 Uhr die Helligkeit um den Wert von 105 schwankt, fahren die Rollos auf und ab.
- Rollos in 3 Zustände zu steuern (runter / halb / hoch) ist die typische Anwendung für einen Datenpunkt vom Typ "Werteliste".
-
@Uli977
Beispiel mit einem Werteliste-Datenpunkt (0 = runter / 1 = halb / 2 = hoch), der nicht pendeln sollte, wenn die Helligkeit um den Grenzwert schwankt:<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id=":zvUsC0|Kab)@w#8FyU*">pos</variable> <variable type="" id="3U:fR:NTK]((S%BF:qKU">text</variable> <variable type="" id="OGmWDgWGPI,X=.mQGeRi">position</variable> </variables> <block type="on_ext" id="vh$1Vf/:fEcxImN2n]k0" x="284" y="206"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="tfo!K_/{iAV9vOD,pUJY"> <field name="oid">hm-rpc.1.JEQ0127504.1.BRIGHTNESS</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="lN5qRzU4D#}GrF6c6rw."> <field name="VAR" id="OGmWDgWGPI,X=.mQGeRi" variabletype="">position</field> <value name="VALUE"> <block type="get_value_var" id="EkukU7CWM9Cc|KlL@](("> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="if+bcv~aJm8(_v4!N*Qt"> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.Position</field> </shadow> </value> </block> </value> <next> <block type="controls_if" id="^$G6+:/WMZ|/WDB2fU#y"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="jBdHxI2JqKwjN+GmSqz$" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="gb8@[=FK[/8fWlPn98~N" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="X3l,9dGhy[#al5e6UK}8"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">06:20</field> <field name="END_TIME">13:00</field> </block> </value> <value name="B"> <block type="logic_compare" id="!H|u[@([;Oi#rKZBj!?1"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="3G_H|t2k7j?@UPrk}sxm"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="Zr.RQ+G+)4!LJw)}%JR*"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="V9HqfHfSj]+8E`cl5?Lo" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare" id="F:Di?ZhZGohui{!i%vjA"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">07:20</field> <field name="END_TIME">13:00</field> </block> </value> <value name="B"> <block type="logic_compare" id="kwm^uszT!E7p4s/Jnhck"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="6,;gs.halVW.Y(zJ^a9H"> <mutation format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="05HB+edMRk+*}d3VSPCl"> <field name="NUM">6</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="_nvT*^^T/pjRc+Gr-G/,"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="KHO9xlj^73pIkb0+b`Wf"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id="U28dcR#%rb0P{r$L?D[;"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="Rl0JN=!80xgl5#n:]M/e"> <field name="NUM">125</field> </block> </value> </block> </value> <statement name="DO0"> <block type="procedures_callnoreturn" id="+5L;V(0vm?h,DsB~iaS3" inline="false"> <mutation name="Rollos"> <arg name="pos"></arg> <arg name="text"></arg> </mutation> <value name="ARG0"> <block type="math_number" id="m;Pvd1z0f6aI=)1YUv04"> <field name="NUM">2</field> </block> </value> <value name="ARG1"> <block type="text" id="u:.LP3Y|dT3)VQtY3T4^"> <field name="TEXT">Rollos Hell AN</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_operation" id="{nDDIm4l*Z:g9].e=6C6" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="t0h#-RxZI7fDK%e(nSz1"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="g#6,(3P^*]a3Hsg[DkF."> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="P2?W7)Y|z~?CE5o?M/`u"> <field name="NUM">105</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="2Z#Fp+m`%vir/U1+8r9="> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="~nxV{-pa1}4sNa6=OJ(z"> <field name="VAR" id="OGmWDgWGPI,X=.mQGeRi" variabletype="">position</field> </block> </value> <value name="B"> <block type="math_number" id="Z)r-xEtuX8.A7)Vf?,q["> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="procedures_callnoreturn" id="vjE6CT#1x)R}-=KP`r~+" inline="false"> <mutation name="Rollos"> <arg name="pos"></arg> <arg name="text"></arg> </mutation> <value name="ARG0"> <block type="math_number" id="NNmycRmhg7mIge|.//eR"> <field name="NUM">1</field> </block> </value> <value name="ARG1"> <block type="text" id="s6di?Zk#|3ttJ%7}g7fD"> <field name="TEXT">Rollos Dämmerung AN</field> </block> </value> </block> </statement> </block> </statement> <value name="IF1"> <block type="time_compare" id="3vD:`(5CWOI?jo_9PRQx"> <mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">16:30</field> <field name="END_TIME">23:00</field> </block> </value> <statement name="DO1"> <block type="controls_if" id="20tMCwFK~z~lsj4W*Ap6"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="kF}oo6q+KDk9.=niG$$;"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="#iG#-8x{3%T/A^1ZW:f0"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="qUyPku]-h{X_G8bUW]dY"> <field name="NUM">105</field> </block> </value> </block> </value> <statement name="DO0"> <block type="procedures_callnoreturn" id="19HUA@=jzzD?E|C.*+Ve" inline="false"> <mutation name="Rollos"> <arg name="pos"></arg> <arg name="text"></arg> </mutation> <value name="ARG0"> <block type="math_number" id="HQO5,$*Ku?$8^S2H0v|p"> <field name="NUM">0</field> </block> </value> <value name="ARG1"> <block type="text" id="K#)Gl0No3R0h,!re0A4{"> <field name="TEXT">Rollos Dunkel AN</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_operation" id="XD(}sOfU8=x%l^2V,dRn" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="#BzXE0EML#Jxi$*eTZul"> <field name="OP">LTE</field> <value name="A"> <block type="on_source" id="0MVZ{._bY71nK2E4B2-]"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="C@!{A@Nc+r19dvJ_]hDp"> <field name="NUM">125</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="1[.7Pu]|X%R--vf=Pqi7"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="J?Kq4?Va0z1O0IRW!Ibg"> <field name="VAR" id="OGmWDgWGPI,X=.mQGeRi" variabletype="">position</field> </block> </value> <value name="B"> <block type="math_number" id="2G3]iiA/3LI(fhP2!|9c"> <field name="NUM">2</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="procedures_callnoreturn" id="ND.6MMjRv;@lp]@d}`P~" inline="false"> <mutation name="Rollos"> <arg name="pos"></arg> <arg name="text"></arg> </mutation> <value name="ARG0"> <block type="math_number" id="Sk1pVsEB-cP~@8%pf.98"> <field name="NUM">1</field> </block> </value> <value name="ARG1"> <block type="text" id="-AYd!UVDe(Ie,-f-a6+n"> <field name="TEXT">Rollos Dämmerung AN</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </statement> </block> <block type="procedures_defnoreturn" id="i,rn}%)D74@At@*q%T*J" x="788" y="513"> <mutation> <arg name="pos" varid=":zvUsC0|Kab)@w#8FyU*"></arg> <arg name="text" varid="3U:fR:NTK]((S%BF:qKU"></arg> </mutation> <field name="NAME">Rollos</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="controls_if" id="oDVP[wHj1?nE{Y65Xlg#"> <value name="IF0"> <block type="logic_compare" id="S0k]xJj^92IX/=426Mgo"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="n@{0}l7?wIrv}=6zB_oM"> <field name="VAR" id=":zvUsC0|Kab)@w#8FyU*" variabletype="">pos</field> </block> </value> <value name="B"> <block type="get_value_var" id="sX|w;aWHBY-^Ebp1!ibN"> <field name="ATTR">val</field> <value name="OID"> <shadow type="text" id="-z6%VF@:8i}(gJ*!{MvX"> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.Position</field> </shadow> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control_ex" id="nQNoF|lS6ca^`4v8#JBj"> <field name="TYPE">true</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="V*`k!$zP/XOwU}470*!R"> <field name="oid">Object ID</field> </shadow> <block type="text" id="Q2XXyS|E~$XT@RS:|^RM"> <field name="TEXT">javascript.0.Eigene_Datenpunkte.Rollos.Position</field> </block> </value> <value name="VALUE"> <shadow type="logic_boolean" id="AJ#yt*m6@rS?;X5!U=v;"> <field name="BOOL">TRUE</field> </shadow> <block type="variables_get" id="OX_Gy~4*UQq:kRzx!~x1"> <field name="VAR" id=":zvUsC0|Kab)@w#8FyU*" variabletype="">pos</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="i.j,FDpkCoigAop}F]GD"> <field name="NUM">0</field> </shadow> </value> <next> <block type="pushover" id="4|k:GHBv8v6oTYjjF68{"> <field name="INSTANCE"></field> <field name="SOUND"></field> <field name="PRIORITY">0</field> <field name="LOG"></field> <value name="MESSAGE"> <shadow type="text" id="eyA^I/w3/r9R%9FP{tLH"> <field name="TEXT">Rollos Hell AN</field> </shadow> <block type="variables_get" id="q}4rjh,i-~BwSB_!;^lp"> <field name="VAR" id="3U:fR:NTK]((S%BF:qKU" variabletype="">text</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </xml>
-
@paul53 Vorab mal eben, bevor ich mir das neue Skript ansehe.
Das hatte ich in Anwendung und Rollo_Dämmerung und Rollo_Dunkel sind gleichzeitig bei 121 auf ein gegangen....
Ist da was falsch?
EDIT: Jetzt (20:33) wo ich nochmal auf die Datenpunkte schaue ist es richtig. Hell = false / Dämmerung = wahr / Dunkel = false (Aktuelle Helligkeit 107)
-
@paul53 Alles klar....
Hab es jetzt so umgesetzt, vielleicht kannst du dir das mal ansehen.
Das von dir
Das entsprechende Programm für das Rollo dazu.
-
@paul53 Ich habe noch eine Frage....
Dieses Rollo soll nie auf halb fahren und erst frühestens um 20:30 Uhr komplett zu.
Im Sommer natürlich nur wenn Position 0 (runter) gesetzt ist, von mir aus auch erst um 22:30 Uhr.
Im Winter aber nicht vor 20:30 Uhr, auch nicht wenn zu diesem Zeitpunkt die 0 bereits um z.B. 17 Uhr erreicht wurde.Wie baue ich das am Besten ein?
So?
-
@paul53 Mir ist gerade was eingefallen....
Ich habe Rollos welche bei der morgendlichen Dämmerung hoch fahren sollen und ich habe welche die dies nicht tun sollen (Schlafräume).
Benötige ich dann nicht sogar 4 Zustände?0 = Dunkel = runter
1 = Dämmerung Morgen = halb
2 = Dämmerung Abend = halb
3 = Hell = hochOder mache ich das so?
Eine zusätzliche Zeit > 16:30 reinbringen -
@Uli977 sagte:
Eine zusätzliche Zeit > 16:30 reinbringen
Das kann man machen, denn man muss ja nur zwischen morgens und abends unterscheiden. Allerdings sind zu viele Abfragen mehrfach enthalten. Verwende besser geschachtelte falls-Blöcke.
-
@paul53 Was meinst du? Besser einen vierten Zustand, oder besser mit der Zeit arbeiten?
<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="RE]*yf?BO+D1I2Q[vtL=" x="1063" y="63"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="*Os]pxbYo2/_^AApvlh."> <field name="oid">javascript.0.Eigene_Datenpunkte.Rollos.01_Rollo_Position</field> </shadow> </value> <statement name="STATEMENT"> <block type="comment" id="*}1Wyj(wAQb/%8BDX3Q9"> <field name="COMMENT">Dämmerung - Halb hoch (1)</field> <next> <block type="comment" id="cU-VqW@Shvwji(qp2=a%"> <field name="COMMENT">Schlafz.Fenster.Links</field> <next> <block type="controls_if" id="17VH7cRk;:i$z=`sFFsA"> <value name="IF0"> <block type="logic_operation" id="$*8}tibLROsi(!qV;x`)" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="Y91Q?AZT[,lCf|Dtt3EG" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="pq,ApZMq?|[|l91R?gdg" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="9T1TKc9f9._|sPFvao8L"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="z1SjRq;QUcDmtYKge6Yo"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.42948</field> </block> </value> <value name="B"> <block type="logic_boolean" id="}|O`{[vIo7d[^mn1`/R:"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="*$4n:FsuO0LCEqq$6dPS"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="F,)EkXq;DV%:tD^sKi5U"> <field name="ATTR">val</field> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.01_Rollo_Position</field> </block> </value> <value name="B"> <block type="math_number" id="ZIq^vw#.m:.nG}wXegT;"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="L@t]G$kl!:apSEp-JX4^"> <mutation end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">16:30</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Lf+Qc^C+``Cs$V2[jP1U"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="@?bW4K4wh3Sa9U6eB=a4"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.OEQ1971970.1.LEVEL</field> </block> </value> <value name="B"> <block type="math_number" id="|aH~^d7LVBFO320L]q(a"> <field name="NUM">55</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="9KPYk#V?%PG9fKSbj7(X"> <mutation delay_input="true"></mutation> <field name="OID">hm-rpc.1.OEQ1971970.1.LEVEL</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="math_number" id="{z),lML{ioh^b2nJ?^5;"> <field name="NUM">55</field> </block> </value> </block> </statement> <next> <block type="comment" id="@d`*vMQ4,!;K.7*4%O`["> <field name="COMMENT">Schlafz.Fenster.Rechts</field> <next> <block type="controls_if" id=")#]MF=75UZ0~/=(]iTni"> <value name="IF0"> <block type="logic_operation" id="`-u1?O$m=dq#7aum3.1w" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="%QkIV2-}2!:qDTG9(#b[" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="W59ckgPktK/BxcZnVp@6" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="X4m%J?93au/u92/;PrrY"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="(;tMmF)0:u7~HlnKoVUl"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.42948</field> </block> </value> <value name="B"> <block type="logic_boolean" id="MvE~?qtNE18YQ@$rbMii"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="?w)Z:!hwc383RX%]-R^+"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="!|[wXeKcrxz-tt{AS#(V"> <field name="ATTR">val</field> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.01_Rollo_Position</field> </block> </value> <value name="B"> <block type="math_number" id="QY.@s3}%C@l$C`a|(2uO"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id=":3BH;V5)lZOAX%4`rm~U"> <mutation end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">16:30</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="hnbc(O:O$p]yUwVus@Z0" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="ORZCYitd*|X0S:]T,c}b"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Z30=vxRu3Hc%cf48}@N_"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.MEQ0951207.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="aOPW`*|DV!`nKAXQhu@D"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="NfC5s[HuL$Ep/rlJRK+%"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="w=.J/=wPSfqLxeUn+`W["> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.OEQ1971956.1.LEVEL</field> </block> </value> <value name="B"> <block type="math_number" id="B[hes~zQ+2*3qGn9Il.-"> <field name="NUM">55</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="[OR9bp?*gnQp6.43LJ)R"> <mutation delay_input="true"></mutation> <field name="OID">hm-rpc.1.OEQ1971956.1.LEVEL</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">7</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="SKK|-q|UV`Qqo~f+S$#c"> <field name="NUM">55</field> </block> </value> </block> </statement> <next> <block type="comment" id="6Bo*LLHn~v)D/;i^70t*"> <field name="COMMENT">Dunkel - Komplett runter (0)</field> <next> <block type="comment" id="g1]h+rZ?tW.iMGtW@(@/"> <field name="COMMENT">Schlafz.Fenster.Links</field> <next> <block type="controls_if" id="@~61uCYR@I@Pd1Ur+l5!"> <value name="IF0"> <block type="logic_operation" id=",qK:e_V3Sq{Janyn26fx" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="}DR+mJ1kMAXAFVGSt|+," inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="**a/UcEfJD2VG*v]+f~:"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="(TP-8}-1S1.j!n{ipH-x"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.42948</field> </block> </value> <value name="B"> <block type="logic_boolean" id="t=G`W/p0C|:vP-B#;AGX"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="4%[6SC6SLc_8bD_K*QZ|"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="GMdP$m~[t|nHxdo?|oY}"> <field name="ATTR">val</field> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.01_Rollo_Position</field> </block> </value> <value name="B"> <block type="math_number" id="[1R/TB]9SLqBOMY9bG[a"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="|U`]UITrUq{09#_7@Fs|"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="?sj,uS~HV3wRtFZz.A]Z"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.OEQ1971970.1.LEVEL</field> </block> </value> <value name="B"> <block type="math_number" id="BQAGE!l*BZl*BGZJ#]Jw"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="`NzZ2B;P59!2|O/^()cL"> <mutation delay_input="true"></mutation> <field name="OID">hm-rpc.1.OEQ1971970.1.LEVEL</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="math_number" id="!@(hgo%5{%=Z2OTe@#*#"> <field name="NUM">0</field> </block> </value> </block> </statement> <next> <block type="comment" id=",4m4P1~FFQSsDQL[;%c*"> <field name="COMMENT">Schlafz.Fenster.Rechts</field> <next> <block type="controls_if" id="T4yGf4Z59;i2ov$.7p@w"> <value name="IF0"> <block type="logic_operation" id="%C7i5H(}!Y0/3Y1@XqN:" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="GfJ8%xnO6WuI%Gh]`YL;" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="7FBgyvzGJRNTkn0Mi:++"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=")mi814u;Bsf~pGn0m3Bo"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.42948</field> </block> </value> <value name="B"> <block type="logic_boolean" id=":7P],?l}w4G4PD,#^$2{"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="]zM,qp5ZpV@Tr1V{l5T{"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="=F6Ed2@Lty,cDO]Ke@yo"> <field name="ATTR">val</field> <field name="OID">javascript.0.Eigene_Datenpunkte.Rollos.01_Rollo_Position</field> </block> </value> <value name="B"> <block type="math_number" id="b?w$^S3hu[7:/uIg:3`P"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="p*~4-qX?REf{=heDuJAq" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="DbE~+[lg--DOSU5*@jn3"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Sl[fICYe(LQxD9d#,$m7"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.MEQ0951207.1.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="H`l*qu-v7.)E%B;UD!,P"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="79P|t8_C(W}j3UAkxoKM"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="3QI8jUOe,$Q)=b=5KObC"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.OEQ1971956.1.LEVEL</field> </block> </value> <value name="B"> <block type="math_number" id="@D|#t@^]ku+oX_n$1h%n"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="{6Ar^m$Z[8muQR]QzC-Q"> <mutation delay_input="true"></mutation> <field name="OID">hm-rpc.1.OEQ1971956.1.LEVEL</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">7</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="W%@a_Xr`qylt;%|I7DJ+"> <field name="NUM">0</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>
Falls du noch Lust hast mir das zu zeigen.....
-
@Uli977 sagte:
Falls du noch Lust hast mir das zu zeigen.....
-
@paul53 Schickst du mir das ?
-
@Uli977 sagte:
Schickst du mir das ?
<xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="_B=],f#1:Sva2,+0gG-}" x="62" y="62"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="t~._%qK0mPtx8u~gs_nf"> <field name="oid">default</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="apK0_SG78fSuhnMDrU_."> <value name="IF0"> <block type="get_value" id="Ix#uV$aTN+~E%f#`}zoJ"> <field name="ATTR">val</field> <field name="OID">ID auswählen</field> </block> </value> <statement name="DO0"> <block type="controls_if" id="KBQ._8.Tc%mVZChv=|a|"> <value name="IF0"> <block type="logic_operation" id="js7G7ZpJ__-kBa#,d~*!" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="F%?mDp(XL-d,ZE6);U|h"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="n1FiuR-`%#`@l-x]n{^$"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="Jtj=*i6@Nf1JwFL]X7mx"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="time_compare" id="P2(C5~6:du=hB6I-oG^["> <mutation end_time="false"></mutation> <field name="OPTION">></field> <field name="START_TIME">12:00</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="Kyd~nM=zFo%2.;`?Qckb"> <mutation delay_input="true"></mutation> <field name="OID">Object ID</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="math_number" id="mt^?FDzsp|dN/M}DX@Dy"> <field name="NUM">55</field> </block> </value> <next> <block type="controls_if" id="#eY0?3@+NqZn0U9WvG6$"> <value name="IF0"> <block type="logic_negate" id="*DDSIqw=lb7JSg$1nbu/"> <value name="BOOL"> <block type="get_value" id="C*n,ocvxWPnzol5.n!u%"> <field name="ATTR">val</field> <field name="OID">ID auswählen</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="19%L]|Rt%%2gLMn~KeGx"> <mutation delay_input="true"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">7</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="w(XM1h:j.^CP`C~CUV~c"> <field name="NUM">55</field> </block> </value> </block> </statement> </block> </next> </block> </statement> <next> <block type="controls_if" id="Q[hM9}qN{n|b0K4eq%/$"> <value name="IF0"> <block type="logic_compare" id="8d9zdX)?Zrp0,]@TVB#6"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="~^U!t66JUGdQe:pp.fDr"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="HS`9kkLA^68R(#H;5%yT"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="QTdR.o)Xr(|V-j:*~u.d"> <mutation delay_input="true"></mutation> <field name="OID">Object ID</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="math_number" id="qd5p12Fi)k@]Y)kIvDA*"> <field name="NUM">0</field> </block> </value> <next> <block type="controls_if" id="$GB!aRkQzywDAC{mZNHh"> <value name="IF0"> <block type="logic_negate" id="l0twpu^Hw~d^eBA=k]4N"> <value name="BOOL"> <block type="get_value" id="N4Ge*1TTHFX+qCxG:-=T"> <field name="ATTR">val</field> <field name="OID">ID auswählen</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="-han6870cW^8cyY=-4$]"> <mutation delay_input="true"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">7</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="Y}!b=o/8B,_W},PLj[g["> <field name="NUM">0</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> <block type="comment" id="w(dtxDu5Q8`p-7UuDl%i" x="338" y="113"> <field name="COMMENT">Automatic</field> </block> <block type="comment" id="N^R,B0d[zyq3R__SlT8X" x="562" y="262"> <field name="COMMENT">Fenster</field> </block> </xml>