Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Node-Red
    5. Shelly addon über Node Red

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Shelly addon über Node Red

    This topic has been deleted. Only users with topic management privileges can see it.
    • mickym
      mickym Most Active @Dirk 4 last edited by mickym

      @dirk-4 Ok wie gesagt die Ausgaben kopieren und in CodeTags hier rein.

      Gut dann wechselst Du in das Verzeichnis.

      cd conf.d
      

      und erstellst dort eine Konfigurationsdatei:

      sudo nano local.conf
      

      in diese Datei trägst Du dann mal folgende beiden Zeilen ein:

      listener 1884
      allow_anonymous true
      
      

      Eine Leerzeile als letztes machen.

      Dann abspeichern.
      Später kannst du Authentifizierung noch dazu konfigurieren. Nun machen wir alles einfach.

      D 1 Reply Last reply Reply Quote 0
      • D
        Dirk 4 @mickym last edited by

        @mickym OK Hab ich

        mickym 1 Reply Last reply Reply Quote 0
        • mickym
          mickym Most Active @Dirk 4 last edited by

          Gut dann startest Du den mosquitto neu und lässt Dir dann den Status ausgeben:

          sudo systemctl restart mosquitto
          

          dann status überprüfen:

          systemctl status mosquitto
          

          Die Ausgabe dann wieder in CodeTags hier posten.

          D 1 Reply Last reply Reply Quote 0
          • D
            Dirk 4 @mickym last edited by

            @mickym said in Shelly addon über Node Red:

            systemctl status mosquitto

            da9e8923-b913-4860-8179-086e5b911b24-grafik.png

            mickym 1 Reply Last reply Reply Quote 0
            • mickym
              mickym Most Active @Dirk 4 last edited by

              @dirk-4 dann nochmal

              sudo systemctl start mosquitto
              

              dann nochmal status

              systemctl status mosquitto
              
              D 1 Reply Last reply Reply Quote 0
              • D
                Dirk 4 @mickym last edited by

                @mickym said in Shelly addon über Node Red:

                systemctl status mosquitto

                46f3c83d-3f56-45b9-bdfb-e67774f1fe90-grafik.png

                D mickym 2 Replies Last reply Reply Quote 0
                • D
                  Dirk 4 @Dirk 4 last edited by

                  @dirk-4 Hat der die config nicht gespeichert?

                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • mickym
                    mickym Most Active @Dirk 4 last edited by mickym

                    @dirk-4 dann bitte noch mal Deine Konfiguration posten:

                    Dann schau mal - dort wo du bist:

                    ls -la
                    

                    und dann Ausgabe von

                    cat local.conf
                    

                    in Code-Tags posten.

                    1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Dirk 4 last edited by Thomas Braun

                      @dirk-4

                      Mach es bitte deinen Helfern leichter dir zu helfen und verwende CodeTags für Texte aus dem Terminal und keine Screenshots.
                      https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        Dirk 4 @Thomas Braun last edited by

                        @thomas-braun ```
                        58302569-9ea4-4800-be4a-bacf60655fc2-grafik.png code_text

                        Thomas Braun mickym 2 Replies Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Dirk 4 last edited by

                          @dirk-4

                          Text kopieren, keine Screenshots.

                          1 Reply Last reply Reply Quote 0
                          • mickym
                            mickym Most Active @Dirk 4 last edited by

                            @dirk-4 Du musst alles mit der Maus markieren und Eingabetaste drücken (unter Windows) - dann sollte alles in der Zwischenablage sein.

                            das dann in code-Tags setzen:

                            Code-Tags.gif

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              Dirk 4 @mickym last edited by

                              @mickym ```
                              code_text

                              -rw-r--r-- 1 root root  142  9. Jun 2021  README
                              iobroker@iobroker:/etc/mosquitto/conf.d $ cat local.conf
                              listener 1884
                              allow_anonymous true
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              
                              iobroker@iobroker:/etc/mosquitto/conf.d $
                              
                              ```
                              mickym 1 Reply Last reply Reply Quote 0
                              • mickym
                                mickym Most Active @Dirk 4 last edited by mickym

                                @dirk-4 Das it den codetags schaut nun besser aus. Kannst du die Datei nochmal mit nano öffnen und schauen, dass Du nach dem allow_anonymous true noch ein Zeilenumbruch existiert.

                                Dann bitte das log anschauen:

                                sudo cat /var/log/mosquitto/mosquitto.log
                                
                                D 1 Reply Last reply Reply Quote 0
                                • D
                                  Dirk 4 @mickym last edited by

                                  @mickym ```
                                  code_text

                                  iobroker@iobroker:/etc/mosquitto/conf.d $ sudo systemctl start mosquitto
                                  iobroker@iobroker:/etc/mosquitto/conf.d $ systemctl status mosquitto
                                  ● mosquitto.service - Mosquitto MQTT Broker
                                       Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
                                       Active: active (running) since Mon 2023-04-17 23:48:05 CEST; 10s ago
                                         Docs: man:mosquitto.conf(5)
                                               man:mosquitto(8)
                                      Process: 2650140 ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto (code=exited, status=0/SUCCESS)
                                      Process: 2650141 ExecStartPre=/bin/chown mosquitto /var/log/mosquitto (code=exited, status=0/SUCCESS)
                                      Process: 2650142 ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto (code=exited, status=0/SUCCESS)
                                      Process: 2650143 ExecStartPre=/bin/chown mosquitto /run/mosquitto (code=exited, status=0/SUCCESS)
                                     Main PID: 2650144 (mosquitto)
                                        Tasks: 1 (limit: 4164)
                                          CPU: 42ms
                                       CGroup: /system.slice/mosquitto.service
                                               └─2650144 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
                                  
                                  Apr 17 23:48:05 iobroker systemd[1]: Starting Mosquitto MQTT Broker...
                                  Apr 17 23:48:05 iobroker mosquitto[2650144]: 1681768085: Loading config file /etc/mosquitto/conf.d/local.conf
                                  Apr 17 23:48:05 iobroker systemd[1]: Started Mosquitto MQTT Broker.
                                  iobroker@iobroker:/etc/mosquitto/conf.d $
                                  D mickym 2 Replies Last reply Reply Quote 0
                                  • D
                                    Dirk 4 @Dirk 4 last edited by

                                    @dirk-4 jetzt aber

                                    1 Reply Last reply Reply Quote 0
                                    • mickym
                                      mickym Most Active @Dirk 4 last edited by

                                      @dirk-4 na das schaut doch gut aus. 🙂 - Was

                                      @dirk-4 sagte in Shelly addon über Node Red:

                                      @dirk-4 jetzt aber

                                      Na das schaut doch gut aus, was hast Du geändert?

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        Dirk 4 @mickym last edited by

                                        @mickym nur nochmal mit der leerzeile

                                        D mickym 2 Replies Last reply Reply Quote 0
                                        • D
                                          Dirk 4 @Dirk 4 last edited by

                                          @dirk-4 ```
                                          code_text

                                          iobroker@iobroker:/etc/mosquitto/conf.d $ sudo cat /var/log/mosquitto/mosquitto.log
                                          1681765635: mosquitto version 2.0.11 starting
                                          1681765635: Config loaded from /etc/mosquitto/mosquitto.conf.
                                          1681765635: Starting in local only mode. Connections will only be possible from clients running on this machine.
                                          1681765635: Create a configuration file which defines a listener to allow remote access.
                                          1681765635: For more details see https://mosquitto.org/documentation/authentication-methods/
                                          1681765635: Opening ipv4 listen socket on port 1883.
                                          1681765635: Error: Address already in use
                                          1681765635: Opening ipv6 listen socket on port 1883.
                                          1681765635: mosquitto version 2.0.11 running
                                          1681766971: mosquitto version 2.0.11 terminating
                                          1681766971: Saving in-memory database to /var/lib/mosquitto//mosquitto.db.
                                          1681768085: mosquitto version 2.0.11 starting
                                          1681768085: Config loaded from /etc/mosquitto/mosquitto.conf.
                                          1681768085: Opening ipv4 listen socket on port 1884.
                                          1681768085: Opening ipv6 listen socket on port 1884.
                                          1681768085: mosquitto version 2.0.11 running
                                          iobroker@iobroker:/etc/mosquitto/conf.d $
                                          1 Reply Last reply Reply Quote 0
                                          • mickym
                                            mickym Most Active @Dirk 4 last edited by

                                            @dirk-4 sagte in Shelly addon über Node Red:

                                            @mickym nur nochmal mit der leerzeile

                                            Na hatte ich die richtige Vermutung. 😉

                                            Das Log passt jetzt auch. Nun konfigurieren wir mosquitto noch dass es automatisch beim Systemstart mit startet:

                                            sudo systemctl enable mosquitto
                                            
                                            D 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            950
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            3
                                            97
                                            3978
                                            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