Autor Thema: [SONOS] Radio (hier NDR2) gespielten Titel anzeigen  (Gelesen 379 mal)

Offline caldir65

  • Full Member
  • ***
  • Beiträge: 336
[SONOS] Radio (hier NDR2) gespielten Titel anzeigen
« am: 18 Dezember 2021, 12:42:10 »
Moin,

ich habe einen Symphonisk/Sonos hier laufen, der wird bei Bedarf mittels Schalter eingeschaltet und ein Radiosender entsprechend gestartet. Das funktioniert soweit auch zuverlässig, leider bekomme ich keinerlei Titelinformationen eingeblendet. Diese werden aber offenbar mit übertragen, denn wenn ich in der Sonos-App schaue, kann ich sehen, was gerade läuft (s. Screenshot).

Wie kann ich jetzt diese Informationen auch in Fhem anzeigen?

Das Device:Internals:
   DEF        RINCON_347E5CF1DDEA01400_MR
   FUUID      5d7de4ac-f33f-378b-b699-61a546fedf055b47
   FVERSION   21_SONOSPLAYER.pm:v2.2.0-s22400/2020-07-14
   NAME       Sonos_Buero
   NOTIFYDEV  Sonos_Buero
   NR         1170
   NTFY_ORDER 50-Sonos_Buero
   STATE      appeared ~ 0.0% (0:00:00 / 0:00:00)
   TYPE       SONOSPLAYER
   UDN        RINCON_347E5CF1DDEA01400_MR
   READINGS:
     2021-12-18 11:59:27   AlarmList       {}
     2021-12-18 11:59:27   AlarmListIDs   
     2021-12-18 11:59:27   AlarmListVersion RINCON_347E5CF1DDEA01400:0
     2020-03-13 19:26:04   AlarmRunning    0
     2020-03-13 19:26:04   AlarmRunningID 
     2021-12-18 12:11:01   AvailablePlayer ['Sonos_Kueche','Sonos_Sonos_Roam','Sonos_Wohnzimmer']
     2020-03-13 19:26:04   Balance         0
     2020-03-13 19:29:01   Bass            -3
     2020-03-13 19:26:04   CrossfadeMode   0
     2020-03-13 19:26:24   DailyIndexRefreshTime
     2020-03-13 19:26:04   DirectControlAccountID
     2020-03-13 19:26:04   DirectControlClientID
     2020-03-13 19:26:04   DirectControlIsSuspended 0
     2021-12-18 10:38:42   FavouritesVersion RINCON_347E5CF10E2801400,7
     2020-12-03 15:12:10   GroupMute       0
     2021-12-18 11:43:14   GroupVolume     10
     2020-03-13 19:26:04   HeadphoneConnected 0
     2020-03-13 19:26:04   IsBonded        0
     2020-03-13 19:26:04   IsMaster        1
     2020-03-13 19:26:04   IsZoneBridge    0
     2021-12-18 11:56:30   LastActionResult ~~NotLoadedMarker~~
     2021-12-18 12:09:00   LastSubscriptionsRenew 2021-12-18 12:08:59
     2020-03-13 19:29:01   Loudness        1
     2020-03-13 19:26:04   MasterPlayer    Sonos_Buero
     2020-12-03 15:12:10   Mute            0
     2020-03-13 19:27:04   Orientation     0
     2020-03-13 19:29:01   OutputFixed     0
     2020-03-13 19:28:41   PlaylistsVersion RINCON_347E5CF10E2801400,0
     2020-11-22 11:54:05   QueueHash       7d1e8b55ed1e8e6eade52874415f4933
     2020-11-22 11:54:04   QueueVersion    1
     2021-12-18 10:38:42   RadiosVersion   RINCON_347E5CF10E2801400,7
     2020-03-13 19:26:04   Repeat          0
     2020-03-13 19:26:04   RepeatOne       0
     2020-03-13 19:26:04   Shuffle         0
     2021-02-15 20:06:11   SlavePlayer     []
     2021-02-15 20:06:11   SlavePlayerNotBonded []
     2020-03-13 19:26:04   SleepTimer      off
     2020-03-13 19:26:04   SleepTimerVersion
     2020-03-13 19:29:01   SubEnable       1
     2020-03-13 19:29:01   SubGain         0
     2020-03-13 19:29:01   SubPolarity     0
     2020-03-13 19:29:01   Treble          4
     2020-03-13 19:29:01   TruePlay        0
     2021-12-18 11:43:14   Volume          10
     2020-03-13 19:27:04   WifiEnabled     1
     2020-03-13 19:27:04   WirelessMode    0
     2020-03-13 19:26:44   ZoneGroupID     RINCON_347E5CF1DDEA01400:__
     2021-11-14 17:21:10   ZoneGroupName   Buero
     2021-02-15 20:06:11   ZoneGroupNameDetails
     2021-02-16 16:50:50   ZonePlayerUUIDsInGroup RINCON_347E5CF1DDEA01400
     2020-11-22 12:37:01   currentAlbum   
     2021-12-18 10:38:29   currentAlbumArtURL http://cdn-profiles.tunein.com/s56857/images/logog.png?t=154228
     2020-11-23 13:27:46   currentAlbumArtist
     2020-11-22 12:37:01   currentArtist   
     2021-12-18 10:38:29   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>
     2021-12-18 10:38:29   currentEnqueuedTransportURI x-sonosapi-stream:s56857?sid=254&flags=8224&sn=0
     2020-03-13 19:26:04   currentFavouriteName
     2021-12-18 12:09:01   currentNormalAudio 1
     2020-03-13 19:26:04   currentOriginalTrackNumber
     2020-03-13 19:26:04   currentPlaylistName
     2020-03-13 19:26:04   currentRadioName
     2021-03-19 17:46:26   currentSender   
     2020-03-13 19:26:04   currentSenderCurrent
     2021-03-19 17:46:26   currentSenderInfo
     2021-11-01 15:51:59   currentSource   NDR 2 Niedersachsen
     2021-12-18 12:11:32   currentStreamAudio 0
     2021-12-04 15:49:33   currentTitle   
     2021-12-18 10:38:11   currentTrack    1
     2021-11-01 15:51:59   currentTrackDuration 0:00:00
     2021-11-01 15:51:59   currentTrackDurationSec 0
     2021-12-18 12:11:32   currentTrackHandle aac://http://f131.rndfnk.com/ard/ndr/ndr2/niedersachsen/aac/64/stream.aac?aggregator=tunein&amp;sid=22S9iUfECcl9tsfFeEOc7k6y43D&amp;token=7QS7SPul_ooBzJst7f45hJNnrMV5aSpdagVlTiNDuyU&amp;tvf=rrR8JHnjwRZmMTMxLnJuZGZuay5jb20|<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:*:application/octet-stream:*">x-sonosapi-stream:s56857?sid=254&amp;flags=8224&amp;sn=0</res><r:streamContent>Purple Disco Machine Feat. Eyelar - Dopamine</r:streamContent><r:radioShowMd></r:radioShowMd><r:streamInfo>bd:0,sr:0,c:0,l:0,d:0</r:streamInfo><upnp:albumArtURI>/getaa?s=1&amp;u=x-sonosapi-stream%3as56857%3fsid%3d254%26flags%3d8224%26sn%3d0</upnp:albumArtURI><upnp:class>object.item</upnp:class></item></DIDL-Lite>
     2021-12-18 12:11:32   currentTrackPosition 0:00:00
     2021-12-18 12:11:32   currentTrackPositionSec 0
     2021-12-18 10:37:59   currentTrackPositionSimulated 0:00:00
     2020-11-22 12:36:33   currentTrackPositionSimulatedPercent 0.0
     2021-12-18 10:37:59   currentTrackPositionSimulatedSec 0
     2021-12-18 10:38:11   currentTrackProvider Radio
     2021-12-18 10:38:11   currentTrackProviderIconQuadraticURL /fhem/sonos/cover/tunein_quadratic.jpg
     2021-12-18 10:38:11   currentTrackProviderIconRoundURL /fhem/sonos/cover/tunein_round.png
     2021-12-18 12:09:01   currentTrackURI aac://http://f131.rndfnk.com/ard/ndr/ndr2/niedersachsen/aac/64/stream.aac?aggregator=tunein&amp;sid=22S9iUfECcl9tsfFeEOc7k6y43D&amp;token=7QS7SPul_ooBzJst7f45hJNnrMV5aSpdagVlTiNDuyU&amp;tvf=rrR8JHnjwRZmMTMxLnJuZGZuay5jb20
     2020-03-13 19:26:04   fieldType       
     2021-12-04 15:49:33   infoSummarize1  [Keine Musikdatei]
     2021-12-18 10:38:29   infoSummarize2  PLAYING => [Keine Musikdatei]
     2021-12-18 11:46:27   infoSummarize3  Lautstärke: 10 ~ Ton An ~ Balance: Mitte ~ Kein Kopfhörer
     2020-03-13 19:26:04   infoSummarize4 
     2020-03-13 19:26:04   location        http://192.168.1.151:1400/xml/device_description.xml
     2020-03-13 19:26:04   nextAlbum       
     2021-11-01 15:51:59   nextAlbumArtURL /fhem/sonos/cover/empty.jpg
     2020-03-13 19:26:04   nextAlbumArtist
     2020-03-13 19:26:04   nextArtist     
     2020-03-13 19:26:04   nextOriginalTrackNumber
     2020-03-13 19:26:04   nextTitle       
     2020-03-13 19:26:04   nextTrackDuration
     2020-03-13 19:26:04   nextTrackDurationSec
     2021-11-01 15:51:59   nextTrackHandle |
     2020-03-13 19:26:04   nextTrackProvider
     2020-03-13 19:26:04   nextTrackProviderIconQuadraticURL
     2020-03-13 19:26:04   nextTrackProviderIconRoundURL
     2020-03-13 19:26:04   nextTrackURI   
     2021-12-18 10:38:11   numberOfTracks  2
     2020-03-13 19:26:04   playerType      S21
     2021-12-18 11:59:16   presence        appeared
     2020-03-13 19:27:04   roomIcon        office
     2021-11-14 17:21:10   roomName        Buero
     2021-11-14 17:21:10   roomNameAlias   Buero
     2020-03-13 19:26:04   saveRoomName    Buero
     2020-03-13 19:26:04   serialNum       34-7E-5C-F1-DD-EA:6
     2021-12-06 08:17:29   softwareRevision 13.4
     2021-12-07 17:29:13   softwareRevisionAvailable 13.4.1
     2021-12-06 08:17:29   softwareRevisionInternal 66.4-23090
     2021-12-07 17:29:13   softwareRevisionInternalAvailable 66.4-23300
     2021-12-18 11:59:19   state           PLAYING
     2021-12-18 11:59:16   transportState  PLAYING
   helper:
     simulateCurrentTrackPosition 0
Attributes:
   DbLogExclude .*
   DbLogInclude software*:86400,state:300
   alias      Sonos / Ikea Büro
   event-on-change-reading presence,state,numberOfTracks
   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      A_Multimedia
   icon       icoSONOSPLAYER_icon-S21
   minVolume  0
   model      Sonos_S21
   room       Arbeitszimmer,System->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; } }
   verbose    0
   webCmd     Volume


Gruß, Christoph
Raspi 4 mit RaspiOS Bullseye und aktuellem fhem (auf SSD), Homematic-Devs, Shellys, Rademacher, NextCloud-Anbindung, Fully+TabletUI2 uvm.

Offline Otto123

  • Tester
  • Hero Member
  • ****
  • Beiträge: 20801
  • schon mal restore trainiert?
    • Otto's Technik Blog
Antw:[SONOS] Radio (hier NDR2) gespielten Titel anzeigen
« Antwort #1 am: 18 Dezember 2021, 13:51:58 »
Hi,

das Problem ist seit einiger Zeit bekannt, ich kann nur eine indirekte Lösung anbieten https://forum.fhem.de/index.php/topic,10033.msg1193696.html#new

Gruß Otto
Viele Grüße aus Leipzig
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7490+7412,WRT1900ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266

Offline caldir65

  • Full Member
  • ***
  • Beiträge: 336
Antw:[SONOS] Radio (hier NDR2) gespielten Titel anzeigen
« Antwort #2 am: 19 Dezember 2021, 12:11:08 »
Danke, werde ich mir mal anschauen ...
Raspi 4 mit RaspiOS Bullseye und aktuellem fhem (auf SSD), Homematic-Devs, Shellys, Rademacher, NextCloud-Anbindung, Fully+TabletUI2 uvm.

 

decade-submarginal