Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Geräte für die es keinen eigenen Adapter gibt über ioBroker steuern - hier z.B. Cololight

    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

    Geräte für die es keinen eigenen Adapter gibt über ioBroker steuern - hier z.B. Cololight

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      saeft_2003 Most Active last edited by saeft_2003

      @smartmood

      Ich habe mir jetzt auch eine cololight besorgt. Wenn ich den AN Befehl

      echo -n -e "\x53\x5a\x30\x30\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x01\x03\x01\xcf\x35" | nc -u 192.168.178.36 8900
      

      in putty in die Konsole eingebe dann geht die cololight tatsächlich an.

      Mache ich das gleiche in blockly mit exec geht es leider nicht. Hat es einer von euch mit blockly zum laufen bekommen?

      Würde mich riesig freuen wenn ich die cololight in meinen iobroker integrieren könnte grundsätzlich scheint es ja zu funktionieren...

      Homoran 1 Reply Last reply Reply Quote 0
      • S
        saeft_2003 Most Active @liv-in-sky last edited by

        @liv-in-sky

        Kannst du mir bitte mal kurz zeigen wie der exec mit debug ausehen muss? Was fehlt bei mir noch?

        debug.jpg

        liv-in-sky 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @saeft_2003 last edited by

          @saeft_2003 sagte in Geräte für die es keinen eigenen Adapter gibt über ioBroker steuern - hier z.B. Cololight:

          Mache ich das gleiche in blockly mit exec geht es leider nicht.

          Hast du in der Javascript-Instanz das exec freigegeben?

          S 1 Reply Last reply Reply Quote 0
          • S
            saeft_2003 Most Active @Homoran last edited by

            @Homoran

            Ja ich habe mehrere verschiedene exec Blöcke im Einsatz die funktionieren...

            Kann es ein Rechte Problem sein?

            Homoran 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @saeft_2003 last edited by

              @saeft_2003 sagte in Geräte für die es keinen eigenen Adapter gibt über ioBroker steuern - hier z.B. Cololight:

              Kann es ein Rechte Problem sein?

              Was sagt denn das log beim Auslösen?
              ggf. die Instanz auf debug setzen!

              Was nimmst du als Trigger?

              S Homoran 2 Replies Last reply Reply Quote 0
              • S
                saeft_2003 Most Active @Homoran last edited by

                @Homoran

                Beim test hab ich keinen trigger genommen. Weil normal wird doch jeder block ohne trigger beim speichern ausgeführt. So kenne ich es zumindest...

                Wegen dem log kann ich gerade nicht schauen muss ich heute Abend in ruhe machen. Melde mich dann nochmal.

                Homoran 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @saeft_2003 last edited by

                  @saeft_2003 sagte in Geräte für die es keinen eigenen Adapter gibt über ioBroker steuern - hier z.B. Cololight:

                  Weil normal wird doch jeder block ohne trigger beim speichern ausgeführt. So kenne ich es zumindest...

                  Beim Scriptstart - zum testen aber ok

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    saeft_2003 Most Active @Homoran last edited by

                    @Homoran

                    Die JavaScript Instanz hat soweit ich weiß nur iobroker Rechte? Kann es damit was zu tun haben? Weil ich hatte schonmal das Problem das wegen fehlender Rechte ein exec Block nichts in einen Ordner schreiben durfte.

                    Kann man die Rechte einer Instanz ändern?

                    Homoran liv-in-sky 2 Replies Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @saeft_2003 last edited by

                      @saeft_2003 sagte in Geräte für die es keinen eigenen Adapter gibt über ioBroker steuern - hier z.B. Cololight:

                      nur iobroker Rechte

                      Und der hat die nötigen Rechte

                      1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @saeft_2003 last edited by

                        @saeft_2003 sagte in Geräte für die es keinen eigenen Adapter gibt über ioBroker steuern - hier z.B. Cololight:

                        @liv-in-sky

                        Kannst du mir bitte mal kurz zeigen wie der exec mit debug ausehen muss? Was fehlt bei mir noch?

                        debug.jpg

                        einfach eine variable erzeugen die result heißt

                        Image 7.png

                        1 Reply Last reply Reply Quote 0
                        • liv-in-sky
                          liv-in-sky @saeft_2003 last edited by

                          @saeft_2003 es könnte sein, das der nc befehl nach der pipe ein reche problem hat - dann müßten wir ihn wohl in die datei /etc/sudoers.d/iobroker einpflegen

                          was sagt den das log mit dem debug blockly ?

                          S 1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @Homoran last edited by

                            @Homoran sagte in Geräte für die es keinen eigenen Adapter gibt über ioBroker steuern - hier z.B. Cololight:

                            @saeft_2003 sagte in Geräte für die es keinen eigenen Adapter gibt über ioBroker steuern - hier z.B. Cololight:

                            Kann es ein Rechte Problem sein?

                            Was sagt denn das log beim Auslösen?
                            ggf. die Instanz auf debug setzen!

                            1 Reply Last reply Reply Quote 0
                            • S
                              saeft_2003 Most Active @liv-in-sky last edited by

                              @liv-in-sky
                              @Homoran

                              Der log sagt irgendwie gar nichts nur dass das Skript gestartet wurde. Mache ich irgendwas falsch?

                              debug.jpg

                              liv-in-sky 1 Reply Last reply Reply Quote 0
                              • liv-in-sky
                                liv-in-sky @saeft_2003 last edited by

                                @saeft_2003

                                mach mal einen ganz einfachen befehl : ls

                                kommt dann was

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  saeft_2003 Most Active @liv-in-sky last edited by

                                  @liv-in-sky

                                  ja nämlich das. was heißt das jetzt?

                                  debug.jpg

                                  liv-in-sky 1 Reply Last reply Reply Quote 0
                                  • liv-in-sky
                                    liv-in-sky @saeft_2003 last edited by

                                    @saeft_2003

                                    ist bei mir auch wie bei dir mit dem echo - da kommt irgendwie nix zurück - ich nehme mal an, dass der befehl auch nicht ausgeführt wird - oder

                                    schreib doch mal den text der nach echo und vor der pipe kommt in ein file und rufe das mit cat auf
                                    kannst ja mal mal im terminal testen

                                    z.b. cat befehl1 | nc .....

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      saeft_2003 Most Active @liv-in-sky last edited by

                                      @liv-in-sky sagte in Geräte für die es keinen eigenen Adapter gibt über ioBroker steuern - hier z.B. Cololight:

                                      @saeft_2003

                                      ist bei mir auch wie bei dir mit dem echo - da kommt irgendwie nix zurück - ich nehme mal an, dass der befehl auch nicht ausgeführt wird - oder

                                      schreib doch mal den text der nach echo und vor der pipe kommt in ein file und rufe das mit cat auf
                                      kannst ja mal mal im terminal testen

                                      z.b. cat befehl1 | nc .....

                                      ohh ha ok ich hab von linux nicht so viel ahnung deswegen muss ich ein paar Sachen fragen.

                                      1. Was für eine Endung muss das file haben?
                                      2. Wo muss das file liegen? Wäre /opt/iobroker ok?
                                      3. Würde der Befehl den ich ins Terminal eingeben muss dann heißen: cat befehl1 | nc /opt/iobroker/file
                                      liv-in-sky 1 Reply Last reply Reply Quote 0
                                      • liv-in-sky
                                        liv-in-sky @saeft_2003 last edited by

                                        @saeft_2003

                                        nein - das nc ... bleibt wie bisher - die datei heißt befehl1 und es steht nur

                                        \x53\x5a\x30\x30\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x01\x03\x01\xcf\x35
                                        

                                        drin - die datei kannst du mal unter iobroker anlegen - da müßtest du rechte darauf haben

                                        am besten so machen

                                        nano /opt/iobroker/befehl1
                                        dann kopierst du die sequenz rein - kein enter danach
                                        mit alt - x beenden und speichern
                                        anschliessend befehl: chmod 777 /opt/iobroker/befehl1 - gibt alle rechte

                                        zum testen im terminal:
                                        cat /opt/iobroker/befehl1 | nc -u 192.168.0.72 8900

                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          saeft_2003 Most Active @liv-in-sky last edited by

                                          @liv-in-sky

                                          Danke für die Anleitung das habe sogar ich kapiert. Wenn ich den Befehl ausführe erscheint ein kryptischer Text und die Cololight bleibt aus. Der Inhalt der Datei Befehl1 ist so wie du geschrieben hast. Die Rechte passen auch.

                                          cololight1.jpg

                                          Dieser kryptischer Text erscheint bei dem "normalen" Befehl hier geht die Cololight an

                                          cololight.jpg

                                          Hast du noch eine Idee?

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            saeft_2003 Most Active @saeft_2003 last edited by

                                            Kann mir jemand sagen wie dieser Befehl direkt in JavaScript aussehen würde? Vielleicht liegt es ja an blockly...

                                            liv-in-sky 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            428
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter cololight wlan geräte
                                            5
                                            50
                                            3260
                                            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