Skip to content

Unable to detect Sonos One speaker #466

@michaelelleby

Description

@michaelelleby

I am using the code at Git commit 1d14cdfdc87bab288c889b073ac2e222e9a8309d

> pip3 install soco
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: soco in /home/michael/.local/lib/python3.10/site-packages (0.30.4)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from soco) (2.25.1)
Requirement already satisfied: xmltodict in /home/michael/.local/lib/python3.10/site-packages (from soco) (0.13.0)
Requirement already satisfied: ifaddr in /usr/lib/python3/dist-packages (from soco) (0.1.7)
Requirement already satisfied: appdirs in /home/michael/.local/lib/python3.10/site-packages (from soco) (1.4.4)
Requirement already satisfied: lxml in /home/michael/.local/lib/python3.10/site-packages (from soco) (5.2.2)

> bin/mkchromecast -t
:::config::: WARNING: USING BETA CONFIG PATH: /home/michael/.config/mkchromecast/mkchromecast_beta.cfg
:::config::: Creating missing section 'settings'
:::config::: Missing keys _not_ being saved for read-only config
Mkchromecast v0.3.9
:::config::: WARNING: USING BETA CONFIG PATH: /home/michael/.config/mkchromecast/mkchromecast_beta.cfg
:::config::: Creating missing section 'settings'
:::config::: Missing keys _not_ being saved for read-only config
:::config::: WARNING: USING BETA CONFIG PATH: /home/michael/.config/mkchromecast/mkchromecast_beta.cfg
:::config::: Creating missing section 'settings'
:::config::: Missing keys _not_ being saved for read-only config
Selected backend: BackendInfo(name='parec', path='/usr/bin/parec')
Selected audio codec: mp3
Using bitrate: 192
Using sample rate: 44100Hz
:::config::: WARNING: USING BETA CONFIG PATH: /home/michael/.config/mkchromecast/mkchromecast_beta.cfg
:::config::: Creating missing section 'settings'
:::config::: Missing keys _not_ being saved for read-only config
:::config::: WARNING: USING BETA CONFIG PATH: /home/michael/.config/mkchromecast/mkchromecast_beta.cfg
:::config::: Creating missing section 'settings'
:::config::: Missing keys _not_ being saved for read-only config
:::config::: WARNING: USING BETA CONFIG PATH: /home/michael/.config/mkchromecast/mkchromecast_beta.cfg
:::config::: Creating missing section 'settings'
:::config::: Missing keys _not_ being saved for read-only config
 
List of Devices Available in Network:
-------------------------------------

Index   Type    Friendly Name 
=====   =====   ============= 
0 	Gcast 	Soveværelse
1 	Gcast 	Legestue Google TV
2 	Gcast 	Stue TV
available_devices received
Available Media Streaming Devices [AvailableDevice(index=0, name='Soveværelse', type='Gcast'), AvailableDevice(index=1, name='Legestue Google TV', type='Gcast'), AvailableDevice(index=2, name='Stue TV', type='Gcast')]

I have a Sonos One speaker running at 192.168.1.122 and it is reachable using https://github.com/pascalopitz/unoffical-sonos-controller-for-linux which is to say that I can reach it from my Linux pc. As seen in the log above mkchromecast does not detect it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions