Sonos steuern

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

Vorheriges Thema - Nächstes Thema

Reinerlein

Hi Capeghost,

das DOIF-Beispiel im Wiki stammt nicht von mir, sieht meiner Meinung nach aber gut aus... Vielleicht kann 50watt was dazu schreiben?
Er hat das ja bestimmt in Betrieb...

Eine zweite Ansage würde einfach dahinter mit DOELSEIF angehängt, wobei der Teil mit der Uhrzeit dann eben anders sein muss.

Grüße
Reinerlein

Reinerlein

Hi Detlef,

wenn, dann nicht beabsichtigt :)
Bei mir geht es noch, gerade mal kurz getestet. Hast du vielleicht etwas an den Proxy-Einstellungen geändert?
Ist der Speicherplatz dafür vielleicht voll? Keine Schreibrechte mehr?
Da müsstest du mal im Log nachschauen. Am Besten ein 5er Log...

Grüße
Reiner

Masterfunk

Bekomme folgende Meldung von der RG:

2015.07.13 20:50:37 3: Sonos_KuecheRG_Favourites: <{SONOS_getListRG($DEVICE,"Favourites",1)}@Favourites>: Can't escape \x{20AC}, try uri_escape_utf8() instead at ./FHEM/00_SONOS.pm line 594.


Gruß Detlef

Masterfunk

#1878
Eigenartig.

Habe mal diverse Favoriten gelöscht, jetzt gehts wieder.

Ich forsche mal welche es den war.

Gruß Detlef

Update:

Habe die Liste entdeckt.

Es war eine Liste aus Spotify, die so übernommen wurde:
Wojtek Pilichowski – Wojtek Pilichowski

Der Bindestrich ist aber keiner (ist länger). Wenn ich diesen tausche geht es:
Wojtek Pilichowski - Wojtek Pilichowski

Keine Ahnung was das für ein Sonderzeichen ist.

Gruß Detlef



Reinerlein

Hi Detlef,

ich habe mir das im Code mal angesehen. Das kann ich leider nicht einfach komplett auf uri_encode_utf8 umstellen, da dabei die Zeichen zwischen ascii 128 und 255 anders verarbeitet werden, sodass diese Zeichen am anderen Ende nicht mehr verstanden werden...

Ich würde mal schauen, ob ich doch noch eine schlaue Möglichkeit finde, das zu verallgemeinern, und ansonsten eher so lassen wie bisher...

Grüße
Reiner

Masterfunk

Hallo Reiner,

kein Problem.
Der Störenfried ist ja gefunden und konnte beseitigt werden. ;-)

Gruß Detlef

50watt

Hallo capeghost,

Ich verwende das DOIF wie im Wiki angeführt erfolgreich. In deinem define  ist vor fhem  nur ein ; Im Wiki sind zwei ;;
RaspberryPi, EnOcean PI
Sonos Play1, Connect
Eltako FT55, FSB61, FAM12, FSR12-4x

Ralli

Hallo Reiner(lein),

herzlichen Dank für Dein Modul!

Seit gestern mit einfacher Konfiguration in Betrieb. Einrichtung problemlos.

Wenn ich mein Sonos-System um einen weiteren Player erweitere, lieber fhem stoppen für die Dauer der Integration, oder ist das egal?
Gruß,
Ralli

Proxmox 8.4 Cluster mit HP ED800G2i7, Intel NUC11TNHi7+NUC7i5BNH, virtualisiertes fhem 6.4 dev, virtualisierte RaspberryMatic (3.83.6.20250705) mit HB-RF-ETH 1.3.0 / RPI-RF-MOD, HM-LAN-GW (1.4.1) und HMW-GW, FRITZBOX 7490 (07.59), FBDECT, Siri und Alexa

Capeghost

Hallo 50watt,

das war in der Tat das Problem, hatte ich gestern abend nah der Verzweifelung dann plötzlich selbst entdeckt. Keine Ahnung, warum, dass plötzlich verschwunden war. Hatte das Coding ja nur kopiert.

Danke.

Gruß

Capeghost

Reinerlein

Hallo Ralli,

ich würde das Sonos-Modul kurz deaktivieren. Dazu einfach am Sonos-Device das Attribut "disable" auf "1" setzen.
Sonst werden deine neuen Devices u.U. mit komischen Namen angelegt, da sich die Player bei der Einrichtung schon vor der Namensvergabe melden.

Wenn die Einrichtung seitens Sonos durch ist, dann einfach das Attribut wieder löschen.

Grüße
Reiner

Ralli

Gruß,
Ralli

Proxmox 8.4 Cluster mit HP ED800G2i7, Intel NUC11TNHi7+NUC7i5BNH, virtualisiertes fhem 6.4 dev, virtualisierte RaspberryMatic (3.83.6.20250705) mit HB-RF-ETH 1.3.0 / RPI-RF-MOD, HM-LAN-GW (1.4.1) und HMW-GW, FRITZBOX 7490 (07.59), FBDECT, Siri und Alexa

raspklaus

Hallo,

ich habe heute einen FHEM Update gefahren, seitdem müllt mir SONOS das Log zu. Wie kann man das abstellen ?

2015.07.15 14:46:27 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Wohnzimmer".
2015.07.15 14:46:27 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Wohnzimmer".
2015.07.15 14:46:27 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Buero".
2015.07.15 14:46:27 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Buero".
2015.07.15 14:46:45 3: CUL_800HM: Unknown code A0CE2865A3141C000000088F537::-99.5:CUL_800HM, help me!
2015.07.15 14:46:47 3: SONOS0: Connection accepted from localhost:49309
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:46:47 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Garten".
2015.07.15 14:46:47 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Garten".
2015.07.15 14:47:04 3: CUL_800HM: Unknown code A0CE284703141C000000000F537::-100:CUL_800HM, help me!
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:47:07 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Wohnzimmer".
2015.07.15 14:47:07 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Wohnzimmer".
2015.07.15 14:47:17 3: SONOS0: Connection accepted from localhost:49315
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:47:27 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Buero".
2015.07.15 14:47:27 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Buero".
2015.07.15 14:47:27 3: CUL_HM set Hintereingang getConfig
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:47:47 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Garten".
2015.07.15 14:47:47 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Garten".
2015.07.15 14:47:47 3: SONOS0: Connection accepted from localhost:49324
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:48:07 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Wohnzimmer".
2015.07.15 14:48:07 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Wohnzimmer".
2015.07.15 14:48:17 3: SONOS0: Connection accepted from localhost:49330
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:48:27 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Buero".
2015.07.15 14:48:27 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Buero".
2015.07.15 14:48:47 3: SONOS0: Connection accepted from localhost:49337
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:48:47 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Garten".
2015.07.15 14:48:47 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Garten".
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:49:07 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Wohnzimmer".
2015.07.15 14:49:08 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Wohnzimmer".
2015.07.15 14:49:17 3: SONOS0: Connection accepted from localhost:49343
2015.07.15 14:49:20 3: CUL_800HM: Unknown code A0CE3865A3141C000000088F537::-100:CUL_800HM, help me!
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:49:28 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Buero".
2015.07.15 14:49:28 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Buero".
2015.07.15 14:49:40 3: CUL_800HM: Unknown code A0CE384703141C000000000F537::-101:CUL_800HM, help me!
2015.07.15 14:49:47 3: SONOS0: Connection accepted from localhost:49352
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:49:48 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Garten".
2015.07.15 14:49:48 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Garten".
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:50:08 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Wohnzimmer".
2015.07.15 14:50:08 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Wohnzimmer".
2015.07.15 14:50:18 3: SONOS0: Connection accepted from localhost:49358
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:50:28 3: SONOS1: Event: Received Alarm-Event for Zone "Sonos_Buero".
2015.07.15 14:50:48 3: SONOS0: Connection accepted from localhost:49366
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:50:48 3: SONOS1: Event: Received Alarm-Event for Zone "Sonos_Buero".
2015.07.15 14:50:48 3: SONOS1: Event: End of Alarm-Event for Zone "Sonos_Buero".
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:51:08 3: SONOS1: Event: Received Alarm-Event for Zone "Sonos_Buero".
2015.07.15 14:51:08 3: SONOS1: Event: End of Alarm-Event for Zone "Sonos_Buero".
2015.07.15 14:51:18 3: SONOS0: Connection accepted from localhost:49373
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.15 14:51:28 3: SONOS1: Event: Received Alarm-Event for Zone "Sonos_Buero".
2015.07.15 14:51:28 3: SONOS1: Event: End of Alarm-Event for Zone "Sonos_Buero".
2015.07.15 14:51:28 3: SONOS1: Event: Received Alarm-Event for Zone "Sonos_Buero".
2015.07.15 14:51:28 3: SONOS1: Event: End of Alarm-Event for Zone "Sonos_Buero".
2015.07.15 14:51:28 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Buero".
2015.07.15 14:51:28 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Buero".
2015.07.15 14:51:28 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Garten".
2015.07.15 14:51:28 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Garten".
2015.07.15 14:51:28 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Wohnzimmer".
2015.07.15 14:51:28 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Wohnzimmer".
2015.07.15 14:51:42 3: CUL_800HM: Unknown code A0CE4865A3141C000000088F537::-98.5:CUL_800HM, help me!
2015.07.15 14:51:48 3: SONOS0: Connection accepted from localhost:49380
2015.07.15 14:52:02 3: CUL_800HM: Unknown code A0CE484703141C000000000F537::-99:CUL_800HM, help me!
2015.07.15 14:52:17 2: SONOS1: Discover Sonosplayer 'Büro' (S1) Software Revision 5.3.2 with ID 'RINCON_B8E9378B251401400_MR'
2015.07.15 14:52:18 3: SONOS0: Connection accepted from localhost:49396
2015.07.15 14:52:19 2: SONOS1: SonosPlayer 'Buero' (S1) with ID 'RINCON_B8E9378B251401400_MR' is already defined (as 'Sonos_Buero') and will only be updated
2015.07.15 14:52:20 2: SONOS1: SonosPlayer 'Buero' is now updated
2015.07.15 14:52:21 2: SONOS1: Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003654
2015.07.15 14:52:21 2: SONOS1: Rendering-Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003655
2015.07.15 14:52:21 2: SONOS1: GroupRendering-Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003656
2015.07.15 14:52:21 2: SONOS1: ContentDirectory-Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003657
2015.07.15 14:52:21 2: SONOS1: Alarm-Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003658
2015.07.15 14:52:21 2: SONOS1: ZoneGroupTopology-Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003659
2015.07.15 14:52:21 2: SONOS1: DeviceProperties-Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003660
2015.07.15 14:52:21 3: SONOS1: Discover: End of discover-event for "Büro".
2015.07.15 14:52:21 3: SONOS1: Event: Received Transport-Event for Zone "Sonos_Buero".
2015.07.15 14:52:21 3: SONOS1: Event: End of Transport-Event for Zone "Sonos_Buero".
2015.07.15 14:52:21 2: SONOS1: Discover Sonosplayer 'Büro' (S1) Software Revision 5.3.2 with ID 'RINCON_B8E9378B251401400_MR'
2015.07.15 14:52:23 2: SONOS1: SonosPlayer 'Buero' (S1) with ID 'RINCON_B8E9378B251401400_MR' is already defined (as 'Sonos_Buero') and will only be updated
2015.07.15 14:52:23 2: SONOS1: SonosPlayer 'Buero' is now updated
2015.07.15 14:52:23 2: SONOS1: Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003661
2015.07.15 14:52:23 2: SONOS1: Rendering-Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003662
2015.07.15 14:52:23 2: SONOS1: GroupRendering-Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003663
2015.07.15 14:52:23 2: SONOS1: ContentDirectory-Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003664
2015.07.15 14:52:23 2: SONOS1: Alarm-Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003665
2015.07.15 14:52:23 2: SONOS1: ZoneGroupTopology-Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003666
2015.07.15 14:52:23 2: SONOS1: DeviceProperties-Service-subscribing successful with SID=uuid:RINCON_B8E9378B251401400_sub0000003667
2015.07.15 14:52:23 3: SONOS1: Discover: End of discover-event for "Büro".
2015.07.15 14:52:23 3: SONOS1: Event: Received GroupRendering-Event for Zone "Sonos_Buero".
2015.07.15 14:52:23 3: SONOS1: Event: End of GroupRendering-Event for Zone "Sonos_Buero".
2015.07.15 14:52:23 3: SONOS1: Event: Received Alarm-Event for Zone "Sonos_Buero".
2015.07.15 14:52:23 3: SONOS1: Event: End of Alarm-Event for Zone "Sonos_Buero".
2015.07.15 14:52:23 3: SONOS1: Event: Received ZoneGroupTopology-Event for Zone "Sonos_Buero".
2015.07.15 14:52:23 3: SONOS1: Event: End of ZoneGroupTopology-Event for Zone "Sonos_Buero".
2015.07.15 14:52:23 3: SONOS1: Event: Received DeviceProperties-Event for Zone "Sonos_Buero".
2015.07.15 14:52:23 3: SONOS1: Event: End of DeviceProperties-Event for Zone "Sonos_Buero".
2015.07.15 14:52:23 3: SONOS1: Event: Received ContentDirectory-Event for Zone "Sonos_Buero".
2015.07.15 14:52:23 3: SONOS1: Event: End of ContentDirectory-Event for Zone "Sonos_Buero".
2015.07.15 14:52:23 3: SONOS1: Event: Received Rendering-Event for Zone "Sonos_Buero".
2015.07.15 14:52:23 3: SONOS1: Event: End of Rendering-Event for Zone "Sonos_Buero".
2015.07.15 14:52:23 3: SONOS1: Event: Received Transport-Event for Zone "Sonos_Buero".
2015.07.15 14:52:24 3: SONOS1: Event: End of Transport-Event for Zone "Sonos_Buero".
2015.07.15 14:52:24 3: SONOS1: Event: Received GroupRendering-Event for Zone "Sonos_Buero".
2015.07.15 14:52:24 3: SONOS1: Event: End of GroupRendering-Event for Zone "Sonos_Buero".
2015.07.15 14:52:48 3: SONOS0: Connection accepted from localhost:49448
2015.07.15 14:53:18 3: SONOS0: Connection accepted from localhost:49455
2015.07.15 14:53:48 3: SONOS0: Connection accepted from localhost:49462
2015.07.15 14:53:49 3: CUL_800HM: Unknown code A0CE5865A3141C000000088F537::-99.5:CUL_800HM, help me!
2015.07.15 14:54:09 3: CUL_800HM: Unknown code A0CE584703141C000000000F537::-98.5:CUL_800HM, help me!
2015.07.15 14:54:18 3: SONOS0: Connection accepted from localhost:49468

Reinerlein

Hallo raspklaus,

du kannst einfach das verbose-Attribut am Sonos-Device niedriger setzen (z.B. 0)...

Grüße
Reinerlein

raspklaus

Trotz verbose 0 kommen die folgenden Fehlermeldungen:

Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.16 09:49:32 3: CUL_800HM: Unknown code A0CA7865A3141C000000088FA3A::-102:CUL_800HM, help me!
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
2015.07.16 09:49:52 3: CUL_800HM: Unknown code A0CA784703141C000000000FA3A::-98:CUL_800HM, help me!
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.

Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.
Loading device description failed with error: 500 Can't connect to 192.168.178.1:49000 (timeout) at ./FHEM/00_SONOS.pm line 3587 thread 1.

Reinerlein

Hi raspklaus,

das sind Meldungen die direkt vom unterliegenden TCP/IP-Layer (bzw. der Perlklasse dazu) auf STDERR ausgegeben werden.
Das kann ich nicht beeinflussen.

Allgemein wäre es praktisch, wenn STDERR nicht im fhem-log landen würde, sondern eine eigene Datei wie "fhem-stderr.log" bekäme. Passenderweise vielleicht für STDOUT auch gleich. Oder irgendwie konfigurierbar...
Meldungen die dort ankommen sind zwar manchmal wichtig, oftmals, wie bei dir, aber wenig hilfreich.

Du kannst natürlich mal versuchen der Ursache auf die Spur zu kommen. Versucht das Modul einen nicht mehr vorhandenen Player anzusprechen? Wird die Abwesenheit des Player sauber erkannt?
Funktionieren alle Netzwerkkomponente dazwischen sauber? Kannst du den Player, wenn die Meldungen auftauchen, von einem anderen Rechner aus noch anpingen?
Ich sehe gerade, dass es die .1-Adresse ist. Ist das überhaupt ein Player? Sieht mir eher wie der Router aus. Meldet sich der vielleicht als UPnP-AV-Player? Das könntest du über ein 5er log (am Sonos-Device) herausfinden, da dort detailliert ausgegeben wird, was sich auf die Anfrage hin so zurückmeldet...

Ansonsten ist das Feld für timeouts bei Netzwerkanfragen sehr vielfältig :)

Grüße
Reinerlein