Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. blockly schaltet nicht

    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

    blockly schaltet nicht

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

      Hallo Gemeinde,
      habe ein blockly was nicht eine tasmota Steckdose schaltet. Komischerweise funktioniert es wenn ich den Power State per hand ändere ganz normal. Wenn ich allerdings per script schalte klappts nicht. Noch eigenartiger: in der History siehts so aus als wäre geschaltet worden?!?
      Im Bild anbei seht ihr die history des states. Wenn admin die Quelle ist schaltet die Dose. ist javascript die Quelle schaltet die Dose nicht. Ich verstehs nicht...!!!!
      log.jpg

      paul53 Homoran 2 Replies Last reply Reply Quote 0
      • paul53
        paul53 @quinti last edited by

        @quinti Block "steuere" anstelle Block "aktualisiere" verwenden !

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

          @quinti sagte in blockly schaltet nicht:

          habe ein blockly was nicht eine tasmota Steckdose schaltet.

          wie sieht das aus?

          @quinti sagte in blockly schaltet nicht:

          ist javascript die Quelle schaltet die Dose nicht. Ich verstehs nicht...!!!!

          Ich habe da eine Vermutung

          @paul53 hat gepetzt 😉

          1 Reply Last reply Reply Quote 0
          • Q
            quinti last edited by

            oha da muss ich was weiter ausholen...
            Es sind 2 blocklys beteiligt. Hintergrund: Es geht grundsätzlich darum einen Raspi neu zu starten. Auf dem Raspi läuft daher eine Multihost Instanz mit javascript und dem RPI Adapter. Die javascipt Intanz überwacht die CPU load und wenn diese zu hoch ist wird ein temporärer state gesetzt und der Raspi heruntergefahren. Da die Instanz auf dem Raspi ja dann nicht mehr läuft, fragt die javascript Instanz auf dem Server den temporären state ab, und soll dann die Steckdose vom Rapsi kurz ausschalten.
            Das script schaltet wie gewünscht auch den state sonoff.0.SP1_#99_pihiole.POWER wie gewünscht (siehe Anfangspost). Aber die Steckdose schaltet nicht.
            Setze ich sonoff.0.SP1_#99_pihiole.POWER von Hand true/false schaltet die Dose...
            script1.jpg
            script2.jpg

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

              @quinti sagte in blockly schaltet nicht:

              oha da muss ich was weiter ausholen.

              warum erst auf Nachfrage?

              Aber es bleibt bei Pauls Hinweis:
              sobald ein anderer Adapter den Wert verarbeiten soll benötigst du den "Steuere" Block.

              Der "aktualisiere" Block ist nur für (eigene) Datenpunkte gedacht, die sozusagen als Systemvariable genutzt werden

              1 Reply Last reply Reply Quote 0
              • Q
                quinti last edited by

                das wars, danke!

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

                  @quinti sagte in blockly schaltet nicht:

                  das wars, danke!

                  Natürlich 😉

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

                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  367
                  Online

                  31.8k
                  Users

                  79.9k
                  Topics

                  1.3m
                  Posts

                  blockly javascript
                  3
                  7
                  866
                  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