Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [Gelöst] "+10" in Zahlenfeld übergeben

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

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

    This topic has been deleted. Only users with topic management privileges can see it.
    • GR
      GR last edited by 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?

      sigi234 paul53 DJMarc75 3 Replies Last reply Reply Quote 0
      • sigi234
        sigi234 Forum Testing Most Active @GR last edited by

        @gr

        Ev. mit dem Inventwo Widget:

        Screenshot (5413).png

        1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @GR last edited by

          @gr sagte: brauche ich "+10"

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

          1 Reply Last reply Reply Quote 0
          • DJMarc75
            DJMarc75 @GR last edited by

            @gr zeig mal Dein Blockly bitte .... Glaskugel leider kaputt 😉

            GR 1 Reply Last reply Reply Quote 0
            • GR
              GR @DJMarc75 last edited by 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>
              
              DJMarc75 1 Reply Last reply Reply Quote 0
              • DJMarc75
                DJMarc75 @GR last edited by

                @gr mal so probieren:

                Screenshot 2023-02-25 133848.png

                GR 1 Reply Last reply Reply Quote 0
                • GR
                  GR @DJMarc75 last edited by

                  @djmarc75
                  danke, das hat auf Anhieb geklappt!

                  1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators last edited by

                    Geht es um vis oder js?

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

                    Alles über Parameter einstellbar

                    GR 1 Reply Last reply Reply Quote 0
                    • GR
                      GR @Homoran last edited by

                      @homoran
                      Da ginge um js. Läuft!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      811
                      Online

                      32.0k
                      Users

                      80.5k
                      Topics

                      1.3m
                      Posts

                      5
                      9
                      233
                      Loading More Posts
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes
                      Reply
                      • Reply as topic
                      Log in to reply
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                      The ioBroker Community 2014-2023
                      logo