Skip to content

Discovering finds all rooms twice #913

@gjuecat

Description

@gjuecat

Hi,

after starting the container and discovering my Sonos S2 System all rooms are twice found:

docker@s36-debian:~/p_Sonos$ curl "http://localhost:5005/zones" | grep -o '"roomName":"[^"]*"' | sort
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11659 100 11659 0 0 6046k 0 --:--:-- --:--:-- --:--:-- 11.1M
"roomName":"Bad"
"roomName":"Bad"
"roomName":"Büro"
"roomName":"Büro"
"roomName":"Daniel"
"roomName":"Daniel"
"roomName":"David"
"roomName":"David"
"roomName":"Küche"
"roomName":"Küche"
Because I have a S1 and S2 system, it would be fine for me, if I could use both systems within one container. Is this possible or do I have to generate a separate container with different household IDs?

Tried to play a mp3 from clips folder:
http://10.10.36.6:5005/Büro/clips/test_node.mp3

Docker Logs:

docker@s36-debian:~/p_Sonos$ docker logs sonos -f --tail 10
at initPresets (/app/lib/presets-loader.js:70:3)
at Object. (/app/lib/presets-loader.js:76:1)
at Module._compile (node:internal/modules/cjs/loader:1706:14)
at Object..js (node:internal/modules/cjs/loader:1839:10)
at Module.load (node:internal/modules/cjs/loader:1441:32)
2026-01-25T20:00:41.949Z WARN could not parse preset file example.json, please make sure syntax conforms with JSON5.
2026-01-25T20:00:41.949Z INFO Presets loaded: {}
2026-01-25T20:00:42.357Z INFO http server listening on 0.0.0.0 port 5005
2026-01-25T21:24:01.754Z ERROR
{ error: "action 'clips' not found" }
Does also not work with "Bad" - so no problem with "ü".

Any ideas?
best regards

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