NEWS
Fehler bei der Wled steuerung mit Blockly
-
Re: Blockly für Garagen LED Beleuchtung
Hallo in die Runde,
ich hab mich nach langer Zeit auch mal an das Projekt Wled beleuchtung Garage gewagt. OHNE Vorkenntnisse !!!
Ich habe die Steuerung mit Blockly verwirklicht. Soweit läuft alles, außer die Abschaltung, die macht mir zu schaffen.Das Tor hat ja nur drei Zustände, in dem die LED´s tolle sachen machen und nach Zeit x ausgehen. Doch irgendwie beeinflussen sich die ZEITEN GEGENSEITIG , wenn man den gesamten Prozess nicht komplett durchläuft.
Kann mir bitt jemand einen TIP geben?! Danke
-
@mr-schiefer ```
code_text<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="W]nC*gFRWl79QFn)AdM1"> <field name="oid">zigbee.0.c4d8c8fffe18e9d6.opened</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="JfsdTR$20w|T7zyBMm2@"> <field name="oid">zigbee.0.c4d8c8fffe19089a.opened</field> </shadow> </value> <statement name="STATEMENT"> <block type="comment" id="w._[3u,,#m1t$?zC?]e1"> <field name="COMMENT">hoch oder runter</field> <next> <block type="controls_if" id="XzIrP_N:SZ/Wgiu*pcir"> <value name="IF0"> <block type="logic_multi_and" id="hWi{YmJW5?Tp9$)C=Wta"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <value name="AND0"> <block type="get_value" id="l6L]%c#R,v3C,MCM$7eL"> <field name="ATTR">val</field> <field name="OID">zigbee.0.c4d8c8fffe18e9d6.opened</field> </block> </value> <value name="AND1"> <block type="get_value" id="0EaQ;.J-7O?+zC@QJ599"> <field name="ATTR">val</field> <field name="OID">zigbee.0.c4d8c8fffe19089a.opened</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="jS6#YD`FVl,fAB@cs0tH"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.08f9e0df55e0.ps</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">20</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="OHN=LhxfcGTsqFED8Zzc"> <field name="NUM">1</field> </block> </value> <next> <block type="control" id="Z-nE(|thu%fj-G`kR$#i"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.08f9e0df55e0.ps</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">30</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="72n(:$qm.vI,|w;OB=F!"> <field name="NUM">10</field> </block> </value> <next> <block type="control" id="S}4oH4Z+F9lXk6,ZogZe"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.08f9e0df55e0.ps</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">60</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id=":_CE[@a~I|T!}No/!@CL"> <field name="NUM">9</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> <next> <block type="on_ext" id="@`N,|Fm#yDXu$U}RvTv)"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="#G%7[h}a/jp[V`Wf5.5k"> <field name="oid">zigbee.0.c4d8c8fffe19089a.opened</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="GCo`sCJ[gc+Zt$k.Nnbb"> <field name="oid">zigbee.0.c4d8c8fffe18e9d6.opened</field> </shadow> </value> <statement name="STATEMENT"> <block type="comment" id="IyX;dm,RC-#pLTu+:*_b"> <field name="COMMENT">Tor offen</field> <next> <block type="controls_if" id="l6+@fifd]iCk:vWW4`QQ"> <value name="IF0"> <block type="logic_multi_and" id="wW0QoTR)~AgXbO$Z`NpR"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <value name="AND0"> <block type="logic_compare" id="a`0zQ~V,@M5b31lGE:tv"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="[^NYM?|nN4(B]Ek{6tJ4"> <field name="ATTR">val</field> <field name="OID">zigbee.0.c4d8c8fffe18e9d6.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="v/#[!a}WApZ^hmECSIW:"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="`W/8zD|ygNU:(W9e(JYm"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="yENvKg8*;(uEBS7_7.7d"> <field name="ATTR">val</field> <field name="OID">zigbee.0.c4d8c8fffe19089a.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="gs[Co.!-ALYL8Am0BQHg"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="WJ0#OCyH*|73.d_I,N(1"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.08f9e0df55e0.ps</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">0</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="rrpv(,Yvc4,]Aj2UYs1*"> <field name="NUM">3</field> </block> </value> <next> <block type="control" id="l3}z(#eJ~YJ[a-P`Z3dg"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.08f9e0df55e0.ps</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="K*uwHy3h!u=l?!y!D7VB"> <field name="NUM">8</field> </block> </value> <next> <block type="control" id="_r}N{rnzlFC,p`?QZ@Oe"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.08f9e0df55e0.ps</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="z;5(|78fo.9fAg3pDF)c"> <field name="NUM">6</field> </block> </value> <next> <block type="control" id="vKR-lT}#XWX@.]WUpVK="> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.08f9e0df55e0.ps</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">40</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="|whngA{B7`}v$6_6xfJb"> <field name="NUM">5</field> </block> </value> <next> <block type="control" id="%!JMf8Ej+!/D_(MmR%;-"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.08f9e0df55e0.ps</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">5</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="$G,$ke2MW45Y,*o@d:qs"> <field name="NUM">9</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> <next> <block type="on_ext" id="oZRI:Q#lllCSL}s4:~tZ"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="?W|,Z=IuYN2sGA@(typ%"> <field name="oid">zigbee.0.c4d8c8fffe18e9d6.opened</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="(6O%a!o%:Oqw{Z~r?om="> <field name="oid">zigbee.0.c4d8c8fffe19089a.opened</field> </shadow> </value> <statement name="STATEMENT"> <block type="comment" id="N:TTZ;I(a+XY2C^mty!P"> <field name="COMMENT">Tor geschlossen</field> <next> <block type="controls_if" id="A%HyMbr=m3C%--).F@2Q"> <value name="IF0"> <block type="logic_multi_and" id="~xD%VwWo3W:/cK[=5T:D"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <value name="AND0"> <block type="logic_compare" id="B@bn:4`]p5`d*,d|w.v3"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="`C;2aeERzHj_gD3_+oIS"> <field name="ATTR">val</field> <field name="OID">zigbee.0.c4d8c8fffe18e9d6.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="4^#^-V}{iB)rM.l([0b("> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="wJ0l/{lXoc*gcwSD64vU"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="QJ_n?0PtkEDTfWuKHwQ+"> <field name="ATTR">val</field> <field name="OID">zigbee.0.c4d8c8fffe19089a.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="ts8yW:#lSg}/*KUIIm~A"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="#ptdyKU4?Se1jziFwF+L"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.08f9e0df55e0.ps</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">0</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="ar{u1dX]BU5^rMpcDhn7"> <field name="NUM">8</field> </block> </value> <next> <block type="control" id="OfjJ+wY$}ZaU]i=Z|MQI"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.08f9e0df55e0.ps</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">5</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="qV[?,vrjL[_sJDBi`K.)"> <field name="NUM">6</field> </block> </value> <next> <block type="control" id="g[^Y6p$UGM/BXF.WIR^v"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.08f9e0df55e0.ps</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">10</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="iT8(oWPncAaMJA:vc|(Y"> <field name="NUM">5</field> </block> </value> <next> <block type="control" id="|BfwLn6O~$MQrL;C{G9Q"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.08f9e0df55e0.ps</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">5</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="hB1w9.nvyKXNq{@rOzLt"> <field name="NUM">9</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> -
Magst Du das Blockly mal posten.
Niemand möchte sich das bei sich importieren .
Außerdem kann man dann so alles mitverfolgen -
This post is deleted! -

Sorry auch hier bin ich Anfänger
-
@mr-schiefer
Schau mal bei mir. Ich habe zwei fensterkontaktschalter die den Zustand messen.
Anbei das blockly
Bei deinem blockly:
- Drei mal der selbe triggern macht man nicht.
- Wie wird das wled ausgeschaltet? Wenn du wled benutzt gibt es doch einen true/ false datenpunkt (z.b. mit cod-m)
- Isopen sind das kontaktschalter? Wo sitzen diese?
-
@jwerlsdf wie gesagt ich bin ganz neu in der Materie !
Inzwischen habe ich alles geändert. Die Wled schaltet sich jetzt nach vorgegebener Zeit über Presets ab. ich wollte aber gern den Zustand, "Tor weder Offen noch geschlossen" (falls man es mal halb offen lässt) Nach zeit XX abschalten lassen. Das hab ich jedoch noch nicht hinbekommen.
Die Kontakte (Zigbee) sind jeweils einmal bei geöffnet und einmal bei geschlossen. -
@mr-schiefer
Wenn das Garagentor halb offen ist sind beide kontaktschalter auf true ODER false (je nachdem welche kontaktschalter du wie verbaut hast.)
Prüfe also auf diese Bedingung.
Wenn beide auf false bzw true sind, lass einen Timer laufen. Wenn dein Garagentor z.b 10 Sekunden braucht zum fahren, dann würde ich den timer auf 20 Sekunden zum Beispiel stellen. Wenn dann einer der Datenpunkt der kontaktschalter sich nicht geändert hat, dann wurde das garagentor angehalten. -
@mr-schiefer sagte: Zustand, "Tor weder Offen noch geschlossen" (falls man es mal halb offen lässt)
Prinzip:

Der Timeout sollte etwas länger sein, als die Laufzeit des Tores. Verzögerungen innerhalb der Aktionen sollten immer kürzer sein, als die Laufzeit.