MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Sonos Module

    Scheduled Pinned Locked Moved Troubleshooting
    18 Posts 7 Posters 11.0k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Atreo
      last edited by

      Hi Guys.

      Hope that some of you can help me.
      I have problems with my sonos module,
      On the mirror it`s only saying loading music.
      On my pi i get
      Sonos Update
      Failure Error: Connect Econnrefused 192.168.0.79

      I can access 192.168.0.79:5005 and change song and change volym and so on.
      Any ide why i can’t get any information on my mirror ???

      Kind regards

      Jonas

      1 Reply Last reply Reply Quote 0
      • SnilleS Offline
        Snille Module Developer
        last edited by

        Hi @Atreo do you have the http-sonos-api installed on your mirror or on another device?
        I had problems before I ran on a raspberry Pi when I ran the mirror in Server mode. Don’t know why though. :)

        If you cant find it, make it and share it!
        Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

        1 Reply Last reply Reply Quote 0
        • A Offline
          Atreo
          last edited by

          Hi @Snille Thx for the reply.

          Yes i have sonos-http-api installed on my mirror,
          This is making me crazy, i like the ide to have the information on the mirror.
          Banging my head against the wall…

          1 Reply Last reply Reply Quote 0
          • W Offline
            Wedee
            last edited by

            I have the Sonos mod running on my Mirror. I get the same thing when I run more than one speaker as a group. If I run each speaker as separate it will load each speaker fine. I haven’t bothered looking into it much as I rarely use the speakers in group mode…

            1 Reply Last reply Reply Quote 0
            • A Offline
              Atreo
              last edited by

              Thx for the info @Wedee, I only have one and i am stuck… = /
              Any one have any tips ?

              1 Reply Last reply Reply Quote 0
              • SnilleS Offline
                Snille Module Developer
                last edited by

                @Atreo Do you get the “zones” up if you do: http://192.168.0.79:5005/zones ?
                You should get a list of all the zones and stuff. :)

                If you cant find it, make it and share it!
                Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Atreo
                  last edited by

                  @Snille Yes i can my kitchen zone and i hole lot information what the sonos is playing.

                  SnilleS 2 Replies Last reply Reply Quote 0
                  • SnilleS Offline
                    Snille Module Developer @Atreo
                    last edited by

                    @Atreo Hmm… Then it should be all good. Can you post your “MMM-Sonos” part of the config?

                    If you cant find it, make it and share it!
                    Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                    1 Reply Last reply Reply Quote 0
                    • SnilleS Offline
                      Snille Module Developer @Atreo
                      last edited by Snille

                      @Atreo This is my “MMM-Sonos” config part…

                      		{
                      			module: "MMM-Sonos",
                      			header: "Spelas på SONOS",
                      			position: "top_center",
                      			classes: "",
                      			config: {
                      				// The API is not om my RPi. It's on another server...
                      				apiBase: "http://ip-of-the-api",
                      				apiPort: 5005,
                      				showAlbumArt: true,
                      				showRoomName: true,
                      				showPausedZone: false,
                      				showStoppedRoom: false,
                      				preRoomText: 'Rum: ',
                      				preArtistText: 'Artist: ',
                      				preTrackText: 'Spår: ',
                      				preTypeText: 'Källa: ',
                      				animationSpeed: 1000,
                      				apiEndpoint: "zones",
                      				exclude: ["Living-Room-SUB"]
                      			}
                      		},
                      

                      If you cant find it, make it and share it!
                      Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        Atreo @Snille
                        last edited by

                        @Snille Thx. I will check your setting vs my.

                        Trevligt att du har det på svenska = )
                        Tack återkommer strax

                        SnilleS 1 Reply Last reply Reply Quote 0
                        • SnilleS Offline
                          Snille Module Developer @Atreo
                          last edited by

                          @Atreo Hehe, yes. But let’s keep it to English anyway. :)
                          You are using my “fork” of the “MMM-Sonos” right, if not some of the config-stuff will not work. :)
                          This is my fork: https://github.com/Snille/MMM-Sonos

                          If you cant find it, make it and share it!
                          Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            Dicous
                            last edited by Dicous

                            Can someone please share a working config? Please ^^

                            My following does not work:

                            module: 'MMM-Sonos',
                            	header: "Playing on SONOS",
                            	position: "top_left", 
                            	classes: "default everyone",
                            	config: {
                            				apiBase: "http://localhost",
                            				apiPort: 5005,
                            				showAlbumArt: true,
                            				showRoomName: true,
                            				showPausedZone: false,
                            				showStoppedRoom: false,
                            				preRoomText: 'Raum: ',
                            				preArtistText: 'Artist: ',
                            				preTrackText: 'Lied: ',
                            				preTypeText: 'Quelle: ',
                            				animationSpeed: 1000,
                            				apiEndpoint: "zones",
                            				exclude: []
                            				}
                            
                            SnilleS 1 Reply Last reply Reply Quote 0
                            • SnilleS Offline
                              Snille Module Developer @Dicous
                              last edited by

                              @Dicous What happens, what does not work?

                              If you cant find it, make it and share it!
                              Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                Dicous
                                last edited by

                                There is always the “Loading music …”

                                SnilleS 1 Reply Last reply Reply Quote 0
                                • SnilleS Offline
                                  Snille Module Developer @Dicous
                                  last edited by

                                  @Dicous Do you get the “zones” when you check the sonos-web-api? If you have it on the mirror: http://the-ip-to-your-mirror:5005/zones
                                  You should get a list of all the zones and lot’s of data from the sonos-web-api.

                                  If you cant find it, make it and share it!
                                  Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                                  luisestradaL 1 Reply Last reply Reply Quote 0
                                  • thymonT Offline
                                    thymon
                                    last edited by

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • luisestradaL Offline
                                      luisestrada @Snille
                                      last edited by

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • Thorn2910T Offline
                                        Thorn2910
                                        last edited by

                                        I had exactly the same issue!

                                        MMM-Sonos Version v.0.0.1 released beginning of 2024

                                        Chnged in MMM-Sonos.js th following part
                                        from

                                        apiBase: 'http://localhost',
                                        

                                        to

                                        apiBase: 'http://192.168.1.22',
                                        

                                        Obviously change the IP addess accordingly

                                        For additional info my MMM-Sonos part config.js in /MagicMirror/config/config.js

                                         {
                                                                module: 'MMM-Sonos',
                                                                //header: "Sonos",
                                                                position: 'top_center', // you may choose any location
                                                                config: {
                                                                                        showStoppedRoom: false,
                                                                                        albumArtLocation: "left",
                                                                        }
                                                        },
                                        

                                        then it worked! With http://localhost I always got

                                        [ERROR] Failure: Error: connect ECONNREFUSED ::1:5005
                                        

                                        in the logs

                                        1 Reply Last reply Reply Quote 0

                                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                        With your input, this post could be even better 💗

                                        Register Login
                                        • 1 / 1
                                        • First post
                                          Last post
                                        Enjoying MagicMirror? Please consider a donation!
                                        MagicMirror created by Michael Teeuw.
                                        Forum managed by Sam, technical setup by Karsten.
                                        This forum is using NodeBB as its core | Contributors
                                        Contact | Privacy Policy