- ioBroker Community Home
- Deutsch
- Skripten / Logik
- Blockly
- Rollladensteuerung mit Homematic Drehgriffkontakt
NEWS
Rollladensteuerung mit Homematic Drehgriffkontakt
-
Hi,
ich stehe etwas auf dem Schlauch, vor allen Dingen, weil ich erst mit der Programmierung mit Blockly begonnen habe. Vielleicht kann mir die Community da etwas helfen.
Ich habe ein paar Rollladenaktoren, die bei Sonnenuntergang die Rollläden schließen sollen. Dann habe ich eine Tür, an der der Drehgriff montiert ist. Wenn der Drehgriff auf "offen" steht (open(0)) soll der Rollladen der Tür oben bleiben. Wenn der Griff auf zu (closed(2)) geht, soll der Rollladen schließen. Wenn der Rollladen auf offen gestellt wird, soll der Rollladen wieder hochgehen und dann wieder zu, wenn die Tür wieder geschlossen wird. Das alles nur nach Sonnenuntergang.
Ansonsten sollen die Rollläden am Wochentag um 06:20 Uhr und am Wochenende oder wenn Feiertag ist, um 9 Uhr hochgehen.
Vielen Dank!!!!!

@Luebke69
Es gibt hier einen Adapter und einen ausgiebigen Thread zum Thema "Shutter-Controll"Ich selbst habe im Grunde exakt die gleiche Umsetzung wie Du
- gewisse Astrozeit -> alles runter
- spätestens 22:30h alles runter
- Wochentags -> 07:00 alles hoch
- Wochenende/Feiertag - > 09:00h alles hoch
Terrassentür wird separat gesteuert:
- gehen Wochentags oder Wochenende die Rolladen hoch, geht dieser Rolladen auch hoch
- gehen die Rolladen runter und die Terrassentür ist geschlossen, geht die Terrassentür auch runter
- ist die Tür hingegen offen, bleibt der Rolalden offen
- wird die Tür bei geschlossenen Rolläden geöffnet, geht der Rolladen hoch (und auf der Terrasse das Licht an)
- beim Schließen geht das Licht auf der Terrasse aus, und der Rolladen schließt sofern die andereren Rolladen geschlossen sind.
Ich kenne noch einen weiteren Zustand, der heißt bei mir "Beschattung"
Hier schließen die Rolläden jeweils auf eine vorher festgelegte Postiion und die Terassentür verhält sich analog zum SchließenSoviel zur Vorrede :-)
Wenn Du das übernehmen möchtest, dann benötigts Du folgende Datenpunkte (bei mir liegen diese unter0_userdata.0.gewerke.rolladenund heissenvarBeschattung(true/false) undvarRolladen(true/false)<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="zYQ~6C[E,I1Egfq:.Y0S">behanghoehe</variable> </variables> <block type="on_ext" id="z;EJqIeB/7okZXxTR;VB" x="-1712" y="-587"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="h`Vj0rXOO:F@SOG1im%{"> <field name="oid">0_userdata.0.gewerke.rolladen.varRolladen</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="oz:v@WD.1?u9^@Kc~nT~"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="4Hl@Jd;=?G#g#MfQGb:Q"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="variables_set" id="7h;cv1sWZZR*^DwV6MW)"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> <value name="VALUE"> <block type="math_number" id="x5Q!X=R(M/Edjw%K||tm"> <field name="NUM">100</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="Ry-!Rtds0Ae_4s!+LUR]"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> <value name="VALUE"> <block type="math_number" id="nb?uk3[Mw9V-mC$A(X|c"> <field name="NUM">0</field> </block> </value> </block> </statement> <next> <block type="procedures_callnoreturn" id=",YAHtT/V#j)QOGd%F5I`"> <mutation name="Rolladen"></mutation> </block> </next> </block> </statement> <next> <block type="astro" id="!xRc*LM~~wFKq4J4um}6"> <field name="TYPE">dusk</field> <field name="OFFSET">0</field> <statement name="STATEMENT"> <block type="control" id="s|h)7lgcZjC]],2I,[*7"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="daf(_}i2ulI)X6@pm8u#"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="_];`O6gu7VG;%pr,}H?S"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.JEQ0713722.16.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="7VNPtA!3y7a~.|s=*gV5"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> <next> <block type="schedule" id="ES.v{~[R~A{u)qL|*(YZ"> <field name="SCHEDULE">30 22 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="QS%;bN^?ULUaK@?scMK,"> <value name="IF0"> <block type="get_value" id="zm1|k0g]3zRK4*$dH!Rs"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> </block> </value> <statement name="DO0"> <block type="control" id="1Ic;qMq7a0~N2cPiMs,O"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="y9Z/Po;*WTA.U:?M6W^k"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="schedule" id="8AOP9C3SyQO2~#y|06~t"> <field name="SCHEDULE">30 7 * * 1-5</field> <statement name="STATEMENT"> <block type="controls_if" id="x}_pl$-@S*ZNOsLlHoaC"> <value name="IF0"> <block type="logic_operation" id="$=4i3Tx}cz@qsm7:yeL~" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="qJ/GB8`X*muS?3YBIh|Q"> <value name="BOOL"> <block type="get_value" id="7NbF-*qJ-4L}BO9UFP/p"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varBeschattung</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="h?7[,N/YRs@3lQj1xEhM"> <value name="BOOL"> <block type="get_value" id=")J4P,2v7yXAgQ*7A+wEH"> <field name="ATTR">val</field> <field name="OID">feiertage.0.heute.boolean</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="VSM;gjb)m@P|trjnb?Ye"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="*3YgRpPmF8]K9{hk*02a"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="schedule" id="%jMcx6)fT#-CY/Fi`}Qq"> <field name="SCHEDULE">0 9 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="4N9n/CA/E)jxhc^8fW|~"> <value name="IF0"> <block type="logic_operation" id="qrW94|I@Gdyh:}TtWF2|" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="MDc6Ls`^4w3p?Gb_;poh"> <value name="BOOL"> <block type="get_value" id="%q=6,;bh7oH%^~owaJA_"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="8eJy(E!41$U?~@gig}t+"> <value name="BOOL"> <block type="get_value" id="dp=nM$}f6j;=tc@c2%G:"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varBeschattung</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="8sZSC$rg(Q4[rVqE4yHj"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="(SsZ/?t[Yr3S8@w(D4eE"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> <block type="procedures_defnoreturn" id="?2JkwFrfJ3^IDlTBqswl" x="-1062" y="-587"> <field name="NAME">Rolladen</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="control" id="907#`gFlq7N1x?jnM=.W"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021492.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="7[~)QPA3hrYP%a63pZ0b"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="=M*|!fZEwh;)Kf1wQ*,3"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021479.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="EJU!mgno+Fh=#y%!n2+-"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="4.|75JYjU7vzea]T$#Yv"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020745.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="aT(iR0}-.f,#@HaNwI@/"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="3Mm6PmOVd4Kq|QO+.L%T"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021133.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="%Fv,^@PztkUPO8`(W@7:"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="vFQtx!NI5_Zt0fY]mX%8"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946166.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="j5q(9+]u:*BXwc}yjF^@"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="r]!eau}iT|-hn=uCvcEN"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0945997.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="Ws(l=,`bT@C2mxjK{:W8"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="i`q8p;MLlZ6-D#7+j7W5"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946150.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="16nskDR.qT+Pn^J]f:ao"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="OkS1q,bciLPw!,omq:u/"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946305.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="(9[Nc`V%u4=G%|lK^TVA"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="2/nL2w6Pv}4Cif;{[Ad,"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946176.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="WG0|4Kw;-Cpv?1PZ12aj"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="$3@%Ra+hc4`S/OzQ}y=b"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021498.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="m}o~z6gj-(]3n%Y,4zER"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="aa{hnC$t67g#i9|?Ahsa"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946408.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="q1+$CP1MHop?h(~y^g1`"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="k=3}DMeVMd[l(q^k7dtq"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021501.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="KZ4[aW=hOd*wN#g3n9f7"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="IR;:Njaqk4Qb*]EYUuZC"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021452.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="+2at5xT[F^u8Vl^x:7Uy"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="JrM`{#r@CRU{=*sPm%2+"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021457.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="I+-d+!A7b%9Z=yv_gB~R"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml><xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="EJM|@:jmZIaH#kui+f}?" x="-1387" y="-137"> <mutation items="3"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="Xg0)VZfR^U5/0{4J:HqZ"> <field name="oid">hm-rpc.0.MEQ1657728.1.STATE</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="B17pA,}Sx}Pw{8|6!`1%"> <field name="oid">0_userdata.0.gewerke.rolladen.varBeschattung</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id=".auGr-$/8J{Qn=-V`Sao"> <field name="oid">0_userdata.0.gewerke.rolladen.varRolladen</field> </shadow> </value> <statement name="STATEMENT"> <block type="procedures_callnoreturn" id="B|]:Cgb5LAbOPgvqkSzt"> <mutation name="Rolladen"></mutation> </block> </statement> </block> <block type="procedures_defnoreturn" id="06PMs(Ot:u3~Uz7_l;ug" x="-962" y="-137"> <field name="NAME">Rolladen</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="controls_if" id="@UF!NZ3RUJZlg:z1iZ1q"> <mutation elseif="2"></mutation> <value name="IF0"> <block type="logic_operation" id="LN3a2XK*@|f[dls@aJ!X" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="vG4l~p=QG+-tY-pW#nLp"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> </block> </value> <value name="B"> <block type="get_value" id="J6`Gpu4CB;9w/,Agb$a{"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1657728.1.STATE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="!_P%)Kc!T./|Ot=*wQ@3"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020758.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="DGr90Ck8YkOk7N??.A}h"> <field name="NUM">100</field> </block> </value> <next> <block type="controls_if" id="$!fTiJ$6W!wiR.ysMWa0"> <value name="IF0"> <block type="get_value" id=".{f_L{7;umxE#*{,IP.a"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.sonstiges.varNacht</field> </block> </value> <statement name="DO0"> <block type="control" id="02T+cLh0I`ZA!:r8zfIJ"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.JEQ0713722.16.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="zHW|9_%mpnGCpHqZHXM3"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="f3|5[I{_VuS#boV]GO~h" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="|MDNPpM1X3Mo`b:0:h-C"> <value name="BOOL"> <block type="get_value" id="}LLL4?$Ahwv3@H)7K|uk"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="w@FH=ncp`ME^.ot}/,/D"> <value name="BOOL"> <block type="get_value" id="KwuHwOJJP^gG0tFORJv,"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1657728.1.STATE</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="/#Yc2XIRDNLpYpq{nPlX"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020758.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="{?OEro[Sp;;Oh^Y1TZrO"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="SyO9[f%m?`Gt]U1[~8z2"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020701.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="]w_Z-t{-#e)0c`4@)]g+"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="wrc39T.-^_9x!r;4or!^"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020701.4.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="l]@,-T5JzQiS11sOD1Y5"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="@Kx6yYZY%kfCj5DV]e!R"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.JEQ0713722.16.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="r*IeE73VVg3w7Y;YrVtk"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_operation" id="5/[f?gy}xFOj6r.gVC*+" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="get_value" id="V/:_*P).V7j![!H14@.:"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varBeschattung</field> </block> </value> <value name="B"> <block type="logic_negate" id=")x7Lqs*o!0nQ[WkIs4Ka"> <value name="BOOL"> <block type="get_value" id="B_Ew+7$t0P?GRs^tH6dm"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1657728.1.STATE</field> </block> </value> </block> </value> </block> </value> <statement name="DO2"> <block type="control" id="783TJZ6)XOYN|8(TC+gN"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020758.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="hr*ER6I`m27TsBV3rm(a"> <field name="NUM">65</field> </block> </value> </block> </statement> </block> </statement> </block> </xml><xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="z;EJqIeB/7okZXxTR;VB" x="-1575" y="-576"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="h`Vj0rXOO:F@SOG1im%{"> <field name="oid">0_userdata.0.gewerke.rolladen.varBeschattung</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="oz:v@WD.1?u9^@Kc~nT~"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="4Hl@Jd;=?G#g#MfQGb:Q"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="procedures_callnoreturn" id=",YAHtT/V#j)QOGd%F5I`"> <mutation name="Beschattung"></mutation> </block> </statement> <statement name="ELSE"> <block type="control" id="%_l39hD7aycvX6hTpWu@"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="#YcNr7$A|jjxm37OEbos"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> <block type="procedures_defnoreturn" id="?2JkwFrfJ3^IDlTBqswl" x="-1062" y="-587"> <field name="NAME">Beschattung</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="control" id="3Mm6PmOVd4Kq|QO+.L%T"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021133.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="=z*,42o)5lVVqhR@0HgS"> <field name="NUM">30</field> </block> </value> <next> <block type="control" id="4.|75JYjU7vzea]T$#Yv"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020745.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="pQP(0CP`Qnb]Yk.Tx(Ts"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="=M*|!fZEwh;)Kf1wQ*,3"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021479.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id=".bhvF:trdM5(P+5,(-K;"> <field name="NUM">40</field> </block> </value> <next> <block type="control" id="907#`gFlq7N1x?jnM=.W"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021492.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="|D6vrKa{Gp3ggW1i.66a"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="vFQtx!NI5_Zt0fY]mX%8"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946166.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="K_%6X8jo9sJ#a=H{.-0D"> <field name="NUM">40</field> </block> </value> <next> <block type="control" id="r]!eau}iT|-hn=uCvcEN"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0945997.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="zV7)i{;%JL~mmDQMNV]@"> <field name="NUM">40</field> </block> </value> <next> <block type="control" id="2/nL2w6Pv}4Cif;{[Ad,"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946176.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="!LHgvD.J_1|M,k=7]xai"> <field name="NUM">40</field> </block> </value> <next> <block type="control" id="qk:vNLi(IbB*`S@WxNv%"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021498.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="uJj9mKT2PwzkaNGhyL;%"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="aa{hnC$t67g#i9|?Ahsa"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946408.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="1|Zfn]5$+/yhVJw66y2U"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="i`q8p;MLlZ6-D#7+j7W5"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946150.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Wa~`b(Z?!$TVZ]m(ERjN"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="OkS1q,bciLPw!,omq:u/"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946305.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="tN_vss+}$,/cGCN=lmS4"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="k=3}DMeVMd[l(q^k7dtq"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021501.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="xPu},ZFieI![R[^Y/pK+"> <field name="NUM">40</field> </block> </value> <next> <block type="control" id="IR;:Njaqk4Qb*]EYUuZC"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021452.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Oyl[%jjx6Y8kM/Z$ThgX"> <field name="NUM">30</field> </block> </value> <next> <block type="control" id="JrM`{#r@CRU{=*sPm%2+"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021457.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="2?.GI*t+x}HhYpVsnw[!"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS
-
@Luebke69
Es gibt hier einen Adapter und einen ausgiebigen Thread zum Thema "Shutter-Controll"Ich selbst habe im Grunde exakt die gleiche Umsetzung wie Du
- gewisse Astrozeit -> alles runter
- spätestens 22:30h alles runter
- Wochentags -> 07:00 alles hoch
- Wochenende/Feiertag - > 09:00h alles hoch
Terrassentür wird separat gesteuert:
- gehen Wochentags oder Wochenende die Rolladen hoch, geht dieser Rolladen auch hoch
- gehen die Rolladen runter und die Terrassentür ist geschlossen, geht die Terrassentür auch runter
- ist die Tür hingegen offen, bleibt der Rolalden offen
- wird die Tür bei geschlossenen Rolläden geöffnet, geht der Rolladen hoch (und auf der Terrasse das Licht an)
- beim Schließen geht das Licht auf der Terrasse aus, und der Rolladen schließt sofern die andereren Rolladen geschlossen sind.
Ich kenne noch einen weiteren Zustand, der heißt bei mir "Beschattung"
Hier schließen die Rolläden jeweils auf eine vorher festgelegte Postiion und die Terassentür verhält sich analog zum SchließenSoviel zur Vorrede :-)
Wenn Du das übernehmen möchtest, dann benötigts Du folgende Datenpunkte (bei mir liegen diese unter0_userdata.0.gewerke.rolladenund heissenvarBeschattung(true/false) undvarRolladen(true/false)<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="zYQ~6C[E,I1Egfq:.Y0S">behanghoehe</variable> </variables> <block type="on_ext" id="z;EJqIeB/7okZXxTR;VB" x="-1712" y="-587"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="h`Vj0rXOO:F@SOG1im%{"> <field name="oid">0_userdata.0.gewerke.rolladen.varRolladen</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="oz:v@WD.1?u9^@Kc~nT~"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="4Hl@Jd;=?G#g#MfQGb:Q"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="variables_set" id="7h;cv1sWZZR*^DwV6MW)"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> <value name="VALUE"> <block type="math_number" id="x5Q!X=R(M/Edjw%K||tm"> <field name="NUM">100</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="Ry-!Rtds0Ae_4s!+LUR]"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> <value name="VALUE"> <block type="math_number" id="nb?uk3[Mw9V-mC$A(X|c"> <field name="NUM">0</field> </block> </value> </block> </statement> <next> <block type="procedures_callnoreturn" id=",YAHtT/V#j)QOGd%F5I`"> <mutation name="Rolladen"></mutation> </block> </next> </block> </statement> <next> <block type="astro" id="!xRc*LM~~wFKq4J4um}6"> <field name="TYPE">dusk</field> <field name="OFFSET">0</field> <statement name="STATEMENT"> <block type="control" id="s|h)7lgcZjC]],2I,[*7"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="daf(_}i2ulI)X6@pm8u#"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="_];`O6gu7VG;%pr,}H?S"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.JEQ0713722.16.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="7VNPtA!3y7a~.|s=*gV5"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> <next> <block type="schedule" id="ES.v{~[R~A{u)qL|*(YZ"> <field name="SCHEDULE">30 22 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="QS%;bN^?ULUaK@?scMK,"> <value name="IF0"> <block type="get_value" id="zm1|k0g]3zRK4*$dH!Rs"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> </block> </value> <statement name="DO0"> <block type="control" id="1Ic;qMq7a0~N2cPiMs,O"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="y9Z/Po;*WTA.U:?M6W^k"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="schedule" id="8AOP9C3SyQO2~#y|06~t"> <field name="SCHEDULE">30 7 * * 1-5</field> <statement name="STATEMENT"> <block type="controls_if" id="x}_pl$-@S*ZNOsLlHoaC"> <value name="IF0"> <block type="logic_operation" id="$=4i3Tx}cz@qsm7:yeL~" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="qJ/GB8`X*muS?3YBIh|Q"> <value name="BOOL"> <block type="get_value" id="7NbF-*qJ-4L}BO9UFP/p"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varBeschattung</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="h?7[,N/YRs@3lQj1xEhM"> <value name="BOOL"> <block type="get_value" id=")J4P,2v7yXAgQ*7A+wEH"> <field name="ATTR">val</field> <field name="OID">feiertage.0.heute.boolean</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="VSM;gjb)m@P|trjnb?Ye"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="*3YgRpPmF8]K9{hk*02a"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="schedule" id="%jMcx6)fT#-CY/Fi`}Qq"> <field name="SCHEDULE">0 9 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id="4N9n/CA/E)jxhc^8fW|~"> <value name="IF0"> <block type="logic_operation" id="qrW94|I@Gdyh:}TtWF2|" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="MDc6Ls`^4w3p?Gb_;poh"> <value name="BOOL"> <block type="get_value" id="%q=6,;bh7oH%^~owaJA_"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="8eJy(E!41$U?~@gig}t+"> <value name="BOOL"> <block type="get_value" id="dp=nM$}f6j;=tc@c2%G:"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varBeschattung</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="8sZSC$rg(Q4[rVqE4yHj"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="(SsZ/?t[Yr3S8@w(D4eE"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> <block type="procedures_defnoreturn" id="?2JkwFrfJ3^IDlTBqswl" x="-1062" y="-587"> <field name="NAME">Rolladen</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="control" id="907#`gFlq7N1x?jnM=.W"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021492.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="7[~)QPA3hrYP%a63pZ0b"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="=M*|!fZEwh;)Kf1wQ*,3"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021479.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="EJU!mgno+Fh=#y%!n2+-"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="4.|75JYjU7vzea]T$#Yv"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020745.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="aT(iR0}-.f,#@HaNwI@/"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="3Mm6PmOVd4Kq|QO+.L%T"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021133.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="%Fv,^@PztkUPO8`(W@7:"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="vFQtx!NI5_Zt0fY]mX%8"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946166.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="j5q(9+]u:*BXwc}yjF^@"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="r]!eau}iT|-hn=uCvcEN"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0945997.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="Ws(l=,`bT@C2mxjK{:W8"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="i`q8p;MLlZ6-D#7+j7W5"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946150.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="16nskDR.qT+Pn^J]f:ao"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="OkS1q,bciLPw!,omq:u/"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946305.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="(9[Nc`V%u4=G%|lK^TVA"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="2/nL2w6Pv}4Cif;{[Ad,"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946176.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="WG0|4Kw;-Cpv?1PZ12aj"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="$3@%Ra+hc4`S/OzQ}y=b"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021498.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="m}o~z6gj-(]3n%Y,4zER"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="aa{hnC$t67g#i9|?Ahsa"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946408.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="q1+$CP1MHop?h(~y^g1`"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="k=3}DMeVMd[l(q^k7dtq"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021501.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="KZ4[aW=hOd*wN#g3n9f7"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="IR;:Njaqk4Qb*]EYUuZC"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021452.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="+2at5xT[F^u8Vl^x:7Uy"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> <next> <block type="control" id="JrM`{#r@CRU{=*sPm%2+"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021457.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="I+-d+!A7b%9Z=yv_gB~R"> <field name="VAR" id="zYQ~6C[E,I1Egfq:.Y0S" variabletype="">behanghoehe</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml><xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="EJM|@:jmZIaH#kui+f}?" x="-1387" y="-137"> <mutation items="3"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="Xg0)VZfR^U5/0{4J:HqZ"> <field name="oid">hm-rpc.0.MEQ1657728.1.STATE</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="B17pA,}Sx}Pw{8|6!`1%"> <field name="oid">0_userdata.0.gewerke.rolladen.varBeschattung</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id=".auGr-$/8J{Qn=-V`Sao"> <field name="oid">0_userdata.0.gewerke.rolladen.varRolladen</field> </shadow> </value> <statement name="STATEMENT"> <block type="procedures_callnoreturn" id="B|]:Cgb5LAbOPgvqkSzt"> <mutation name="Rolladen"></mutation> </block> </statement> </block> <block type="procedures_defnoreturn" id="06PMs(Ot:u3~Uz7_l;ug" x="-962" y="-137"> <field name="NAME">Rolladen</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="controls_if" id="@UF!NZ3RUJZlg:z1iZ1q"> <mutation elseif="2"></mutation> <value name="IF0"> <block type="logic_operation" id="LN3a2XK*@|f[dls@aJ!X" inline="false"> <field name="OP">OR</field> <value name="A"> <block type="get_value" id="vG4l~p=QG+-tY-pW#nLp"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> </block> </value> <value name="B"> <block type="get_value" id="J6`Gpu4CB;9w/,Agb$a{"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1657728.1.STATE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="!_P%)Kc!T./|Ot=*wQ@3"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020758.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="DGr90Ck8YkOk7N??.A}h"> <field name="NUM">100</field> </block> </value> <next> <block type="controls_if" id="$!fTiJ$6W!wiR.ysMWa0"> <value name="IF0"> <block type="get_value" id=".{f_L{7;umxE#*{,IP.a"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.sonstiges.varNacht</field> </block> </value> <statement name="DO0"> <block type="control" id="02T+cLh0I`ZA!:r8zfIJ"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.JEQ0713722.16.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="zHW|9_%mpnGCpHqZHXM3"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="f3|5[I{_VuS#boV]GO~h" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="|MDNPpM1X3Mo`b:0:h-C"> <value name="BOOL"> <block type="get_value" id="}LLL4?$Ahwv3@H)7K|uk"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="w@FH=ncp`ME^.ot}/,/D"> <value name="BOOL"> <block type="get_value" id="KwuHwOJJP^gG0tFORJv,"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1657728.1.STATE</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="/#Yc2XIRDNLpYpq{nPlX"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020758.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="{?OEro[Sp;;Oh^Y1TZrO"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="SyO9[f%m?`Gt]U1[~8z2"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020701.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="]w_Z-t{-#e)0c`4@)]g+"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="wrc39T.-^_9x!r;4or!^"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020701.4.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="l]@,-T5JzQiS11sOD1Y5"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="@Kx6yYZY%kfCj5DV]e!R"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.JEQ0713722.16.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="r*IeE73VVg3w7Y;YrVtk"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_operation" id="5/[f?gy}xFOj6r.gVC*+" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="get_value" id="V/:_*P).V7j![!H14@.:"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.gewerke.rolladen.varBeschattung</field> </block> </value> <value name="B"> <block type="logic_negate" id=")x7Lqs*o!0nQ[WkIs4Ka"> <value name="BOOL"> <block type="get_value" id="B_Ew+7$t0P?GRs^tH6dm"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1657728.1.STATE</field> </block> </value> </block> </value> </block> </value> <statement name="DO2"> <block type="control" id="783TJZ6)XOYN|8(TC+gN"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020758.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="hr*ER6I`m27TsBV3rm(a"> <field name="NUM">65</field> </block> </value> </block> </statement> </block> </statement> </block> </xml><xml xmlns="http://www.w3.org/1999/xhtml"> <block type="on_ext" id="z;EJqIeB/7okZXxTR;VB" x="-1575" y="-576"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="h`Vj0rXOO:F@SOG1im%{"> <field name="oid">0_userdata.0.gewerke.rolladen.varBeschattung</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="oz:v@WD.1?u9^@Kc~nT~"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="4Hl@Jd;=?G#g#MfQGb:Q"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="procedures_callnoreturn" id=",YAHtT/V#j)QOGd%F5I`"> <mutation name="Beschattung"></mutation> </block> </statement> <statement name="ELSE"> <block type="control" id="%_l39hD7aycvX6hTpWu@"> <mutation delay_input="false"></mutation> <field name="OID">0_userdata.0.gewerke.rolladen.varRolladen</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="#YcNr7$A|jjxm37OEbos"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> <block type="procedures_defnoreturn" id="?2JkwFrfJ3^IDlTBqswl" x="-1062" y="-587"> <field name="NAME">Beschattung</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="control" id="3Mm6PmOVd4Kq|QO+.L%T"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021133.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="=z*,42o)5lVVqhR@0HgS"> <field name="NUM">30</field> </block> </value> <next> <block type="control" id="4.|75JYjU7vzea]T$#Yv"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0020745.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="pQP(0CP`Qnb]Yk.Tx(Ts"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="=M*|!fZEwh;)Kf1wQ*,3"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021479.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id=".bhvF:trdM5(P+5,(-K;"> <field name="NUM">40</field> </block> </value> <next> <block type="control" id="907#`gFlq7N1x?jnM=.W"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021492.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="|D6vrKa{Gp3ggW1i.66a"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="vFQtx!NI5_Zt0fY]mX%8"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946166.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="K_%6X8jo9sJ#a=H{.-0D"> <field name="NUM">40</field> </block> </value> <next> <block type="control" id="r]!eau}iT|-hn=uCvcEN"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0945997.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="zV7)i{;%JL~mmDQMNV]@"> <field name="NUM">40</field> </block> </value> <next> <block type="control" id="2/nL2w6Pv}4Cif;{[Ad,"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946176.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="!LHgvD.J_1|M,k=7]xai"> <field name="NUM">40</field> </block> </value> <next> <block type="control" id="qk:vNLi(IbB*`S@WxNv%"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021498.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="uJj9mKT2PwzkaNGhyL;%"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="aa{hnC$t67g#i9|?Ahsa"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946408.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="1|Zfn]5$+/yhVJw66y2U"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="i`q8p;MLlZ6-D#7+j7W5"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946150.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Wa~`b(Z?!$TVZ]m(ERjN"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="OkS1q,bciLPw!,omq:u/"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0946305.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="tN_vss+}$,/cGCN=lmS4"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="k=3}DMeVMd[l(q^k7dtq"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021501.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="xPu},ZFieI![R[^Y/pK+"> <field name="NUM">40</field> </block> </value> <next> <block type="control" id="IR;:Njaqk4Qb*]EYUuZC"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021452.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Oyl[%jjx6Y8kM/Z$ThgX"> <field name="NUM">30</field> </block> </value> <next> <block type="control" id="JrM`{#r@CRU{=*sPm%2+"> <mutation delay_input="false"></mutation> <field name="OID">hm-rpc.1.KEQ0021457.3.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="2?.GI*t+x}HhYpVsnw[!"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml> -
@BBTown Cool! Herzlichen Dank! Probiere ich auf jeden Fall aus. Nur die Nummer mit den Datenpunkten muss ich noch verstehen. Hast du da eine Tipp für mich?
@Luebke69
findest Du in der Objekteübersicht den Bereich0_userdata.0?
Dort sollte auch schon ein Beispeileintrag enthalten seinexample_stateoder so ähnlich?
ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS
-
@Luebke69
findest Du in der Objekteübersicht den Bereich0_userdata.0?
Dort sollte auch schon ein Beispeileintrag enthalten seinexample_stateoder so ähnlich?
-
scroll mal weiter runter, kann sein, dass der Eintrag wie ein Datenpunkt aussieht und nicht wie ein Ordner
ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS
-
scroll mal weiter runter, kann sein, dass der Eintrag wie ein Datenpunkt aussieht und nicht wie ein Ordner
-
@Luebke69 sagte in Rollladensteuerung mit Homematic Drehgriffkontakt:
und im Alter werden die Augen schlecht.
da kann ich mithalten :-)
ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS
-
@BBTown Den Datenpunkt varRollladen habe ich jetzt erstellt. Jetzt muss ich den nur noch mit Inhalten füllen. Vielleicht kannst du mir da morgen zur Seiten springen?
Danke erstmal herzlich.@Luebke69
Du musst den als "switch" anlegen, dann kann der als Status "true/false" sein
Das gleiche ggf. auch für "varBeschattung"
ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS
-
@Luebke69
Du musst den als "switch" anlegen, dann kann der als Status "true/false" sein
Das gleiche ggf. auch für "varBeschattung"
-
@Luebke69
dann kannst Du die Blockly-Scripte ja importieren und dort die Datenpunkte durch die deinen austauschen, was zu viel ist kann einfach entfernt werden.ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS
-
Hi,
ich stehe etwas auf dem Schlauch, vor allen Dingen, weil ich erst mit der Programmierung mit Blockly begonnen habe. Vielleicht kann mir die Community da etwas helfen.
Ich habe ein paar Rollladenaktoren, die bei Sonnenuntergang die Rollläden schließen sollen. Dann habe ich eine Tür, an der der Drehgriff montiert ist. Wenn der Drehgriff auf "offen" steht (open(0)) soll der Rollladen der Tür oben bleiben. Wenn der Griff auf zu (closed(2)) geht, soll der Rollladen schließen. Wenn der Rollladen auf offen gestellt wird, soll der Rollladen wieder hochgehen und dann wieder zu, wenn die Tür wieder geschlossen wird. Das alles nur nach Sonnenuntergang.
Ansonsten sollen die Rollläden am Wochentag um 06:20 Uhr und am Wochenende oder wenn Feiertag ist, um 9 Uhr hochgehen.
Vielen Dank!!!!!

Nur mal so am Rande :
Wenn du den Mathematikbaustein nimmst, brauchst du den "nach Zahl" (Konvertierung) eigentlich nicht mehr.
Ich steuere auch Homematic Rollläden und habe den noch nie einsetzen müssen....Grüße
TomPI3B > Raspimatic / Opi+2 > ioBroker / ESP8266
if (System == "running") {finger = "weg";} else {lastAction = "Rückgängig";} -
Darf ich mal ungehörig nachfragen, um einen Newbie etwas zu unterstützen, was die einzelnen Blöcke genau machen? So richtig erschließt sich mir das noch nicht. Oder vielleicht ein cooles HowTo von irgendwo anders her?
Vielen herzlichen Dank bis hierhin!!! -
@Luebke69
dann kannst Du die Blockly-Scripte ja importieren und dort die Datenpunkte durch die deinen austauschen, was zu viel ist kann einfach entfernt werden.@BBTown kannst du mir kurz sagen, welche deiner Objekte Rollläden, Drehgriffkontakte usw. sind? Dann kann ich das besser nachvollziehen... Die Objekte mit Level (KE....) sind sicherlich die Rollläden. Das Objekt JEQ... in der Rollladensteuerung?
bei der Terrassentür? MEQ... und JEQ...? -
@BBTown kannst du mir kurz sagen, welche deiner Objekte Rollläden, Drehgriffkontakte usw. sind? Dann kann ich das besser nachvollziehen... Die Objekte mit Level (KE....) sind sicherlich die Rollläden. Das Objekt JEQ... in der Rollladensteuerung?
bei der Terrassentür? MEQ... und JEQ...?Wenn "Beschattung" nicht benötigt/verwendet werden soll, schmeiß es raus.
"Feiertag (ja/nein)" kommt vom Feiertags-Adapter.ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS
-
@BBTown kannst du mir kurz sagen, welche deiner Objekte Rollläden, Drehgriffkontakte usw. sind? Dann kann ich das besser nachvollziehen... Die Objekte mit Level (KE....) sind sicherlich die Rollläden. Das Objekt JEQ... in der Rollladensteuerung?
bei der Terrassentür? MEQ... und JEQ...?@Luebke69
das ist eine Funktion, die durch den Trigger auf "varRolladen" ausgelöst wird.
Enthalten sind hier die "Rolladen-Level". Hast Du mehr oder weniger, dann füge hinzu oder entferne
ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS
-
@BBTown kannst du mir kurz sagen, welche deiner Objekte Rollläden, Drehgriffkontakte usw. sind? Dann kann ich das besser nachvollziehen... Die Objekte mit Level (KE....) sind sicherlich die Rollläden. Das Objekt JEQ... in der Rollladensteuerung?
bei der Terrassentür? MEQ... und JEQ...? -
@BBTown kannst du mir kurz sagen, welche deiner Objekte Rollläden, Drehgriffkontakte usw. sind? Dann kann ich das besser nachvollziehen... Die Objekte mit Level (KE....) sind sicherlich die Rollläden. Das Objekt JEQ... in der Rollladensteuerung?
bei der Terrassentür? MEQ... und JEQ...?@Luebke69
Funktion die durch den Trigger ausgelöst wird.
Falls Beschattung nicht relevant ist, kann der untere "sonst falls" entfallen.
ioBroker auf NUC (VM debian v13 (Trixie ), node v22.21.0 npm v10.9.4, js-controller v7.1.0 jsonl/jsonl / HomeMatic CCU-2 (Wired und Funk) / Philips HUE / echo.DOT / Broadlink RM pro / SONOS


