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. Skripten / Logik
  4. Script Fehler ?

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

Script Fehler ?

Geplant Angeheftet Gesperrt Verschoben Skripten / Logik
4 Beiträge 3 Kommentatoren 360 Aufrufe 2 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
    sunny9999
    schrieb am zuletzt editiert von
    #1

    Hallo zusammen,
    ich schreibe per Blockly einen Wert in einen Datenpunkt vom Typ Number......
    Geht auch, Wert wird geändert, es passiert aber nichts....
    Ändere ich den Datenpunkt "händisch" sprich trage ich dort die "1" ein, löst das Script aus.......
    Jemand eine Idee ???
    Blockly wie folgt :

    <xml xmlns="https://developers.google.com/blockly/xml">
      <block type="on_ext" id="ban^rP._LH-h6_qF)VJ!" x="-1012" y="-3212">
        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
        <field name="CONDITION">any</field>
        <field name="ACK_CONDITION"></field>
        <value name="OID0">
          <shadow type="field_oid" id="52AF-P8+;Jr{Tkw6aDAc">
            <field name="oid">0_userdata.0.Wasser.Zone-7</field>
          </shadow>
        </value>
        <statement name="STATEMENT">
          <block type="controls_if" id="?l;_5tS_S*gOC`,44;z{">
            <mutation else="1"></mutation>
            <value name="IF0">
              <block type="logic_compare" id="|A9[?DGxCX}{1Q_itQvX">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="get_value" id="Z)L/HX~}KfNr,4ZqhXuU">
                    <field name="ATTR">val</field>
                    <field name="OID">0_userdata.0.Wasser.Zone-7</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_boolean" id="RUiyLTHt9MBS$9M8p@;e">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="update" id="DmxBpn9I.*1*R.;c;}{G">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">ham.0.Valve-7.Zone-7.Active</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="convert_tonumber" id="j$wWy%8,E8*49XU[kgF9">
                    <value name="VALUE">
                      <block type="text" id="=@H0tpd%H]zVjBkX,Vd^">
                        <field name="TEXT">1</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="timeouts_wait" id="@6z[imv/h6rD@15Z|FBq">
                    <field name="DELAY">1000</field>
                    <field name="UNIT">ms</field>
                  </block>
                </next>
              </block>
            </statement>
            <statement name="ELSE">
              <block type="update" id="N^rL4~fa:Kgs4.F{|Y6I">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">ham.0.Valve-7.Zone-7.Active</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="convert_tonumber" id="k(r(eHGVD6_6[S8_zByI">
                    <value name="VALUE">
                      <block type="text" id="9V3(IzBYp=T][@-Nrm,n">
                        <field name="TEXT">0</field>
                      </block>
                    </value>
                  </block>
                </value>
                <next>
                  <block type="update" id="z[?BA,%N}k}Sx=iV1hm.">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">ham.0.Valve-7.Zone-7.Set-Duration</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="convert_tonumber" id="s}X7K42|N/Xvm]LYfQml">
                        <value name="VALUE">
                          <block type="text" id="s[Y@vxu[ULRmlBM*PMaO">
                            <field name="TEXT">0</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </statement>
      </block>
    </xml>
    

    Screenshot 2022-05-06 132028.jpg

    Danke für nen Hinweis wo ich auf dem Schlauch stehe.....
    Grüße
    Sunny

    mickymM A 2 Antworten Letzte Antwort
    0
    • S sunny9999

      Hallo zusammen,
      ich schreibe per Blockly einen Wert in einen Datenpunkt vom Typ Number......
      Geht auch, Wert wird geändert, es passiert aber nichts....
      Ändere ich den Datenpunkt "händisch" sprich trage ich dort die "1" ein, löst das Script aus.......
      Jemand eine Idee ???
      Blockly wie folgt :

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="on_ext" id="ban^rP._LH-h6_qF)VJ!" x="-1012" y="-3212">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="52AF-P8+;Jr{Tkw6aDAc">
              <field name="oid">0_userdata.0.Wasser.Zone-7</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="?l;_5tS_S*gOC`,44;z{">
              <mutation else="1"></mutation>
              <value name="IF0">
                <block type="logic_compare" id="|A9[?DGxCX}{1Q_itQvX">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="Z)L/HX~}KfNr,4ZqhXuU">
                      <field name="ATTR">val</field>
                      <field name="OID">0_userdata.0.Wasser.Zone-7</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="RUiyLTHt9MBS$9M8p@;e">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="update" id="DmxBpn9I.*1*R.;c;}{G">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">ham.0.Valve-7.Zone-7.Active</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="convert_tonumber" id="j$wWy%8,E8*49XU[kgF9">
                      <value name="VALUE">
                        <block type="text" id="=@H0tpd%H]zVjBkX,Vd^">
                          <field name="TEXT">1</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <next>
                    <block type="timeouts_wait" id="@6z[imv/h6rD@15Z|FBq">
                      <field name="DELAY">1000</field>
                      <field name="UNIT">ms</field>
                    </block>
                  </next>
                </block>
              </statement>
              <statement name="ELSE">
                <block type="update" id="N^rL4~fa:Kgs4.F{|Y6I">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">ham.0.Valve-7.Zone-7.Active</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="convert_tonumber" id="k(r(eHGVD6_6[S8_zByI">
                      <value name="VALUE">
                        <block type="text" id="9V3(IzBYp=T][@-Nrm,n">
                          <field name="TEXT">0</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <next>
                    <block type="update" id="z[?BA,%N}k}Sx=iV1hm.">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">ham.0.Valve-7.Zone-7.Set-Duration</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="convert_tonumber" id="s}X7K42|N/Xvm]LYfQml">
                          <value name="VALUE">
                            <block type="text" id="s[Y@vxu[ULRmlBM*PMaO">
                              <field name="TEXT">0</field>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      

      Screenshot 2022-05-06 132028.jpg

      Danke für nen Hinweis wo ich auf dem Schlauch stehe.....
      Grüße
      Sunny

      mickymM Online
      mickymM Online
      mickym
      Most Active
      schrieb am zuletzt editiert von
      #2

      @sunny9999 Nimm statt akutalisieren Datenpunkt - steuere Datenpunkt.

      Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

      S 1 Antwort Letzte Antwort
      0
      • mickymM mickym

        @sunny9999 Nimm statt akutalisieren Datenpunkt - steuere Datenpunkt.

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

        @mickym
        Bingo............vielen DANK !!!!!

        1 Antwort Letzte Antwort
        0
        • S sunny9999

          Hallo zusammen,
          ich schreibe per Blockly einen Wert in einen Datenpunkt vom Typ Number......
          Geht auch, Wert wird geändert, es passiert aber nichts....
          Ändere ich den Datenpunkt "händisch" sprich trage ich dort die "1" ein, löst das Script aus.......
          Jemand eine Idee ???
          Blockly wie folgt :

          <xml xmlns="https://developers.google.com/blockly/xml">
            <block type="on_ext" id="ban^rP._LH-h6_qF)VJ!" x="-1012" y="-3212">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
              <field name="CONDITION">any</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="52AF-P8+;Jr{Tkw6aDAc">
                  <field name="oid">0_userdata.0.Wasser.Zone-7</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="?l;_5tS_S*gOC`,44;z{">
                  <mutation else="1"></mutation>
                  <value name="IF0">
                    <block type="logic_compare" id="|A9[?DGxCX}{1Q_itQvX">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="Z)L/HX~}KfNr,4ZqhXuU">
                          <field name="ATTR">val</field>
                          <field name="OID">0_userdata.0.Wasser.Zone-7</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="RUiyLTHt9MBS$9M8p@;e">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="update" id="DmxBpn9I.*1*R.;c;}{G">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">ham.0.Valve-7.Zone-7.Active</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="convert_tonumber" id="j$wWy%8,E8*49XU[kgF9">
                          <value name="VALUE">
                            <block type="text" id="=@H0tpd%H]zVjBkX,Vd^">
                              <field name="TEXT">1</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <next>
                        <block type="timeouts_wait" id="@6z[imv/h6rD@15Z|FBq">
                          <field name="DELAY">1000</field>
                          <field name="UNIT">ms</field>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <statement name="ELSE">
                    <block type="update" id="N^rL4~fa:Kgs4.F{|Y6I">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">ham.0.Valve-7.Zone-7.Active</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="convert_tonumber" id="k(r(eHGVD6_6[S8_zByI">
                          <value name="VALUE">
                            <block type="text" id="9V3(IzBYp=T][@-Nrm,n">
                              <field name="TEXT">0</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <next>
                        <block type="update" id="z[?BA,%N}k}Sx=iV1hm.">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">ham.0.Valve-7.Zone-7.Set-Duration</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="convert_tonumber" id="s}X7K42|N/Xvm]LYfQml">
                              <value name="VALUE">
                                <block type="text" id="s[Y@vxu[ULRmlBM*PMaO">
                                  <field name="TEXT">0</field>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </xml>
          

          Screenshot 2022-05-06 132028.jpg

          Danke für nen Hinweis wo ich auf dem Schlauch stehe.....
          Grüße
          Sunny

          A Offline
          A Offline
          Ahnungsbefreit
          schrieb am zuletzt editiert von
          #4

          @sunny9999 Und statt "nach Zahl" und dann die Zahl als String nimm besser direkt die Zahl aus dem "Mathematik" Menü!

          Wenn meine Antwort hilfreich war, dürft Ihr das gerne durch einen "Upvote" (der kleine "^" unten rechts) zum Ausdruck bringen.

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


          Support us

          ioBroker
          Community Adapters
          Donate

          637

          Online

          32.7k

          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