Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Suche Hilfe für 2 Scripte

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Suche Hilfe für 2 Scripte

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Bernd 1337 @TT-Tom last edited by

      @tt-tom habe doch den code Richtig gepostet

      Homoran 1 Reply Last reply Reply Quote 0
      • B
        Bernd 1337 @TT-Tom last edited by

        @tt-tom hier hast du noch ein bildScreenshot_1.png

        1 Reply Last reply Reply Quote 0
        • B
          Bernd 1337 @TT-Tom last edited by

          @tt-tom dieser text der dort drin steht wird immer wieder gespammt aber er soll es jeweils immer nur einmal machen

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

            @bernd-1337 sagte in Suche Hilfe für 2 Scripte:

            @tt-tom habe doch den code Richtig gepostet

            das ist eine XML Datei, die nutzt mir am Handy absolut nichts!

            hast du die jetzt mehrfach verlinkte Seite nicht gelesen?
            https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

            B 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @Bernd 1337 last edited by

              @bernd-1337 sagte in Suche Hilfe für 2 Scripte:

              @tt-tom dieser text der dort drin steht wird immer wieder gespammt aber er soll es jeweils immer nur einmal machen

              hast du wie im anderen Thread geraten mittlerweile nach Sperrvariable gesucht?

              B 1 Reply Last reply Reply Quote 0
              • B
                Bernd 1337 @Homoran last edited by

                @homoran das ist das iobroker script codes sollen doch in den code tag rein

                Homoran MartinP 2 Replies Last reply Reply Quote 0
                • B
                  Bernd 1337 @Homoran last edited by

                  @homoran ja habe ich er sagt nichts gefunden

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

                    @bernd-1337 sagte in Suche Hilfe für 2 Scripte:

                    @homoran das ist das iobroker script codes sollen doch in den code tag rein

                    ja, auch!
                    dann aber richtig.

                    ich hab das erst einmal korrigieren müssen.

                    B 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @Bernd 1337 last edited by

                      @bernd-1337 sagte in Suche Hilfe für 2 Scripte:

                      @homoran ja habe ich er sagt nichts gefunden

                      https://forum.iobroker.net/search?term=Sperrvariable&in=titlesposts

                      1 Reply Last reply Reply Quote 0
                      • B
                        Bernd 1337 @Homoran last edited by

                        @homoran okay ja sry ich was sowas angeht allgemin scripting usw usw anfänger ich habe erst vor ner gewissen zeit angefangen mein Gebiet ist Elektronik

                        Homoran 1 Reply Last reply Reply Quote 0
                        • MartinP
                          MartinP @Bernd 1337 last edited by

                          @bernd-1337 Der XML-Code ist nicht gerade "Human-Readable".

                          Wenn man nicht gerade vor einem lauffähigen Iobroker sitzt, und den Schnipsel dort in das "Skripte" Plugin importieren kann, ist das nicht hilfreich.
                          Eigentlich bin ich gegen Screenshots, aber bei einem Blockly-Skript sieht das anders aus ...

                          An anderer Stelle wird man ausgeschimpft, wenn man screenshots statt Listing in den Post packt 😉

                          Hier wäre ggfs. oben in der Fehlerbeschreibung ein Screenshot und weiter unten als eine Art "Anhang" der XML-Codeblock eine Lösung

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

                            @bernd-1337 sagte in Suche Hilfe für 2 Scripte:

                            @homoran okay ja sry ich was sowas angeht allgemin scripting usw usw anfänger ich habe erst vor ner gewissen zeit angefangen mein Gebiet ist Elektronik

                            dann sagt man das und behauptet nichts falsches

                            dann versuche es zu lernen.
                            Auch das wurde dir schon gesagt.
                            vom reinen abtippen klappt das nicht

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

                              @martinp sagte in Suche Hilfe für 2 Scripte:

                              Hier wäre ggfs. oben in der Fehlerbeschreibung ein Screenshot und weiter unten als eine Art "Anhang" der XML-Codeblock eine Lösung

                              so steht es

                              https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

                              und noch viel mehr

                              MartinP 1 Reply Last reply Reply Quote 0
                              • paul53
                                paul53 @Bernd 1337 last edited by

                                @bernd-1337 sagte: nur einmal ausführen

                                Vorschlag:

                                Blockly_temp.JPG

                                B MartinP 2 Replies Last reply Reply Quote 0
                                • MartinP
                                  MartinP @Homoran last edited by

                                  @homoran Naja, das kann man schon fehl-interpretieren:

                                  Alles was als Text vorliegt sollte auch als Text gepostet werden!

                                  XML ist schon auch so eine Art "Text" 😉

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

                                    @martinp sagte in Suche Hilfe für 2 Scripte:

                                    @homoran Naja, das kann man schon fehl-interpretieren:

                                    Alles was als Text vorliegt sollte auch als Text gepostet werden!

                                    XML ist schon auch so eine Art "Text" 😉

                                    ist ja auch korrekt den in code-tags zu packen!

                                    aber nicht als einzige Information

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      Bernd 1337 @paul53 last edited by

                                      @paul53 Hallo Paul wie gehts wie stehts ich danke dir hast du den code zum pasten

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

                                        @paul53 said in Suche Hilfe für 2 Scripte:

                                        @bernd-1337 sagte: nur einmal ausführen

                                        Vorschlag:

                                        Blockly_temp.JPG

                                        Meine Blockly Kenntnisse wachsen zwar, aber sie sind noch nicht besonders groß
                                        Kann man das "wurde aktualisert" bei der Temperatur nicht durch ein "wurde geändert" ersetzen. Das würde ggfs. unnötige Schleifen-Durchläufe mit unveränderter, aber durch das Thermometer aktualiserter Temperatur vermeiden.

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

                                          @bernd-1337 sagte: code zum pasten

                                          <xml xmlns="https://developers.google.com/blockly/xml">
                                           <variables>
                                             <variable id="Zi?er=85ri4#;:L-lujS">pumpe</variable>
                                             <variable id="b+p{2kokZZ/7}+`bs,q1">ED</variable>
                                           </variables>
                                           <block type="variables_set" id=")(u1lT,t6M+geY80]*9+" x="87" y="-113">
                                             <field name="VAR" id="Zi?er=85ri4#;:L-lujS">pumpe</field>
                                             <value name="VALUE">
                                               <block type="get_value_var" id="=]54i_^*7ptgCq[HE[pK">
                                                 <field name="ATTR">val</field>
                                                 <value name="OID">
                                                   <shadow type="field_oid" id="@9qPzg52ZTPA2*u,{xc(">
                                                     <field name="oid">Object ID</field>
                                                   </shadow>
                                                   <block type="text" id="ssLnDm(98pbzo7B-P3)i">
                                                     <field name="TEXT">shelly.0.SHSW-25#3494547971EC#1.Relay1.Switch</field>
                                                   </block>
                                                 </value>
                                               </block>
                                             </value>
                                             <next>
                                               <block type="on_ext" id="jG7O3%s:Pbmj3oHF}3(5">
                                                 <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="2B(hVGZ#zfmp7Gt?:%y;">
                                                     <field name="oid">Temperatur.0.Wohnzimmer</field>
                                                   </shadow>
                                                 </value>
                                                 <statement name="STATEMENT">
                                                   <block type="controls_if" id="tGnT93N}Y)U=pJC8C{za">
                                                     <mutation elseif="1"></mutation>
                                                     <value name="IF0">
                                                       <block type="logic_compare" id="+,Y9zYS!qd$z_NukE~VT">
                                                         <field name="OP">LT</field>
                                                         <value name="A">
                                                           <block type="on_source" id="Qg_}b|+X5n#o8uIM_G/O">
                                                             <field name="ATTR">state.val</field>
                                                           </block>
                                                         </value>
                                                         <value name="B">
                                                           <block type="get_value" id="2p-T:/uSdpaJuFjVG1+_">
                                                             <field name="ATTR">val</field>
                                                             <field name="OID">Heizung.0.PumpeEin</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <statement name="DO0">
                                                       <block type="variables_set" id="3DNjQV/nt8fTs_e1%LRg">
                                                         <field name="VAR" id="Zi?er=85ri4#;:L-lujS">pumpe</field>
                                                         <value name="VALUE">
                                                           <block type="logic_boolean" id="l#xUro$Y`c:[fVxCG(JG">
                                                             <field name="BOOL">TRUE</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </statement>
                                                     <value name="IF1">
                                                       <block type="logic_compare" id=")_9$C6/74/kUx|:DWdZb">
                                                         <field name="OP">GT</field>
                                                         <value name="A">
                                                           <block type="on_source" id="LL`FN2c*wM}]VekvNJ7j">
                                                             <field name="ATTR">state.val</field>
                                                           </block>
                                                         </value>
                                                         <value name="B">
                                                           <block type="get_value" id="kMVtfs~rYz#.^m;9lBde">
                                                             <field name="ATTR">val</field>
                                                             <field name="OID">Heizung.0.PumpeAus</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </value>
                                                     <statement name="DO1">
                                                       <block type="variables_set" id="{3J?ejPQUpfLmg/zLGST">
                                                         <field name="VAR" id="Zi?er=85ri4#;:L-lujS">pumpe</field>
                                                         <value name="VALUE">
                                                           <block type="logic_boolean" id="aabeoH8/GZ8mC}+n@^h0">
                                                             <field name="BOOL">FALSE</field>
                                                           </block>
                                                         </value>
                                                       </block>
                                                     </statement>
                                                     <next>
                                                       <block type="controls_if" id="8BP[L!WM!%#l`hS$7`5G">
                                                         <value name="IF0">
                                                           <block type="logic_compare" id="ZX*uIqKwE:@M]4)PONG%">
                                                             <field name="OP">NEQ</field>
                                                             <value name="A">
                                                               <block type="variables_get" id="kKT~V_JYAN6RGAXQ#x5?">
                                                                 <field name="VAR" id="Zi?er=85ri4#;:L-lujS">pumpe</field>
                                                               </block>
                                                             </value>
                                                             <value name="B">
                                                               <block type="get_value_var" id="|pp=r]dL51a6ep-2@|.H">
                                                                 <field name="ATTR">val</field>
                                                                 <value name="OID">
                                                                   <shadow type="field_oid" id="@9qPzg52ZTPA2*u,{xc(">
                                                                     <field name="oid">Object ID</field>
                                                                   </shadow>
                                                                   <block type="text" id="`zNJX(Lyyd~Jv*;0SfX5">
                                                                     <field name="TEXT">shelly.0.SHSW-25#3494547971EC#1.Relay1.Switch</field>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                           </block>
                                                         </value>
                                                         <statement name="DO0">
                                                           <block type="control" id="Z_]VP.(4N~vSC)?iplx*">
                                                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                             <field name="OID">shelly.0.SHSW-25#3494547971EC#1.Relay1.Switch</field>
                                                             <field name="WITH_DELAY">FALSE</field>
                                                             <value name="VALUE">
                                                               <block type="variables_get" id="ofmhxzd2Rhi6~e=JK_pg">
                                                                 <field name="VAR" id="Zi?er=85ri4#;:L-lujS">pumpe</field>
                                                               </block>
                                                             </value>
                                                             <next>
                                                               <block type="update" id="gztvu]E-h@nsf9d^Ub#s">
                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                 <field name="OID">0_userdata.0.example_state</field>
                                                                 <field name="WITH_DELAY">FALSE</field>
                                                                 <value name="VALUE">
                                                                   <block type="logic_ternary" id="q|F_I1%@gL2ak:u)Fmmi" inline="false">
                                                                     <value name="IF">
                                                                       <block type="variables_get" id="YW=j,g)uSD2EBdC{pgPd">
                                                                         <field name="VAR" id="Zi?er=85ri4#;:L-lujS">pumpe</field>
                                                                       </block>
                                                                     </value>
                                                                     <value name="THEN">
                                                                       <block type="text" id="/P$!j2QirQXhw!6k4{]*">
                                                                         <field name="TEXT">Pumpe Eingeschaltet!</field>
                                                                       </block>
                                                                     </value>
                                                                     <value name="ELSE">
                                                                       <block type="text" id="[.#~j$~cWN9ciZ;%O.cz">
                                                                         <field name="TEXT">Pumpe Ausgeschaltet!</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </statement>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </statement>
                                                 <next>
                                                   <block type="on_ext" id="Ew(8wzpEg5ZIbL.ES.Iz">
                                                     <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                                     <field name="CONDITION">lt</field>
                                                     <field name="ACK_CONDITION"></field>
                                                     <value name="OID0">
                                                       <shadow type="field_oid" id="@2:.[_e_iBqa+PV0_QdU">
                                                         <field name="oid">default</field>
                                                       </shadow>
                                                       <block type="text" id="41z;VS7xQCfcmf$v_GP}">
                                                         <field name="TEXT">shelly.0.SHSW-25#3494547971EC#1.Relay1.Switch</field>
                                                       </block>
                                                     </value>
                                                     <statement name="STATEMENT">
                                                       <block type="comment" id="!oZyhCu-2g;n~*=xdC`0">
                                                         <field name="COMMENT">Einschaltdauer in Minuten</field>
                                                         <next>
                                                           <block type="variables_set" id="LwAj8jvjv)UMZnz;c2$.">
                                                             <field name="VAR" id="b+p{2kokZZ/7}+`bs,q1">ED</field>
                                                             <value name="VALUE">
                                                               <block type="math_arithmetic" id="$T.em/Os1%,qTga3iO^L">
                                                                 <field name="OP">DIVIDE</field>
                                                                 <value name="A">
                                                                   <shadow type="math_number" id="c,[x(gN]AAH_p@,m|a6p">
                                                                     <field name="NUM">1</field>
                                                                   </shadow>
                                                                   <block type="math_arithmetic" id="$QY=tBqBq$M,#o=%y[h-">
                                                                     <field name="OP">MINUS</field>
                                                                     <value name="A">
                                                                       <shadow type="math_number" id="aTm~|X^J*iE.X,zPF8Oy">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="on_source" id="X#,J95zacy~0`hH9O0$x">
                                                                         <field name="ATTR">state.lc</field>
                                                                       </block>
                                                                     </value>
                                                                     <value name="B">
                                                                       <shadow type="math_number" id="!9kM*J}lKDp_$h@cSGe4">
                                                                         <field name="NUM">1</field>
                                                                       </shadow>
                                                                       <block type="on_source" id="qKM9@Y$`Ec4-w+A!V9Bb">
                                                                         <field name="ATTR">oldState.lc</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                                 <value name="B">
                                                                   <shadow type="math_number" id="re+7.()^*X(cU?Z,S2wG">
                                                                     <field name="NUM">60000</field>
                                                                   </shadow>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <next>
                                                               <block type="update" id="D^PL^={BRP|x+z,`VeTr">
                                                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                 <field name="OID">Object ID</field>
                                                                 <field name="WITH_DELAY">FALSE</field>
                                                                 <value name="VALUE">
                                                                   <block type="math_round" id="N-GI{5guRWjB,,Z4P)Ra">
                                                                     <field name="OP">ROUND</field>
                                                                     <value name="NUM">
                                                                       <shadow type="math_number" id="ka!fy+O[v%~dU=x[CZs]">
                                                                         <field name="NUM">3.1</field>
                                                                       </shadow>
                                                                       <block type="variables_get" id="HzH;c!?qGF9K4`DFg}tr">
                                                                         <field name="VAR" id="b+p{2kokZZ/7}+`bs,q1">ED</field>
                                                                       </block>
                                                                     </value>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </next>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </statement>
                                                   </block>
                                                 </next>
                                               </block>
                                             </next>
                                           </block>
                                          </xml>
                                          

                                          B 2 Replies Last reply Reply Quote 0
                                          • B
                                            Bernd 1337 @paul53 last edited by

                                            @paul53 danke dir du bist wie immer der retter in der not Funzt bestens so wie es soll

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            710
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            28
                                            1078
                                            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