Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Lichtsteuerung Keymatic--Hue

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Lichtsteuerung Keymatic--Hue

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

      Hallo @dslraser

      Du als Guru in Blockly kannst mir sicher wieder weiterhelfen, bzw. Tipps geben! 🙂

      Wenn das Türschloss (Keymatik) aufgeschlossen ist, soll in der Zeit von bis in Rot leuchten.
      Wird in dieser Zeit zugeschlossen, soll der Level der Lampe auf 0 (on/off gibts bei Hue nicht).
      Und außerhalb dieser Zeit, ebenfalls auf Level 0.

      Würde das so passen?

      javascript - ioBroker (6).png

      dslraser 1 Reply Last reply Reply Quote 0
      • dslraser
        dslraser Forum Testing Most Active @Negalein last edited by dslraser

        @negalein

        Vorschlag über command

        Bildschirmfoto 2021-10-07 um 23.15.29.png

        <xml xmlns="https://developers.google.com/blockly/xml">
         <block type="on" id="D?x-RH^6.c5gxpE@4vrM" x="137" y="137">
           <field name="OID">Object ID</field>
           <field name="CONDITION">ne</field>
           <field name="ACK_CONDITION"></field>
           <statement name="STATEMENT">
             <block type="controls_if" id="qG0YQD$I@dCa0QRcWFv!">
               <mutation else="1"></mutation>
               <value name="IF0">
                 <block type="logic_operation" id="%qX(@bD:oep3lsi|KU:9" inline="false">
                   <field name="OP">AND</field>
                   <value name="A">
                     <block type="time_compare_ex" id=")p8=)jSc;(XH7$(Hc[hQ">
                       <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="i@3Emi|^n4u)W[LtCH`y">
                           <field name="TEXT">12:00</field>
                         </shadow>
                       </value>
                       <value name="END_TIME">
                         <shadow type="text" id="e=18I5Z/Jbq@gME!?pkY">
                           <field name="TEXT">24:00</field>
                         </shadow>
                       </value>
                     </block>
                   </value>
                   <value name="B">
                     <block type="logic_negate" id="(Y?*lZH.)ts4^NMhB:Or">
                       <value name="BOOL">
                         <block type="on_source" id="SijR4Eb;qTTK*nJ:UwTo">
                           <field name="ATTR">state.val</field>
                         </block>
                       </value>
                     </block>
                   </value>
                 </block>
               </value>
               <statement name="DO0">
                 <block type="control" id="AB(jX3lYN]0VK|^5Pbx%">
                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                   <field name="OID">hue.0.Fernsehlampe_links.command</field>
                   <field name="WITH_DELAY">FALSE</field>
                   <value name="VALUE">
                     <block type="text" id="C3drX[@!JFPE?/3|KS{}">
                       <field name="TEXT">{"level":100, "r":255,"transitiontime":10}</field>
                     </block>
                   </value>
                 </block>
               </statement>
               <statement name="ELSE">
                 <block type="control" id="!]KfgjE$)Oh,$q|eX}o`">
                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                   <field name="OID">hue.0.Fernsehlampe_links.command</field>
                   <field name="WITH_DELAY">FALSE</field>
                   <value name="VALUE">
                     <block type="text" id="-[5b1,#GYP3{Y,B:*nvE">
                       <field name="TEXT">{"on":false,"transitiontime":10}</field>
                     </block>
                   </value>
                 </block>
               </statement>
             </block>
           </statement>
         </block>
        </xml>
        

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

          @dslraser sagte in Lichtsteuerung Keymatic--Hue:

          Vorschlag über command

          Danke

          wobei die Zeiteinstellung "Sinnfrei" ist

          warum?

          dslraser 1 Reply Last reply Reply Quote 0
          • dslraser
            dslraser Forum Testing Most Active @Negalein last edited by

            @negalein sagte in Lichtsteuerung Keymatic--Hue:

            wobei die Zeiteinstellung "Sinnfrei" ist

            warum?

            Hast Recht...(ich hatte einen Denkfehler...)

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

              @dslraser sagte in Lichtsteuerung Keymatic--Hue:

              @negalein sagte in Lichtsteuerung Keymatic--Hue:

              wobei die Zeiteinstellung "Sinnfrei" ist

              warum?

              Hast Recht...(ich hatte einen Denkfehler...)

              wenn ich beim Trigger True möchte, nehme ich einfach das nicht vor Wert weg?

              dslraser 1 Reply Last reply Reply Quote 0
              • dslraser
                dslraser Forum Testing Most Active @Negalein last edited by

                @negalein sagte in Lichtsteuerung Keymatic--Hue:

                wenn ich beim Trigger True möchte, nehme ich einfach das nicht vor Wert weg?

                richtig

                dslraser 1 Reply Last reply Reply Quote 1
                • dslraser
                  dslraser Forum Testing Most Active @dslraser last edited by

                  @dslraser
                  Wenn das Licht immer ausgeschaltet werden soll, dann vielleicht aus dem sonst Zweig auf sonst falls ändern und auch auf nicht Wert, aber ohne die Uhrzeit einstellen.
                  (Falls das Licht noch innerhalb der Zeit eingeschaltet wurde, aber das ausschalten schon nach der gültigen Zeiteinstellung ist)

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

                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  846
                  Online

                  32.0k
                  Users

                  80.5k
                  Topics

                  1.3m
                  Posts

                  2
                  7
                  159
                  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