originallyus / node-red-contrib-better-sonos

NodeRed node for controlling Sonos Players
MIT License
8 stars 9 forks source link

Wrong results of SONOS Status #12

Closed MNatzke closed 6 years ago

MNatzke commented 6 years ago

Without changing anything on SONOS side (playing different songs, stopping or starting something or changing the volume of any speaker) I receive different results by the node.

Sometimes i get this wrong result: {"topic":"","payload":"4WRJh9","_msgid":"85e03441.410e28","track":{"title":"4WRJh9","artist":null,"album":null,"albumArtURI":null,"position":0,"duration":0,"albumArtURL":null,"uri":"x-rincon-mp3radio://http://addrad.io/4WRJh9"},"volume":27,"normalized_volume":0.27,"state":"stopped","muted":false} This is a radio stream.

sometimes i get the correct result: {"topic":"","payload":"Folge 2: Mama geht zur Arbeit - Teil 1","_msgid":"ea301846.8655e8","track":{"title":"Folge 2: Mama geht zur Arbeit - Teil 1","artist":"Leo Lausemaus","album":"Folge 2","albumArtURI":"/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a0I2lEtYmvaoq6LqKN3Cuiv%3fsid%3d9%26flags%3d8224%26sn%3d3","position":92,"duration":149,"albumArtURL":"http://192.168.178.58:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a0I2lEtYmvaoq6LqKN3Cuiv%3fsid%3d9%26flags%3d8224%26sn%3d3","uri":"x-sonos-spotify:spotify%3atrack%3a0I2lEtYmvaoq6LqKN3Cuiv?sid=9&flags=8224&sn=3"},"volume":37,"normalized_volume":0.37,"state":"paused","muted":false} This is the latest song in the player in status "paused".

Is there an issue with sonos players which are sometimes linked to a group?

torinnguyen commented 6 years ago

When a device is not the supervisor in a group, the status won't be accurate.