NEWS
Countdown mit Blockly
-
Hi, Ich habe folgendes Probem:
ich möchte wenn ein bestimmtes Gerät (welches mit Alexa gesteuert wird) wahr oder falsch (das ist egal) geschaltet wird, ein countdown aktiviert wird, der nach einer bestimmten Zeit einen Phillips Hue Lightstrip deaktiviert. Warum funktioniert dies nicht? Anbei das Skript:
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="}pp{P}Q`1Tcw%[W~{5r3">Countdown</variable> <variable type="undefined" id="Intervall">Intervall</variable> </variables> <block type="variables_set" id="aXGPlLzY1#AwuI_)X~u." x="287" y="87"> <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field> <value name="VALUE"> <block type="math_number" id="+$XhL~q#,Hb+KCC~!7K)"> <field name="NUM">0</field> </block> </value> <next> <block type="on_ext" id="T!00I:A*YFU{[.nI+j4_"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="7/lIy%(@h3Za!ak:hOL)"> <field name="oid">javascript.0.scriptEnabled.Starte_meinen_Tag.Starte_meinen_Tag_Alexa_Objekt</field> </shadow> </value> <statement name="STATEMENT"> <block type="timeouts_setinterval" id="L+^tnTuN:LupSo7_05#N"> <field name="NAME">Intervall</field> <field name="INTERVAL">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="math_change" id="_6Kv^2-jMteY2Mpq{eue"> <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field> <value name="DELTA"> <shadow type="math_number" id="_rA//7E5dB!A7+22r.Rl"> <field name="NUM">1</field> </shadow> <block type="math_number" id="Z(OFM-yiK$NsWa$wB7CH"> <field name="NUM">1</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="controls_if" id="aIRIzN-A-EZ}WXR2:POG"> <value name="IF0"> <block type="logic_compare" id="_5{0aOM4$R:|vVs^OVvV"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="mpASi3.C9qk|zYmc_tF}"> <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field> </block> </value> <value name="B"> <block type="math_number" id="+^e%FmqQmDF%@vq_^*d}"> <field name="NUM">3</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="kei88O+P-nOim/X8K`1p"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Philips_hue.Schreibtischbeleuchtung.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="KL[*Vz-rW)Ua?=.Hh2I$"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </xml> -
Hi, Ich habe folgendes Probem:
ich möchte wenn ein bestimmtes Gerät (welches mit Alexa gesteuert wird) wahr oder falsch (das ist egal) geschaltet wird, ein countdown aktiviert wird, der nach einer bestimmten Zeit einen Phillips Hue Lightstrip deaktiviert. Warum funktioniert dies nicht? Anbei das Skript:
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="}pp{P}Q`1Tcw%[W~{5r3">Countdown</variable> <variable type="undefined" id="Intervall">Intervall</variable> </variables> <block type="variables_set" id="aXGPlLzY1#AwuI_)X~u." x="287" y="87"> <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field> <value name="VALUE"> <block type="math_number" id="+$XhL~q#,Hb+KCC~!7K)"> <field name="NUM">0</field> </block> </value> <next> <block type="on_ext" id="T!00I:A*YFU{[.nI+j4_"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="7/lIy%(@h3Za!ak:hOL)"> <field name="oid">javascript.0.scriptEnabled.Starte_meinen_Tag.Starte_meinen_Tag_Alexa_Objekt</field> </shadow> </value> <statement name="STATEMENT"> <block type="timeouts_setinterval" id="L+^tnTuN:LupSo7_05#N"> <field name="NAME">Intervall</field> <field name="INTERVAL">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="math_change" id="_6Kv^2-jMteY2Mpq{eue"> <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field> <value name="DELTA"> <shadow type="math_number" id="_rA//7E5dB!A7+22r.Rl"> <field name="NUM">1</field> </shadow> <block type="math_number" id="Z(OFM-yiK$NsWa$wB7CH"> <field name="NUM">1</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="controls_if" id="aIRIzN-A-EZ}WXR2:POG"> <value name="IF0"> <block type="logic_compare" id="_5{0aOM4$R:|vVs^OVvV"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="mpASi3.C9qk|zYmc_tF}"> <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field> </block> </value> <value name="B"> <block type="math_number" id="+^e%FmqQmDF%@vq_^*d}"> <field name="NUM">3</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="kei88O+P-nOim/X8K`1p"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Philips_hue.Schreibtischbeleuchtung.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="KL[*Vz-rW)Ua?=.Hh2I$"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </xml>@tb_apple04
Den falls-mache Block in den Trigger Block setzen -
Hi, Ich habe folgendes Probem:
ich möchte wenn ein bestimmtes Gerät (welches mit Alexa gesteuert wird) wahr oder falsch (das ist egal) geschaltet wird, ein countdown aktiviert wird, der nach einer bestimmten Zeit einen Phillips Hue Lightstrip deaktiviert. Warum funktioniert dies nicht? Anbei das Skript:
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="}pp{P}Q`1Tcw%[W~{5r3">Countdown</variable> <variable type="undefined" id="Intervall">Intervall</variable> </variables> <block type="variables_set" id="aXGPlLzY1#AwuI_)X~u." x="287" y="87"> <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field> <value name="VALUE"> <block type="math_number" id="+$XhL~q#,Hb+KCC~!7K)"> <field name="NUM">0</field> </block> </value> <next> <block type="on_ext" id="T!00I:A*YFU{[.nI+j4_"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="7/lIy%(@h3Za!ak:hOL)"> <field name="oid">javascript.0.scriptEnabled.Starte_meinen_Tag.Starte_meinen_Tag_Alexa_Objekt</field> </shadow> </value> <statement name="STATEMENT"> <block type="timeouts_setinterval" id="L+^tnTuN:LupSo7_05#N"> <field name="NAME">Intervall</field> <field name="INTERVAL">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="math_change" id="_6Kv^2-jMteY2Mpq{eue"> <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field> <value name="DELTA"> <shadow type="math_number" id="_rA//7E5dB!A7+22r.Rl"> <field name="NUM">1</field> </shadow> <block type="math_number" id="Z(OFM-yiK$NsWa$wB7CH"> <field name="NUM">1</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="controls_if" id="aIRIzN-A-EZ}WXR2:POG"> <value name="IF0"> <block type="logic_compare" id="_5{0aOM4$R:|vVs^OVvV"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="mpASi3.C9qk|zYmc_tF}"> <field name="VAR" id="}pp{P}Q`1Tcw%[W~{5r3" variabletype="">Countdown</field> </block> </value> <value name="B"> <block type="math_number" id="+^e%FmqQmDF%@vq_^*d}"> <field name="NUM">3</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="kei88O+P-nOim/X8K`1p"> <mutation delay_input="false"></mutation> <field name="OID">hue.0.Philips_hue.Schreibtischbeleuchtung.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="KL[*Vz-rW)Ua?=.Hh2I$"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </xml>@tb_apple04 Ein Countdown zählt rückwärts bis 0 und stoppt dann.

-
Super Danke für eure Hilfe, das hat geklappt!
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