- ioBroker Community Home
- Deutsch
- ioBroker Allgemein
- Unlogisch, oder?
NEWS
Unlogisch, oder?
-
@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.
Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs -
@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.....
-
@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:
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>Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs -
@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> -
@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.
Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs -
@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?

@Uli977 sagte:
Wie baue ich das am Besten ein?
So?Was soll der Zeitplan-Trigger ?
Für das Wohnzimmer:
Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs -
@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.
-
@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.
Und das lässt Du alle 5min prüfen? 🤔
Bisschen sinnfrei oder?Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19
-
@Uli977 sagte:
Wie baue ich das am Besten ein?
So?Was soll der Zeitplan-Trigger ?
Für das Wohnzimmer:
-
@haselchen Ich weiss es nicht besser....
-
@haselchen
Weil er eben da gleich noch den Rest mit drin hat und das wird irgendwann bisschen viel. -
@haselchen Ich weiss es nicht besser....
@Uli977 sagte in Unlogisch, oder?:
@haselchen Ich weiss es nicht besser....
Dann solltest Du Dich vielleicht mal intensiver mit der Materie beschäftigen und nicht @paul53 etc. die Arbeit machen lassen.
Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19
-
@Uli977 sagte in Unlogisch, oder?:
@haselchen Ich weiss es nicht besser....
Dann solltest Du Dich vielleicht mal intensiver mit der Materie beschäftigen und nicht @paul53 etc. die Arbeit machen lassen.
@haselchen
Ich dachte indem wir uns hier austauschen befasse ich mich mit der Materie und lerne dazu. Wofür ich sehr dankbar bin.... -
@haselchen
Ich dachte indem wir uns hier austauschen befasse ich mich mit der Materie und lerne dazu. Wofür ich sehr dankbar bin....Da muss ich leider mal sarkastisch werden.
Du tauschst nicht, Du machst ein Problem auf und andere präsentieren Dir die Lösung auf dem Silbertablett.
Ich habe noch nie erlebt,dass du hier jemanden anderen geholfen hast.
Was ich von Dir meistens lese: "kannst Du mir das Skript zur Verfügung stellen"
Ich habe nicht das Gefühl das Du nach 900 Beiträgen hier das System verstanden hast.
Sorry für das viele OT,aber das musste mal raus.Synology DS218+ & 2 x Fujitsu Esprimo (VM/Container) + FritzBox7590 + 2 AVM 3000 Repeater & Homematic & HUE & Osram & Xiaomi, NPM 10.9.4, Nodejs 22.21.0 ,JS Controller 7.0.7 ,Admin 7.7.19



