@asgothian
Finde ich super, wenn das ganze nur auf Deutsch wäre
@biker1602 sagte in Farbwechsel wiederholen :
@asgothian
Finde ich super, wenn das ganze nur auf Deutsch wäre
ist es bei dir!
oder für den nachbau die Systemsprache v8n iobroker kurz auf englisch stellen
@biker1602
Die beiden DPs anpassen natürlich.
@djmarc75 said in Farbwechsel wiederholen :
Die beiden DPs anpassen natürlich.
Danke ich habe das Blockly kopiert die beiden Datenpunkte ersetzt aber es tut sich nichts.
Der obere Datenpunkt ist doch der Schalter und der untere der RGBW Datenpunkt oder?
@djmarc75 said in Farbwechsel wiederholen :
Die beiden DPs anpassen natürlich.
Danke ich habe das Blockly kopiert die beiden Datenpunkte ersetzt aber es tut sich nichts.
Der obere Datenpunkt ist doch der Schalter und der untere der RGBW Datenpunkt oder?
@biker1602 Sorry... Fehler im Blockly behoben:
Spoiler
<xml xmlns="https://developers.google.com/blockly/xml ">
<variables>
<variable id="aAiF8fS2+x)HhPBLBjaj">Farben</variable>
<variable id="5NQ8W,tcSnJEl/CKI5o7">Farbindex</variable>
<variable type="interval" id="Intervall">Intervall</variable>
</variables>
<block type="variables_set" id="2zQL5c#P=ke_N?OWRj" x="62" y="-462"> <field name="VAR" id="aAiF8fS2+x)HhPBLBjaj">Farben</field> <value name="VALUE"> <block type="lists_create_with" id="n-cVxX[LgF?-YO@EhsZJ"> <mutation items="4"></mutation> <value name="ADD0"> <block type="colour_picker" id="%QNs|L*o-B=b{Coqp|Jz"> <field name="COLOUR">#ff0000</field> </block> </value> <value name="ADD1"> <block type="colour_picker" id="6@ppe]+D#AFA1Q-t?,f)"> <field name="COLOUR">#ffff00</field> </block> </value> <value name="ADD2"> <block type="colour_picker" id="~WhJ.y,ss|V2Z4q|G/3J"> <field name="COLOUR">#33ff33</field> </block> </value> <value name="ADD3"> <block type="colour_picker" id="ZvujsP{!s[!VHUzAn51w"> <field name="COLOUR">#3366ff</field> </block> </value> </block> </value> <next> <block type="variables_set" id="#CB_wiS?8wDrPlykq:Ss"> <field name="VAR" id="5NQ8W,tcSnJEl/CKI5o7">Farbindex</field> <value name="VALUE"> <block type="math_number" id="zyA5y0{3$X0{$y-IP@0">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="on_ext" id="~xL$Rzo5IF!ECECG(:/;">
<mutation xmlns="http://www.w3.org/1999/xhtml " items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="Xi;I;X|}S@%x9)_Tinh"> <field name="oid">0_userdata.0.TestDP.Switch</field> </shadow> </value> <statement name="STATEMENT"> <block type="timeouts_clearinterval" id="xS(3n9!jayl|nd$HoJke"> <field name="NAME">Intervall</field> <next> <block type="controls_if" id="N6(QYY;m4/TxpaIG=@(7"> <value name="IF0"> <block type="on_source" id="-DquW4nv%t[;FDfB%IN8"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="timeouts_setinterval" id=")KF#5uAgKMtEh7n)fq?y"> <field name="NAME">Intervall</field> <field name="INTERVAL">5</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="math_change" id="iGUM4pJ[qxCJvb1%sBvc"> <field name="VAR" id="5NQ8W,tcSnJEl/CKI5o7">Farbindex</field> <value name="DELTA"> <shadow type="math_number" id="k9+TP3/J_DcTNfy@uR)h"> <field name="NUM">1</field> </shadow> <block type="math_number" id="ANG:((.+QmsnVIqHt:Sf"> <field name="NUM">1</field> </block> </value> <next> <block type="controls_if" id="M~9|(:AXZ|_eV)lhEe#">
<value name="IF0">
<block type="logic_compare" id="{.e:(5h7)_N5[t]E4;a">
<field name="OP">GT</field>
<value name="A">
<block type="variables_get" id="oFGL:FPq};2t#QUDK rn">
<field name="VAR" id="5NQ8W,tcSnJEl/CKI5o7">Farbindex</field>
</block>
</value>
<value name="B">
<block type="lists_length" id="Hd?+1nPO,Is6#6jgoah"> <value name="VALUE"> <block type="variables_get" id="z)dt*P:K=GBMK,G=pvo?"> <field name="VAR" id="aAiF8fS2+x)HhPBLBjaj">Farben</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="piU,-sa1D@;U+nBX|.@Z"> <field name="VAR" id="5NQ8W,tcSnJEl/CKI5o7">Farbindex</field> <value name="VALUE"> <block type="math_number" id="-KI%%m,H2~ks})gFmc}M"> <field name="NUM">1</field> </block> </value> </block> </statement> <next> <block type="control" id="l;kPxiW|N1Ud_(!6|-zi"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="lists_getIndex" id="#2)tzGsOW8I4P4@b$Oe3"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="7~|heidI!`Q@4lv]G_j">
<field name="VAR" id="aAiF8fS2+x)HhPBLBjaj">Farben</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="aITQ9U+3Mtu)+?{x[f }">
<field name="VAR" id="5NQ8W,tcSnJEl/CKI5o7">Farbindex</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</xml>
@biker1602 Sorry... Fehler im Blockly behoben:
Spoiler
<xml xmlns="https://developers.google.com/blockly/xml ">
<variables>
<variable id="aAiF8fS2+x)HhPBLBjaj">Farben</variable>
<variable id="5NQ8W,tcSnJEl/CKI5o7">Farbindex</variable>
<variable type="interval" id="Intervall">Intervall</variable>
</variables>
<block type="variables_set" id="2zQL5c#P=ke_N?OWRj" x="62" y="-462"> <field name="VAR" id="aAiF8fS2+x)HhPBLBjaj">Farben</field> <value name="VALUE"> <block type="lists_create_with" id="n-cVxX[LgF?-YO@EhsZJ"> <mutation items="4"></mutation> <value name="ADD0"> <block type="colour_picker" id="%QNs|L*o-B=b{Coqp|Jz"> <field name="COLOUR">#ff0000</field> </block> </value> <value name="ADD1"> <block type="colour_picker" id="6@ppe]+D#AFA1Q-t?,f)"> <field name="COLOUR">#ffff00</field> </block> </value> <value name="ADD2"> <block type="colour_picker" id="~WhJ.y,ss|V2Z4q|G/3J"> <field name="COLOUR">#33ff33</field> </block> </value> <value name="ADD3"> <block type="colour_picker" id="ZvujsP{!s[!VHUzAn51w"> <field name="COLOUR">#3366ff</field> </block> </value> </block> </value> <next> <block type="variables_set" id="#CB_wiS?8wDrPlykq:Ss"> <field name="VAR" id="5NQ8W,tcSnJEl/CKI5o7">Farbindex</field> <value name="VALUE"> <block type="math_number" id="zyA5y0{3$X0{$y-IP@0">
<field name="NUM">0</field>
</block>
</value>
<next>
<block type="on_ext" id="~xL$Rzo5IF!ECECG(:/;">
<mutation xmlns="http://www.w3.org/1999/xhtml " items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="Xi;I;X|}S@%x9)_Tinh"> <field name="oid">0_userdata.0.TestDP.Switch</field> </shadow> </value> <statement name="STATEMENT"> <block type="timeouts_clearinterval" id="xS(3n9!jayl|nd$HoJke"> <field name="NAME">Intervall</field> <next> <block type="controls_if" id="N6(QYY;m4/TxpaIG=@(7"> <value name="IF0"> <block type="on_source" id="-DquW4nv%t[;FDfB%IN8"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="timeouts_setinterval" id=")KF#5uAgKMtEh7n)fq?y"> <field name="NAME">Intervall</field> <field name="INTERVAL">5</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="math_change" id="iGUM4pJ[qxCJvb1%sBvc"> <field name="VAR" id="5NQ8W,tcSnJEl/CKI5o7">Farbindex</field> <value name="DELTA"> <shadow type="math_number" id="k9+TP3/J_DcTNfy@uR)h"> <field name="NUM">1</field> </shadow> <block type="math_number" id="ANG:((.+QmsnVIqHt:Sf"> <field name="NUM">1</field> </block> </value> <next> <block type="controls_if" id="M~9|(:AXZ|_eV)lhEe#">
<value name="IF0">
<block type="logic_compare" id="{.e:(5h7)_N5[t]E4;a">
<field name="OP">GT</field>
<value name="A">
<block type="variables_get" id="oFGL:FPq};2t#QUDK rn">
<field name="VAR" id="5NQ8W,tcSnJEl/CKI5o7">Farbindex</field>
</block>
</value>
<value name="B">
<block type="lists_length" id="Hd?+1nPO,Is6#6jgoah"> <value name="VALUE"> <block type="variables_get" id="z)dt*P:K=GBMK,G=pvo?"> <field name="VAR" id="aAiF8fS2+x)HhPBLBjaj">Farben</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="piU,-sa1D@;U+nBX|.@Z"> <field name="VAR" id="5NQ8W,tcSnJEl/CKI5o7">Farbindex</field> <value name="VALUE"> <block type="math_number" id="-KI%%m,H2~ks})gFmc}M"> <field name="NUM">1</field> </block> </value> </block> </statement> <next> <block type="control" id="l;kPxiW|N1Ud_(!6|-zi"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">Object ID</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="lists_getIndex" id="#2)tzGsOW8I4P4@b$Oe3"> <mutation statement="false" at="true"></mutation> <field name="MODE">GET</field> <field name="WHERE">FROM_START</field> <value name="VALUE"> <block type="variables_get" id="7~|heidI!`Q@4lv]G_j">
<field name="VAR" id="aAiF8fS2+x)HhPBLBjaj">Farben</field>
</block>
</value>
<value name="AT">
<block type="variables_get" id="aITQ9U+3Mtu)+?{x[f }">
<field name="VAR" id="5NQ8W,tcSnJEl/CKI5o7">Farbindex</field>
</block>
</value>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</xml>
@djmarc75
Das Blockly funktioniert, aber er fängt, wenn man einschaltet, mit der Farbe an, die er beim Ausschalten hatte, nicht mit der ersten Farbe in der Liste.
@djmarc75
Das Blockly funktioniert, aber er fängt, wenn man einschaltet, mit der Farbe an, die er beim Ausschalten hatte, nicht mit der ersten Farbe in der Liste.
@biker1602
Jo, genau so ist das Blockly aufgebaut.
Um mit der ersten Farbe zu beginnen muss VOR dem Intervall der DP mit der ersten Farbe angesteuert werden.
Da darfst Du jetzt selbst bissle aktiv werden. Willst ja schliesslich was lernen
@biker1602
Jo, genau so ist das Blockly aufgebaut.
Um mit der ersten Farbe zu beginnen muss VOR dem Intervall der DP mit der ersten Farbe angesteuert werden.
Da darfst Du jetzt selbst bissle aktiv werden. Willst ja schliesslich was lernen
@djmarc75 said in Farbwechsel wiederholen :
Da darfst Du jetzt selbst bissle aktiv werden. Willst ja schliesslich was lernen
Ich gebe mir Mühe
Habe ich hinbekommen.
Danke für eure Mühe.
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren
Anmelden