Hi,
der Player läuft und spielt ab, was ich in der App auswähle. ich bekomme es jedoch nicht hin, etwas in den Listen Favourites, Playlists und Queue sowie Radio angezeigt zu bekommen. In der App habe ich unter "Mein Sonos" verschiedene Playlisten, Alben und Radios eingerichtet. Bis FHEM spricht sich das leider nicht herum. Wiki habe ich erfolglos studiert. Kann mir bitte jemand helfen? Hier das List des Players:
Internals:
DEF RINCON_7828CAFDE79801400_MR
FUUID 5ea6ea31-f33f-a080-51b7-6cababb8504ced5b
NAME Sonos_Wohnzimmer
NOTIFYDEV Sonos_Wohnzimmer
NR 170
NTFY_ORDER 50-Sonos_Wohnzimmer
STATE appeared ~ 0.0% (0:02:25 / 0:00:00)
TYPE SONOSPLAYER
UDN RINCON_7828CAFDE79801400_MR
READINGS:
2020-05-12 17:44:53 AlarmList {}
2020-05-12 17:44:53 AlarmListIDs
2020-05-12 17:44:53 AlarmListVersion RINCON_7828CAFDE79801400:0
2020-04-27 16:20:33 AlarmRunning 0
2020-04-27 16:20:33 AlarmRunningID
2020-04-27 16:20:33 AvailablePlayer []
2020-05-12 17:40:30 AvailablePlayerList
2020-05-12 17:40:30 AvailablePlayerListAlias
2020-04-27 16:20:33 Balance 0
2020-04-27 16:20:56 Bass 0
2020-04-27 16:20:33 CrossfadeMode 0
2020-04-27 16:20:33 DailyIndexRefreshTime
2020-04-27 16:20:33 DirectControlAccountID
2020-05-12 17:27:59 DirectControlClientID
2020-04-27 16:20:33 DirectControlIsSuspended 0
2020-05-12 17:50:24 Favourites DirectlySet
2020-05-12 17:20:31 FavouritesVersion RINCON_7828CAFDE79801400,36
2020-04-27 16:20:56 GroupMute 0
2020-05-12 17:32:23 GroupVolume 14
2020-04-27 16:20:33 HeadphoneConnected 0
2020-04-27 16:20:33 IsBonded 0
2020-04-27 16:20:33 IsMaster 1
2020-04-27 16:20:33 IsZoneBridge 0
2020-05-12 17:50:51 LastActionResult GetRadiosWithCovers: DirectlySet
2020-04-27 16:20:56 Loudness 1
2020-04-27 16:20:33 MasterPlayer Sonos_Wohnzimmer
2020-04-27 16:20:33 Mute 0
2020-04-27 16:20:33 Orientation 0
2020-04-27 16:20:56 OutputFixed 0
2020-05-12 17:50:42 Playlists DirectlySet
2020-04-27 16:20:56 PlaylistsVersion RINCON_7828CAFDE79801400,16
2020-05-12 17:31:11 QueueHash cbe03c68cd34427bf66d8f3428c4c193
2020-05-12 17:31:11 QueueVersion 9
2020-05-12 17:50:51 Radios DirectlySet
2020-05-12 17:20:31 RadiosVersion RINCON_7828CAFDE79801400,36
2020-04-27 16:20:33 Repeat 0
2020-04-27 16:20:33 RepeatOne 0
2020-05-12 17:57:50 Shuffle 0
2020-04-27 16:20:33 SlavePlayer []
2020-05-12 17:40:30 SlavePlayerList
2020-05-12 17:40:30 SlavePlayerListAlias
2020-04-27 16:20:33 SlavePlayerNotBonded []
2020-05-12 17:40:30 SlavePlayerNotBondedList
2020-05-12 17:40:30 SlavePlayerNotBondedListAlias
2020-04-27 16:20:33 SleepTimer off
2020-04-27 16:20:33 SleepTimerVersion
2020-04-27 16:20:56 SubEnable 1
2020-04-27 16:20:56 SubGain 0
2020-04-27 16:20:56 SubPolarity 0
2020-04-27 16:20:56 Treble 0
2020-04-27 16:20:56 TruePlay 0
2020-05-12 17:32:23 Volume 14
2020-04-27 16:20:33 WifiEnabled 1
2020-04-27 16:20:33 WirelessMode 1
2020-04-27 16:20:33 ZoneGroupID RINCON_7828CAFDE79801400:__
2020-04-27 16:20:33 ZoneGroupName Wohnzimmer
2020-04-27 16:20:33 ZoneGroupNameDetails
2020-04-27 16:20:33 ZonePlayerUUIDsInGroup RINCON_7828CAFDE79801400
2020-05-12 17:57:50 currentAlbum
2020-05-12 17:57:50 currentAlbumArtURL http://cdn-profiles.tunein.com/s56857/images/logog.png?t=154228
2020-05-12 17:57:51 currentAlbumArtist
2020-05-12 17:57:50 currentArtist
2020-05-12 17:57:50 currentEnqueuedTransportHandle x-sonosapi-stream:s56857?sid=254&flags=8224&sn=0|<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><dc:title>NDR 2 Niedersachsen</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON65031_</desc></item></DIDL-Lite>
2020-05-12 17:57:50 currentEnqueuedTransportURI x-sonosapi-stream:s56857?sid=254&flags=8224&sn=0
2020-05-12 17:50:59 currentFavouriteName
2020-05-12 17:50:59 currentFavouriteNameMasked
2020-05-12 17:57:51 currentNormalAudio 0
2020-04-27 16:20:33 currentOriginalTrackNumber
2020-04-27 16:20:33 currentPlaylistName
2020-05-12 17:40:30 currentPlaylistNameMasked
2020-04-27 16:20:33 currentRadioName
2020-05-12 17:40:30 currentRadioNameMasked
2020-05-12 17:57:51 currentSender NDR 2 Niedersachsen
2020-05-12 06:02:00 currentSenderCurrent
2020-05-12 17:58:41 currentSenderInfo Ellie Goulding & Diplo feat. Swae Lee - Close To Me
2020-05-12 17:57:50 currentSource NDR 2 Niedersachsen
2020-05-12 17:57:51 currentStreamAudio 1
2020-05-12 17:57:51 currentTitle
2020-05-12 17:57:50 currentTrack 1
2020-05-12 17:57:50 currentTrackDuration 0:00:00
2020-05-12 17:57:50 currentTrackDurationSec 0
2020-05-12 17:58:41 currentTrackHandle http://http://ndr-edge-2062.dus-lg.cdn.addradio.net/ndr/ndr2/niedersachsen/mp3/128/stream.mp3?ar-distributor=f0a1|<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><res protocolInfo="sonos.com-http:*:*:*">x-sonosapi-stream:s56857?sid=254&flags=8224&sn=0</res><r:streamContent>Ellie Goulding & Diplo feat. Swae Lee - Close To Me</r:streamContent><r:radioShowMd></r:radioShowMd><upnp:albumArtURI>/getaa?s=1&u=x-sonosapi-stream%3as56857%3fsid%3d254%26flags%3d8224%26sn%3d0</upnp:albumArtURI><dc:title>x-sonosapi-stream:s56857?sid=254&flags=8224&sn=0</dc:title><upnp:class>object.item</upnp:class></item></DIDL-Lite>
2020-05-12 17:57:51 currentTrackPosition 0:00:00
2020-05-12 17:57:51 currentTrackPositionSec 0
2020-05-12 18:00:16 currentTrackPositionSimulated 0:02:25
2020-05-12 17:57:50 currentTrackPositionSimulatedPercent 0.0
2020-05-12 18:00:16 currentTrackPositionSimulatedSec 145
2020-05-12 17:57:51 currentTrackProvider Radio
2020-05-12 17:57:51 currentTrackProviderIconQuadraticURL /fhem/sonos/cover/tunein_quadratic.jpg
2020-05-12 17:57:51 currentTrackProviderIconRoundURL /fhem/sonos/cover/tunein_round.png
2020-05-12 17:57:51 currentTrackURI http://http://ndr-edge-2062.dus-lg.cdn.addradio.net/ndr/ndr2/niedersachsen/mp3/128/stream.mp3?ar-distributor=f0a1
2020-04-27 16:20:33 fieldType
2020-05-12 17:58:41 infoSummarize1 NDR 2 Niedersachsen: Ellie Goulding & Diplo feat. Swae Lee - Close To Me
2020-05-12 17:58:41 infoSummarize2 PLAYING => NDR 2 Niedersachsen: Ellie Goulding & Diplo feat. Swae Lee - Close To Me
2020-05-12 17:32:23 infoSummarize3 Lautstärke: 14 ~ Ton An ~ Balance: Mitte ~ Kein Kopfhörer
2020-04-27 16:20:33 infoSummarize4
2020-04-27 16:20:33 location http://192.168.178.109:1400/xml/device_description.xml
2020-05-12 17:57:50 nextAlbum
2020-05-12 17:57:50 nextAlbumArtURL /fhem/sonos/cover/empty.jpg
2020-04-27 16:20:33 nextAlbumArtist
2020-05-12 17:57:50 nextArtist
2020-04-27 16:20:33 nextOriginalTrackNumber
2020-05-12 17:57:50 nextTitle
2020-05-12 17:57:50 nextTrackDuration
2020-05-12 17:57:50 nextTrackDurationSec
2020-05-12 17:57:50 nextTrackHandle |
2020-05-12 17:57:50 nextTrackProvider
2020-05-12 17:57:50 nextTrackProviderIconQuadraticURL
2020-05-12 17:57:50 nextTrackProviderIconRoundURL
2020-05-12 17:57:50 nextTrackURI
2020-05-12 17:57:50 numberOfTracks 1
2020-04-27 16:20:33 playerType S18
2020-05-12 17:44:52 presence appeared
2020-04-27 16:20:33 roomIcon living
2020-04-27 16:20:33 roomName Wohnzimmer
2020-04-27 16:20:33 roomNameAlias Wohnzimmer
2020-04-27 16:20:33 saveRoomName Wohnzimmer
2020-04-27 16:20:33 serialNum 78-28-CA-FD-E7-98:5
2020-05-02 16:35:17 softwareRevision 11.1
2020-04-27 16:20:33 softwareRevisionAvailable 11.1
2020-05-02 16:35:17 softwareRevisionInternal 56.0-76060
2020-04-27 16:20:33 softwareRevisionInternalAvailable 56.0-76060
2020-05-12 17:57:51 state PLAYING
2020-05-12 17:57:51 transportState PLAYING
helper:
simulateCurrentTrackPosition 1
Attributes:
alias Wohnzimmer
generateInfoSummarize1 <NormalAudio><Artist prefix="(" suffix=")"/><Title prefix=" '" suffix="'" ifempty="[Keine Musikdatei]"/><Album prefix=" vom Album '" suffix="'"/></NormalAudio> <StreamAudio><Sender suffix=":"/><SenderCurrent prefix=" '" suffix="' -"/><SenderInfo prefix=" "/></StreamAudio>
generateInfoSummarize2 <TransportState/><InfoSummarize1 prefix=" => "/>
generateInfoSummarize3 <Volume prefix="Lautstärke: "/><Mute instead=" ~ Kein Ton" ifempty=" ~ Ton An" emptyval="0"/> ~ Balance: <Balance ifempty="Mitte" emptyval="0"/><HeadphoneConnected instead=" ~ Kopfhörer aktiv" ifempty=" ~ Kein Kopfhörer" emptyval="0"/>
generateVolumeSlider 1
getAlarms 1
getTitleInfoFromMaster 1
group Wohnzimmer
icon icoSONOSPLAYER_icon-S18.png
minVolume 0
model Sonos_S18
room Sonos
simulateCurrentTrackPosition 1
sortby 1
stateFormat presence ~ currentTrackPositionSimulatedPercent% (currentTrackPositionSimulated / currentTrackDuration)
userReadings Favourites:LastActionResult.*?GetFavouritesWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }, Radios:LastActionResult.*?GetRadiosWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }, Playlists:LastActionResult.*?GetPlaylistsWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }, Queue:LastActionResult.*?GetQueueWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }, currentTrackPosition:LastActionResult.*?GetCurrentTrackPosition.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1; } }
verbose 1
webCmd Volume
Und hier das List von Sonos (hab die URLs der Sender aus dem List gelöscht)
Internals:
DEF localhost:4711 30
DELAYTIME 0
DeviceName localhost:4711
FD 11
FUUID 5ea6ea28-f33f-a080-b526-02315dfc510c3cbc
INTERVAL 30
NAME Sonos
NOTIFYDEV global
NR 169
NTFY_ORDER 50-Sonos
PARTIAL
STATE opened
TYPE SONOS
WAITTIME 8
READINGS:
2020-04-27 16:20:33 AllPlayer ['Sonos_Wohnzimmer']
2020-04-27 16:20:33 AllPlayerCount 1
2020-04-27 16:20:33 AllPlayerNotBonded ['Sonos_Wohnzimmer']
2020-04-27 16:20:33 AllPlayerNotBondedCount 1
2020-05-12 18:03:46 LastProcessAnswer 1589299426.51258
2020-05-12 16:48:24 LastProcessRestart 2020-05-12 16:48:24
2020-05-12 16:48:24 LastProcessRestartCount 121
2020-04-27 16:20:33 LineInPlayer []
2020-05-12 17:40:30 LineInPlayerList
2020-05-12 17:40:30 LineInPlayerListAlias
2020-04-27 16:20:33 MasterPlayer ['Sonos_Wohnzimmer']
2020-04-27 16:20:33 MasterPlayerCount 1
2020-05-12 18:02:44 MasterPlayerNotPlaying []
2020-05-12 18:02:44 MasterPlayerNotPlayingCount 0
2020-05-12 18:02:44 MasterPlayerPlaying ['Sonos_Wohnzimmer']
2020-05-12 18:02:44 MasterPlayerPlayingCount 1
2020-05-08 15:33:39 MusicServicesList {'38' => {'Name' => '7digital','ResolutionSubstitution' => '_800.jpg','ServiceType' => '9735','Resolution' => 800,'Capabilities' => '513','SMAPI' => 'https://sonos-service.7digital.com/sonos.asmx','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/9735/9735-400x400.png','IconRoundURL' => 'http://sonos-
.......... (gelöscht)
2020-05-12 18:02:47 myStatus opened
2020-05-12 17:44:05 state opened
Attributes:
event-on-change-reading state
event-on-update-reading myStatus
getListsDirectlyToReadings 1
getPlaylistsListAtNewVersion 1
getRadiosListAtNewVersion 1
ignoredIPs 192.168.178.45, 192.168.178.49
pingType icmp
targetSpeakDir /mnt/SonosSpeak
targetSpeakFileTimestamp 1
targetSpeakMP3FileDir /mnt/SonosSpeak
targetSpeakURL \\192.168.xxx.xxx\SonosSpeak
Hallo,
Du hast diese Seite studiert?
https://wiki.fhem.de/wiki/SONOS (https://wiki.fhem.de/wiki/SONOS)
Bsp.:
Sonos_Buero:FavouritesVersion:.*
get Sonos_Buero Favourites
Viele Grüße
Jürgen
Vielen Dank für die konkrete Hilfe, Jürgen!
Die erste Zeile wird über attr hinzugefügt?
LG
Nein, das ist ein Notify. Hier werden automatisch die Favoriten aktualisiert ;D
Das Attribut lautet getFavouritesListAtNewVersion. Steht aber alles im Wiki 8)
Viele Grüße
Jürgen
Danke! Die vier Notifys sind jetzt active, die Listen aber weiterhin leer...
Noch eine Idee, woran es liegen könnte?
Bekomme die folgende Fehlermeldung:
2020.05.13 14:33:48 3: Sonos_WohnzimmerRG_Favourites: <{SONOS_getListRG($DEVICE,"Favourites",1)}@Favourites>: Can't use an undefined value as a HASH reference at ./FHEM/00_SONOS.pm line 616.
Ist das Reading "Favourites" in Deinem Sonos-Device vorhanden?
Viele Grüße
Jürgen
Hallo Jürgen,
ja, die Readings sind bei Favourites und auch bei Radio und Queue vorhanden, s. Anlage (Ausschnitt).
LG Ingo
PS: Hier mal die RAW für Sonos_WohnzimmerRG_Favourites:
defmod Sonos_WohnzimmerRG_Favourites readingsGroup Sonos_Wohnzimmer:<{SONOS_getListRG($DEVICE,"Favourites",1)}@Favourites>
attr Sonos_WohnzimmerRG_Favourites room Sonos
Es ist doch alles da. Was vermisst Du denn?
Definiere mal ein paar Radiosender aus TuneIn als Favorit.
Viele Grüße
Jürgen
Die Listen sind halt leer, man kann nicht auswählen. M.E habe ivh auch schon Radiosender bei den Favouriten, kann sie nur nicht aufrufen.
Dann weiß ich auch nicht mehr weiter.
Letzte Idee:
In Sonos die Favoriten einmal komplett löschen und mal einen Radiosender hinzufügen. Danach in FHEM prüfen (ggf. get Favourites).
Viele Grüße
Jürgen
Vielen Dank, ich probiere es aus.
LG