Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Sonnenschutz funzt nicht, warum?(Blockly)

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Sonnenschutz funzt nicht, warum?(Blockly)

    This topic has been deleted. Only users with topic management privileges can see it.
    • totocotonio
      totocotonio last edited by

      Hi,

      ich habe folgendes Blockly nachgebaut.

      Das obere funktioniert nicht. Das unter wo der Rolladen hoch gehen soll funzt.

      Welchen entscheidenden Fehler habe ich denn da drin.
      1626_sonnenschutz.png

       <block xmlns="http://www.w3.org/1999/xhtml" type="astro" id="5-Anuk{JD%/^)fse!e3X" x="-412" y="-187"><field name="TYPE">solarNoon</field>
        <field name="OFFSET">-120</field>
        <statement name="STATEMENT"><block type="controls_if" id="75Gdo}lxL}4Ydc;?MvTN"><value name="IF0"><block type="logic_compare" id="juF@#zw9Utu88mp30`KM"><field name="OP">EQ</field>
                <value name="A"><block type="get_value" id="KZ}@Gq:1NYRrcj8NdlRo"><field name="ATTR">val</field>
                    <field name="OID">javascript.0.Rolladen_Automatic</field></block></value> 
                <value name="B"><block type="logic_boolean" id=",@Z8K;`zh)}M^U^j6,xV"><field name="BOOL">TRUE</field></block></value></block></value> 
            <statement name="DO0"><block type="controls_if" id="8u9H^efTZo95v%5)TO8`"><value name="IF0"><block type="logic_compare" id="Wr-Iyv[I*%i|Q6kZ7U0)"><field name="OP">GT</field>
                    <value name="A"><block type="get_value" id="jsuBQUC=0v`DPo{h:8Y("><field name="ATTR">val</field>
                        <field name="OID">yr.0.forecast.day0.temperature_max</field></block></value> 
                    <value name="B"><block type="math_number" id="ipu0uC0.VXaC+KD3%?R("><field name="NUM">22</field></block></value></block></value> 
                <statement name="DO0"><block type="control" id="u~X@=#WQH5m-?N_HHD3w"><mutation delay_input="false"></mutation>
                    <field name="OID">hm-rpc.0.OEQ0259579.1.LEVEL</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE"><block type="math_number" id="3g?m]SK5fUAQgkuY=wF#"><field name="NUM">75</field></block></value> 
                    <next><block type="control" id="HcSOHm5r9%gZm@F*JfLE"><mutation delay_input="false"></mutation>
                        <field name="OID">hm-rpc.0.OEQ0259191.1.LEVEL</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE"><block type="math_number" id="aTz,:VRSPZV][4HsUgam"><field name="NUM">75</field></block></value></block></next></block></statement></block></statement></block></statement></block> 
      
      1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators last edited by

        Ist der wert vom Forecast eine Zahl?

        Gruß Rainer

        1 Reply Last reply Reply Quote 0
        • totocotonio
          totocotonio last edited by

          ja eine Zahl (Type Number) mit Grad C

          1 Reply Last reply Reply Quote 0
          • R
            RappiRN Most Active last edited by

            Dann war wohl die vorhergesagte Temperatur nicht über 22°C, oder?

            Enrico

            1 Reply Last reply Reply Quote 0
            • totocotonio
              totocotonio last edited by

              Hi,

              doch wir hatten heute 24 ° C

              Habe ich da einen Fehler drin?

              Eigentlich doch nicht, zumindest fällt er mir nicht auf.

              Der boolaen Datenpunkt steht auch auf "true"

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

                Dann mach mal ein paar sinnvolle debug blöcke rein.

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

                  @totocotonio:

                  ja eine Zahl (Type Number) mit Grad C `
                  Wenn der Datenpunkt vom Typ "Zahl" (number) ist, bedeutet es nicht, dass der Wert tatsächlich auch eine Zahl ist. Füge mal ein:

                  debug output | Typ von | Wert vom Objekt ID Forecast of temperature for today
                  
                  1 Reply Last reply Reply Quote 0
                  • totocotonio
                    totocotonio last edited by

                    Hi,

                    wo mache ich die denn am besten rein und vor allem welche.

                    Wie gesagt ich bin noch Anfänger.

                    1 Reply Last reply Reply Quote 0
                    • totocotonio
                      totocotonio last edited by

                      @paul53:

                      @totocotonio:

                      ja eine Zahl (Type Number) mit Grad C `
                      Wenn der Datenpunkt vom Typ "Zahl" (number) ist, bedeutet es nicht, dass der Wert tatsächlich auch eine Zahl ist. Füge mal ein:

                      debug output | Typ von | Wert vom Objekt ID Forecast of temperature for today
                      ```` `  
                      

                      Hi,

                      da bin ich überfordert wo kommt das hin.

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

                        @totocotonio:

                        wo kommt das hin. `
                        Separat (außerhalb der anderen Böcke), damit es gleich beim Skriptstart abgearbeitet wird.

                        1 Reply Last reply Reply Quote 0
                        • totocotonio
                          totocotonio last edited by

                          1626_debug.png

                          so

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

                            Nein, so.
                            493_blockly_log_typeof.jpg

                            1 Reply Last reply Reply Quote 0
                            • R
                              RappiRN Most Active last edited by

                              Habs grad mal ausprobiert, der Wert scheint aus dem yr-Adapter zu sein.

                              Da kommt "number" raus, also sollte es auch ne Zahl sein, oder? Oder gibt es die Möglichkeit, dass der Adapter die Zahl als Text in das Objekt schreibt?

                              Enrico

                              1 Reply Last reply Reply Quote 0
                              • totocotonio
                                totocotonio last edited by

                                Wann wird das denn dann angezeigt.

                                Wenn das script startet?

                                1 Reply Last reply Reply Quote 0
                                • R
                                  RappiRN Most Active last edited by

                                  Genau, direkt nach dem Speichern wird das Script ja neugestartet (wenn es denn schon läuft) und dann kommt der Eintrag.

                                  Enrico

                                  1 Reply Last reply Reply Quote 0
                                  • totocotonio
                                    totocotonio last edited by

                                    @RappiRN:

                                    Habs grad mal ausprobiert, der Wert scheint aus dem yr-Adapter zu sein.

                                    Da kommt "number" raus, also sollte es auch ne Zahl sein, oder? Oder gibt es die Möglichkeit, dass der Adapter die Zahl als Text in das Objekt schreibt?

                                    Enrico `

                                    Ja ist der yr.

                                    Ich habe da keinen Plan.

                                    1 Reply Last reply Reply Quote 0
                                    • totocotonio
                                      totocotonio last edited by

                                      @RappiRN:

                                      Genau, direkt nach dem Speichern wird das Script ja neugestartet (wenn es denn schon läuft) und dann kommt der Eintrag.

                                      Enrico `

                                      1626_log.png
                                      1626_log1.png

                                      mehr kommt nicht? komisch

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

                                        Stelle mal den Debug output von debug auf info.

                                        1 Reply Last reply Reply Quote 0
                                        • totocotonio
                                          totocotonio last edited by

                                          @paul53:

                                          Stelle mal den Debug output von debug auf info. `

                                          ok, da kommt jetzt number raus, also müsste es doch funzen

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

                                            War der wert denn heute morgen um 11:00 bereits über 22°C?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            797
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            27
                                            1476
                                            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