Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst]Wechselschaltung

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst]Wechselschaltung

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

      @dominik-f sagte: Der soll mittels Press Long eine Philips Hue Lampe dimmen.

      Gut, dann gibt es kein Problem mit einem Duty Cycle und es kann PRESS_LONG verwendet werden, der alle 250 ms aktualisiert. Ist aber wohl für Hue zu schnell?

      1 Reply Last reply Reply Quote 0
      • Dominik F.
        Dominik F. last edited by

        @paul53

        Ich hänge aktuell noch am Skript 😄 Ich suche gerade verzweifelt "erhöhe etwas um" in Blockly^^

        paul53 1 Reply Last reply Reply Quote 0
        • paul53
          paul53 @Dominik F. last edited by

          @dominik-f sagte: "erhöhe etwas um" in Blockly

          Erstelle eine Variable level. Dann wird "erhöhe level um" angeboten.

          Dominik F. 1 Reply Last reply Reply Quote 0
          • Dominik F.
            Dominik F. @paul53 last edited by

            @paul53

            Mein erster Versuch ist gescheitert. Der Level springt sofort auf 100 und die Lampe wird nicht heller. Es passiert quasi nicht. Ich denke das ist das was du oben beschrieben hast, dass es zu schnell für die Hue ist.

            Unbenannt.PNG

            paul53 1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @Dominik F. last edited by

              @dominik-f sagte: Es passiert quasi nicht.

              Mit "aktualisiere" wird auch nicht gesendet. Nimm die Blöcke "steuere".

              Dominik F. 1 Reply Last reply Reply Quote 0
              • Dominik F.
                Dominik F. @paul53 last edited by

                @paul53

                Okay, damit spring die Helligkeit nun sofort auf 100.

                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @Dominik F. last edited by

                  @dominik-f sagte in [gelöst]Wechselschaltung:

                  @paul53

                  Okay, damit spring die Helligkeit nun sofort auf 100.

                  welche Werte hat Brightness? 0-1 oder 0-100?

                  Dominik F. 1 Reply Last reply Reply Quote 0
                  • Dominik F.
                    Dominik F. @Homoran last edited by

                    @homoran

                    0-100

                    paul53 1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @Dominik F. last edited by paul53

                      @dominik-f sagte: 0-100

                      Vorschlag :

                      Bild_2022-08-12_185804043.png

                      Dominik F. 2 Replies Last reply Reply Quote 1
                      • Dominik F.
                        Dominik F. @paul53 last edited by

                        @paul53

                        Ich danke dir, werde es gleich mal testen und melde mich dann.

                        1 Reply Last reply Reply Quote 0
                        • Dominik F.
                          Dominik F. @paul53 last edited by

                          @paul53

                          Ich hab es nun getestet, es funktioniert fast perfekt. Das Dimmen funktioniert, nur beginnt er immer mit der gleichen Helligkeit. Hatte als ich das Skript gestartet habe eine Helligkeit von 40 eingestellt. Beim Hochdimmen beginnt er nun immer bei 45 und beim Runterdimmen bei 35, egal wie die Ausgangshelligkeit ist. Er startet also nicht bei der eingestellen Helligkeit

                          paul53 1 Reply Last reply Reply Quote 0
                          • paul53
                            paul53 @Dominik F. last edited by paul53

                            @dominik-f sagte: Er startet also nicht bei der eingestellen Helligkeit

                            Das ist so gewollt (programmiert), dass sofort bei Erkennung von PRESS_LONG_START mit dem Dimmen begonnen wird.

                            Dominik F. 1 Reply Last reply Reply Quote 0
                            • Dominik F.
                              Dominik F. @paul53 last edited by Dominik F.

                              @paul53

                              Ich hab nun Aliase erstellt und nun funktioniert es damit wie es soll. Warum kann ich mir nicht erklären. Aus irgendeinem Grund hat er vorher den Level dauerhaft gespeichert und nicht aktualisiert

                              In wie weit kann ich denn mit dem Timeout rumspielen und mit der Helligkeitsveränderung? Es ist ja nun 800ms und 5 Stufen eingestellt.

                              paul53 1 Reply Last reply Reply Quote 0
                              • paul53
                                paul53 @Dominik F. last edited by

                                @dominik-f sagte: In wie weit kann ich denn mit dem Timeout rumspielen und mit der Helligkeitsveränderung?

                                Probiere es aus. Ich habe keine Hue-Geräte.

                                Dominik F. 1 Reply Last reply Reply Quote 0
                                • Dominik F.
                                  Dominik F. @paul53 last edited by

                                  @paul53

                                  Alles klar. Ich danke dir vielmals für deine Hilfe!

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

                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate

                                  561
                                  Online

                                  32.0k
                                  Users

                                  80.5k
                                  Topics

                                  1.3m
                                  Posts

                                  blockly
                                  6
                                  72
                                  3332
                                  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