NEWS
Led DImmerung
-
Hallo,
Ich bin neu hier im forum und neu was Iobroker angeht.
Ich habe ein Blockly erstellt um meine Aquariumbeleuchtung per zeit hoch und runter zu dimmen, leider geht es mal gut und an anderen Tagen wieder nicht.was habe ich falsch gemacht?
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="interval" id="Intervall2">Intervall2</variable> <variable type="interval" id="Intervall">Intervall</variable> </variables> <block type="schedule" id="0Q|ipoSHGTTHy-WPc1VG" x="-612" y="-151"> <field name="SCHEDULE">{"time":{"exactTime":true,"start":"10:00"},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="Bv3SX!80}T~MXIZuCBDu"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.HN LED.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="NJ~i^8n)fnkF4ZP@h;jA"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="3)VpdJzw9nM05L.4-]YC"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.HN LED.Red</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="^9lt[g{ObYpsD-u]PViE"> <field name="NUM">0</field> </block> </value> <next> <block type="timeouts_setinterval" id="Vi#Q`P{:ZIMRLk:BJ6h,"> <field name="NAME">Intervall</field> <field name="INTERVAL">72000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="controls_if" id="zKR.JQ.se`)o!}.i59_J"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="^IbdJP/kYKe?{,9nO?ZQ"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="7x8J*FX:5%HQw2Pr;[#K"> <field name="ATTR">val</field> <field name="OID">sonoff.0.HN LED.Red</field> </block> </value> <value name="B"> <block type="math_number" id="pZk$;u-fb}7==?^Fzjp@"> <field name="NUM">75</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="5i:E;5iNV2F`yI:+~`JX"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.HN LED.Red</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="]1U+y~*:i8f9Q~cX##,i"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="7#M%}o.-Kf*%mZCCq^l%"> <field name="NUM">1</field> </shadow> <block type="get_value" id="e:it,Aq#k]_WXJ`D1lv]"> <field name="ATTR">val</field> <field name="OID">sonoff.0.HN LED.Red</field> </block> </value> <value name="B"> <shadow type="math_number" id="g=v}(UP].U-NtC]ubRx2"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="timeouts_clearinterval" id=":.#q_x_6tK5#joM!ZCPm"> <field name="NAME">Intervall</field> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> <block type="schedule" id="x![=gxvyPC(Jk,Qj5-`h" x="-562" y="185"> <field name="SCHEDULE">{"time":{"exactTime":true,"start":"19:30"},"period":{"days":1}}</field> <statement name="STATEMENT"> <block type="control" id="$zg#03fZ[]1;H5rkc@(%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.HN LED.Red</field> <field name="WITH_DELAY">FALSE</field> <next> <block type="timeouts_setinterval" id="}V`?f`+PghYM{Ch{Fiwt"> <field name="NAME">Intervall2</field> <field name="INTERVAL">18000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="controls_if" id="1:u8m92jNJbu~$K.}2+O"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="R1TDC9hZWi.5S+R55hcz"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="EVXB_fd*0GG8[n/D9cC6"> <field name="ATTR">val</field> <field name="OID">sonoff.0.HN LED.Red</field> </block> </value> <value name="B"> <block type="math_number" id="GY6x,pQ=X16dKqfI+++#"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="1Y`q|gikA00Em~M/4U~W"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.HN LED.Red</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="}pxe?~Qk1~cnn:!r#P;Z"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number"> <field name="NUM">1</field> </shadow> <block type="get_value" id="#ahpQ=I8]x`|c*6x[T6w"> <field name="ATTR">val</field> <field name="OID">sonoff.0.HN LED.Red</field> </block> </value> <value name="B"> <shadow type="math_number" id="6F^:XoHO2Jzs@{/l)pad"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="timeouts_clearinterval" id="]AE#)WPJ!v{ML?VZUCsg"> <field name="NAME">Intervall</field> </block> </statement> </block> </statement> </block> </next> </block> </statement> </block> </xml>``` code_text
-
@dennis-hg
Bitte CodeTags für Code verwenden. -
@thomas-braun sorry bin noch nicht so drine, ist das so richtig?
-
@dennis-hg Kann man wesentlich besser lesen, oder?
-
@thomas-braun ja das Stimmt
-
@dennis-hg sagte: was habe ich falsch gemacht?
19:30 Uhr: Es fehlt der Anfangswert und es wird das falsche Intervall gestoppt.
Sollte es nicht besser so aussehen?
-
@paul53 Oh danke, das mit Intervall 1 und zwei habe ich wohl übersehen.
Mit dem Startwert hatte ich beides schon versucht, ergab aber kein unterschied.
MfG
-
Hallo,
Ich hätte noch eine frag.
Bei mir kommt es hin und wieder das der Router Neustarten, wenn es beim runterdimmen passiert bleibt der Status dann da stehen.
Könnte man im Skript eine Sicherung einbauen was den Verlauf prüft und dann es zu Ende bringt.
Ich hoffe ihr versteht mich was ich meine