Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Rollo autom. auf

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Rollo autom. auf

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

      Hallo

      Ich habe dieses Blockly versucht.
      Es soll um 8 Uhr das Rollo öffnen, wenn es mind. unter 90 ist.
      Es war geschlossen (0), wurde aber um 8 Uhr nicht autom. geöffnet.
      Wo hab ich da den Fehler?

      Screenshot_2020-12-27 javascript - ioBroker.png

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="on_ext" id="r0mk*VoO,oE3VISJL4[j" x="88" y="38">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="@n/*q3}Wrn55/O/E=MmW">
              <field name="oid">hm-rpc.0.001118A99353C9.3.LEVEL</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="sf*p;XtFVsd^l@3/g|d4">
              <value name="IF0">
                <block type="logic_operation" id="2//B2Ius$7){rh-HqxSo" inline="false">
                  <field name="OP">AND</field>
                  <value name="A">
                    <block type="time_compare" id="F-@s]?=d{pQ=@F`z@5gw">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="false"></mutation>
                      <field name="OPTION">==</field>
                      <field name="START_TIME">08:00</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_compare" id="(.VuZJeF-vK:XQOb(d)R">
                      <field name="OP">LT</field>
                      <value name="A">
                        <block type="get_value" id="QJtK9dzP})-s/Nq6Hpcb">
                          <field name="ATTR">val</field>
                          <field name="OID">hm-rpc.0.001118A99353C9.3.LEVEL</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="math_number" id="FyTU~Qk[fZhGFT?e5@Ht">
                          <field name="NUM">90</field>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="control" id="~_c-:W+vny.4HuLE4x?c">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">hm-rpc.0.001118A99353C9.4.LEVEL</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="math_number" id="#*{.,bcT$ErSL8,b=c{R">
                      <field name="NUM">100</field>
                    </block>
                  </value>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      
      UncleSam 1 Reply Last reply Reply Quote 0
      • UncleSam
        UncleSam Developer @Negalein last edited by UncleSam

        @Negalein Du triggerst auf die Veränderung des Rollo Datenpunktes, solange der sich nicht verändert, wird dein Blockly auch nicht ausgeführt. Wenn du eine Aktion zu einem bestimmten Zeitpunkt willst, musst du ein Cron verwenden.

        Und noch was: du verwendest teilweise Rollo 3 und teilweise Rollo 4. Ist das Absicht?

        Negalein 1 Reply Last reply Reply Quote 0
        • Negalein
          Negalein Global Moderator @UncleSam last edited by

          @UncleSam sagte in Rollo autom. auf:

          Wenn du eine Aktion zu einem bestimmten Zeitpunkt willst, musst du ein Cron verwenden.

          Danke
          So richtig?
          Screenshot_2020-12-27 javascript - ioBroker(1).png

          Und noch was: du verwendest teilweise Rollo 3 und teilweise Rollo 4. Ist das Absicht?

          .3 ist der Status
          .4 ist der Ausführende

          UncleSam 1 Reply Last reply Reply Quote 0
          • UncleSam
            UncleSam Developer @Negalein last edited by

            @Negalein sagte in Rollo autom. auf:

            So richtig?

            Theoretisch ja, aber die Abfrage nach der Zeit benötigst du ja nicht mehr - das macht ja der Cron.

            Negalein 1 Reply Last reply Reply Quote 0
            • Negalein
              Negalein Global Moderator @UncleSam last edited by

              @UncleSam sagte in Rollo autom. auf:

              aber die Abfrage nach der Zeit benötigst du ja nicht mehr

              Ok, entferne ich noch

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

              Support us

              ioBroker
              Community Adapters
              Donate

              887
              Online

              32.0k
              Users

              80.4k
              Topics

              1.3m
              Posts

              2
              5
              154
              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