Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Lichtszene mit Anwesenheit ansteuern

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Lichtszene mit Anwesenheit ansteuern

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @IceD112 last edited by

      @iced112

      Vielleicht hilft dir das Blockly etwas weiter:
      205a4973-ae7b-46d0-a55a-208234dfc9d8-image.png

      Die Anwesenheit habe ich da allerdings nicht drin, das läuft über ein anderes Blockly:

      a7d974ac-faa5-4dcb-9850-373c89769092-image.png

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

        @iced112 sagte: welche Bausteine und welche Werte, gerade beim Sonnenuntergang, ich da verwenden muss.

        Bild_2021-11-23_171807.png

        I 1 Reply Last reply Reply Quote 0
        • I
          IceD112 @paul53 last edited by

          Danke! Das ging ja fix

          Dann düfte es ja so funktionieren?

          <block xmlns="https://developers.google.com/blockly/xml" type="logic_operation" id="~1zXe).gkUn~+1R@[Pyt" x="-928" y="157">
            <field name="OP">AND</field>
            <value name="A">
              <block type="logic_compare" id="KHh(}YKX61-fo|MZoe(8">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="get_value" id="$KfOeud^~re$Mo2?LQ}{">
                    <field name="ATTR">val</field>
                    <field name="OID">0_userdata.0.Anwesenheit</field>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_boolean" id="}.TIrB?ZP[B-erZr]5;s">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
              </block>
            </value>
            <value name="B">
              <block type="time_compare_ex" id="t%h.o2N1+!wK`Df^*6ew">
                <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                <field name="USE_ACTUAL_TIME">TRUE</field>
                <field name="OPTION">between</field>
                <value name="START_TIME">
                  <shadow type="text" id="ptVNf3}21t/;[HLs-jry">
                    <field name="TEXT">12:00</field>
                  </shadow>
                  <block type="time_astro" id="04#hzGq(+82Fe!#!S5o-">
                    <field name="TYPE">sunrise</field>
                    <field name="OFFSET">15</field>
                  </block>
                </value>
                <value name="END_TIME">
                  <shadow type="text" id="Eo;f}z8(bwB2RjdDxDSX">
                    <field name="TEXT">23:00</field>
                  </shadow>
                </value>
              </block>
            </value>
          </block>
          
          I paul53 2 Replies Last reply Reply Quote 0
          • I
            IceD112 @IceD112 last edited by IceD112

            @iced112 said in Lichtszene mit Anwesenheit ansteuern:
            Und das tut es auch. Vielen Dank für die schnelle Hilfe

            Danke! Das ging ja fix

            Dann düfte es ja so funktionieren?

            <block xmlns="https://developers.google.com/blockly/xml" type="logic_operation" id="~1zXe).gkUn~+1R@[Pyt" x="-928" y="157">
              <field name="OP">AND</field>
              <value name="A">
                <block type="logic_compare" id="KHh(}YKX61-fo|MZoe(8">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="$KfOeud^~re$Mo2?LQ}{">
                      <field name="ATTR">val</field>
                      <field name="OID">0_userdata.0.Anwesenheit</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="}.TIrB?ZP[B-erZr]5;s">
                      <field name="BOOL">TRUE</field>
                    </block>
                  </value>
                </block>
              </value>
              <value name="B">
                <block type="time_compare_ex" id="t%h.o2N1+!wK`Df^*6ew">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                  <field name="USE_ACTUAL_TIME">TRUE</field>
                  <field name="OPTION">between</field>
                  <value name="START_TIME">
                    <shadow type="text" id="ptVNf3}21t/;[HLs-jry">
                      <field name="TEXT">12:00</field>
                    </shadow>
                    <block type="time_astro" id="04#hzGq(+82Fe!#!S5o-">
                      <field name="TYPE">sunrise</field>
                      <field name="OFFSET">15</field>
                    </block>
                  </value>
                  <value name="END_TIME">
                    <shadow type="text" id="Eo;f}z8(bwB2RjdDxDSX">
                      <field name="TEXT">23:00</field>
                    </shadow>
                  </value>
                </block>
              </value>
            </block>
            
            1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @IceD112 last edited by paul53

              @iced112 sagte: Dann düfte es ja so funktionieren?

              Besser so:

              Bild_2021-11-23_180749.png

              Wert (unter "Trigger"):

              Blockly_DP_Props.JPG

              I 1 Reply Last reply Reply Quote 0
              • I
                IceD112 @paul53 last edited by

                @paul53 Wo liegt der Unterschied zu dem..

                Screenshot 2021-11-23 at 18-28-32 javascript - raspberrypi-ioB.png

                kommt das nicht aufs selbe raus?

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

                  @iced112 sagte: kommt das nicht aufs selbe raus?

                  Im Prinzip ja, wenn Sonnenaufgang in Sonnenuntergang geändert wird, aber Deine Variante verbraucht mehr Ressourcen.

                  I 1 Reply Last reply Reply Quote 0
                  • I
                    IceD112 @paul53 last edited by

                    @paul53 Oh, danke für den Hinweis. Hat aber auch mit mit Sonnenaufgang im Test eben funktioniert 🙂

                    Ok, das ist natürlich Argument - Danke

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      lessthanmore @IceD112 last edited by lessthanmore

                      @iced112 Bei „aktuelle Zeit ist zwischen“ fehlt doch auch der Vergleich.
                      Zwischen was denn? Sehe nur Sonnenaufgang oder ist das abgeschnitten?

                      I 1 Reply Last reply Reply Quote 0
                      • I
                        IceD112 @lessthanmore last edited by

                        @lessthanmore Sorry, ja das war abgeschnitten

                        Screenshot 2021-11-23 at 19-35-12 javascript - raspberrypi-ioB.png

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        905
                        Online

                        32.0k
                        Users

                        80.5k
                        Topics

                        1.3m
                        Posts

                        4
                        11
                        309
                        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