Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Warnungen im Blockly Script (GELÖST)

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.0k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.0k

Warnungen im Blockly Script (GELÖST)

Warnungen im Blockly Script (GELÖST)

Scheduled Pinned Locked Moved Blockly
blocklyjavascript
21 Posts 4 Posters 1.8k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Elektroniker86E Elektroniker86

    @tt-tom

    Moin,

    ja, das sind die Datenpunkte zum schalten der Alarmbereiche. Es dreht sich um eine Instar Kamera die mit MQTT angebunden ist.

    T Offline
    T Offline
    TT-Tom
    wrote on last edited by
    #6

    @elektroniker86
    Poste mal den Code vom Blockly bitte.

    Gruß Tom
    https://github.com/tt-tom17
    Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

    NSPanel Script Wiki
    https://github.com/joBr99/nspanel-lovelace-ui/wiki

    NSPanel Adapter Wiki
    https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

    1 Reply Last reply
    0
    • Elektroniker86E Offline
      Elektroniker86E Offline
      Elektroniker86
      wrote on last edited by
      #7

      Das sind diese Datenpunkte

      Screenshot 2022-08-06 102021.jpg

      1 Reply Last reply
      0
      • Elektroniker86E Offline
        Elektroniker86E Offline
        Elektroniker86
        wrote on last edited by
        #8
        <xml xmlns="https://developers.google.com/blockly/xml">
          <block type="create" id="K=+:F0(CILzbfZ=5@+*h" x="-1037" y="-712">
            <field name="NAME">Kameras.Parkplatz Alarm EIN_AUS</field>
            <next>
              <block type="on" id="lcGz5d3oWQ85C^Ed(uK9">
                <field name="OID">javascript.0.Kameras.Parkplatz Alarm EIN_AUS</field>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <statement name="STATEMENT">
                  <block type="controls_if" id="H.E00`#rWS:Lm*8)@bsV">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="logic_compare" id="4PlP3`5X47Pj^VP2NY0`">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="on_source" id="`9M2a0T:AOs`2F2+oWl?">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="]SbtrJ#s3aohU9?_V%70">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="control" id="^xUkyDRAC1k$+/vG1_p_">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">mqtt.1.instar.Stellplatz.alarm.area1.enable.raw</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="[@iG:fmz]~.Fg*te10P1">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="oz(,y@bD6sDOq6IJggS.">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">mqtt.1.instar.Stellplatz.alarm.area2.enable.raw</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="KKpZDBd}Yl*bQ5y*.]IB">
                                <field name="NUM">1</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="h0]QC:%:-%^`v~`0W8g.">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">mqtt.1.instar.Stellplatz.alarm.area3.enable.raw</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="@=a*_-/4peR%wrq}{LS1">
                                    <field name="NUM">1</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="control" id="KtYae/7|mz.tPsTw8U9x">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                        <field name="OID">mqtt.1.instar.Stellplatz.alarm.area1.enable.raw</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE">
                          <block type="math_number" id="[.|8iya1~Q3ZcV_+S-S1">
                            <field name="NUM">0</field>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="TCJ|kafArO5#CXm+Ka!$">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">mqtt.1.instar.Stellplatz.alarm.area2.enable.raw</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="($|yNNB|[u{v|Q*YpGO*">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                            <next>
                              <block type="control" id="pWKDt*4bv]){(hQO8M%+">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">mqtt.1.instar.Stellplatz.alarm.area3.enable.raw</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="]xJ!8ymGFthjzAgZZvWm">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </statement>
              </block>
            </next>
          </block>
        </xml>
        
        T 1 Reply Last reply
        0
        • Elektroniker86E Elektroniker86
          <xml xmlns="https://developers.google.com/blockly/xml">
            <block type="create" id="K=+:F0(CILzbfZ=5@+*h" x="-1037" y="-712">
              <field name="NAME">Kameras.Parkplatz Alarm EIN_AUS</field>
              <next>
                <block type="on" id="lcGz5d3oWQ85C^Ed(uK9">
                  <field name="OID">javascript.0.Kameras.Parkplatz Alarm EIN_AUS</field>
                  <field name="CONDITION">ne</field>
                  <field name="ACK_CONDITION"></field>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="H.E00`#rWS:Lm*8)@bsV">
                      <mutation else="1"></mutation>
                      <value name="IF0">
                        <block type="logic_compare" id="4PlP3`5X47Pj^VP2NY0`">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="on_source" id="`9M2a0T:AOs`2F2+oWl?">
                              <field name="ATTR">state.val</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="]SbtrJ#s3aohU9?_V%70">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="^xUkyDRAC1k$+/vG1_p_">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">mqtt.1.instar.Stellplatz.alarm.area1.enable.raw</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="[@iG:fmz]~.Fg*te10P1">
                              <field name="NUM">1</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="oz(,y@bD6sDOq6IJggS.">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">mqtt.1.instar.Stellplatz.alarm.area2.enable.raw</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="KKpZDBd}Yl*bQ5y*.]IB">
                                  <field name="NUM">1</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="h0]QC:%:-%^`v~`0W8g.">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">mqtt.1.instar.Stellplatz.alarm.area3.enable.raw</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="@=a*_-/4peR%wrq}{LS1">
                                      <field name="NUM">1</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                      <statement name="ELSE">
                        <block type="control" id="KtYae/7|mz.tPsTw8U9x">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                          <field name="OID">mqtt.1.instar.Stellplatz.alarm.area1.enable.raw</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="[.|8iya1~Q3ZcV_+S-S1">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="TCJ|kafArO5#CXm+Ka!$">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">mqtt.1.instar.Stellplatz.alarm.area2.enable.raw</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="($|yNNB|[u{v|Q*YpGO*">
                                  <field name="NUM">0</field>
                                </block>
                              </value>
                              <next>
                                <block type="control" id="pWKDt*4bv]){(hQO8M%+">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">mqtt.1.instar.Stellplatz.alarm.area3.enable.raw</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="]xJ!8ymGFthjzAgZZvWm">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </xml>
          
          T Offline
          T Offline
          TT-Tom
          wrote on last edited by TT-Tom
          #9

          @elektroniker86
          Dein Fehler liegt im anlegen des Datenpunkt. Nimm mal die Leerzeichen raus.
          Wo soll der den angelegt werden?

          Gruß Tom
          https://github.com/tt-tom17
          Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

          NSPanel Script Wiki
          https://github.com/joBr99/nspanel-lovelace-ui/wiki

          NSPanel Adapter Wiki
          https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

          Elektroniker86E 1 Reply Last reply
          0
          • T TT-Tom

            @elektroniker86
            Dein Fehler liegt im anlegen des Datenpunkt. Nimm mal die Leerzeichen raus.
            Wo soll der den angelegt werden?

            Elektroniker86E Offline
            Elektroniker86E Offline
            Elektroniker86
            wrote on last edited by
            #10

            @tt-tom

            Ok, Leerzeichen durch Unterstriche ersetzen?

            Hier ist und soll er auch angelegt sein:

            Screenshot 2022-08-06 102823.jpg

            T 1 Reply Last reply
            0
            • Elektroniker86E Elektroniker86

              @tt-tom

              Ok, Leerzeichen durch Unterstriche ersetzen?

              Hier ist und soll er auch angelegt sein:

              Screenshot 2022-08-06 102823.jpg

              T Offline
              T Offline
              TT-Tom
              wrote on last edited by
              #11

              @elektroniker86 und?

              Gruß Tom
              https://github.com/tt-tom17
              Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

              NSPanel Script Wiki
              https://github.com/joBr99/nspanel-lovelace-ui/wiki

              NSPanel Adapter Wiki
              https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

              Elektroniker86E 1 Reply Last reply
              0
              • T TT-Tom

                @elektroniker86 und?

                Elektroniker86E Offline
                Elektroniker86E Offline
                Elektroniker86
                wrote on last edited by
                #12

                @tt-tom

                Nein, immer noch das gleiche. Habe die Leerzeichen jetzt durch Unterstriche ersetzt.

                Screenshot 2022-08-06 103231.jpg

                Screenshot 2022-08-06 103351.jpg

                DJMarc75D T 2 Replies Last reply
                0
                • Elektroniker86E Elektroniker86

                  @tt-tom

                  Nein, immer noch das gleiche. Habe die Leerzeichen jetzt durch Unterstriche ersetzt.

                  Screenshot 2022-08-06 103231.jpg

                  Screenshot 2022-08-06 103351.jpg

                  DJMarc75D Offline
                  DJMarc75D Offline
                  DJMarc75
                  wrote on last edited by
                  #13

                  @elektroniker86
                  Poste mal bitte die Eigenschaften von einem der angesteuerten DP.

                  Lehrling seit 1975 !!!
                  Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
                  https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

                  Elektroniker86E 1 Reply Last reply
                  0
                  • Elektroniker86E Elektroniker86

                    @tt-tom

                    Nein, immer noch das gleiche. Habe die Leerzeichen jetzt durch Unterstriche ersetzt.

                    Screenshot 2022-08-06 103231.jpg

                    Screenshot 2022-08-06 103351.jpg

                    T Offline
                    T Offline
                    TT-Tom
                    wrote on last edited by TT-Tom
                    #14

                    @elektroniker86

                    erste mal die Zahlen durch wahr und falsch.

                    Edit: @DJMarc75 hat den selben Gedanken

                    Gruß Tom
                    https://github.com/tt-tom17
                    Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                    NSPanel Script Wiki
                    https://github.com/joBr99/nspanel-lovelace-ui/wiki

                    NSPanel Adapter Wiki
                    https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                    DJMarc75D 1 Reply Last reply
                    0
                    • T TT-Tom

                      @elektroniker86

                      erste mal die Zahlen durch wahr und falsch.

                      Edit: @DJMarc75 hat den selben Gedanken

                      DJMarc75D Offline
                      DJMarc75D Offline
                      DJMarc75
                      wrote on last edited by
                      #15

                      @tt-tom sagte in Warnungen im Blockly Script:

                      Edit: @DJMarc75 hat den selben Gedanken

                      Ähnlich, ich denke dass da 1 oder 0 schon korrekt ist aber nicht als Zahl sondern als String (Text) verwendet werden sollte.

                      Lehrling seit 1975 !!!
                      Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
                      https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

                      T 1 Reply Last reply
                      0
                      • DJMarc75D DJMarc75

                        @tt-tom sagte in Warnungen im Blockly Script:

                        Edit: @DJMarc75 hat den selben Gedanken

                        Ähnlich, ich denke dass da 1 oder 0 schon korrekt ist aber nicht als Zahl sondern als String (Text) verwendet werden sollte.

                        T Offline
                        T Offline
                        TT-Tom
                        wrote on last edited by
                        #16

                        @djmarc75 sagte in Warnungen im Blockly Script:

                        Ähnlich, ich denke dass da 1 oder 0 schon korrekt ist aber nicht als Zahl sondern als String (Text) verwendet werden sollte.

                        ja, das ist glaube ich die richtige Richtung.

                        Gruß Tom
                        https://github.com/tt-tom17
                        Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                        NSPanel Script Wiki
                        https://github.com/joBr99/nspanel-lovelace-ui/wiki

                        NSPanel Adapter Wiki
                        https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                        1 Reply Last reply
                        0
                        • DJMarc75D DJMarc75

                          @elektroniker86
                          Poste mal bitte die Eigenschaften von einem der angesteuerten DP.

                          Elektroniker86E Offline
                          Elektroniker86E Offline
                          Elektroniker86
                          wrote on last edited by
                          #17

                          @djmarc75

                          {
                            "common": {
                              "name": "instar/Stellplatz/alarm/area1/enable/raw",
                              "write": true,
                              "read": true,
                              "role": "variable",
                              "desc": "mqtt server variable",
                              "type": "string"
                            },
                            "native": {
                              "topic": "instar/Stellplatz/alarm/area1/enable/raw"
                            },
                            "type": "state",
                            "from": "system.adapter.mqtt.1",
                            "user": "system.user.admin",
                            "ts": 1659642195982,
                            "_id": "mqtt.1.instar.Stellplatz.alarm.area1.enable.raw",
                            "acl": {
                              "object": 1636,
                              "state": 1636,
                              "owner": "system.user.admin",
                              "ownerGroup": "system.group.administrator"
                            }
                          }
                          
                          DJMarc75D 1 Reply Last reply
                          0
                          • Elektroniker86E Elektroniker86

                            @djmarc75

                            {
                              "common": {
                                "name": "instar/Stellplatz/alarm/area1/enable/raw",
                                "write": true,
                                "read": true,
                                "role": "variable",
                                "desc": "mqtt server variable",
                                "type": "string"
                              },
                              "native": {
                                "topic": "instar/Stellplatz/alarm/area1/enable/raw"
                              },
                              "type": "state",
                              "from": "system.adapter.mqtt.1",
                              "user": "system.user.admin",
                              "ts": 1659642195982,
                              "_id": "mqtt.1.instar.Stellplatz.alarm.area1.enable.raw",
                              "acl": {
                                "object": 1636,
                                "state": 1636,
                                "owner": "system.user.admin",
                                "ownerGroup": "system.group.administrator"
                              }
                            }
                            
                            DJMarc75D Offline
                            DJMarc75D Offline
                            DJMarc75
                            wrote on last edited by DJMarc75
                            #18

                            @elektroniker86 sagte in Warnungen im Blockly Script:

                            "type": "string"

                            dann wäre es des Rätsels Lösung:

                            Screenshot 2022-08-06 105939.png

                            Müsste aber im LOG(nicht im Skriptlog) auch drinstehen wenn du per Skript schaltest.

                            Lehrling seit 1975 !!!
                            Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
                            https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

                            Elektroniker86E 2 Replies Last reply
                            1
                            • DJMarc75D DJMarc75

                              @elektroniker86 sagte in Warnungen im Blockly Script:

                              "type": "string"

                              dann wäre es des Rätsels Lösung:

                              Screenshot 2022-08-06 105939.png

                              Müsste aber im LOG(nicht im Skriptlog) auch drinstehen wenn du per Skript schaltest.

                              Elektroniker86E Offline
                              Elektroniker86E Offline
                              Elektroniker86
                              wrote on last edited by
                              #19

                              @djmarc75

                              Ahh, leuchtet irgendwie ein. Das probiere ich gleich aus.

                              1 Reply Last reply
                              0
                              • DJMarc75D DJMarc75

                                @elektroniker86 sagte in Warnungen im Blockly Script:

                                "type": "string"

                                dann wäre es des Rätsels Lösung:

                                Screenshot 2022-08-06 105939.png

                                Müsste aber im LOG(nicht im Skriptlog) auch drinstehen wenn du per Skript schaltest.

                                Elektroniker86E Offline
                                Elektroniker86E Offline
                                Elektroniker86
                                wrote on last edited by
                                #20

                                @djmarc75

                                TIP TOP ! Läuft!

                                Das war der Fehler. Vielen Dank für deine Hilfe.

                                1 Reply Last reply
                                1
                                • Elektroniker86E Offline
                                  Elektroniker86E Offline
                                  Elektroniker86
                                  wrote on last edited by
                                  #21

                                  Natürlich Danke an alle !

                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate

                                  597

                                  Online

                                  32.4k

                                  Users

                                  81.3k

                                  Topics

                                  1.3m

                                  Posts
                                  Community
                                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                  ioBroker Community 2014-2025
                                  logo
                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Recent
                                  • Tags
                                  • Unread 0
                                  • Categories
                                  • Unreplied
                                  • Popular
                                  • GitHub
                                  • Docu
                                  • Hilfe