Comments (14)
We got you covered, the metadata helper has specific support for spotify URLs.
Just use only the spotify uri spotify:track:3b9xTm2eiaCRTGqUEWuzxc
the Sonos library will guess the rest.
Can you verify? If you found a place in this library where the Spotify uri isn’t supported that probably has to be changed to call the metadata helper before sending to the Sonos lib.
from sonos2mqtt.
Doesn't seem to work. When I send
spotify:track:3b9xTm2eiaCRTGqUEWuzxc
...to 'sonos/set/sonos-sovrum/queue' I get " Error executing queue for Sonos Sovrum {}" in the log.
from sonos2mqtt.
Same result with setavtransporturi
from sonos2mqtt.
I've got an other, "WOMP".....
How are you sending them to the device? Could you show the mqtt message you're sending? I'll try to replicate the issue. I'm always using mqtt fx to test this stuff out.
from sonos2mqtt.
Ha! I didn't notice until now that we used the same track for testing! :)
from sonos2mqtt.
I think you first have to switch it to an existing queue before you can add anything to the queue. To switch to the queue you send a message to sonos/set/sonos-vardagsrum/adv-command
{
"cmd":"SwitchToQueue"
}
This might only work if there is a queue, so I suggest to queue one song in the sonos app. Then there is a queue to which you can add Spotify tracks.
from sonos2mqtt.
I tried the adv-command you suggested, but got back "Error executing adv-command for Sonos Vardagsrum {}"
from sonos2mqtt.
And what happens it you switch to an empty queue from the Sonos app? #
from sonos2mqtt.
Same result.
from sonos2mqtt.
I cannot reproduce this issue, need more information.
Node version:
sonos2mqtt version:
Sonos software version (see app):
OS:
from sonos2mqtt.
I'm running the latest published docker image on Ubuntu 19.04 (fully patched)
Sonos software version: 10.6.2, build 54273060
Mosquitto 1.6.8 (eclipse-mosquitto:latest).
If I cutnpaste a full URI (x-sonos-spotify:spotify:track:2UKMqNCVsHrAYzBZMA0rxL?sid=12&flags=8224&sn=7) and publish that to either 'queue' or to 'setavtransporturi' it works in both cases.
If i do the same thing with the Spotify URI (spotify:track:2UKMqNCVsHrAYzBZMA0rxL) I get
Error executing setavtransporturi for Sonos Vardagsrum {}
Error executing queue for Sonos Vardagsrum {}
from sonos2mqtt.
Can you run the latest version with the following command DEBUG=sonos:* sonos2mqtt ....
this should enable the debug output.
from sonos2mqtt.
I published spotify:track:3b9xTm2eiaCRTGqUEWuzxc to sonos/set/sonos-vardagsrum/queue:
2020-03-07T08:54:44.147Z sonos:metadata Guessing metadata for spotify:track:3b9xTm2eiaCRTGqUEWuzxc
2020-03-07T08:54:44.149Z sonos:service:avtransport:192.168.240.5 AddURIToQueue({ InstanceID: 0, EnqueuedURI: 'x-sonos-spotify:spotify:track:3b9xTm2eiaCRTGqUEWuzxc?sid=9&flags=8224&sn=7', EnqueuedURIMetaData: { Album: undefined, Artist: undefined, AlbumArtUri: undefined, Title: '', UpnpClass: 'object.item.audioItem.musicTrack', Duration: undefined, ItemId: '00032020spotify%3atrack%3a3b9xTm2eiaCRTGqUEWuzxc', ParentId: undefined, TrackUri: 'x-sonos-spotify:spotify%3atrack%3a3b9xTm2eiaCRTGqUEWuzxc?sid=9&flags=8224&sn=7', ProtocolInfo: undefined, CdUdn: 'SA_RINCON2311_X_#Svc2311-0-Token' }, DesiredFirstTrackNumberEnqueued: 0, EnqueueAsNext: true })
2020-03-07T08:54:44.159Z sonos:service:avtransport:192.168.240.5 Sonos error on AddURIToQueue { faultcode: 's:Client', faultstring: 'UPnPError', detail: { UPnPError: { errorCode: 800 } } }
2020-03-07 09:54:44.160 <error> Error executing queue for Sonos Vardagsrum {"Action":"AddURIToQueue","FaultCode":"s:Client","Fault":"UPnPError","UpnpErrorCode":800,"name":"SonosError"}
from sonos2mqtt.
Issue cannot be reproduced and might be fixed by the new version of node-sonos-ts anyway.
from sonos2mqtt.
Related Issues (20)
- No status changes HOT 3
- Problem with docker image HOT 6
- Sonos Favorites Question HOT 9
- [Feature] Notification before TTS HOT 5
- [Feature] Support for audio formats on HDMI input HOT 4
- Don't set position to `NOT_IMPLEMENTED` HOT 1
- Not all Sonos players are available in MQTT HOT 2
- Configuration in Synology Docker Container HOT 2
- Docker container is very long to stop HOT 2
- bug: SONOS2MQTT_FRIENDLYNAMES env var doesn't work HOT 3
- Randomize AddToQueue HOT 1
- Frage: Ist es möglich den amazon:effect zu nutzen? HOT 2
- Support for certificates HOT 1
- favlist Readig empty after getting Sonos Favorites HOT 1
- Add loudness state to player state HOT 1
- Sonos2Mqtt Unraid validate distrinct = true HOT 4
- sonos2mqtt stops after reboot HOT 2
- notify-function does not work properly
- How to start playing a Sonos Radio, might be specific issue with "VRT Radio 1" HOT 2
- Group volume and balance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonos2mqtt.