Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. [Major Update] UniFi Adapter v0.5.0

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Major Update] UniFi Adapter v0.5.0

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @maniac last edited by

      @maniac

      hast du im blockly mal ohne "sudo bash" vor befehl getestet

      AlCalzone 1 Reply Last reply Reply Quote 0
      • M
        maniac @liv-in-sky last edited by

        @liv-in-sky sagte in [Major Update] UniFi Adapter v0.5.0:

        @maniac
        ach ja
        hatte gestern erst etwas gemacht - da brauchte ich bash garnicht - siehe post darüber - das blockly

        leider auch so nicht

        07ad0090-5938-4008-928b-1fb7e9245334-grafik.png

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

          @liv-in-sky sagte in [Major Update] UniFi Adapter v0.5.0:

          @maniac das result einfach als variable anlegen

          ok.

          Kommt nix besonderes bei raus
          aa27cf72-c19f-4cfc-a28d-c1d0bccbf45c-grafik.png

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

            @maniac
            result anlegen
            Image 8.png

            was kommt den zurück, wenn du einfach nur ls -la als befehl im exec blockly angibst - da sollte etwas im log stehen

            Image 9.png

            M 1 Reply Last reply Reply Quote 1
            • M
              maniac @liv-in-sky last edited by

              @liv-in-sky sagte in [Major Update] UniFi Adapter v0.5.0:

              @maniac
              result anlegen

              Ja, das funktioniert. Bekomme den Inhalt von / aufgelistet.

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

                @maniac

                hast du ml alle vrianten durchgespielt - bei mir funktioniert sudo bash...... nicht
                aber bash...... funktioniert
                und nur /opt/iobroker/cam.sh funktioniert auch

                M 1 Reply Last reply Reply Quote 1
                • liv-in-sky
                  liv-in-sky @maniac last edited by

                  @maniac

                  aus lauter verzweiflung:

                  Image 10.png

                  und hast du überprüft - wegen sudoers:

                  Image 11.png

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

                    @liv-in-sky sagte in [Major Update] UniFi Adapter v0.5.0:

                    @maniac

                    hast du ml alle vrianten durchgespielt - bei mir funktioniert sudo bash...... nicht
                    aber bash...... funktioniert
                    und nur /opt/iobroker/cam.sh funktioniert auch

                    5ebe1037-8ffe-4d77-a3fa-a393fe4c9391-grafik.png

                    Alle mal auf einmal. Jetzt geht es plötzlich...
                    Habe die exec danach mal nach und nach deaktiviert.

                    Es funktioniert jetzt mit:

                    bash /opt/iobroker/cam.sh 192.168.222.2 off 20
                    

                    Ist mir unbegreiflich.

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

                      @maniac das sehen wir mal locker - begreifen ist nicht so wichtig - hauptssache es läuft 🙂

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

                        @liv-in-sky
                        Ja, aber warum wäre dennoch die Frage. Ich werde auf jeden Fall jetzt erstmal einen Snapshot anlegen. 😁
                        Danach habe ich einen zweiten Switch. Da bekomme ich noch Host verification Error. Also noch mal von vorne 🙂

                        Wenn es endgültig läuft, werde ich das mal zusammenschreiben und irgendwo hier posten. Damit man das mal nachlesen kann.

                        Vielen, Vielen Dank für Deine Hilfe und Geduld...

                        1 Reply Last reply Reply Quote 1
                        • AlCalzone
                          AlCalzone Developer @liv-in-sky last edited by

                          @liv-in-sky Global bash per sudo ausführbar zu machen ist ein Rezept für Desaster. So kann jeder, der Kontrolle über den Admin hat, jedes x-beliebige Skript als root ausführen! Das hebelt das non-root-Konzept von ioBroker komplett aus!

                          Besser:

                          1. Skript ausführbar machen: sudo chmod +x /opt/iobroker/scripte/backupscript.sh
                          2. Sicherstellen, dass das Skript mit #!/bin/bash beginnt
                          3. In der sudoers genau das Skript /opt/iobroker/scripte/backupscript.sh erlauben.
                          liv-in-sky 2 Replies Last reply Reply Quote 0
                          • liv-in-sky
                            liv-in-sky @AlCalzone last edited by

                            @AlCalzone guter tipp - muss ich mir merken

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

                              @AlCalzone habe im orginal post zu deiner lösung gepostet

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

                                @liv-in-sky Solltest du ggf. noch testen, nicht dass ich was vergessen habe 🙂

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

                                  @AlCalzone müßte funktionieren - eigentlich steht deine lösung in meinem beispiel 😞

                                  das ist ein eigenes script

                                  Image 7.png

                                  AlCalzone 1 Reply Last reply Reply Quote 1
                                  • AlCalzone
                                    AlCalzone Developer @liv-in-sky last edited by

                                    @liv-in-sky Du hast da noch ein Leerzeichen zu viel in (ALL ) - Tippfehler in sudoers-Dateien können gefährlich sein.

                                    1 Reply Last reply Reply Quote 1
                                    • B
                                      bishop last edited by bishop

                                      Ich habe bei mir 2 Wlans angelegt, mein eigentliches und ein Gast WLAN. Jetzt möchte ich aber das Gastwlan nur bei Bedarf anschalten können. Das kann man ja mit dem DP, wenn ich es ausschalte gehen beide wlans erst mal aus und mein eigentliches kommt dann wieder und alle Geräte müssen sich neu verbinden. Wie kann ich das einstellen das mein Hauptwlan nicht mit abgeschaltet wird?

                                      Feuersturm 1 Reply Last reply Reply Quote 0
                                      • Feuersturm
                                        Feuersturm @bishop last edited by Feuersturm

                                        @bishop Das ist wohl so gewollt. Es gibt wohl keine Möglichkeit das eine WLAN abschalten ohne das auch die anderen kurz gekappt werden.
                                        Siehe auch https://forum.iobroker.net/topic/32873/major-update-unifi-adapter-v0-5-0/458

                                        B Samson71 2 Replies Last reply Reply Quote 0
                                        • B
                                          bishop @Feuersturm last edited by

                                          @Feuersturm
                                          Hmm nicht gut.
                                          Danke für deine Antwort

                                          1 Reply Last reply Reply Quote 0
                                          • Samson71
                                            Samson71 Global Moderator @Feuersturm last edited by

                                            Liegt daran, dass die AP's in dem Moment neu provisioniert werden. Dabei kommt es dann zu einem kurzen "Abriss".

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            547
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            unifi
                                            54
                                            510
                                            80432
                                            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