Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Bei Sonnenuntergang/Aufgang Sensor aktiv/Deaktiv geht 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

    Bei Sonnenuntergang/Aufgang Sensor aktiv/Deaktiv geht nicht

    This topic has been deleted. Only users with topic management privileges can see it.
    • paul53
      paul53 @canim last edited by

      @canim sagte:

      hier mal der Code

      • "zwischen SU und SA" (Tag übergreifend) funktioniert nicht
      • Wert und falsch ergibt immer false
      C 1 Reply Last reply Reply Quote 0
      • C
        canim @paul53 last edited by

        @paul53 echt ?, habs nicht ausprobiert, klingt aber vom programmieren her logisch.

        E 1 Reply Last reply Reply Quote 0
        • E
          EFE @canim last edited by

          @canim @paul53 blokly funtioniert leider nicht

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

            @EFE sagte:

            blokly funtioniert leider nicht

            Welches ? Nimm das:

            <xml xmlns="https://developers.google.com/blockly/xml">
             <block type="on_ext" id="Vu)tzEuKG]MLG{_5B+M2" x="-388" y="-37">
               <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="TPh(uWT*$mw?t!E^epw?">
                   <field name="oid">default</field>
                 </shadow>
               </value>
               <statement name="STATEMENT">
                 <block type="controls_if" id="Jcw2I-#Hk$vc?1XBuF^@">
                   <value name="IF0">
                     <block type="time_compare_ex" id="z6*QvK~IlryMK#1]kh7,">
                       <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">not between</field>
                       <value name="START_TIME">
                         <shadow type="text" id="%X^W]VWZHRed@hfzJ9[J">
                           <field name="TEXT">12:00</field>
                         </shadow>
                         <block type="time_astro" id="Py.8_zjhK%E9(%2H5^[+">
                           <field name="TYPE">sunrise</field>
                           <field name="OFFSET">0</field>
                         </block>
                       </value>
                       <value name="END_TIME">
                         <shadow type="text" id="3F=aL:|I7tqq)R`vXu4*">
                           <field name="TEXT">18:00</field>
                         </shadow>
                         <block type="time_astro" id=";7~BOTG1^zC}{EhYb|]z">
                           <field name="TYPE">sunset</field>
                           <field name="OFFSET">0</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="control" id="OT`+7o}LB^0L|3@wzI#9">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                       <field name="OID">Object ID</field>
                       <field name="WITH_DELAY">FALSE</field>
                       <value name="VALUE">
                         <block type="on_source" id="kk9L26QocY8`iKbE6dQ9">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                     </block>
                   </statement>
                 </block>
               </statement>
             </block>
            </xml>
            

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

              @paul53 von @canim ich dachte das die gleich sind , bauemal kurz um auf deins .....melde mich gleich

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

                @EFE sagte:

                ich dachte das die gleich sind

                Dann hätte ich mir die Bemerkungen dazu sparen können.

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

                  @paul53 hab nicht aufgepasst aber funktioniert wunderbar !
                  Das heißt zB. SA 8 Uhr und SU 17 Uhr keine Funktion richtig?

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

                    @EFE sagte:

                    SA 8 Uhr und SU 17 Uhr keine Funktion richtig?

                    Ja, zwischen SA und SU erfolgt keine Reaktion.

                    E 2 Replies Last reply Reply Quote 0
                    • E
                      EFE @paul53 last edited by

                      @paul53 super genau das wollte ich .
                      Ich danke dir für deine schnelle Unterstützung @canim danke auf für deine Mühe

                      1 Reply Last reply Reply Quote 1
                      • E
                        EFE @paul53 last edited by

                        hi @paul53 erst mal frohe Weihnacht , ich hab noch eine frage!
                        Screenshot at Dez. 27 15-35-01.png
                        dieser Blockly arbeitet wunderbar aber eine Kleinigkeit ist da noch.

                        Öffne ich die Türe vor SA geht die Gartenbeleuchtung an die Türe ist sagen wir mal 30min auf inzwischen ist die SA Zeit aktiviert geht die Beleuchtung nicht mehr aus wenn ich die Türe schließe oder öffne. Diese ist dauerhaft an .
                        Reagiert dann erst wieder nach SU auf den Kontakt.

                        Ich würde gerne noch eine Kontrolle einbauen , so das wenn SA erfolgt , Blockly guckt Fals ist AN dann Beleuchtung AUS
                        bei SU ist es egal da muss ich kurz die Türe zu und Aufmachen dann geht die Beleuchtung an.

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

                          @EFE sagte:

                          wenn SA erfolgt , Blockly guckt Fals ist AN dann Beleuchtung AUS

                          Zusätzlichen Astro-Trigger bei SA: Licht aus.

                          Blockly_temp.JPG

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

                            @paul53 danke habs mal eingebauten und es klappt wunderbar!
                            Licht geht nur an wenn die Astro SU ist und auch wenn der Kontakt aktiv ist.
                            Vielen Dank

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            756
                            Online

                            31.9k
                            Users

                            80.1k
                            Topics

                            1.3m
                            Posts

                            blockly
                            4
                            22
                            1064
                            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