Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Frage zu Blink-Script in Abhängigkeit zu Systemvariable aus CCU

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Frage zu Blink-Script in Abhängigkeit zu Systemvariable aus CCU

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

      Hallo Leute!

      Ich bin neu im Bereich Javascript und versuche mit Blockly momentan folgendes:

      Bedingung: Wenn die Systemvariable "Alarm" der CCU2 wahr ist,

      Dann Schleife: soll ein Aktor abwechselnd auf den Wert "true" und dann wieder auf den Wert "false" gesetzt werden und so ein blinkendes Alarmlicht realisieren.

      Leider klappt das nicht so richtig. Kann mir vielleicht jemand helfen?

      Mein Blockly-Scipt ist im Anhang enthalten. "Wenn Alarm unwahr" habe ich absichtlich hinterlegt, damit ich das Script auch ohne Alarm testen kann.
      2312_bildschirmfoto_2017-03-06_um_17.46.58.png

      1 Reply Last reply Reply Quote 0
      • M
        Marcolotti last edited by

        Hallo,

        versuche das mal unter Blockly zu importieren.

         <xml xmlns="http://www.w3.org/1999/xhtml"><block type="on_ext" id=".wb:gq!{ZcTg;_soNt-b" x="113" y="63"><mutation items="1"></mutation>
            <field name="CONDITION">true</field>
        
            <value name="OID0"><shadow type="field_oid" id="Vs2rvaWDUWkMqn1v{|1)"><field name="oid">system.host.ioBroker-Pi.alive</field></shadow></value> 
            <statement name="STATEMENT"><block type="timeouts_setinterval" id=")b(2[lTWr:SEe`p~?oFa"><field name="NAME">Intervall</field>
                <field name="INTERVAL">6000</field>
                <statement name="STATEMENT"><block type="control" id="+ttEWid[.q9EZR-xELrA"><mutation delay_input="true"></mutation>
                    <field name="OID">Energie-Chart</field>
                    <field name="WITH_DELAY">TRUE</field>
                    <field name="DELAY_MS">3000</field>
                    <field name="CLEAR_RUNNING">FALSE</field>
                    <value name="VALUE"><block type="logic_boolean" id="5/gl)]R)OZ8Li4LcdmI2"><field name="BOOL">TRUE</field></block></value> 
                    <next><block type="control" id="6;aqB|9b)Nbqi8fe)=QR"><mutation delay_input="false"></mutation>
                        <field name="OID">Energie-Chart</field>
                        <field name="WITH_DELAY">FALSE</field>
                        <value name="VALUE"><block type="logic_boolean" id="~fsovwetv;nw88(228S{"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></statement></block></xml> 
        

        Du musst natürlich noch alle Objekt-IDs ersetzen.

        Gruß Marco

        P.S. Wollen wir hoffen, dass dein Aktor das ne Weile mitmacht. :shock:

        1 Reply Last reply Reply Quote 0
        • htrecksler
          htrecksler Forum Testing last edited by

          Ist es da nicht vielleicht besser sich ein animiertes GIF zu suchen und dieses nur dann anzuzeigen wenn die Alarmsituation eintritt?

          1 Reply Last reply Reply Quote 0
          • M
            Marcolotti last edited by

            Hallo Hermann,

            wenn man das fürs VIS braucht, dann ja. Aber er will meiner Ansicht nach ein richtiges Alarmlicht steuern. (Animierte Gifs lassen sich so schwer an die Wand montieren 😉 )

            Gruß Marco

            1 Reply Last reply Reply Quote 0
            • htrecksler
              htrecksler Forum Testing last edited by

              ok, manchmal sollte man genauer lesen 🙂

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

              Support us

              ioBroker
              Community Adapters
              Donate

              992
              Online

              31.7k
              Users

              79.8k
              Topics

              1.3m
              Posts

              3
              5
              758
              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