Skip to content
  • Home
  • 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
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. [Gelöst] "+10" in Zahlenfeld übergeben

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    688

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

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

[Gelöst] "+10" in Zahlenfeld übergeben

Scheduled Pinned Locked Moved Blockly
9 Posts 5 Posters 437 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.
  • GRG Offline
    GRG Offline
    GR
    wrote on last edited by GR
    #1

    Hallo,
    ich versuche meine LED zu steuern. Für den Datenpunkt brauche ich "+10" um die Helligkeit zu erhöhen und dieser Datenpunkt soll sollen numeral sein.
    Wenn ich das Zahlenfeld verwende, dann wird immer das "+" entfernt. Einen String darf ich nicht übergeben.
    Gibts eine Möglichkeit das + in einem Zahlenfeld mit zu übertragen?

    sigi234S paul53P DJMarc75D 3 Replies Last reply
    0
    • GRG GR

      Hallo,
      ich versuche meine LED zu steuern. Für den Datenpunkt brauche ich "+10" um die Helligkeit zu erhöhen und dieser Datenpunkt soll sollen numeral sein.
      Wenn ich das Zahlenfeld verwende, dann wird immer das "+" entfernt. Einen String darf ich nicht übergeben.
      Gibts eine Möglichkeit das + in einem Zahlenfeld mit zu übertragen?

      sigi234S Online
      sigi234S Online
      sigi234
      Forum Testing Most Active
      wrote on last edited by
      #2

      @gr

      Ev. mit dem Inventwo Widget:

      Screenshot (5413).png

      Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
      Immer Daten sichern!

      1 Reply Last reply
      0
      • GRG GR

        Hallo,
        ich versuche meine LED zu steuern. Für den Datenpunkt brauche ich "+10" um die Helligkeit zu erhöhen und dieser Datenpunkt soll sollen numeral sein.
        Wenn ich das Zahlenfeld verwende, dann wird immer das "+" entfernt. Einen String darf ich nicht übergeben.
        Gibts eine Möglichkeit das + in einem Zahlenfeld mit zu übertragen?

        paul53P Offline
        paul53P Offline
        paul53
        wrote on last edited by
        #3

        @gr sagte: brauche ich "+10"

        Eine Zahl 10 ohne Vorzeichen entspricht "+10".
        Zeige bitte das Blockly.

        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

        1 Reply Last reply
        0
        • GRG GR

          Hallo,
          ich versuche meine LED zu steuern. Für den Datenpunkt brauche ich "+10" um die Helligkeit zu erhöhen und dieser Datenpunkt soll sollen numeral sein.
          Wenn ich das Zahlenfeld verwende, dann wird immer das "+" entfernt. Einen String darf ich nicht übergeben.
          Gibts eine Möglichkeit das + in einem Zahlenfeld mit zu übertragen?

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

          @gr zeig mal Dein Blockly bitte .... Glaskugel leider kaputt ;)

          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

          GRG 1 Reply Last reply
          0
          • DJMarc75D DJMarc75

            @gr zeig mal Dein Blockly bitte .... Glaskugel leider kaputt ;)

            GRG Offline
            GRG Offline
            GR
            wrote on last edited by GR
            #5

            @djmarc75

            Sorry,
            Bildschirm­foto 2023-02-25 um 13.05.34.png
            Es geht um den oberen Teil. da bräuchte ich "+10".

            hier noch der Code des ganzen Skripts:

            <xml xmlns="https://developers.google.com/blockly/xml">
              <block type="comment" id="X0Bm:)=YlP~gZ%;4a:`o" x="-138" y="-512">
                <field name="COMMENT">Ein bei Sonnenuntergang</field>
                <next>
                  <block type="astro" id="#wA1xTns#76g0%Z?moF=">
                    <field name="TYPE">sunset</field>
                    <field name="OFFSET">30</field>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="3GCC6np]Uh*9vvq+18o^">
                        <value name="IF0">
                          <block type="get_value" id=".vc{)y+{)6F!#(t~42hd">
                            <field name="ATTR">val</field>
                            <field name="OID">fhem.0.Wir.presence</field>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="?ro:LecGb?zj~zMf1Rq*">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">mqtt.0.SmartHome.EG.LED1.cmnd.DIMMER</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="V8p9wwjn|]H#0_Bp3qM:">
                                <field name="NUM">22</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </statement>
                    <next>
                      <block type="comment" id="sJzydRb4lWKiza0f}qph">
                        <field name="COMMENT">Ausschalten 23:56</field>
                        <next>
                          <block type="schedule" id="V5q$:$o!UrQo)`wM0SwG">
                            <field name="SCHEDULE">56 23 * * *</field>
                            <statement name="STATEMENT">
                              <block type="control" id="/qaPYvbz}uHsLDh`Jh*2">
                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                <field name="OID">mqtt.0.SmartHome.EG.LED1.cmnd.POWER</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id=";yML?m}nL.c%d7]G-:OV">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="on" id="{oCj]}KzmpTbk37@HgA0">
                                <field name="OID">zigbee.2.842e14fffef16eae.brightness_step_up</field>
                                <field name="CONDITION">true</field>
                                <field name="ACK_CONDITION"></field>
                                <statement name="STATEMENT">
                                  <block type="control" id="-s;v_G;~M2}FA7.4aJ$e">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">mqtt.0.SmartHome.EG.LED1.cmnd.DIMMER</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="9(jvYpBkuCYQ5n`mERId">
                                        <field name="NUM">10</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="on" id="JLeHj7U5xxS{|;`*jWb_">
                                    <field name="OID">zigbee.2.842e14fffef16eae.brightness_step_down</field>
                                    <field name="CONDITION">true</field>
                                    <field name="ACK_CONDITION"></field>
                                    <statement name="STATEMENT">
                                      <block type="control" id="f19rPblpla1b)=l_c*DV">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                        <field name="OID">mqtt.0.SmartHome.EG.LED1.cmnd.DIMMER</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="|H0pLe6?[[/oh*x}E~[v">
                                            <field name="NUM">-10</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="on" id=",$_sC96`sZi0,Xc}zmzA">
                                        <field name="OID">zigbee.2.842e14fffef16eae.on</field>
                                        <field name="CONDITION">true</field>
                                        <field name="ACK_CONDITION"></field>
                                        <statement name="STATEMENT">
                                          <block type="control" id="adF}bEcpC?[9mbl#7(_[">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">mqtt.0.SmartHome.EG.LED1.cmnd.DIMMER</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="-DaB(L.+U~X{N{pTq^4D">
                                                <field name="NUM">19</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="on" id="Y$42X^Jl~{PI)SdLlGO3">
                                            <field name="OID">zigbee.2.842e14fffef16eae.off</field>
                                            <field name="CONDITION">true</field>
                                            <field name="ACK_CONDITION"></field>
                                            <statement name="STATEMENT">
                                              <block type="control" id="rqYk(mlRlx@yjeh9g7BG">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">mqtt.0.SmartHome.EG.LED1.cmnd.POWER</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="+jz%NB3;y$A?vKxwH)VC">
                                                    <field name="NUM">0</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </xml>
            
            DJMarc75D 1 Reply Last reply
            0
            • GRG GR

              @djmarc75

              Sorry,
              Bildschirm­foto 2023-02-25 um 13.05.34.png
              Es geht um den oberen Teil. da bräuchte ich "+10".

              hier noch der Code des ganzen Skripts:

              <xml xmlns="https://developers.google.com/blockly/xml">
                <block type="comment" id="X0Bm:)=YlP~gZ%;4a:`o" x="-138" y="-512">
                  <field name="COMMENT">Ein bei Sonnenuntergang</field>
                  <next>
                    <block type="astro" id="#wA1xTns#76g0%Z?moF=">
                      <field name="TYPE">sunset</field>
                      <field name="OFFSET">30</field>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="3GCC6np]Uh*9vvq+18o^">
                          <value name="IF0">
                            <block type="get_value" id=".vc{)y+{)6F!#(t~42hd">
                              <field name="ATTR">val</field>
                              <field name="OID">fhem.0.Wir.presence</field>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="?ro:LecGb?zj~zMf1Rq*">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">mqtt.0.SmartHome.EG.LED1.cmnd.DIMMER</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="V8p9wwjn|]H#0_Bp3qM:">
                                  <field name="NUM">22</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <next>
                        <block type="comment" id="sJzydRb4lWKiza0f}qph">
                          <field name="COMMENT">Ausschalten 23:56</field>
                          <next>
                            <block type="schedule" id="V5q$:$o!UrQo)`wM0SwG">
                              <field name="SCHEDULE">56 23 * * *</field>
                              <statement name="STATEMENT">
                                <block type="control" id="/qaPYvbz}uHsLDh`Jh*2">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                  <field name="OID">mqtt.0.SmartHome.EG.LED1.cmnd.POWER</field>
                                  <field name="WITH_DELAY">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id=";yML?m}nL.c%d7]G-:OV">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                              <next>
                                <block type="on" id="{oCj]}KzmpTbk37@HgA0">
                                  <field name="OID">zigbee.2.842e14fffef16eae.brightness_step_up</field>
                                  <field name="CONDITION">true</field>
                                  <field name="ACK_CONDITION"></field>
                                  <statement name="STATEMENT">
                                    <block type="control" id="-s;v_G;~M2}FA7.4aJ$e">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">mqtt.0.SmartHome.EG.LED1.cmnd.DIMMER</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="9(jvYpBkuCYQ5n`mERId">
                                          <field name="NUM">10</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="on" id="JLeHj7U5xxS{|;`*jWb_">
                                      <field name="OID">zigbee.2.842e14fffef16eae.brightness_step_down</field>
                                      <field name="CONDITION">true</field>
                                      <field name="ACK_CONDITION"></field>
                                      <statement name="STATEMENT">
                                        <block type="control" id="f19rPblpla1b)=l_c*DV">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">mqtt.0.SmartHome.EG.LED1.cmnd.DIMMER</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="|H0pLe6?[[/oh*x}E~[v">
                                              <field name="NUM">-10</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="on" id=",$_sC96`sZi0,Xc}zmzA">
                                          <field name="OID">zigbee.2.842e14fffef16eae.on</field>
                                          <field name="CONDITION">true</field>
                                          <field name="ACK_CONDITION"></field>
                                          <statement name="STATEMENT">
                                            <block type="control" id="adF}bEcpC?[9mbl#7(_[">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">mqtt.0.SmartHome.EG.LED1.cmnd.DIMMER</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="-DaB(L.+U~X{N{pTq^4D">
                                                  <field name="NUM">19</field>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="on" id="Y$42X^Jl~{PI)SdLlGO3">
                                              <field name="OID">zigbee.2.842e14fffef16eae.off</field>
                                              <field name="CONDITION">true</field>
                                              <field name="ACK_CONDITION"></field>
                                              <statement name="STATEMENT">
                                                <block type="control" id="rqYk(mlRlx@yjeh9g7BG">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">mqtt.0.SmartHome.EG.LED1.cmnd.POWER</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="+jz%NB3;y$A?vKxwH)VC">
                                                      <field name="NUM">0</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </xml>
              
              DJMarc75D Offline
              DJMarc75D Offline
              DJMarc75
              wrote on last edited by
              #6

              @gr mal so probieren:

              Screenshot 2023-02-25 133848.png

              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

              GRG 1 Reply Last reply
              0
              • DJMarc75D DJMarc75

                @gr mal so probieren:

                Screenshot 2023-02-25 133848.png

                GRG Offline
                GRG Offline
                GR
                wrote on last edited by
                #7

                @djmarc75
                danke, das hat auf Anhieb geklappt!

                1 Reply Last reply
                0
                • HomoranH Do not disturb
                  HomoranH Do not disturb
                  Homoran
                  Global Moderator Administrators
                  wrote on last edited by
                  #8

                  Geht es um vis oder js?

                  Für vis nehme ich
                  Screenshot_20230225-160746_Firefox.jpg

                  Alles über Parameter einstellbar

                  kein Support per PN! - Fragen im Forum stellen -
                  Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
                  Das Forum freut sich über eine Spende. Benutzt dazu den Spendenbutton im Header. Danke!
                  der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                  GRG 1 Reply Last reply
                  0
                  • HomoranH Homoran

                    Geht es um vis oder js?

                    Für vis nehme ich
                    Screenshot_20230225-160746_Firefox.jpg

                    Alles über Parameter einstellbar

                    GRG Offline
                    GRG Offline
                    GR
                    wrote on last edited by
                    #9

                    @homoran
                    Da ginge um js. Läuft!

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    516

                    Online

                    32.7k

                    Users

                    82.6k

                    Topics

                    1.3m

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

                    • Don't have an account? Register

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