Sonos steuern

Begonnen von Will, 05 Januar 2013, 15:51:12

Vorheriges Thema - Nächstes Thema

Loredo

Zitat von: Spuckiii am 05 November 2015, 16:50:17
Hab da mal eine kurze Frage. Die SuFu hat mir leider nichts ausgespuckt. Ist es möglich z.b. im Schlafzimmer und im Kinderzimmer je 1 Sonos Box aufzustellen und so einzustellen dass z.b. das Tablett im Kinderzimmer nur auf seine SonosBox drauf zu greifen kann und nicht auch auf die im Schlafzimmer? ggfs. auch nur auf 1 dem Player zugewiesene Abspielliste?


Das geht nur mit unterschiedlichen Broadcast Domains und eigenem WLAN.
Hat meine Arbeit dir geholfen? ⟹ https://paypal.me/pools/c/8gDLrIWrG9

Maintainer:
FHEM-Docker Image, https://github.com/fhem, Astro(Co-Maintainer), ENIGMA2, GEOFANCY, GUEST, HP1000, Installer, LaMetric2, MSG, msgConfig, npmjs, PET, PHTV, Pushover, RESIDENTS, ROOMMATE, search, THINKINGCLEANER

stenny73

Hallo.

Seit langem spiele ich mal wieder mit meinen Sonos System herrum.
Dabei viel mir auf das beim Streaming (Amazon) keine Cover angezeigt werden,
ich bin der Meinung das dieses aber anfangs ging.....
Wo kann ich dieses ggf aktivieren.....




Danke
stenny
FHEM auf XEN, Ubuntu-Server 14.04   - HM-Lan - Max - ZWave -WS1080 -BlueTooth

FHEM auf Ubuntu-Server 14.04   - HM-LAN

FHEM auf Raspberry Pi   - CSM für Max - HM-USB - WiFi-LED

ujaudio

Hat jemand von euch das gleiche Problem "running out of memory"?

Ein Auszug aus meinem Logfile:
2015.11.07 07:15:25 1: Including ./log/fhem.save
2015.11.07 07:15:35 1: usb create starting
2015.11.07 07:15:37 1: usb create end
2015.11.07 07:15:42 0: Featurelevel: 5.6
2015.11.07 07:15:42 0: Server started with 301 defined entities (version $Id: fhem.pl 9755 2015-11-02 19:34:14Z rudolfkoenig $, os linux, user fhem, pid 2045)
2015.11.07 07:15:46 1: HMLAN_Parse: hmusb new condition ok
2015.11.07 07:15:53 2: or_harmony: disconnect
Current: "./FHEM/00_SONOS.pm", gPath: ""
2015.11.07 07:17:05 1: PERL WARNING: Use of uninitialized value $htmlTxt in string eq at ./FHEM/95_FLOORPLAN.pm line 677.
2015.11.07 07:17:05 1: PERL WARNING: Use of uninitialized value $text in concatenation (.) or string at ./FHEM/95_FLOORPLAN.pm line 586.
2015.11.07 07:25:25 2: or_harmony: disconnect
2015.11.07 07:25:43 0: SONOS1: Setting LogLevel to new value: 3
...
2015.11.07 07:27:55 3: SONOS0: Connection accepted from localhost:34424
2015.11.07 07:28:24 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "mm_sonos_BRIDGE".
2015.11.07 07:28:24 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "mm_sonos_BRIDGE".
2015.11.07 07:28:25 3: SONOS0: Connection accepted from localhost:34427
...
2015.11.07 07:43:56 3: SONOS0: Connection accepted from localhost:34525
2015.11.07 07:44:21 2: SONOS1: Device 'RINCON_000E582AB0EE01400_MR' removed. Do nothing special here, cause all is done in another way...
2015.11.07 07:44:26 3: SONOS0: Connection accepted from localhost:34530
2015.11.07 07:44:27 2: SONOS1: Discover Sonosplayer 'Wohnzimmer' (ZP90) Software Revision 5.4 with ID 'RINCON_000E582AB0EE01400_MR'
2015.11.07 07:44:37 2: SONOS1: SonosPlayer 'Wohnzimmer' (ZP90) with ID 'RINCON_000E582AB0EE01400_MR' is already defined (as 'mm_sonos_Wohnzimmer') and will only be updated
2015.11.07 07:44:39 2: SONOS1: SonosPlayer 'Wohnzimmer' is now updated
2015.11.07 07:44:39 2: SONOS1: Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000007
2015.11.07 07:44:39 2: SONOS1: Rendering-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000008
2015.11.07 07:44:39 2: SONOS1: GroupRendering-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000009
2015.11.07 07:44:39 2: SONOS1: ContentDirectory-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000010
2015.11.07 07:44:39 2: SONOS1: Alarm-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000011
2015.11.07 07:44:40 2: SONOS1: ZoneGroupTopology-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000012
2015.11.07 07:44:40 2: SONOS1: DeviceProperties-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000013
2015.11.07 07:44:40 2: SONOS1: AudioIn-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000014
2015.11.07 07:44:40 3: SONOS1: Discover: End of discover-event for "Wohnzimmer".
2015.11.07 07:44:40 3: SONOS1: Event: Received Transport-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:44:42 3: SONOS1: Event: End of Transport-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:44:43 3: SONOS1: Event: Received GroupRendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:44:43 3: SONOS1: Event: End of GroupRendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:44:44 2: SONOS1: Discover Sonosplayer 'Wohnzimmer' (ZP90) Software Revision 5.4 with ID 'RINCON_000E582AB0EE01400_MR'
2015.11.07 07:44:56 2: SONOS1: Error during UPnP-Handling, restarting handling: multiple roots, wrong element 'name'

2015.11.07 07:44:56 3: SONOS0: Connection accepted from localhost:34572
2015.11.07 07:44:57 2: SONOS1: Discover Sonosplayer 'BRIDGE' (ZB100) Software Revision 5.4 with ID 'RINCON_000E5865D6B001400_MR'
Out of memory!
Perl exited with active threads:
2 running and unjoined
1 finished and unjoined
0 running and detached
2015.11.07 07:44:58 1: SONOS0: Nothing could be read from TCP-Channel (the first level) even though the Read-Function was called.
2015.11.07 07:44:58 1: SONOS0: Kein UPnP-Server gefunden... Starte selber einen und warte 12 Sekunde(n) darauf...
Current: "./FHEM/00_SONOS.pm", gPath: ""
2015.11.07 07:45:08 1: SONOS0: ./FHEM/00_SONOS.pm is listening to Port 4711
2015.11.07 07:45:10 3: Opening mm_sonos device localhost:4711
2015.11.07 07:45:10 3: SONOS0: Connection accepted from localhost:34588
2015.11.07 07:45:10 3: mm_sonos device opened
2015.11.07 07:45:12 3: SONOS1: UPnP-Thread gestartet.
2015.11.07 07:45:14 1: SONOS2: IsAlive-Thread gestartet. Warte 120 Sekunden und pruefe dann alle 30 Sekunden...
2015.11.07 07:45:14 2: SONOS1: Discover Sonosplayer 'BRIDGE' (ZB100) Software Revision 5.4 with ID 'RINCON_000E5865D6B001400_MR'
2015.11.07 07:45:15 1: SONOS3: Restore-Thread gestartet. Warte auf Arbeit...
2015.11.07 07:45:18 2: SONOS1: SonosPlayer 'BRIDGE' (ZB100) with ID 'RINCON_000E5865D6B001400_MR' is already defined (as 'mm_sonos_BRIDGE') and will only be updated
2015.11.07 07:45:18 2: SONOS1: SonosPlayer 'BRIDGE' is now updated
2015.11.07 07:45:18 2: SONOS1: ZoneGroupTopology-Service-subscribing successful with SID=uuid:RINCON_000E5865D6B001400_sub0000000002
2015.11.07 07:45:18 2: SONOS1: DeviceProperties-Service-subscribing successful with SID=uuid:RINCON_000E5865D6B001400_sub0000000003
2015.11.07 07:45:18 3: SONOS1: Discover: End of discover-event for "BRIDGE".
2015.11.07 07:45:19 2: SONOS1: Discover Sonosplayer 'Wohnzimmer' (ZP90) Software Revision 5.4 with ID 'RINCON_000E582AB0EE01400_MR'
2015.11.07 07:45:33 2: SONOS1: SonosPlayer 'Wohnzimmer' (ZP90) with ID 'RINCON_000E582AB0EE01400_MR' is already defined (as 'mm_sonos_Wohnzimmer') and will only be updated
2015.11.07 07:45:35 2: SONOS1: SonosPlayer 'Wohnzimmer' is now updated
2015.11.07 07:45:36 2: SONOS1: Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000024
2015.11.07 07:45:36 2: SONOS1: Rendering-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000025
2015.11.07 07:45:36 2: SONOS1: GroupRendering-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000026
2015.11.07 07:45:36 2: SONOS1: ContentDirectory-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000027
2015.11.07 07:45:36 2: SONOS1: Alarm-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000028
2015.11.07 07:45:36 2: SONOS1: ZoneGroupTopology-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000029
2015.11.07 07:45:36 2: SONOS1: DeviceProperties-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000030
2015.11.07 07:45:36 2: SONOS1: AudioIn-Service-subscribing successful with SID=uuid:RINCON_000E582AB0EE01400_sub0000000031
2015.11.07 07:45:36 3: SONOS1: Discover: End of discover-event for "Wohnzimmer".
2015.11.07 07:45:37 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "mm_sonos_BRIDGE".
2015.11.07 07:45:37 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "mm_sonos_BRIDGE".
2015.11.07 07:45:37 3: SONOS1: Event: Received DeviceProperties-Event for Zone "mm_sonos_BRIDGE".
2015.11.07 07:45:37 3: SONOS1: Event: End of DeviceProperties-Event for Zone "mm_sonos_BRIDGE".
2015.11.07 07:45:37 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "mm_sonos_BRIDGE".
2015.11.07 07:45:37 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "mm_sonos_BRIDGE".
2015.11.07 07:45:37 3: SONOS1: Event: Received DeviceProperties-Event for Zone "mm_sonos_BRIDGE".
2015.11.07 07:45:37 3: SONOS1: Event: End of DeviceProperties-Event for Zone "mm_sonos_BRIDGE".
2015.11.07 07:45:37 3: SONOS1: Event: Received Transport-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:40 3: SONOS1: Event: End of Transport-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:40 3: SONOS1: Event: Received GroupRendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:40 3: SONOS1: Event: End of GroupRendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: Received Alarm-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: End of Alarm-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: Received AudioIn-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: End of AudioIn-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: Received DeviceProperties-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: End of DeviceProperties-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: Received ContentDirectory-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: End of ContentDirectory-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: Received Rendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: End of Rendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: Received GroupRendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:41 3: SONOS1: Event: End of GroupRendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:43 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "mm_sonos_BRIDGE".
2015.11.07 07:45:43 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "mm_sonos_BRIDGE".
2015.11.07 07:45:48 3: SONOS1: Event: Received Rendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:48 3: SONOS1: Event: End of Rendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:48 3: SONOS1: Event: Received GroupRendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:45:48 3: SONOS1: Event: End of GroupRendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:46:11 3: SONOS0: Connection accepted from localhost:34632
2015.11.07 07:46:21 3: SONOS1: Event: Received Transport-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:46:24 3: SONOS1: Event: End of Transport-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:46:24 3: SONOS1: Event: Received Rendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:46:24 3: SONOS1: Event: End of Rendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:46:24 3: SONOS1: Event: Received GroupRendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:46:24 3: SONOS1: Event: End of GroupRendering-Event for Zone "mm_sonos_Wohnzimmer".
2015.11.07 07:46:41 3: SONOS0: Connection accepted from localhost:34639
2015.11.07 07:47:11 3: SONOS0: Connection accepted from localhost:34640
2015.11.07 07:47:40 0: SONOS1: Setting LogLevel to new value: 0
Out of memory!
Perl exited with active threads:
2 running and unjoined
1 finished and unjoined
0 running and detached
2015.11.07 08:20:49 0: SONOS0: No Answer from Subprocess. Restart Sonos-Subprocess...
Current: "./FHEM/00_SONOS.pm", gPath: ""


Wo "..." steht habe ich nur Wiederholungen von "Connection accepted from localhost:" gelöscht. Ansonsten habe ich mal alles andere drin gelassen.

Im Normalbetrieb mit verbose = 0 bekomme ich immer wieder folgende Einträge im Logfile:
Current: "./FHEM/00_SONOS.pm", gPath: ""
Loading device description failed with error: 401 Unauthorised at ./FHEM/00_SONOS.pm line 3590 thread 1
Loading device description failed with error: 401 Unauthorised at ./FHEM/00_SONOS.pm line 3590 thread 1
Loading device description failed with error: 401 Unauthorised at ./FHEM/00_SONOS.pm line 3590 thread 1


Früher gab es diese Einträge nicht, da hat auch alles funktioniert. Heute funktioniert die Lautstärkeeinstellung beim Ein- und Ausschalten nicht mehr, das ist aber das aus meiner Anwendersicht einzige Problem. Ich konnte da dem ersten langen Log aber nichts Hilfreiches entnehmen.

Ansonsten wie immer: für Hinweise bin ich dankbar.
Einen lieben Gruß
Jürgen

2P4u

Hi Zusammen.
Kann mir hier jemand weiterhelfen?
Wenn ich eine Sprachausgabe starten möchte steht folgendes im Logfile:
2015.11.07 12:24:13 1: PERL WARNING: Use of uninitialized value within @params in join or string at ./FHEM/00_SONOS.pm line 2008.
Use of uninitialized value $text in substitution (s///) at ./FHEM/00_SONOS.pm line 3499, <$client> line 7.
Use of uninitialized value $text in substitution (s///) at ./FHEM/00_SONOS.pm line 3499, <$client> line 7.
Argument "asdgfsdghbsdhgfsdgf" isn't numeric in numeric ne (!=) at ./FHEM/00_SONOS.pm line 4299, <$client> line 7.
2015.11.07 12:24:18 3: n_sv_sonosGroups return value: Undefined subroutine &main::sv_setSonosGroupsReadings called at (eval 437) line 1.

2015.11.07 12:24:18 3: n_sv_sonosTransportState return value: Undefined subroutine &main::sv_SonosTransportStateChanged called at (eval 438) line 1.

2015.11.07 12:24:23 3: n_sv_sonosGroups return value: Undefined subroutine &main::sv_setSonosGroupsReadings called at (eval 440) line 1.


Danke und lieben Gruss
Daniel
1x Ubuntu Server
1x LaCrosse Gateway für PCA301 /1x HMLAN /1x HMLGW
2x HueBridge mit Devices/ 1x Logitech Harmony Ultimate

ujaudio

#2194
Seit dem Update heute morgen von FHEM und meinen Sonos-Geräten (mache ich beides eher selten) muss ich nun das Sonosmodul "disablen", weil sonst FHEM komplett abstürzt. Immerhin funktioniert das restliche Haus nun wieder, ich wurde schon ganz nervös.

Sonos ist Version 5.5 (Build 29693090)
FHEM ist Version 5.6
Einen lieben Gruß
Jürgen

Benni

Hallo,

ich habe seit neuestem (kann leider nicht genau rekonstruieren, seit wann) ebenfalls solche Fehler im Log:

Zitat
Loading device description failed with error: 500 Can't connect to 192.168.178.31:49152 (timeout) at ./FHEM/00_SONOS.pm line 3590 thread 1
Loading device description failed with error: 500 Can't connect to 192.168.178.74:49152 (timeout) at ./FHEM/00_SONOS.pm line 3590 thread 1

Es sind immer diese beiden IP-Adressen. Bei beiden IP-Adressen handelt es sich allerdings nicht um SONOS-Geräte, sondern um 2 devolo dLAN-Wireless 500 Adapter.

Weiterhin reagiert die Steuerung der Sonos-Geräte aus FHEM heraus (über die entsprechenden SONOSPLAYER-Devices) sehr verzögert (>3 Sekunden, teilweise auch deutlich mehr). FHEM an sich reagiert dabei aber trotzdem ohne Verzögerungen.

Sowohl mein System, als auch mein FHEM sind auf aktuellem Stand.
Auch liegen derzeit keine Firmware-Updates für meine dLAN-Adapter oder die SONOS vor.
Sowohl FHEM, als auch den Rechner auf dem es läuft habe ich bereits neu gestartet. Ebenso wie mein SONOS-System (bestehend aus 4 PLAY:1)

Ach ja, mein Netzwerk ansonsten wird über die allseits beliebte Fritz!Box (7490) betrieben.


SVLoneStar

Zitat von: SVLoneStar am 05 November 2015, 01:06:30
Hallo Reiner,
folgendes Problem: Nach einem Neustart meines CubieTruck erhalte ich (gefühlt) 5000 Einträge folgender Meldung im Log :

Loading device description failed with error: 200 OK at ./FHEM/00_SONOS.pm line 3591 thread 1.

Es sind zwei Sonos:Play1 im Einsatz, bei beiden und auch beim Sonos-Device steht der LogLevel auf 1.

Was ist zu tun? Benötigst Du weitere Informationen?

Besten Dank,
Stefan

Edit: Post gekürzt, sorry.

Hallo,
ich habe, um die tausende von Log-Einträgen zu vermeiden, in der ControlPoint.pm folgende Änderung im Sub _createDevice (Zeile 265ff) vorgenommen:

Original:

if ($response->is_success && $response->content ne '') {
($device, $base) = $self->parseDeviceDescription($response->content,
     {Location => $location},
     {ControlPoint => $self});
}
else {
carp("Loading device description failed with error: " .
      $response->code . " " . $response->message);
}
pop(@LWP::Protocol::http::EXTRA_SOCK_OPTS);


Geändert:

if ($response->is_success && $response->content ne '') {
($device, $base) = $self->parseDeviceDescription($response->content,
     {Location => $location},
     {ControlPoint => $self});
}
else {
carp($response->is_success);
carp($response->content);
if ($response->code ne '200') {
carp("Loading device description failed with error: " .
$response->code . " " . $response->message);
}
}
pop(@LWP::Protocol::http::EXTRA_SOCK_OPTS);


Die beiden carp-Ausgaben habe ich (temporär) eingebaut, um die Inhalte der Variablen $response->is_success und $response->content zu prüfen.
Im Log steht dann

1 at ./FHEM/00_SONOS.pm line 3591 thread 1.
at ./FHEM/00_SONOS.pm line 3591 thread 1.


Wenn ich den Fehler richtig interpretiere heisst das, dass der Befehl my $response = $ua->get($location); erfolgreich war (1), dabei allerdings keine response geliefert wurde.
Da der Befehl allerdings erfolgreich ausgeführt werden konnte, lautet der HTTP Response Code eben '200 OK'.
Durch die Anpassung oben ist also der Log-Eintrag verschwunden - die Frage, warum $response->content leer ist (und was das für AUswirkungen hat), bleibt aber offen.
FHEM 21222 auf Gigabyte NUC, CubieTruck & RasPis (Test)
CUL 868MHz, nanoCUL 868MHz, nanoCUL 433MHz, JeeLink Clone, JeeLink Classic, HM-CFG-USB2, Rademacher
Devices: FHT, FS20, KS300, MAX, IT, HMS100, LaCrosse, PCA301, Revolt, HomeMatic, ESA2000, UNIRoll, Sonos, Duofern, Tasmota, MySensors

Elektrolurch

Hallo Liste und Sonos-Freunde,

bislang habe ich die drei Players nur Mal so zur Probe gruppiert. Jetzt habe ich aber vor, dass ganze wirklich zu einem Multiroom-System auszubauen und habe mit der "Gruppierungsfunktion" herumgespielt.
Dabei ist mir aufgefallen, dass nach der Stromabschaltung die Player offensichtlich den Gruppenstatus vergessen haben.
Konkret habe ich einen slave ausgeschaltet und danach wieder eingeschaltet. Der Audiostream wurde nicht mehr an den slave gesendet, d.h. man muss die Gruppierung nach Stromzuschaltung wieder von Neuem vornehmen.

Kann das jemand bestätigen?

Und wie sieht es mit zwei Playern aus, die zu einem Stereo-Paar verbunden wurden?

Elektrolurch
configDB und Windows befreite Zone!

viegener

Zitat von: Elektrolurch am 09 November 2015, 19:01:13
Hallo Liste und Sonos-Freunde,

bislang habe ich die drei Players nur Mal so zur Probe gruppiert. Jetzt habe ich aber vor, dass ganze wirklich zu einem Multiroom-System auszubauen und habe mit der "Gruppierungsfunktion" herumgespielt.
Dabei ist mir aufgefallen, dass nach der Stromabschaltung die Player offensichtlich den Gruppenstatus vergessen haben.
Konkret habe ich einen slave ausgeschaltet und danach wieder eingeschaltet. Der Audiostream wurde nicht mehr an den slave gesendet, d.h. man muss die Gruppierung nach Stromzuschaltung wieder von Neuem vornehmen.

Kann das jemand bestätigen?

Und wie sieht es mit zwei Playern aus, die zu einem Stereo-Paar verbunden wurden?

Elektrolurch

Ja das die Gruppierung beim Ausschalten eines oder der Player (ZP80/90/play5) verlorengeht ist bei mir auch so. Für ein Stereopaar kann ich das nicht sagen. 
Kein Support über PM - Anfragen gerne im Forum - Damit auch andere profitieren und helfen können

MandelHL

Hallo zusammen,

ich hatte meinen RasPi neu aufgesetzt und vorher meine Dateien gesichert. Um Sonos wieder über FHEM zu nutzen, habe ich mich an die Anleitung aus dem SONOS - FHEWiki gehalten. Dabei geht es mit vor allem nur darum, Tür- und Fensterkontakte zu prüfen und beim Öffnen der Haustür, eine Meldung auszugeben, sofern ein Fenster offen steht. Bis eben ging zumindest die Musik aus, auch wenn keine Sprachausgabe erfolgte. Das probierte ich mit: set Sonos_Kueche Speak 45 de Hallo, hörst Du was?
Jetzt geht inzwischen nicht einmal mehr die Musik aus. Im FHEM WI sehe ich unter Sonos die einzelnen Lautsprecher und auch die Cover der einzelnen Räume. Allerdings lässt sich nichts stoppen oder leiser bzw. lauter stellen.
Ich brauche keine Audio-Dateien, sondern nur die Ausgabe wie oben beschrieben.
Welche targetSpeakUrl muss ich in der Sonos.cfg eintragen? Die des RasPis?

Wahrscheinlich lässt sich meine Frage ohne weitere Infos so leicht nicht beantworten. Was braucht Ihr noch an Infos, um mir zu helfen?

Danke und viele Grüße
MandelHL

WumpE

Hi Leute gibt's denn eine Möglichkeit den LogEintrag "Odd number of elements in hash assignment at /usr/share/perl5/IO/Socket/IP.pm line 328, <$client> line 4." zu Fixen oder zumindest zu unterbinden das dieser nicht in der FHEM log erscheint?

Den Workaround von Justme mit dem auskommentieren einer Zeile in der http.pm habe ich probiert und hat nicht geholfen.

Ich habe in einer halben Stunde gut 200 Logzeilen, dass kann ich so nicht lassen
Über Mich: Stefan, Informatiker, Systementwicklung Prozessleittechnik
Server: NUC7i5 - Debian Docker
Container: FHEM,DEBMATIC,EMQX,NODERED,SONOS2MQTT,TRAEFIK,HOMEBRIDGE,DECONZ
Aktoren/Sensoren: HM-RF, HM-IP, EnergyCam, Shelly, MiLight, Hue, SONOS, OEG KMS-D+, Echo's, Worx
Frontends: Smartvisu 2.9

Elektrolurch

Zitat:
Den Workaround von Justme mit dem auskommentieren einer Zeile in der http.pm habe ich probiert und hat nicht geholfen.



Das funktioniert normalerweise schon. Hast Du das entsprechende Modul auch nach dem Abändern neu geladen? Bzw. fhem einfach mal neu gestartet?

Elektrolurch
configDB und Windows befreite Zone!

WumpE

#2202
Jup so schauts aus und Raspi ist neu gestartet

auszug aus dem File /usr/share/perl5/LWP/Protocol/http.pm

sub _new_socket
{
    my($self, $host, $port, $timeout) = @_;
    my $conn_cache = $self->{ua}{conn_cache};
    if ($conn_cache) {
if (my $sock = $conn_cache->withdraw($self->socket_type, "$host:$port")) {
    return $sock if $sock && !$sock->can_read(0);
    # if the socket is readable, then either the peer has closed the
    # connection or there are some garbage bytes on it.  In either
    # case we abandon it.
    $sock->close;
}
    }

    local($^W) = 0;  # IO::Socket::INET can be noisy
    my $sock = $self->socket_class->new(PeerAddr => $host,
PeerPort => $port,
LocalAddr => $self->{ua}{local_address},
Proto    => 'tcp',
Timeout  => $timeout,
KeepAlive => !!$conn_cache,
SendTE    => 1,
#$self->_extra_sock_opts($host, $port),
       );

    unless ($sock) {
# IO::Socket::INET leaves additional error messages in $@
my $status = "Can't connect to $host:$port";
if ($@ =~ /\bconnect: (.*)/ ||
    $@ =~ /\b(Bad hostname)\b/ ||
    $@ =~ /\b(certificate verify failed)\b/ ||
    $@ =~ /\b(Crypt-SSLeay can't verify hostnames)\b/
) {
    $status .= " ($1)";
}
die "$status\n\n$@";
    }

    # perl 5.005's IO::Socket does not have the blocking method.
    eval { $sock->blocking(0); };

    $sock;
}


UPDATE

Problem gelöst, die richtige Datei liegt hier: /usr/local/share/perl/5.14.2/LWP/Protocol/http.pm
Über Mich: Stefan, Informatiker, Systementwicklung Prozessleittechnik
Server: NUC7i5 - Debian Docker
Container: FHEM,DEBMATIC,EMQX,NODERED,SONOS2MQTT,TRAEFIK,HOMEBRIDGE,DECONZ
Aktoren/Sensoren: HM-RF, HM-IP, EnergyCam, Shelly, MiLight, Hue, SONOS, OEG KMS-D+, Echo's, Worx
Frontends: Smartvisu 2.9

MandelHL

#2203
Sauber, freut mich.

Kann sich dann vielleicht noch mal jemand mein Problem ansehen. Ich bekomme bei Sonos einfach keinen Ton raus.
Auf meine Eingabe in die Kommandozeile 'set Sonos_Kueche Speak 45 de Hallo, hörst Du was?' finde ich folgenden Log-Eintrag:
2015.11.12 19:33:57 3: SONOS10: Load Google generated MP3 (1. Element) from "http://translate.google.com/translate_tts?tl=de&client=t&prev=input&q=%20Hallo%2C%20h%F6rst%20Du%20was%3F" to "/mnt/SonosSpeak/RINCON_B8E937829E6A01400_MR_Speak_0ab9101b7b4d15744dbb7fc95265aadf762c5462.mp31"
2015.11.12 19:33:57 3: SONOS10: Combine loaded chunks into "/mnt/SonosSpeak/RINCON_B8E937829E6A01400_MR_Speak_0ab9101b7b4d15744dbb7fc95265aadf762c5462.mp3"
Use of uninitialized value in concatenation (.) or string at ./FHEM/00_SONOS.pm line 3993, <$client> line 9.
binmode() on closed filehandle MPFILE at ./FHEM/00_SONOS.pm line 4000, <$client> line 9.
print() on closed filehandle MPFILE at ./FHEM/00_SONOS.pm line 4001, <$client> line 9.
2015.11.12 19:33:57 2: SONOS10: Beim Setzen der MP3-Informationen (ID3TagV2) ist ein Fehler aufgetreten: Can't call method "config" on an undefined value at ./FHEM/00_SONOS.pm line 3548, <$client> line 9.

2015.11.12 19:33:57 3: SONOS10: Start temporary playing of "\\192.168.178.100\SonosSpeak/RINCON_B8E937829E6A01400_MR_Speak_0ab9101b7b4d15744dbb7fc95265aadf762c5462.mp3"
2015.11.12 19:33:57 3: SONOS10: ProxyObject does not exists
2015.11.12 19:33:58 2: SONOS7: Error during UPnP-Handling:
2015.11.12 19:33:58 3: SONOS7: UPnP-Thread wurde beendet.


Habe jetzte leider auch noch ein Problem mit dem Update:
2015-11-12 20:15:04 Global global open ./FHEM/00_SONOS.pm failed: Permission denied, trying to restore the previous version and aborting the update

:-(

Danke und Gruß
MandelHL

Reinerlein

Hallo MandelHL,

das scheint ein Rechteproblem zu sein. Sowohl die Sonos.pm konnte nicht überschrieben werden, als auch in den Ordner "/mnt/SonosSpeak" geschrieben werden...

Prüfe das nochmal genau... Auch, unter welchem Namen dein Fhem läuft, und ob dieser Benutzer (bzw. die Gruppen des Prozesses) dort wirklich Schreibrechte hat...

Grüße
Reiner