NEWS
Aktion bei Öffnen der Tür
-
Moin, stell mal einen Export von deinem Blockly hier ein.
Matze ` Moin Matze,
Kurz per Smartphone, hoffe das geht so.
Gruß
Stefan
name="OID">mihome.0.devices.magnet_158d0001d821d1.state
<field name="CONDITION">true</field>
<statement name="STATEMENT"><block type="controls_if" id="r4;C-s:gJHryisv4KGb
"><value name="IF0"><block type="logic_compare" id="UDQ/e84{v6!/G]9t7QB"><field name="OP">LT</field><value name="A"><block type="get_value" id="U2EWT0XNsJOW]@]Yk=~f"><field name="ATTR">val</field>
<field name="OID">hm-rpc.0.NEQ1554160.1.LEVEL</field></block></value>
<value name="B"><block type="math_number" id="p?TJR~lG*ACFgAtTx8Q6"><field name="NUM">25</field></block></value></block></value>
<statement name="DO0"><block type="control" id="|~G:]+8EHMW;8*1-^?~j"><mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.0.NEQ1502825.1.STATE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="qsYjuh[gII/kw%kZfqH]"><field name="BOOL">TRUE</field></block></value>
<next><block type="control" id="SV6|mmgVvsHrftVuT6}%"><mutation delay_input="false"></mutation>
<field name="OID">deconz.0.deCONZ-GW.Gartenlampe 1.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="O5*RQyaef-63V-6:vO}w"><field name="BOOL">TRUE</field></block></value>
<next><block type="control" id="sp-Am7zz%V.HpKKWy^i@"><mutation delay_input="false"></mutation>
<field name="OID">deconz.0.deCONZ-GW.Gartenlampe 2.on</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id=".Y%:Pk;+ksY3wnPi}_O@"><field name="BOOL">TRUE</field></block></value></block></next></block></next></block></statement>
<next><block type="timeouts_cleartimeout" id="^<EMAIL email=" 9knde@5r7dmo.pb3zwr"="">9kndE@5R7DmO.Pb3ZWr">
<field name="NAME">timeout</field>
<next><block type="timeouts_settimeout" id="1m)Q_r6s:]S6[6JqKIcH"><field name="NAME">timeout</field>
<field name="DELAY">3</field>
<field name="UNIT">min</field>
<statement name="STATEMENT"><block type="controls_if" id="q}VKP`-H5aXwG#1=6+qW"><value name="IF0"><block type="logic_compare" id="a/Ep-G.tm?WS;as%~Qg7"><field name="OP">LT</field>
<value name="A"><block type="get_value" id="#8~y]1qOkiU/kT2-dbbY"><field name="ATTR">val</field>
<field name="OID">hm-rpc.0.NEQ1554160.1.LEVEL</field></block></value>
<value name="B"><block type="math_number" id="8`oY:2LS{#!H|zj0)Q+b"><field name="NUM">25</field></block></value></block></value>
<statement name="DO0"><block type="control" id="ftP!r*}f{K0X.R)Uax?:"><mutation delay_input="false"></mutation>
<field name="OID">hm-rpc.0.NEQ1502825.1.STATE</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="Z7hs,k@|2R:*~^FsIB~#"><field name="BOOL">FALSE</field></block></value>
<next><block type="control" id="cIKwJ?N*55Y%,|u}i5M0"><mutation delay_input="true"></mutation>
<field name="OID">deconz.0.deCONZ-GW.Gartenlampe 1.on</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">10</field>
<field name="UNIT">min</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="1–}A40(#RWjEV,0F5q["><field name="BOOL">FALSE</field></block></value>
<next><block type="control" id="0]8k?Pv3;K-fMv.V=d;+"><mutation delay_input="true"></mutation>
<field name="OID">deconz.0.deCONZ-GW.Gartenlampe 2.on</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">10</field>
<field name="UNIT">min</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="0*=dU@/:Jh%34EkY5^j7"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement></block></statement></block></next></block></next></block></statement>
Gesendet von meinem MI 5s mit Tapatalk
-
Das Blockly Bitte in Spoiler und Code Tags Posten/ändern.
Gesendet von iPhone mit Tapatalk Pro ` Ehm. Was soll ich? Bin aktuell nur mit dem Smartphone unterwegs. Kann man da so nichts mit anfangen?
Gesendet von meinem MI 5s mit Tapatalk
-
Dann versuche ich es mal am Notebook. Meint ihr so? Diese Funktionen sehe ich in der App nicht, aber das ist hier jetzt nicht das Thema.
! ````
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="on" id="X;Cp_fbl5.{}9+*MBtnW" x="-162" y="-12"><field name="OID">mihome.0.devices.magnet_158d0001d821d1.state</field>
<field name="CONDITION">true</field><statement name="STATEMENT"><block type="controls_if" id="r4;C-s:gJHryisv4KGb`"><value name="IF0"><block type="logic_compare" id="UDQ/e84{v6!/G`]9t7QB"><field name="OP">LT</field> <value name="A"><block type="get_value" id="U2EWT0XNsJOW]@]Yk=~f"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.NEQ1554160.1.LEVEL</field></block></value> <value name="B"><block type="math_number" id="p?TJR~lG*ACFgAtTx8Q6"><field name="NUM">25</field></block></value></block></value> <statement name="DO0"><block type="control" id="|~G:]+8EHMW;8*1-^?~j"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.NEQ1502825.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="qsYjuh[gII/kw%kZfqH]"><field name="BOOL">TRUE</field></block></value> <next><block type="control" id="SV6|mmgVvsHrftVuT6}%"><mutation delay_input="false"></mutation> <field name="OID">deconz.0.deCONZ-GW.Gartenlampe 1.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="O5*RQyaef-63V-6:vO}w"><field name="BOOL">TRUE</field></block></value> <next><block type="control" id="sp-Am7zz%V.HpKKWy^i@"><mutation delay_input="false"></mutation> <field name="OID">deconz.0.deCONZ-GW.Gartenlampe 2.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id=".Y%:Pk;+ksY3wnPi}_O@"><field name="BOOL">TRUE</field></block></value></block></next></block></next></block></statement> <next><block type="timeouts_cleartimeout" id="^9kndE@5R7DmO.Pb3ZWr"><field name="NAME">timeout</field> <next><block type="timeouts_settimeout" id="1m)Q_r6s:]S6[6JqKIcH"><field name="NAME">timeout</field> <field name="DELAY">3</field> <field name="UNIT">min</field> <statement name="STATEMENT"><block type="controls_if" id="q}VKP`-H5aXwG#1=6+qW"><value name="IF0"><block type="logic_compare" id="a/Ep-G.tm?WS;as%~Qg7"><field name="OP">LT</field> <value name="A"><block type="get_value" id="#8~y]1qOkiU/kT2-dbbY"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.NEQ1554160.1.LEVEL</field></block></value> <value name="B"><block type="math_number" id="8`oY:2LS{#!H|zj0)Q+b"><field name="NUM">25</field></block></value></block></value> <statement name="DO0"><block type="control" id="ftP!r*}f{K0X.R)Uax?:"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.NEQ1502825.1.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="Z7hs,k@|2R:*~^FsIB~#"><field name="BOOL">FALSE</field></block></value> <next><block type="control" id="cIKwJ?N*55Y%,|u}i5M0"><mutation delay_input="true"></mutation> <field name="OID">deconz.0.deCONZ-GW.Gartenlampe 1.on</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="1--}A40(#RWjEV,0F5q["><field name="BOOL">FALSE</field></block></value> <next><block type="control" id="0]8k?Pv3;K-fMv.V=d;+"><mutation delay_input="true"></mutation> <field name="OID">deconz.0.deCONZ-GW.Gartenlampe 2.on</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="0*=dU@/:Jh%34EkY5^j7"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement></block></statement></block></next></block></next></block></statement></block></xml> -
Mit einer Skriptvariablen licht_war_aus müsste es funktionieren.
Blockly_Licht_war_aus.JPG `
Das war es!! Vielen Dank!
Ich denke ich muss noch ein bisschen mit den "Variablen" spielen und testen denn so ganz habe ich die Abfragen nicht verstanden.
Man setzt eine Variable auf Nicht Wert des Lichtaktors usw… bisschen komisch. Oder kann man das in einem Satz erläutern?
Vielen Dank nochmal!
Gruß
-
Hi zusammen,
nachdem das Skript bisher ohne Probleme funktioniert ergeben sich im Daily Doing doch noch ein paar Anforderungen.
Wenn Helligkeit unter 90 liegt usw geht ja Licht an bei Öffnen der Tür und bleibt dann für 3 Minuten in der Küche und im Garten für 7 (+4) an.
Wenn ich jetzt jedoch den Müll raus bringe, dauert 30Sek zB. und gehe dann wieder rein. Dann sind die Lampen ja durch vorheriges Raus gehen bereits an. Entsprechend bleiben die an und der Timeout greift nicht.
Gibt es dazu noch etwas um zB zu sagen wenn die Tür innerhalb 1 Min. 2 Mal geöffnet wurde dann schalte Lichter nach Timer aus?
Gruß

