Home Assistant Community Add-on: AirSonos

Today I bought my first Sonos device which I already start to love. When browsing through the add-on store I found this add-on which will make my Sonos experience even better!

However, I get this “UPnP init failed -203” error when starting the add-on:

    -----------------------------------------------------------
 Hass.io Add-on: AirSonos
 AirPlay capabilities for your Sonos (and UPnP) devices.
-----------------------------------------------------------
 Add-on version: 2.0.0
 You are running the latest version of this add-on.
 System: HassOS 2.11  (amd64 / qemux86-64)
 Home Assistant version: 0.91.3
 Supervisor version: 159
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in e.g, GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 50-airsonos.sh: executing... 
[cont-init.d] 50-airsonos.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[20:03:33] INFO: Starting the AirSonos server...
[20:03:33.342744] main:1224 Starting airupnp version: v0.2.2.4 (Dec 16 2018 @ 16:04:42)
[20:03:33.346645] Start:972 UPnP init failed: -203
[20:03:33.346897] main:1265 Cannot start
[20:03:34] INFO: Starting the AirSonos server...
[20:03:34.279069] main:1224 Starting airupnp version: v0.2.2.4 (Dec 16 2018 @ 16:04:42)
[20:03:34.280379] Start:972 UPnP init failed: -203
[20:03:34.280626] main:1265 Cannot start

I’m running HassOS inside a VM on ESXi, is that something that might have to do with it?

P.S. I’ve just tested the add-on on my Pi3 test-unit and on that device the add-on works flawless :slight_smile:

This means port 1900 is already in use by something else.

Thanks for the quick reply! After some Googling it turned out to be the ‘Discoverable on L2’-service in the UniFi controller. The UniFi controller isn’t running on the testmachine.

Thanks for the pointing me in the right direction!

1 Like

:tada: Release v2.0.1

Full Changelog

Changed

  • :arrow_up: Upgrades base image to v3.1.0
  • :fire: Removes default config options
  • :arrow_up: Upgrades AirConnect to 0.2.8.0
  • :hammer: Renamed init scripts

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

Hi guys,

After a recent update I can no longer access my Sonos devices via AirSonos. I have tried restarting router, i have restarted the Sonos devices and uninstalled and reinstalled component but still can’t get it to work. My log looks like this:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 

-----------------------------------------------------------
 Hass.io Add-on: AirSonos
 AirPlay capabilities for your Sonos (and UPnP) devices.
-----------------------------------------------------------
 Add-on version: 2.0.1
 You are running the latest version of this add-on.
 System: Raspbian GNU/Linux 9 (stretch)  (armv7 / raspberrypi3)
 Home Assistant version: 0.92.0
 Supervisor version: 162
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] airsonos.sh: executing... 
[cont-init.d] airsonos.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[10:33:46] INFO: Starting the AirSonos server...
[10:33:46.789876] main:1280 Starting airupnp version: v0.2.8.0 (Mar 17 2019 @ 17:47:58)
[10:33:46.791390] Start:1016 Binding to 192.168.0.73:49152
[10:33:46.998803] AddMRDevice:920 [0x95fa4]: adding renderer (Landing)
[10:33:47.005224] MasterHandler:615 [0x95fa4]: subscribe success
[10:33:47.020982] ProcessEvent:414 [0x95fa4]: UPnP Volume local change 100
[10:33:47.247526] AddMRDevice:920 [0x97ed0]: adding renderer (Kitchen)
[10:33:47.253374] MasterHandler:615 [0x97ed0]: subscribe success
[10:33:47.268101] ProcessEvent:414 [0x97ed0]: UPnP Volume local change 40
[11:08:47.441741] CheckAndLock:220 device is NULL
[11:08:47.495146] CheckAndLock:220 device is NULL
[11:08:47.545553] CheckAndLock:220 device is NULL
[11:08:47.598144] CheckAndLock:220 device is NULL
[11:08:47.647582] CheckAndLock:220 device is NULL
[11:08:47.702024] CheckAndLock:220 device is NULL
[11:08:47.776263] CheckAndLock:220 device is NULL
[11:08:47.826847] CheckAndLock:220 device is NULL
[11:08:47.877495] CheckAndLock:220 device is NULL
[11:08:47.928232] CheckAndLock:220 device is NULL
[11:08:47.982762] CheckAndLock:220 device is NULL
[11:08:48.036787] CheckAndLock:220 device is NULL
[11:08:48.115941] CheckAndLock:220 device is NULL

:tada: Release v2.0.2

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades add-on base image to 3.1.1
  • :arrow_up: Upgrades AirConnect to 0.2.9.0

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

:tada: Release v2.1.0

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :pencil2: Maintaince -> Maintenance
  • :arrow_up: Upgrades add-on base image to v3.1.3
  • :sparkles: Adds FUNDING.yml

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

:tada: Release v2.1.1

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades AirConnect to 0.2.12.0
  • :arrow_up: Upgrades add-on base image to v3.2.0

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

Just to say I installed this last night and it works great.

Is there any way to link this add on to the spotify playlist type work being done so that Sonos speakers can be seen from the Spotify API as currently Sonos is not supported?

Just a thought?

:tada: Release v2.2.0

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades AirConnect to 0.2.12.0
  • :arrow_up: Upgrades add-on base image to v3.2.0

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

:tada: Release v2.2.1

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades add-on base image to v4.0.1

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

:tada: Release v2.2.2

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :fireworks: Updates maintenance/license year to 2020
  • :pencil2: Funding adjustments
  • :pencil2: Fixes some spelling and grammar
  • :arrow_up: Upgrades add-on base image to v4.0.3
  • :books: Adjust add-on installation instructions

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

:tada: Release v2.3.0

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :hammer: Update add-on config with new password & list features
  • :books: Update add-on documentation to use new YAML configuration format
  • :hammer: Re-branding
  • :arrow_up: Upgrades add-on base image to v5.0.1
  • :hammer: Update community forum links
  • :arrow_up: Upgrades AirConnect to 0.2.24.1

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

I saw this mention on github that it’s possible to exclude speakers:

Speakers can now be excluded in v0.6.0, using custom configuration file tweaking.

However, I don’t see a way to do this in the documentation. I look at the airsonos.xml and tried changing <enabled>1</enabled> to <enabled>0</enabled> (from 1 to 0) but the change doesn’t do anything and my changes are reverted. What is the right way to do this?

Dear,
I am trying to use this add-on to get my Play:1’s included.
However, I managed to get the plugin started, but since then, I only see endless log messages

[11:32:00.000511] UpdateThread:711 Presence checking
[11:32:01.000309] UpdateThread:711 Presence checking
[11:32:20.000246] UpdateThread:711 Presence checking
[11:32:21.000221] UpdateThread:711 Presence checking
[11:32:40.000219] UpdateThread:711 Presence checking
[11:32:41.000212] UpdateThread:711 Presence checking
[11:33:00.000237] UpdateThread:711 Presence checking
[11:33:01.000208] UpdateThread:711 Presence checking
[11:33:20.000222] UpdateThread:711 Presence checking
[11:33:21.000225] UpdateThread:711 Presence checking
[11:33:40.000223] UpdateThread:711 Presence checking
[11:33:41.000185] UpdateThread:711 Presence checking
[11:34:00.000251] UpdateThread:711 Presence checking
[11:34:01.000253] UpdateThread:711 Presence checking
[11:34:20.000422] UpdateThread:711 Presence checking
[11:34:21.003794] UpdateThread:711 Presence checking
[11:34:40.000249] UpdateThread:711 Presence checking
[11:34:41.000211] UpdateThread:711 Presence checking

This happens, when I leave the address unpopulated. When I enter the respective IP address of the Sonos group, the add-on doesn’t even start.

[11:35:26.202872] main:1374 Starting airupnp version: v0.2.25.0 (May  3 2020 @ 17:41:50)
[11:35:26.203015] main:1382 no config file, using defaults
[11:35:26.204801] Start:1089 UPnP init failed: -208
[11:35:26.204831] main:1415 Cannot start

I saw that it might be a possibility to cancel the power supply of the speaker for a minute. This does not work for me.

Might it be realted that my Sonos speakers are in another WiFi segment? (hass is in 192.168.1.XXX and the speakers are in 192.168.20.XXX). If so, how can I get the addon to check the other segment (192.168.20.XXX) as well?

Thank you for your suggestions,
best regards,

Connor

Hi @Connor, did you get this working?
I posted this issue once on github but it was classified as not being an issue of airsonos, just system related.
My system has two network adapters, one being the vlan where all the robots live.
At the Moment I try to move to a more simple setup with one nic in the network where all the smarties are.
The internet isn‘t helping with error 208
Best, Bernd

Hi All,

My Sonos media players are in a different network. Is it possible to pre specify the Sonos media players in the xml file? The hassio Raspberry PI has connectivity to the Sonos media players since the Sonos platform is working perfectly!

Thanks!

Great add-on btw Frenck!

Did you ever get the exclusions to work? I can’t seem to find any documentation on it.

I’m trying to do the same thing right now, have a mix of old sonos and new and I’d rather not have the speakers with native airplay show up twice.

yes! start teh addon and let it run to discover all your speakers (shouldn’t take more than a few mins at most).

Then stop the add-on and use the file editor to edit the airsonos.xml file. Change the enabled node from 1 to 0 on any speaker you want to disable.

Then restart the addon.

1 Like

Great! Thanks!