SONOS Player Disappeared ... immer und immer wieder

Begonnen von KalleBlomquist, 01 Dezember 2017, 08:48:45

Vorheriges Thema - Nächstes Thema

KalleBlomquist

Hallo,

meine Sonos (2x Play1 und 1x Play3) bekommen immer wieder den Status "disappeared", vorher kommt im Log:
"Das Lauschen auf der Schnittstelle wurde beendet. Prozess endet nun auch..."

Ich hab das Logging mal hoch gesetzt und hier ist das Ergerbnis (s. Anhang).

Ich hoffe ihr könnt mir helfen zu analysieren, woran es liegen kann.

Danke und Gruß
Kalle

Update_1:
Sonos speak geht seit dem Update auch nicht mehr  :(

Update_2:
Nach dem ich die "alten" Sonos Module wieder aktiviert habe funktioniert wieder alles ?!


Reinerlein

Hi Kalle,

irgendwie scheint die Information über den letzten Zugriff nicht korrekt gesetzt zu werden. Um 8:24 steht im Log, dass die letzte Rückmeldung um 8:20 war. Im Log sind dazwischen aber mehrere Rückmeldungen (sowie deren Anforderungen) zu sehen...

Kannst du mal die Definition deines Sonos-Devices posten?

Grüße
Reiner

Nobby1805

Auf welcher Hardware läuft denn dein FHEM? Und welche Perl-Version? Welche FHEM-Module verwendest du?

Bei mir, 3 Sonos-Geräte, ist dieser Fehler seit der Umstellung auf das aktuelle Sonos-Module genau 2x aufgetreten und da gab es zeitgleich Probleme mit dem Abruf von Proplanta-Daten, die meiner etwas schwache Hardware ausgelastet haben.
FHEM-Featurelevel: 6.2   (fhem.pl:28227/2023-11-29) auf Windows 10 Pro mit Strawberry Perl 5.32.1.1-32bit
TabletUI: 2.7.15
IO: 2xHMLAN(0.965)|HMUSB2(0.967)

KalleBlomquist

@Reinerlein:

Die Sonos Definition:
define Sonos SONOS localhost:4711 60 8 5
attr Sonos disable 0
attr Sonos getFavouritesListAtNewVersion 1
attr Sonos getListsDirectlyToReadings 1
attr Sonos getPlaylistsListAtNewVersion 1
attr Sonos getQueueListAtNewVersion 1
attr Sonos getRadiosListAtNewVersion 1
attr Sonos verbose 0

@Nobby1805

FHEM läuft auf einem Zotac-MiniPC mit ausreichend Leistung.
Als BS ist Ubuntu Server 16.04 LTS installiert.

Die Perl Version lautet:
perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi

FHEM-Module:
ABFALL
AMADCommBridge
AMADDevice
CALVIEW
CUL_HM
Calendar
DOIF
Dashboard
ENIGMA2
FB_CALLLIST
FB_CALLMONITOR
FHEMWEB
FLOORPLAN
FRITZBOX
FileLog
HMLAN
HMUARTLGW
HMinfo
HTTPMOD
HUEBridge
HUEDevice
IPCAM
SONOS
SONOSPLAYER
SVG
SYSMON
TRX
TRX_LIGHT
TRX_WEATHER
Telegram
TelegramBot
Twilight
Weather
WeekdayTimer
Wunderground
allowed
at
autocreate
dummy
eventTypes
fronthem
fronthemDevice
harmony
holiday
notify
readingsGroup
remotecontrol
sequence
telnet
weblink

r_e_a_d_y

Hallo Kalle,

ich scheine das gleiche Problem wie du zu haben ... siehe hier: https://forum.fhem.de/index.php/topic,82259.msg743281.html#msg743281

Wie genau hast du die "alten" Sonos Module aktiviert? Wo bekomme ich die her?
Ich würde das gern auch bei mir probieren, um zu sehen, ob es etwas bringt.

Grüße, ready

Nobby1805

Ich würde dann eher die neuen Module verwenden https://forum.fhem.de/index.php/topic,81489.0.html und ggf. in eine Diskussion mit Reiner eintreten falls das Problem dann noch auftritt
FHEM-Featurelevel: 6.2   (fhem.pl:28227/2023-11-29) auf Windows 10 Pro mit Strawberry Perl 5.32.1.1-32bit
TabletUI: 2.7.15
IO: 2xHMLAN(0.965)|HMUSB2(0.967)

rohlande

Kann die Probleme ebenfalls bestätigen. Habe auch als Plattform einen Zotac Mini Server Debian mit ausreichend Power.
Gibts schon eine Lösung??

VG
HostSystem: Synology DS918 | FHEM im Docker Version: 6.0-s22528_v2.2.4 (dedizierte IP Adresse) | MQTT_Broker auf DS918 NAS | MQTT_FHEM | TASMOTA_DEVICE | SSChatBot | SSCam | LaMetric | FBAHAHTTP | CUL | SONOS | HUEBridge (deCONZ) Zigbee | FB_CALLMONITOR | InfluxDBLogger

Reinerlein

Hallo,

steht denn auf LogLevel 2 etwas im Log? Sowas wie "LastProcessAnswer way too old"?

Grüße
Reinerlein

TomLee

#8
Hallo,

hab auch seit Tagen die Meldung im Log, auf verbose 2 gestellt siehts so aus:

2018.01.07 00:06:32 2: SONOS1: Setting LogLevel to new value: 2
2018.01.07 00:06:49 2: SONOS0: LastProcessAnswer way too old (Lastanswer: 0 ~ 1970-01-01 01:00:00)... try to restart the process and connection...
2018.01.07 00:06:50 0: SONOS0: Das Lauschen auf der Schnittstelle wurde beendet. Prozess endet nun auch...
2018.01.07 00:07:15 3: CALVIEW calv_example - CALENDAR:ical_example triggered, updating CALVIEW calv_example ...
2018.01.07 00:07:19 1: SONOS0: Kein UPnP-Server gefunden... Starte selber einen und warte 1 Sekunde(n) darauf...
2018.01.07 00:07:21 0: SONOS0: Can't bind Port 4711: Bind failed: Die Adresse wird bereits verwendet at ./FHEM/00_SONOS.pm line 9815.

2018.01.07 00:07:21 0: SONOS0: Retries left (wait 30s): 9
2018.01.07 00:07:51 1: SONOS0: ./FHEM/00_SONOS.pm is listening to Port 4711
2018.01.07 00:08:20 1: localhost:4711 reappeared (Sonos)
2018.01.07 00:08:49 2: SONOS0: LastProcessAnswer way too old (Lastanswer: 0 ~ 1970-01-01 01:00:00)... try to restart the process and connection...
2018.01.07 00:08:50 1: SONOS2: IsAlive-Thread gestartet. Warte 120 Sekunden und pruefe dann alle 120 Sekunden...
2018.01.07 00:08:50 2: SONOS1: Discover Sonosplayer 'Sonos' (S3) Software Revision 8.2.2 with ID 'RINCON_000E58F7F67C01400_MR'
2018.01.07 00:08:50 1: SONOS3: Restore-Thread gestartet. Warte auf Arbeit...
2018.01.07 00:08:50 0: SONOS0: Das Lauschen auf der Schnittstelle wurde beendet. Prozess endet nun auch...
2018.01.07 00:09:19 1: SONOS0: Kein UPnP-Server gefunden... Starte selber einen und warte 1 Sekunde(n) darauf...
2018.01.07 00:09:21 0: SONOS0: Can't bind Port 4711: Bind failed: Die Adresse wird bereits verwendet at ./FHEM/00_SONOS.pm line 9815.

2018.01.07 00:09:21 0: SONOS0: Retries left (wait 30s): 9
2018.01.07 00:09:51 1: SONOS0: ./FHEM/00_SONOS.pm is listening to Port 4711


So siehts bei mir aus:

Internals:
   DEF        localhost:4711 120 1 5
   DELAYTIME  5
   DeviceName localhost:4711
   FD         63
   INTERVAL   120
   NAME       Sonos
   NOTIFYDEV  global
   NR         260
   NTFY_ORDER 50-Sonos
   PARTIAL   
   STATE      opened
   TYPE       SONOS
   WAITTIME   1
   READINGS:
     2017-11-07 13:22:56   AllPlayer       ['Sonos_Wohnzimmer_PLAY3']
     2017-11-07 13:22:56   AllPlayerCount  1
     2017-11-07 13:22:56   AllPlayerNotBonded ['Sonos_Wohnzimmer_PLAY3']
     2017-11-07 13:22:56   AllPlayerNotBondedCount 1
     2018-01-07 00:17:53   LastProcessAnswer 0
     2018-01-07 00:16:21   LastProcessRestart 2018-01-07 00:16:21
     2018-01-07 00:16:21   LastProcessRestartCount 231
     2017-11-07 13:22:56   LineInPlayer    []
     2017-11-20 02:36:55   LineInPlayerList
     2017-11-20 02:36:55   LineInPlayerListAlias
     2016-08-25 08:42:09   MasterPlayer    ['Sonos_Wohnzimmer_PLAY3']
     2016-08-25 08:42:09   MasterPlayerCount 1
     2018-01-06 15:29:04   MasterPlayerNotPlaying ['Sonos_Wohnzimmer_PLAY3']
     2018-01-06 15:29:04   MasterPlayerNotPlayingCount 1
     2018-01-06 15:29:04   MasterPlayerPlaying []
     2018-01-06 15:29:04   MasterPlayerPlayingCount 0
     2018-01-05 04:58:33   MusicServicesList {'7' => {'ResolutionSubstitution' => '/569/','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/1799/1799-72x72.png','ServiceType' => '1799','Capabilities' => '513','Resolution' => '569','SMAPI' => 'https://www.concertvault.com/ws/MOAPI.asmx','Name' => 'Concert Vault','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/1799/1799-400x400.png'},'20' => {'ResolutionSubstitution' => '640x640.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/5127/5127-72x72.png','ServiceType' => '5127','Capabilities' => '2579','Resolution' => '640','SMAPI' => 'https://sonos.tidalhifi.com/sonos-wimp','Name' => 'WiMP','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/5127/5127-400x400.png'},'201' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/51463/51463-72x72.png','ServiceType' => '51463','Capabilities' => '45633','Resolution' => undef,'SMAPI' => 'https://sonos.amazonmusic.com/','Name' => 'Amazon Music','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/51463/51463-400x400.png'},'235' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/60167/60167-72x72.png','ServiceType' => '60167','Capabilities' => '70145','Resolution' => undef,'SMAPI' => 'https://sonos.playsr.com/ws','Name' => 'Sveriges Radio','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/60167/60167-400x400.png'},'222' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/56839/56839-72x72.png','ServiceType' => '56839','Capabilities' => '6675','Resolution' => undef,'SMAPI' => 'https://sonos.nugs.net/soap/nugs','Name' => 'nugs.net','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/56839/56839-400x400.png'},'198' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/50695/50695-72x72.png','ServiceType' => '50695','Capabilities' => '2627','Resolution' => undef,'SMAPI' => 'https://api.anghami.com/anghmob/SonosAPI.php','Name' => 'Anghami','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/50695/50695-400x400.png'},'230' => {'ResolutionSubstitution' => '/1000x1000/','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/58887/58887-72x72.png','ServiceType' => '58887','Capabilities' => '512','Resolution' => '1000','SMAPI' => 'https://www.nts.live/smapi','Name' => 'NTS Radio','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/58887/58887-400x400.png'},'9' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/2311/2311-72x72.png','ServiceType' => '2311','Capabilities' => '1116691','Resolution' => undef,'SMAPI' => 'https://spotify-v4.ws.sonos.com/smapi','Name' => 'Spotify','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/2311/2311-400x400.png'},'53' => {'ResolutionSubstitution' => '/400x400/','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/13575/13575-72x72.png','ServiceType' => '13575','Capabilities' => '1536','Resolution' => '400','SMAPI' => 'https://securea.mlb.com/ce/sonos/default.jsp','Name' => 'MLB.com Gameday Audio','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/13575/13575-400x400.png'},'38' => {'ResolutionSubstitution' => '_800.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/9735/9735-72x72.png','ServiceType' => '9735','Capabilities' => '513','Resolution' => '800','SMAPI' => 'https://sonos-service.7digital.com/sonos.asmx','Name' => '7digital','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/9735/9735-400x400.png'},'162' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/41479/41479-72x72.png','ServiceType' => '41479','Capabilities' => '513','Resolution' => undef,'SMAPI' => 'https://sonos.townsquaremedia.com/index.php','Name' => 'radioPup','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/41479/41479-400x400.png'},'223' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/57095/57095-72x72.png','ServiceType' => '57095','Capabilities' => '513','Resolution' => undef,'SMAPI' => 'https://sonos-smapi.rautemusik.fm/smapi','Name' => 'RauteMusik.FM','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/57095/57095-400x400.png'},'212' => {'ResolutionSubstitution' => 'width=1080','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/54279/54279-72x72.png','ServiceType' => '54279','Capabilities' => '513','Resolution' => '1080','SMAPI' => 'https://sonos.plex.tv/sonos/','Name' => 'Plex','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/54279/54279-400x400.png'},'258' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/66055/66055-72x72.png','ServiceType' => '66055','Capabilities' => '512','Resolution' => undef,'SMAPI' => 'https://api.fm.qq.com/v1/sonos/sonos_cgi','Name' => '企鹅FM','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/66055/66055-400x400.png'},'167' => {'ResolutionSubstitution' => '_480x480_','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/42759/42759-72x72.png','ServiceType' => '42759','Capabilities' => '577','Resolution' => '480','SMAPI' => 'http://sonosapi.gaana.com/SonosAPI.php','Name' => 'Gaana','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/42759/42759-400x400.png'},'232' => {'ResolutionSubstitution' => '_1500.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/59399/59399-72x72.png','ServiceType' => '59399','Capabilities' => '577','Resolution' => '1500','SMAPI' => 'https://sonosrp.radioapi.io/Service.svc','Name' => 'Radioplayer','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/59399/59399-400x400.png'},'171' => {'ResolutionSubstitution' => '_1500.png','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/43783/43783-72x72.png','ServiceType' => '43783','Capabilities' => '4609','Resolution' => '1500','SMAPI' => 'https://sonos.mix.moodmedia.com/api','Name' => 'Mood Mix','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/43783/43783-400x400.png'},'181' => {'ResolutionSubstitution' => 'w/1500/h/1500/','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/46343/46343-72x72.png','ServiceType' => '46343','Capabilities' => '2627','Resolution' => '1500','SMAPI' => 'https://www.mixcloud.com/sonos-app/','Name' => 'Mixcloud','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/46343/46343-400x400.png'},'169' => {'ResolutionSubstitution' => '_1500.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/43271/43271-72x72.png','ServiceType' => '43271','Capabilities' => '512','Resolution' => '1500','SMAPI' => 'https://sonos.tribeofnoise.com/server-v2.0.php','Name' => 'Tribe of Noise','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/43271/43271-400x400.png'},'211' => {'ResolutionSubstitution' => '.l.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/54023/54023-72x72.png','ServiceType' => '54023','Capabilities' => '515','Resolution' => '119','SMAPI' => 'https://themusicmanager.eu/sonos/SonosAPI.php','Name' => 'The Music Manager','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/54023/54023-400x400.png'},'33' => {'ResolutionSubstitution' => '-huge.jpg?size=300','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/8455/8455-72x72.png','ServiceType' => '8455','Capabilities' => '513','Resolution' => '300','SMAPI' => 'https://sonos.murfie.com/','Name' => 'Murfie','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/8455/8455-400x400.png'},'192' => {'ResolutionSubstitution' => '-1500.png','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/49159/49159-72x72.png','ServiceType' => '49159','Capabilities' => '5632','Resolution' => '1500','SMAPI' => 'https://www.focusatwill.com/sonos/action','Name' => 'focus@will','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/49159/49159-400x400.png'},'204' => {'ResolutionSubstitution' => '1200x1200','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/52231/52231-72x72.png','ServiceType' => '52231','Capabilities' => '3117633','Resolution' => '1200','SMAPI' => 'https://sonos-music.apple.com/ws/SonosSoap','Name' => 'Apple Music','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/52231/52231-400x400.png'},'218' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/55815/55815-72x72.png','ServiceType' => '55815','Capabilities' => '512','Resolution' => undef,'SMAPI' => 'https://soundsuit.fm/smapi','Name' => 'Soundsuit.fm','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/55815/55815-400x400.png'},'237' => {'ResolutionSubstitution' => 'artwork_1500','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/60679/60679-72x72.png','ServiceType' => '60679','Capabilities' => '328193','Resolution' => '1500','SMAPI' => 'https://api.storeplay.com.au/sonos/SonosService.asmx','Name' => 'storePlay','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/60679/60679-400x400.png'},'160' => {'ResolutionSubstitution' => 't500x500','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/40967/40967-72x72.png','ServiceType' => '40967','Capabilities' => '4611','Resolution' => '500','SMAPI' => 'https://soundcloud-go.ws.sonos.com/smapi','Name' => 'SoundCloud','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/40967/40967-400x400.png'},'217' => {'ResolutionSubstitution' => '_1500.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/55559/55559-72x72.png','ServiceType' => '55559','Capabilities' => '4610','Resolution' => '1500','SMAPI' => 'https://www.fitradio.com/apisonos/ws','Name' => 'FIT Radio Workout Music','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/55559/55559-400x400.png'},'203' => {'ResolutionSubstitution' => '1500x1500.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/51975/51975-72x72.png','ServiceType' => '51975','Capabilities' => '595','Resolution' => '1500','SMAPI' => 'https://sonosapi-napster.rhapsody.com/smapi','Name' => 'Napster','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/51975/51975-400x400.png'},'31' => {'ResolutionSubstitution' => '_600.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/7943/7943-72x72.png','ServiceType' => '7943','Capabilities' => '2643','Resolution' => '600','SMAPI' => 'http://www.qobuz.com/api.xml/0.2/sonos','Name' => 'Qobuz','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/7943/7943-400x400.png'},'157' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/40199/40199-72x72.png','ServiceType' => '40199','Capabilities' => '513','Resolution' => undef,'SMAPI' => 'https://sns.bandcamp.com/api/sonos/2/sonos_api','Name' => 'Bandcamp','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/40199/40199-400x400.png'},'189' => {'ResolutionSubstitution' => '_1500.png','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/48391/48391-72x72.png','ServiceType' => '48391','Capabilities' => '513','Resolution' => '1500','SMAPI' => 'https://provider.sound-machine.com/sonosapi','Name' => 'SOUNDMACHINE','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/48391/48391-400x400.png'},'150' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/38407/38407-72x72.png','ServiceType' => '38407','Capabilities' => '512','Resolution' => undef,'SMAPI' => 'https://www.rusc.com/sonos.asmx','Name' => 'RUSC','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/38407/38407-400x400.png'},'13' => {'ResolutionSubstitution' => 'lain328','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/3335/3335-72x72.png','ServiceType' => '3335','Capabilities' => '579','Resolution' => '328','SMAPI' => 'https://www.stitcher.com/Service/Sonos/Sonos.php','Name' => 'Stitcher SmartRadio','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/3335/3335-400x400.png'},'216' => {'ResolutionSubstitution' => '1500x1500.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/55303/55303-72x72.png','ServiceType' => '55303','Capabilities' => '4627','Resolution' => '1500','SMAPI' => 'https://sonosapi-aldimusic.rhapsody.com/smapi','Name' => 'Aldi life Musik','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/55303/55303-400x400.png'},'163' => {'ResolutionSubstitution' => '/large/','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/41735/41735-72x72.png','ServiceType' => '41735','Capabilities' => '513','Resolution' => '200','SMAPI' => 'https://sonos.spreaker.com/sonos/service/v1','Name' => 'Spreaker','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/41735/41735-400x400.png'},'234' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/59911/59911-72x72.png','ServiceType' => '59911','Capabilities' => '512','Resolution' => undef,'SMAPI' => 'https://sonos.deliver.media/musicservice','Name' => 'deliver.media','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/59911/59911-400x400.png'},'221' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/56583/56583-72x72.png','ServiceType' => '56583','Capabilities' => '6675','Resolution' => undef,'SMAPI' => 'https://sonos.nugs.net/soap/livephish','Name' => 'LivePhish+','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/56583/56583-400x400.png'},'146' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/37383/37383-72x72.png','ServiceType' => '37383','Capabilities' => '513','Resolution' => undef,'SMAPI' => 'https://www.daytrotter.com/ws/MOAPI.asmx','Name' => 'Daytrotter','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/37383/37383-400x400.png'},'36' => {'ResolutionSubstitution' => '_290.png','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/9223/9223-72x72.png','ServiceType' => '9223','Capabilities' => '512','Resolution' => '290','SMAPI' => 'https://sonos.hos.com/SOAP/Server1.2.php','Name' => 'Hearts of Space','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/9223/9223-400x400.png'},'174' => {'ResolutionSubstitution' => '640x640.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/44551/44551-72x72.png','ServiceType' => '44551','Capabilities' => '1083923','Resolution' => '640','SMAPI' => 'https://sonos.tidal.com/v1/sonos','Name' => 'TIDAL','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/44551/44551-400x400.png'},'2' => {'ResolutionSubstitution' => '1000x1000-000000-80-0-0.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/519/519-72x72.png','ServiceType' => '519','Capabilities' => '2643','Resolution' => '1000','SMAPI' => 'https://api.deezer.com/sonos','Name' => 'Deezer','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/519/519-400x400.png'},'151' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/38663/38663-72x72.png','ServiceType' => '38663','Capabilities' => '98899','Resolution' => undef,'SMAPI' => 'https://mclients.googleapis.com/music/sonos/wsf/smapi','Name' => 'Google Play Music','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/38663/38663-400x400.png'},'231' => {'ResolutionSubstitution' => '640','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/59143/59143-72x72.png','ServiceType' => '59143','Capabilities' => '537153','Resolution' => '640','SMAPI' => 'https://moapi.wolfgangs.com/ws/wolfgangs.asmx','Name' => 'Wolfgang's Music','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/59143/59143-400x400.png'},'195' => {'ResolutionSubstitution' => '/1500x1500','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/49927/49927-72x72.png','ServiceType' => '49927','Capabilities' => '2579','Resolution' => '1500','SMAPI' => 'https://360-smapi.api.247e.com/musicopen.svc','Name' => 'JUKE','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/49927/49927-400x400.png'},'191' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/48903/48903-72x72.png','ServiceType' => '48903','Capabilities' => '1030739','Resolution' => undef,'SMAPI' => 'https://api.classicalarchives.com/smapi/endpoint','Name' => 'Classical Archives','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/48903/48903-400x400.png'},'183' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/46855/46855-72x72.png','ServiceType' => '46855','Capabilities' => '37395','Resolution' => undef,'SMAPI' => 'http://www.narando.com/sonos/service/action','Name' => 'narando','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/46855/46855-400x400.png'},'154' => {'ResolutionSubstitution' => '.s999','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/39431/39431-72x72.png','ServiceType' => '39431','Capabilities' => '513','Resolution' => '999','SMAPI' => 'https://sonos.radionomy.com/SonosService.svc','Name' => 'Radionomy','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/39431/39431-400x400.png'},'256' => {'ResolutionSubstitution' => 'w_1500,h_1500','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/65543/65543-72x72.png','ServiceType' => '65543','Capabilities' => '594496','Resolution' => '1500','SMAPI' => 'https://cbcmusic-sonos.azurewebsites.net/SonosService.svc','Name' => 'CBC Radio & Music','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/65543/65543-400x400.png'},'260' => {'ResolutionSubstitution' => '_1500.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/66567/66567-72x72.png','ServiceType' => '66567','Capabilities' => '512','Resolution' => '1500','SMAPI' => 'https://sonos.minidisco.nl/server.php','Name' => 'Minidisco','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/66567/66567-400x400.png'},'233' => {'ResolutionSubstitution' => '/960/','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/59655/59655-72x72.png','ServiceType' => '59655','Capabilities' => '1028672','Resolution' => '960','SMAPI' => 'https://integrations.pocketcasts.com/service/smapi','Name' => 'Pocket Casts','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/59655/59655-400x400.png'},'164' => {'ResolutionSubstitution' => '500x500.jpg','IconRoundURL' => 'http://sonos-logo.ws.sonos.com/41991/41991-72x72.png','ServiceType' => '41991','Capabilities' => '12865','Resolution' => '500','SMAPI' => 'https://www.saavn.com/apps/sonos/SonosAPI.php','Name' => 'Saavn','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/41991/41991-400x400.png'},'184' => {'ResolutionSubstitution' => undef,'IconRoundURL' => 'http://sonos-logo.ws.sonos.com/47111/47111-72x72.png','ServiceType' => '47111','Capabilities' => '295427','Resolution' => undef,'SMAPI' => 'https://sonos.stingray.com/ws/Sonos','Name' => 'Stingray Music','PromoText' => '','IconQuadraticURL' => 'http://sonos-logo.ws.sonos.com/47111/47111-400x400.png'}}
     2018-01-05 15:56:06   MusicServicesListVersion RINCON_000E58F7F67C01400:97
     2017-12-12 05:38:18   ShareIndexInProgress 0
     2017-12-26 15:43:13   ZoneGroupState  <ZoneGroups><ZoneGroup Coordinator="RINCON_000E58F7F67C01400" ID="RINCON_000E58F7F67C01400:868560010"><ZoneGroupMember UUID="RINCON_000E58F7F67C01400" Location="http://192.168.188.38:1400/xml/device_description.xml" ZoneName="Sonos" Icon="x-rincon-roomicon:living" Configuration="1" SoftwareVersion="39.4-48021" MinCompatibleVersion="38.0-00000" LegacyCompatibleVersion="25.0-00000" BootSeq="27" WirelessMode="1" WirelessLeafOnly="0" HasConfiguredSSID="1" ChannelFreq="2412" BehindWifiExtender="0" WifiEnabled="1" Orientation="0" RoomCalibrationState="1" SecureRegState="3" VoiceState="0"/></ZoneGroup></ZoneGroups>
     2018-01-07 00:17:52   state           opened
Attributes:
   getListsDirectlyToReadings 1
   getPlaylistsListAtNewVersion 1
   getQueueListAtNewVersion 1
   getRadiosListAtNewVersion 1
   room       Sonos
   targetSpeakDir /opt/fhem/SonosSpeak
   targetSpeakFileHashCache 1
   targetSpeakFileTimestamp 0
   targetSpeakMP3FileDir /opt/fhem/SonosSpeak
   targetSpeakURL //192.168.188.26/SonosSpeak
   verbose    2




Reinerlein

Hi TomLee,

danke, das war aufschlussreich :)

Kannst du mal testweise die Zeile 1946 in Datei 00_SONOS.pm auf folgendes anpassen?

if (($lastProcessAnswer != 0) && ($lastProcessAnswer < time() - (4 * $hash->{INTERVAL}))) {
Da kommt diese Prüfung mit ungleich 0 dazu.

Danach solltest du einen Fhem-Neustart machen, damit auch sicher die neue Version verwendet wird...

Danke schon mal...

Grüße
Reinerlein

TomLee

Sieht bisher sehr gut aus.

Hab selbst mit verbose 3 seit

2018.01.07 01:43:03 1: SONOS0: Modify Device: Sonos

keine Logeinträge bezüglich Sonos.

Danke

rohlande

Habe es bei mir auf 127.0.0.1 angepasst. Läuft deutlich stabiler seit her.
VG Denny
HostSystem: Synology DS918 | FHEM im Docker Version: 6.0-s22528_v2.2.4 (dedizierte IP Adresse) | MQTT_Broker auf DS918 NAS | MQTT_FHEM | TASMOTA_DEVICE | SSChatBot | SSCam | LaMetric | FBAHAHTTP | CUL | SONOS | HUEBridge (deCONZ) Zigbee | FB_CALLMONITOR | InfluxDBLogger

r_e_a_d_y

#12
Hi zusammmen,

ich klinke mich auch mal in diesem Thread ein (damit können wir den anderen von mir schließen).
Herzlichen Dank für die vielen Ideen - besonders an Reinerlein!

Ich habe folgende beiden Dinge versucht - leider ohne Erfolg :(:

1) Die Befehlszeile 1946 in Datei 00_SONOS.pm angepasst, wie von Reinerlein empfohlen. Denn ich hatte auch "LastProcessAnswer way too old" im Log.
if (($lastProcessAnswer != 0) && ($lastProcessAnswer < time() - (4 * $hash->{INTERVAL}))) {

Danach war im Log die o.g. Meldung weg, jedoch verschwand und erschien die Sonos ganz komisch oft - siehe Log-File "Sonos after Code Change.txt"

2) Anschließend habe ich wie von Denny (danke Denny!!) empfohlen, statt "localhost" mal die IP 127.0.0.1 verwendet. Natürlich habe ich den vorherigen Eintrag gelöscht und wie folgt neu angelegt:
define Sonos SONOS 127.0.0.1:4711 30 1 5
Das Ergebnis ist in Log-File "Sonos after Localhost Change.txt" zu finden.

Den Port hatte ich mittlerweile auch mal variiert.

Komisch ist generell bei mir, dass KEINER der Knöpfe im Sonosplayer oder irgendwelche Kommandos wie "set Sonos_Bad Stop" reagieren.
Allerdings über die Handy-App lässt sich die Sonos Play:1 problemlos steuern.

Weiterhin ist seltsam, dass bei einem laufendem Lied im Log fleißig die Track-Position mit geschrieben wird, auch wenn ich die physische Pausetaste an der Box drücke (> Lied hält an, Log schreibt weiter).

Wie gesagt kann ich das unabhängig mit der Synology oder mit dem Raspberry testen (wenn ein Fhem läuft, schalte ich den anderen natürlich ab) - bei beiden das gleiche Ergebnis :(.

Grüße, ready

Reinerlein

Hi ready,

also die Anpassung mit 127.0.0.1 sollte eigentlich keine besondere Auswirkung haben. Er versucht auf dieser Adresse einen SubProzess zu erreichen, und wenn das nicht gelingt, startet er lokal selber einen mit dem angegebenen Port, und versucht dann wieder mit der angegebenen Adresse hinzukommen.
Das bringt also nur etwas, wenn die Auflösung von localhost auf 127.0.0.1 oder die echte lokale IP sehr lange dauert (oder gar nicht funktioniert).

Portänderung bringt nur etwas, wenn der Port von einem anderen Serverprozess verwendet wird. Das sieht man im Log dann mit Port-Belegungsfehlern.

Meine Codeänderung ist besonders auf langsameren Kisten wichtig, da sonst der Initiale Kommunikationsaufwand (mit dem SubProzess) länger dauert, als die erste Prüfung des Reading "LastProcessAnswer". Wenn das passiert, dann ist der Timestamp mit dem 1.1.1970 natürlich viel zu alt :)
Immer wenn der SubProzess etwas an Fhem überträgt, wird in diesem Reading der aktuelle Timestamp abgelegt, und alle INTERVAL-Sekunden überprüft, ob er mittlerweile älter als 4*INTERVAL ist.

Ich bräuchte mal die Logs des SubProzesses (mindestens Level 4 am Sonos-Device), wenn er neugestartet wird. Diese Logausgabe am Besten mit dem Attribut "SubProcessLogfileName" am Sonos-Device in eine eigene Datei umlenken, und dann hier posten.

Parallel dazu dann auch die Logs von Fhem (dort stehen dann diese Meldungen mit "way too old...").

Grüße
Reinerlein

r_e_a_d_y

Hallo Reiner,

Danke für deine tolle Hilfe!!

Ich habe nun ...

  • die Sonos noch mal komplett raus geschmissen,
  • die Box vom Strom genommen und erneut angesteckt,
  • mit "define Sonos SONOS localhost:4715 30 1 5" definiert,
  • das attr SubProcessLogfileName gestzt
  • und verbose auf 5.

Anbei die Logs (Fhem, SubProcess).

Grüße, ready