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. Sonnenschutz funzt nicht, warum?(Blockly)

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    17
    1
    498

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

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

Sonnenschutz funzt nicht, warum?(Blockly)

Scheduled Pinned Locked Moved Skripten / Logik
27 Posts 5 Posters 1.6k Views
  • 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.
  • totocotonioT Offline
    totocotonioT Offline
    totocotonio
    wrote on last edited by
    #1

    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> 
    

    Gruß Totocotonio

    Bin noch Anfänger in Sachen IO-Broker und lerne gerne dazu. :P

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

      Ist der wert vom Forecast eine Zahl?

      Gruß Rainer

      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 -

      1 Reply Last reply
      0
      • totocotonioT Offline
        totocotonioT Offline
        totocotonio
        wrote on last edited by
        #3

        ja eine Zahl (Type Number) mit Grad C

        Gruß Totocotonio

        Bin noch Anfänger in Sachen IO-Broker und lerne gerne dazu. :P

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RappiRN
          Most Active
          wrote on last edited by
          #4

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

          Enrico

          1 Reply Last reply
          0
          • totocotonioT Offline
            totocotonioT Offline
            totocotonio
            wrote on last edited by
            #5

            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"

            Gruß Totocotonio

            Bin noch Anfänger in Sachen IO-Broker und lerne gerne dazu. :P

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

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

              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 -

              1 Reply Last reply
              0
              • paul53P Offline
                paul53P Offline
                paul53
                wrote on last edited by
                #7

                @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
                

                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
                • totocotonioT Offline
                  totocotonioT Offline
                  totocotonio
                  wrote on last edited by
                  #8

                  Hi,

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

                  Wie gesagt ich bin noch Anfänger.

                  Gruß Totocotonio

                  Bin noch Anfänger in Sachen IO-Broker und lerne gerne dazu. :P

                  1 Reply Last reply
                  0
                  • totocotonioT Offline
                    totocotonioT Offline
                    totocotonio
                    wrote on last edited by
                    #9

                    @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.

                    Gruß Totocotonio

                    Bin noch Anfänger in Sachen IO-Broker und lerne gerne dazu. :P

                    1 Reply Last reply
                    0
                    • paul53P Offline
                      paul53P Offline
                      paul53
                      wrote on last edited by
                      #10

                      @totocotonio:

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

                      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
                      • totocotonioT Offline
                        totocotonioT Offline
                        totocotonio
                        wrote on last edited by
                        #11

                        1626_debug.png

                        so

                        Gruß Totocotonio

                        Bin noch Anfänger in Sachen IO-Broker und lerne gerne dazu. :P

                        1 Reply Last reply
                        0
                        • paul53P Offline
                          paul53P Offline
                          paul53
                          wrote on last edited by
                          #12

                          Nein, so.
                          493_blockly_log_typeof.jpg

                          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
                          • R Offline
                            R Offline
                            RappiRN
                            Most Active
                            wrote on last edited by
                            #13

                            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
                            0
                            • totocotonioT Offline
                              totocotonioT Offline
                              totocotonio
                              wrote on last edited by
                              #14

                              Wann wird das denn dann angezeigt.

                              Wenn das script startet?

                              Gruß Totocotonio

                              Bin noch Anfänger in Sachen IO-Broker und lerne gerne dazu. :P

                              1 Reply Last reply
                              0
                              • R Offline
                                R Offline
                                RappiRN
                                Most Active
                                wrote on last edited by
                                #15

                                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
                                0
                                • totocotonioT Offline
                                  totocotonioT Offline
                                  totocotonio
                                  wrote on last edited by
                                  #16

                                  @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.

                                  Gruß Totocotonio

                                  Bin noch Anfänger in Sachen IO-Broker und lerne gerne dazu. :P

                                  1 Reply Last reply
                                  0
                                  • totocotonioT Offline
                                    totocotonioT Offline
                                    totocotonio
                                    wrote on last edited by
                                    #17

                                    @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

                                    Gruß Totocotonio

                                    Bin noch Anfänger in Sachen IO-Broker und lerne gerne dazu. :P

                                    1 Reply Last reply
                                    0
                                    • paul53P Offline
                                      paul53P Offline
                                      paul53
                                      wrote on last edited by
                                      #18

                                      Stelle mal den Debug output von debug auf info.

                                      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
                                      • totocotonioT Offline
                                        totocotonioT Offline
                                        totocotonio
                                        wrote on last edited by
                                        #19

                                        @paul53:

                                        Stelle mal den Debug output von debug auf info. `

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

                                        Gruß Totocotonio

                                        Bin noch Anfänger in Sachen IO-Broker und lerne gerne dazu. :P

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

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

                                          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 -

                                          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

                                          429

                                          Online

                                          32.7k

                                          Users

                                          82.5k

                                          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