Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Error/Bug
  4. [gelöst] Skript Adapter stoppt div Skripte ohne Befehl...

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.5k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    993

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.3k

[gelöst] Skript Adapter stoppt div Skripte ohne Befehl...

Geplant Angeheftet Gesperrt Verschoben Ungelöst Error/Bug
fehlersuche
5 Beiträge 3 Kommentatoren 514 Aufrufe 3 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • S Offline
    S Offline
    SaiBot1981
    schrieb am zuletzt editiert von SaiBot1981
    #1

    |Hardwaresystem:| Raspberry Pi 4B|
    |Arbeitsspeicher:| 4GB |
    |Festplattenart:| USB Stick |
    |Betriebssystem:| Raspian light buster |
    |Node-Version:| |
    |Nodejs-Version:| 12.14.1 |
    |NPM-Version:| 6.13.4 |
    |Installationsart:| manuell |
    |Image genutzt:| Ja |
    |Ort; Name der Imagedatei:| https://www.iobroker.net/#de/download |

    Moin, ich habe div Stop befehle in meiner Log gefunden welche auch dazu führen das einer der Echos ohne Befehl sprachausgaben macht.

    javascript.0	2020-11-03 21:49:26.816	info	(22971) Stop script script.js.Telegram.Bewegung_Eingang
    javascript.0	2020-11-03 21:49:26.771	info	(22971) Stop script script.js.Telegram.Bewegung_Eingang
    javascript.0	2020-11-03 21:46:45.029	info	(22971) Stop script script.js.Telegram.Bewegung_Eingang
    javascript.0	2020-11-03 21:46:44.939	info	(22971) Stop script script.js.Telegram.Bewegung_Eingang
    javascript.0	2020-11-03 21:45:46.688	info	(22971) Stop script script.js.Statusanzeigen.James_Timer
    javascript.0	2020-11-03 21:45:46.677	info	(22971) Stop script script.js.Statusanzeigen.James_Timer
    javascript.0	2020-11-03 21:45:32.985	info	(22971) Stop script script.js.Statusanzeigen.James_Timer
    javascript.0	2020-11-03 21:45:32.977	info	(22971) Stop script script.js.Statusanzeigen.James_Timer
    

    Hab langer nun gedacht es liegt an einen Fhlerhaften skript von mir. Da ich jedoch nun sograr das skript bei Button drucken deaktiviere und dann beim Stoppen durch was auch immer (im Log wurde gestoppt, ich hab nichts gedrückt und der Echo hat gesprochen).

    Vielleicht kann mir jemand helfen?

    Anbei die beiden Skripte die in Kombination arbeiten aber es eigentlich nicht auslösen könnten.
    Saugrobotter starten/stoppen/timer 45 Min:

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable type="timeout" id="timeout">timeout</variable>
      </variables>
      <block type="on" id="P~Xr/n2}^;=g*e;U/c/T" x="-1037" y="-312">
        <field name="OID">0_userdata.0.VirtuelleSchalter.Saugrobotter</field>
        <field name="CONDITION">any</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="controls_if" id="[3Nc*;A2EAjS-pv#0P=C">
            <mutation elseif="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="L2yca3ml(+5^/oDp~h%t">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="get_value" id="VwoHDI#4yS19:p8x7n.R">
                    <field name="ATTR">val</field>
                    <field name="OID">0_userdata.0.VirtuelleSchalter.Saugrobotter</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_boolean" id="YsTWr4CP5q99nRe-wtJ2">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="timeouts_cleartimeout" id="ZBt6~}@3*YG.LIVqvw-w">
                <field name="NAME">timeout</field>
                <next>
                  <block type="control" id="Pj~=-9Jz1DhYUynFsG9p">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">alexa2.0.Smart-Home-Devices.6f00836b-1711-453c-a70e-6cdfe36e00b3.powerState</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="s1,OUgHdX`yCn0?c2kvk">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="~(XVtb(l%,vIGyNzNL?f">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">alexa2.0.Echo-Devices.G090LF1180330R02.Commands.speak-volume</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="M$UCnf9$wmty_fEgP_v%">
                            <field name="NUM">100</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="#[MhW3Lyh0i:5$.^2p|d">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                            <field name="OID">alexa2.0.Echo-Devices.G090LF1180330R02.Commands.speak</field>
                            <field name="WITH_DELAY">TRUE</field>
                            <field name="DELAY_MS">1</field>
                            <field name="UNIT">sec</field>
                            <field name="CLEAR_RUNNING">FALSE</field>
                            <value name="VALUE">
                              <block type="text" id="L0)KBC!5AZ2XsfETggJ`">
                                <field name="TEXT">James fängt jetzt an zu saugen</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="F_4T~DoB`J0}6aU~vn}v">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                <field name="OID">alexa2.0.Echo-Devices.G090LF1180330R02.Commands.speak-volume</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="v*Oy[c}2CgP#9uTvNWX;">
                                    <field name="NUM">75</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="Joz`l#N[tC?6{Eix=5`c">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">javascript.0.scriptEnabled.Statusanzeigen.James_Timer</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="logic_boolean" id="69:F}TSQ(c0B:lB+X63g">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
            <value name="IF1">
              <block type="logic_compare" id="|B+QE?#Y6$oq2D(OV1ta">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="get_value" id="qDyCsKFpiCKVyVeT|wEV">
                    <field name="ATTR">val</field>
                    <field name="OID">0_userdata.0.VirtuelleSchalter.Saugrobotter</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_boolean" id="9+toiA%w0kywO#:B-N+q">
                    <field name="BOOL">FALSE</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO1">
              <block type="control" id="il^~hqaf2DnFa,%DE}fm">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">alexa2.0.Smart-Home-Devices.6f00836b-1711-453c-a70e-6cdfe36e00b3.powerState</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="logic_boolean" id="w+InqNsIDG:bsh@:~Ijk">
                    <field name="BOOL">FALSE</field>
                  </block>
                </value>
                <next>
                  <block type="control" id=";`at``eW,#-lj^HypfaN">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">alexa2.0.Echo-Devices.G090LF1180330R02.Commands.speak-volume</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_number" id="YXMqo+3xe1V$@,pUXo3W">
                        <field name="NUM">100</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="2Ks5k%2va_8]arp+76IM">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                        <field name="OID">alexa2.0.Echo-Devices.G090LF1180330R02.Commands.speak</field>
                        <field name="WITH_DELAY">TRUE</field>
                        <field name="DELAY_MS">1</field>
                        <field name="UNIT">sec</field>
                        <field name="CLEAR_RUNNING">FALSE</field>
                        <value name="VALUE">
                          <block type="text" id="0E)T*G(8bR_XZu#=GinO">
                            <field name="TEXT">James ist fertig mit saugen</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="zVC6,Q(Y_m%1~0k94{}m">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                            <field name="OID">alexa2.0.Echo-Devices.G090LF1180330R02.Commands.speak-volume</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="Zg-EA7g(`jwOf0q|ncPB">
                                <field name="NUM">75</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="genAez(`,wp?|?x0lmuq">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">javascript.0.scriptEnabled.Statusanzeigen.James_Timer</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="logic_boolean" id="q#cK}P~o{RqCKO`oG,*K">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="update" id="L):hHo[;@(7Tm.#{ZT!X">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">0_userdata.0.James_Minuten</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="6F[@PM2JW|xJ4/ex%^Zx">
                                        <field name="NUM">45</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="update" id="lK9#|q7p|R#[jQ4r:L1?">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">0_userdata.0.James_Sekunden</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="RM,}$U_[dcjoJ%kn:Ib(">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="timeouts_settimeout" id="m#3@l9trOi3Tm24j*mje">
                <field name="NAME">timeout</field>
                <field name="DELAY">45</field>
                <field name="UNIT">min</field>
                <statement name="STATEMENT">
                  <block type="control" id="e)(oa_kocmEN3S{oT]1N">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">0_userdata.0.VirtuelleSchalter.Saugrobotter</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="logic_boolean" id="xiMS:Bs?$$2QFu2)0Dv9">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                    <next>
                      <block type="control" id="}o7=|#H|^{LAcVJ#@(Bc">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">javascript.0.scriptEnabled.Statusanzeigen.James_Timer</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="logic_boolean" id="SsgCkowCdHJ)jwU3Qnj.">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                        <next>
                          <block type="update" id="7smRWSExeW(-NU)ZnE(d">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.James_Minuten</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="zGfoOamm3BLl1:}BVx#*">
                                <field name="NUM">45</field>
                              </block>
                            </value>
                            <next>
                              <block type="update" id="pLOce|9X:@~k%,Zb^A`M">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">0_userdata.0.James_Sekunden</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="zQMzn+RpM+}GdbXO~X|A">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </statement>
      </block>
    </xml>
    

    Timeranzeige wie lange Saugrobotter noch fährt:

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable type="interval" id="Intervall">Intervall</variable>
        <variable type="interval" id="Intervall2">Intervall2</variable>
        <variable type="interval" id="Intervall3">Intervall3</variable>
      </variables>
      <block type="update" id="vLG3Jx:$(Dyg1o=#wZ%*" x="-1162" y="-512">
        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
        <field name="OID">0_userdata.0.James_Minuten</field>
        <field name="WITH_DELAY">FALSE</field>
        <value name="VALUE">
          <block type="math_number" id="mcNp^JpYJ-q~F@Qy:/mw">
            <field name="NUM">44</field>
          </block>
        </value>
        <next>
          <block type="update" id="8D%vgMG0|L-{Rr7_5lp@">
            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
            <field name="OID">0_userdata.0.James_Sekunden</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="math_number" id="3XQ^c=1X6%*=|8(|].[A">
                <field name="NUM">59</field>
              </block>
            </value>
            <next>
              <block type="timeouts_setinterval" id="+WC#a8s%.7y8;s:^NP$P">
                <field name="NAME">Intervall</field>
                <field name="INTERVAL">1</field>
                <field name="UNIT">min</field>
                <statement name="STATEMENT">
                  <block type="update" id="Ep55.o7B][M1or?/%nIR">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">0_userdata.0.James_Minuten</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_arithmetic" id="R[+@X;*FLq+6AV{2cv|6">
                        <field name="OP">MINUS</field>
                        <value name="A">
                          <shadow type="math_number" id="hIcd:bsLXWpey8GdHoSC">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="get_value" id="iG~wfyVZsdGy?pe6vtC~">
                            <field name="ATTR">val</field>
                            <field name="OID">0_userdata.0.James_Minuten</field>
                          </block>
                        </value>
                        <value name="B">
                          <shadow type="math_number" id="rD#I$.vU^BU6^iV,o;T.">
                            <field name="NUM">1</field>
                          </shadow>
                        </value>
                      </block>
                    </value>
                  </block>
                </statement>
                <next>
                  <block type="timeouts_setinterval" id="/5Hl~Ps1dT`H6qh-?i+$">
                    <field name="NAME">Intervall2</field>
                    <field name="INTERVAL">1</field>
                    <field name="UNIT">min</field>
                    <statement name="STATEMENT">
                      <block type="update" id=")kCIX,6GB40:1R0UD6dR">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">0_userdata.0.James_Sekunden</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_arithmetic" id="Ro*a|/qwlU_y]O7J)%++">
                            <field name="OP">ADD</field>
                            <value name="A">
                              <shadow type="math_number">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="get_value" id="FABm!9}r6daohXz*4QwK">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.James_Sekunden</field>
                              </block>
                            </value>
                            <value name="B">
                              <shadow type="math_number" id="`GJRvFcI^Q%1Ot6fagX2">
                                <field name="NUM">59</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="timeouts_setinterval" id="E^v-x%XVw?Y@C!6wV,}j">
                        <field name="NAME">Intervall3</field>
                        <field name="INTERVAL">1</field>
                        <field name="UNIT">sec</field>
                        <statement name="STATEMENT">
                          <block type="update" id="*+cDs$[W?t;Wj2dZr:=,">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">0_userdata.0.James_Sekunden</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_arithmetic" id="k|jYrz^,%Pd6-LP:3lM~">
                                <field name="OP">MINUS</field>
                                <value name="A">
                                  <shadow type="math_number">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="get_value" id="FEA^6%GMy)cNh]ZG}lBS">
                                    <field name="ATTR">val</field>
                                    <field name="OID">0_userdata.0.James_Sekunden</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow type="math_number" id="[{MwN0D-Aq$s}FEDs)mu">
                                    <field name="NUM">1</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </xml>
    
    dslraserD 1 Antwort Letzte Antwort
    0
    • S SaiBot1981

      |Hardwaresystem:| Raspberry Pi 4B|
      |Arbeitsspeicher:| 4GB |
      |Festplattenart:| USB Stick |
      |Betriebssystem:| Raspian light buster |
      |Node-Version:| |
      |Nodejs-Version:| 12.14.1 |
      |NPM-Version:| 6.13.4 |
      |Installationsart:| manuell |
      |Image genutzt:| Ja |
      |Ort; Name der Imagedatei:| https://www.iobroker.net/#de/download |

      Moin, ich habe div Stop befehle in meiner Log gefunden welche auch dazu führen das einer der Echos ohne Befehl sprachausgaben macht.

      javascript.0	2020-11-03 21:49:26.816	info	(22971) Stop script script.js.Telegram.Bewegung_Eingang
      javascript.0	2020-11-03 21:49:26.771	info	(22971) Stop script script.js.Telegram.Bewegung_Eingang
      javascript.0	2020-11-03 21:46:45.029	info	(22971) Stop script script.js.Telegram.Bewegung_Eingang
      javascript.0	2020-11-03 21:46:44.939	info	(22971) Stop script script.js.Telegram.Bewegung_Eingang
      javascript.0	2020-11-03 21:45:46.688	info	(22971) Stop script script.js.Statusanzeigen.James_Timer
      javascript.0	2020-11-03 21:45:46.677	info	(22971) Stop script script.js.Statusanzeigen.James_Timer
      javascript.0	2020-11-03 21:45:32.985	info	(22971) Stop script script.js.Statusanzeigen.James_Timer
      javascript.0	2020-11-03 21:45:32.977	info	(22971) Stop script script.js.Statusanzeigen.James_Timer
      

      Hab langer nun gedacht es liegt an einen Fhlerhaften skript von mir. Da ich jedoch nun sograr das skript bei Button drucken deaktiviere und dann beim Stoppen durch was auch immer (im Log wurde gestoppt, ich hab nichts gedrückt und der Echo hat gesprochen).

      Vielleicht kann mir jemand helfen?

      Anbei die beiden Skripte die in Kombination arbeiten aber es eigentlich nicht auslösen könnten.
      Saugrobotter starten/stoppen/timer 45 Min:

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="timeout" id="timeout">timeout</variable>
        </variables>
        <block type="on" id="P~Xr/n2}^;=g*e;U/c/T" x="-1037" y="-312">
          <field name="OID">0_userdata.0.VirtuelleSchalter.Saugrobotter</field>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="controls_if" id="[3Nc*;A2EAjS-pv#0P=C">
              <mutation elseif="1"></mutation>
              <value name="IF0">
                <block type="logic_compare" id="L2yca3ml(+5^/oDp~h%t">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="VwoHDI#4yS19:p8x7n.R">
                      <field name="ATTR">val</field>
                      <field name="OID">0_userdata.0.VirtuelleSchalter.Saugrobotter</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="YsTWr4CP5q99nRe-wtJ2">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="timeouts_cleartimeout" id="ZBt6~}@3*YG.LIVqvw-w">
                  <field name="NAME">timeout</field>
                  <next>
                    <block type="control" id="Pj~=-9Jz1DhYUynFsG9p">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">alexa2.0.Smart-Home-Devices.6f00836b-1711-453c-a70e-6cdfe36e00b3.powerState</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="s1,OUgHdX`yCn0?c2kvk">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="~(XVtb(l%,vIGyNzNL?f">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">alexa2.0.Echo-Devices.G090LF1180330R02.Commands.speak-volume</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="M$UCnf9$wmty_fEgP_v%">
                              <field name="NUM">100</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="#[MhW3Lyh0i:5$.^2p|d">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                              <field name="OID">alexa2.0.Echo-Devices.G090LF1180330R02.Commands.speak</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">1</field>
                              <field name="UNIT">sec</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="text" id="L0)KBC!5AZ2XsfETggJ`">
                                  <field name="TEXT">James fängt jetzt an zu saugen</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="F_4T~DoB`J0}6aU~vn}v">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                  <field name="OID">alexa2.0.Echo-Devices.G090LF1180330R02.Commands.speak-volume</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="v*Oy[c}2CgP#9uTvNWX;">
                                      <field name="NUM">75</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="Joz`l#N[tC?6{Eix=5`c">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">javascript.0.scriptEnabled.Statusanzeigen.James_Timer</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="69:F}TSQ(c0B:lB+X63g">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <value name="IF1">
                <block type="logic_compare" id="|B+QE?#Y6$oq2D(OV1ta">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="qDyCsKFpiCKVyVeT|wEV">
                      <field name="ATTR">val</field>
                      <field name="OID">0_userdata.0.VirtuelleSchalter.Saugrobotter</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="9+toiA%w0kywO#:B-N+q">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO1">
                <block type="control" id="il^~hqaf2DnFa,%DE}fm">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">alexa2.0.Smart-Home-Devices.6f00836b-1711-453c-a70e-6cdfe36e00b3.powerState</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id="w+InqNsIDG:bsh@:~Ijk">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                  <next>
                    <block type="control" id=";`at``eW,#-lj^HypfaN">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">alexa2.0.Echo-Devices.G090LF1180330R02.Commands.speak-volume</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="YXMqo+3xe1V$@,pUXo3W">
                          <field name="NUM">100</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="2Ks5k%2va_8]arp+76IM">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                          <field name="OID">alexa2.0.Echo-Devices.G090LF1180330R02.Commands.speak</field>
                          <field name="WITH_DELAY">TRUE</field>
                          <field name="DELAY_MS">1</field>
                          <field name="UNIT">sec</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="VALUE">
                            <block type="text" id="0E)T*G(8bR_XZu#=GinO">
                              <field name="TEXT">James ist fertig mit saugen</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="zVC6,Q(Y_m%1~0k94{}m">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                              <field name="OID">alexa2.0.Echo-Devices.G090LF1180330R02.Commands.speak-volume</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="Zg-EA7g(`jwOf0q|ncPB">
                                  <field name="NUM">75</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="genAez(`,wp?|?x0lmuq">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">javascript.0.scriptEnabled.Statusanzeigen.James_Timer</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="logic_boolean" id="q#cK}P~o{RqCKO`oG,*K">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="update" id="L):hHo[;@(7Tm.#{ZT!X">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">0_userdata.0.James_Minuten</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="6F[@PM2JW|xJ4/ex%^Zx">
                                          <field name="NUM">45</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="update" id="lK9#|q7p|R#[jQ4r:L1?">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">0_userdata.0.James_Sekunden</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="RM,}$U_[dcjoJ%kn:Ib(">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="timeouts_settimeout" id="m#3@l9trOi3Tm24j*mje">
                  <field name="NAME">timeout</field>
                  <field name="DELAY">45</field>
                  <field name="UNIT">min</field>
                  <statement name="STATEMENT">
                    <block type="control" id="e)(oa_kocmEN3S{oT]1N">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">0_userdata.0.VirtuelleSchalter.Saugrobotter</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="xiMS:Bs?$$2QFu2)0Dv9">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                      <next>
                        <block type="control" id="}o7=|#H|^{LAcVJ#@(Bc">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">javascript.0.scriptEnabled.Statusanzeigen.James_Timer</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="logic_boolean" id="SsgCkowCdHJ)jwU3Qnj.">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                          <next>
                            <block type="update" id="7smRWSExeW(-NU)ZnE(d">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">0_userdata.0.James_Minuten</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="zGfoOamm3BLl1:}BVx#*">
                                  <field name="NUM">45</field>
                                </block>
                              </value>
                              <next>
                                <block type="update" id="pLOce|9X:@~k%,Zb^A`M">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">0_userdata.0.James_Sekunden</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="zQMzn+RpM+}GdbXO~X|A">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      

      Timeranzeige wie lange Saugrobotter noch fährt:

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable type="interval" id="Intervall">Intervall</variable>
          <variable type="interval" id="Intervall2">Intervall2</variable>
          <variable type="interval" id="Intervall3">Intervall3</variable>
        </variables>
        <block type="update" id="vLG3Jx:$(Dyg1o=#wZ%*" x="-1162" y="-512">
          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
          <field name="OID">0_userdata.0.James_Minuten</field>
          <field name="WITH_DELAY">FALSE</field>
          <value name="VALUE">
            <block type="math_number" id="mcNp^JpYJ-q~F@Qy:/mw">
              <field name="NUM">44</field>
            </block>
          </value>
          <next>
            <block type="update" id="8D%vgMG0|L-{Rr7_5lp@">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">0_userdata.0.James_Sekunden</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="math_number" id="3XQ^c=1X6%*=|8(|].[A">
                  <field name="NUM">59</field>
                </block>
              </value>
              <next>
                <block type="timeouts_setinterval" id="+WC#a8s%.7y8;s:^NP$P">
                  <field name="NAME">Intervall</field>
                  <field name="INTERVAL">1</field>
                  <field name="UNIT">min</field>
                  <statement name="STATEMENT">
                    <block type="update" id="Ep55.o7B][M1or?/%nIR">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">0_userdata.0.James_Minuten</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="math_arithmetic" id="R[+@X;*FLq+6AV{2cv|6">
                          <field name="OP">MINUS</field>
                          <value name="A">
                            <shadow type="math_number" id="hIcd:bsLXWpey8GdHoSC">
                              <field name="NUM">1</field>
                            </shadow>
                            <block type="get_value" id="iG~wfyVZsdGy?pe6vtC~">
                              <field name="ATTR">val</field>
                              <field name="OID">0_userdata.0.James_Minuten</field>
                            </block>
                          </value>
                          <value name="B">
                            <shadow type="math_number" id="rD#I$.vU^BU6^iV,o;T.">
                              <field name="NUM">1</field>
                            </shadow>
                          </value>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <next>
                    <block type="timeouts_setinterval" id="/5Hl~Ps1dT`H6qh-?i+$">
                      <field name="NAME">Intervall2</field>
                      <field name="INTERVAL">1</field>
                      <field name="UNIT">min</field>
                      <statement name="STATEMENT">
                        <block type="update" id=")kCIX,6GB40:1R0UD6dR">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">0_userdata.0.James_Sekunden</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_arithmetic" id="Ro*a|/qwlU_y]O7J)%++">
                              <field name="OP">ADD</field>
                              <value name="A">
                                <shadow type="math_number">
                                  <field name="NUM">1</field>
                                </shadow>
                                <block type="get_value" id="FABm!9}r6daohXz*4QwK">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.James_Sekunden</field>
                                </block>
                              </value>
                              <value name="B">
                                <shadow type="math_number" id="`GJRvFcI^Q%1Ot6fagX2">
                                  <field name="NUM">59</field>
                                </shadow>
                              </value>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <next>
                        <block type="timeouts_setinterval" id="E^v-x%XVw?Y@C!6wV,}j">
                          <field name="NAME">Intervall3</field>
                          <field name="INTERVAL">1</field>
                          <field name="UNIT">sec</field>
                          <statement name="STATEMENT">
                            <block type="update" id="*+cDs$[W?t;Wj2dZr:=,">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">0_userdata.0.James_Sekunden</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_arithmetic" id="k|jYrz^,%Pd6-LP:3lM~">
                                  <field name="OP">MINUS</field>
                                  <value name="A">
                                    <shadow type="math_number">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="get_value" id="FEA^6%GMy)cNh]ZG}lBS">
                                      <field name="ATTR">val</field>
                                      <field name="OID">0_userdata.0.James_Sekunden</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <shadow type="math_number" id="[{MwN0D-Aq$s}FEDs)mu">
                                      <field name="NUM">1</field>
                                    </shadow>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      
      dslraserD Offline
      dslraserD Offline
      dslraser
      Forum Testing Most Active
      schrieb am zuletzt editiert von dslraser
      #2

      @SaiBot1981
      ich habe mir nur mal ein Blockly angesehen...(das hier)

      Bildschirmfoto 2020-11-03 um 22.23.58.png

      Dein timeout wird nur gestoppt wenn Dein virtueller Schalter wahr ist. (und der Trigger steht auf wurde aktualisiert, ist das ein Schalter oder ein Button ?)

      Wenn also getriggert wird, dann läuft Dein timeout immer wieder los, weil es einfach unten drunter unter allen falls Abfragen ist, ohne jegliche Prüfung oder stop timeout. Also wahrscheinlich läuft das timeout sogar mehrfach...Außerdem schaltest Du ein ganzes Sript an oder aus. (scriptEnabled), das ist auch nicht gut.

      Bildschirmfoto 2020-11-03 um 22.31.55.png

      Bildschirmfoto 2020-11-03 um 22.32.08.png

      Was genau soll das Blockly machen, bzw. was möchtest Du erreichen ? (so geht es jedenfalls immer schief)

      S 2 Antworten Letzte Antwort
      0
      • dslraserD dslraser

        @SaiBot1981
        ich habe mir nur mal ein Blockly angesehen...(das hier)

        Bildschirmfoto 2020-11-03 um 22.23.58.png

        Dein timeout wird nur gestoppt wenn Dein virtueller Schalter wahr ist. (und der Trigger steht auf wurde aktualisiert, ist das ein Schalter oder ein Button ?)

        Wenn also getriggert wird, dann läuft Dein timeout immer wieder los, weil es einfach unten drunter unter allen falls Abfragen ist, ohne jegliche Prüfung oder stop timeout. Also wahrscheinlich läuft das timeout sogar mehrfach...Außerdem schaltest Du ein ganzes Sript an oder aus. (scriptEnabled), das ist auch nicht gut.

        Bildschirmfoto 2020-11-03 um 22.31.55.png

        Bildschirmfoto 2020-11-03 um 22.32.08.png

        Was genau soll das Blockly machen, bzw. was möchtest Du erreichen ? (so geht es jedenfalls immer schief)

        S Offline
        S Offline
        SaiBot1981
        schrieb am zuletzt editiert von
        #3

        @dslraser also das Blockly hab ich hier im forum als vorlage bekommen und nur um die sprachausgabe erweitert.
        Die letzten 3 unter "sonst falls" und unter dem timeout von 45 min hab ich nur testweise eingebau....

        ich hatte es uhrsprunglich so gebaut...

        James.jpg

        Doch egal wie ich es auch wende oder drehe... es läuft zwar laut anzeige richtig aber sporadisch wird dem echo gesagt er solle reden...

        achja... ich habe den virtuellen schalter als button in meiner vis als on/off knopf so zu sagen...
        dazu sollte jetzt n timer kommen der den timeout runter zählt damit meine frau sehen kann wie lange noch gesaugt wird... (aufm ipad 2 ist mytime leider nicht möglich, wird nicht angezeigt)

        1 Antwort Letzte Antwort
        0
        • dslraserD dslraser

          @SaiBot1981
          ich habe mir nur mal ein Blockly angesehen...(das hier)

          Bildschirmfoto 2020-11-03 um 22.23.58.png

          Dein timeout wird nur gestoppt wenn Dein virtueller Schalter wahr ist. (und der Trigger steht auf wurde aktualisiert, ist das ein Schalter oder ein Button ?)

          Wenn also getriggert wird, dann läuft Dein timeout immer wieder los, weil es einfach unten drunter unter allen falls Abfragen ist, ohne jegliche Prüfung oder stop timeout. Also wahrscheinlich läuft das timeout sogar mehrfach...Außerdem schaltest Du ein ganzes Sript an oder aus. (scriptEnabled), das ist auch nicht gut.

          Bildschirmfoto 2020-11-03 um 22.31.55.png

          Bildschirmfoto 2020-11-03 um 22.32.08.png

          Was genau soll das Blockly machen, bzw. was möchtest Du erreichen ? (so geht es jedenfalls immer schief)

          S Offline
          S Offline
          SaiBot1981
          schrieb am zuletzt editiert von
          #4

          @dslraser sagte in Skript Adapter stoppt div Skripte ohne Befehl mehrfach:

          @SaiBot1981
          ich habe mir nur mal ein Blockly angesehen...(das hier)

          Bildschirmfoto 2020-11-03 um 22.23.58.png

          Dein timeout wird nur gestoppt wenn Dein virtueller Schalter wahr ist. (und der Trigger steht auf wurde aktualisiert, ist das ein Schalter oder ein Button ?)

          Wenn also getriggert wird, dann läuft Dein timeout immer wieder los, weil es einfach unten drunter unter allen falls Abfragen ist, ohne jegliche Prüfung oder stop timeout. Also wahrscheinlich läuft das timeout sogar mehrfach...Außerdem schaltest Du ein ganzes Sript an oder aus. (scriptEnabled), das ist auch nicht gut.

          Bildschirmfoto 2020-11-03 um 22.31.55.png

          Bildschirmfoto 2020-11-03 um 22.32.08.png

          Was genau soll das Blockly machen, bzw. was möchtest Du erreichen ? (so geht es jedenfalls immer schief)

          Also erstmal danke für die Hinweise von dir... hat mir ein wenig die Augen geöffnet...

          Ich änder den Tread dann mal auf gelöst.

          Thomas BraunT 1 Antwort Letzte Antwort
          0
          • S SaiBot1981

            @dslraser sagte in Skript Adapter stoppt div Skripte ohne Befehl mehrfach:

            @SaiBot1981
            ich habe mir nur mal ein Blockly angesehen...(das hier)

            Bildschirmfoto 2020-11-03 um 22.23.58.png

            Dein timeout wird nur gestoppt wenn Dein virtueller Schalter wahr ist. (und der Trigger steht auf wurde aktualisiert, ist das ein Schalter oder ein Button ?)

            Wenn also getriggert wird, dann läuft Dein timeout immer wieder los, weil es einfach unten drunter unter allen falls Abfragen ist, ohne jegliche Prüfung oder stop timeout. Also wahrscheinlich läuft das timeout sogar mehrfach...Außerdem schaltest Du ein ganzes Sript an oder aus. (scriptEnabled), das ist auch nicht gut.

            Bildschirmfoto 2020-11-03 um 22.31.55.png

            Bildschirmfoto 2020-11-03 um 22.32.08.png

            Was genau soll das Blockly machen, bzw. was möchtest Du erreichen ? (so geht es jedenfalls immer schief)

            Also erstmal danke für die Hinweise von dir... hat mir ein wenig die Augen geöffnet...

            Ich änder den Tread dann mal auf gelöst.

            Thomas BraunT Online
            Thomas BraunT Online
            Thomas Braun
            Most Active
            schrieb am zuletzt editiert von Thomas Braun
            #5

            @SaiBot1981
            Nodejs-Version:| 12.14.1
            Würde ich mal auf die aktuelle Version 12.19.0 heben.

            Linux-Werkzeugkasten:
            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
            NodeJS Fixer Skript:
            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

            1 Antwort Letzte Antwort
            1
            Antworten
            • In einem neuen Thema antworten
            Anmelden zum Antworten
            • Älteste zuerst
            • Neuste zuerst
            • Meiste Stimmen


            Support us

            ioBroker
            Community Adapters
            Donate

            322

            Online

            32.6k

            Benutzer

            82.3k

            Themen

            1.3m

            Beiträge
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
            ioBroker Community 2014-2025
            logo
            • Anmelden

            • Du hast noch kein Konto? Registrieren

            • Anmelden oder registrieren, um zu suchen
            • Erster Beitrag
              Letzter Beitrag
            0
            • Home
            • Aktuell
            • Tags
            • Ungelesen 0
            • Kategorien
            • Unreplied
            • Beliebt
            • GitHub
            • Docu
            • Hilfe