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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    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 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
                              • D
                                Dirk 4 @mickym last edited by

                                @mickym OK

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

                                  @dirk-4 Gut dann installieren wir nun den mqtt-Client/Server Adapter im iobroker.

                                  306a7b41-00a1-4ca7-a88a-c86d45d39cc5-image.png

                                  Du installierst nun diesen Adapter im iobroker.

                                  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

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

                                      @mickym OK hab ich

                                      In der Konfiguration bei Verbindung

                                      bdbf4df8-7692-4070-889f-9b006672480f-image.png

                                      gibst Du Port 1884 ein.

                                      Und dann sollte die Verbindung zum Server klappen. Benutzer und Passwort hast Du keines.

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

                                        @mickym 9207e65a-5334-4976-9a08-db37e233d116-grafik.png

                                        Ja verbindung ist da

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

                                          Bei den mqtt Einstellungen schaust Du bitte das alle Haken weg sind:

                                          7e90aac9-1a53-4e22-be92-9cb6055a6ecc-image.png

                                          Also Subscribe Patter steht ein: # (Hash)

                                          Bei den eigenen States steht bei dir natürlich mqtt.0.*

                                          Eine Client ID - kannst Du eingeben, musst Du aber nicht.

                                          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 9207e65a-5334-4976-9a08-db37e233d116-grafik.png

                                            Ja verbindung ist da

                                            Sehr gut. 🙂 - Du bist Klasse. 🙂 👍 👍 👍

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            810
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

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