- Home
- Deutsch
- ioBroker Allgemein
- Unlogisch, oder?
Unlogisch, oder?
-
@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>
-
@paul53 Danke, ich baue das mal ein.
-
-
@Uli977 sagte:
Was bewirkt dieser Teil?
Die Abfrage von LEVEL ist falsch, sondern das Fenster muss geschlossen sein (nicht Fenster offen) für das Rollo rechts, so wie in Deinem ursprünglichen Script.
-
@Uli977 sagte:
Wie baue ich das am Besten ein?
So?Was soll der Zeitplan-Trigger ?
Für das Wohnzimmer: -
Der Zeitplan soll bewirken, dass erst nach 20:30 geschaut wird ob es dunkel ist und auch erst dann das Rollo heruntergefahren wird. Und nicht früher.
-
@Uli977
Dann hats ein Zeitplan der das alle 5 Minuten macht?
Sinnvoller wäre es nach 20:30 kurz zu schauen ob es schon dunkel ist -
@Jan1 Ich möchte aber, wann auch immer es nach 20:30 Uhr dunkel ist (kann auch erst 22:00 Uhr sein), das Rollo dann herunter fährt.
-
@Uli977
Schon klar, aber irgendwie verschachtelst Du gerne zu viele Abfragen in eine Bedingung, so dass außer Paul53 keiner mehr durchblickt, was da wann und wie eintreten muss -
Und das lässt Du alle 5min prüfen?
Bisschen sinnfrei oder? -
Fehlt da nicht ein steure