SONOS: Meldung Renewal of subscription failed unterdrücken

Begonnen von zap, 09 Oktober 2017, 16:52:26

Vorheriges Thema - Nächstes Thema

zap

Beim SONOS Modul wird nach wie vor das FHEM Log mit Meldungen

Renewal of subscription failed with error: 500 Can't connect to ...

vollgeschrieben, wenn man SONOS Lautsprecher vom Strom nimmt. Gibt es eine Möglichkeit, diese Meldung zu unterdrücken? Sie ist in diesem Fall völlig überflüssig, da ich die Lautsprecher absichtlich ausschalte.

Wenn man sie nicht unterdrücken kann, könnte man die Anzahl der Meldungen dann wenigsten auf 1 reduzieren?

Leider entspricht die Meldung nicht dem FHEM Logformat, wird also vermutlich nicht mit Log3() ausgegeben.
2xCCU3, Fenster, Rollläden, Themostate, Stromzähler, Steckdosen ...)
Entwicklung: FHEM auf AMD NUC (Ubuntu)
Produktiv inzwischen auf Home Assistant gewechselt.
Maintainer: FULLY, Meteohub, HMCCU, AndroidDB

Reinerlein

Hi zap,

diese Meldung kommt direkt aus dem UPnP-Modul und wird auf dem Fehlerkanal (STDERR) ausgegeben.

Geht denn das Playerdevice auf den State "disappeared"?

Grüße
Reinerlein

zap

2xCCU3, Fenster, Rollläden, Themostate, Stromzähler, Steckdosen ...)
Entwicklung: FHEM auf AMD NUC (Ubuntu)
Produktiv inzwischen auf Home Assistant gewechselt.
Maintainer: FULLY, Meteohub, HMCCU, AndroidDB

Reinerlein

Hi zap,

hmm... das ist komisch.

Hast du in deinem normalen Log Meldungen wie:

Delete ProxyObjects and SubscriptionObjects...
auf Loglevel 4
oder

Subscription for ZonePlayer [UDN] has expired and...
auf Loglevel 3?

Grüße
Reinerlein

diko

Hallo Reinerlein,
ist bei mir auch so mit den unendlichen Fehlermeldungen, schalte die Sonos Geräte auch ab.

Renewal of subscription failed with error: 500 Can't connect to 192.168.0.27:1400 at ./FHEM/00_SONOS.pm line 4085 thread 1.
Renewal of subscription failed with error: 500 Can't connect to 192.168.0.27:1400 at ./FHEM/00_SONOS.pm line 4109 thread 1.
Renewal of subscription failed with error: 500 Can't connect to 192.168.0.27:1400 at ./FHEM/00_SONOS.pm line 4133 thread 1.
Renewal of subscription failed with error: 500 Can't connect to 192.168.0.27:1400 at ./FHEM/00_SONOS.pm line 4157 thread 1.
Renewal of subscription failed with error: 500 Can't connect to 192.168.0.27:1400 at ./FHEM/00_SONOS.pm line 4181 thread 1.
Renewal of subscription failed with error: 500 Can't connect to 192.168.0.27:1400 at ./FHEM/00_SONOS.pm line 4205 thread 1.
Renewal of subscription failed with error: 500 Can't connect to 192.168.0.27:1400 at ./FHEM/00_SONOS.pm line 4229 thread 1.
Renewal of subscription failed with error: 500 Can't connect to 192.168.0.27:1400 at ./FHEM/00_SONOS.pm line 4277 thread 1.
Renewal of subscription failed with error: 412 Precondition Failed at ./FHEM/00_SONOS.pm line 4085 thread 1.
Renewal of subscription failed with error: 412 Precondition Failed at ./FHEM/00_SONOS.pm line 4109 thread 1.
Renewal of subscription failed with error: 412 Precondition Failed at ./FHEM/00_SONOS.pm line 4133 thread 1.
Renewal of subscription failed with error: 412 Precondition Failed at ./FHEM/00_SONOS.pm line 4157 thread 1.
Renewal of subscription failed with error: 412 Precondition Failed at ./FHEM/00_SONOS.pm line 4181 thread 1.
Renewal of subscription failed with error: 412 Precondition Failed at ./FHEM/00_SONOS.pm line 4205 thread 1.
Renewal of subscription failed with error: 412 Precondition Failed at ./FHEM/00_SONOS.pm line 4229 thread 1.
Renewal of subscription failed with error: 412 Precondition Failed at ./FHEM/00_SONOS.pm line 4253 thread 1.
Renewal of subscription failed with error: 412 Precondition Failed at ./FHEM/00_SONOS.pm line 4277 thread 1.

Habe das Sonos Modul erstmal disabled.
Gruß Dieter
FHEM auf Raspi 2 B, Jessi, 1x CUL868, 1x Hue, 1x Harmony, 1x HM-USB2

Fixel2012

Habe diese Probleme auch des längeren. Ich habe mir ein DOIF angelegt, was sobald der Player mit der Funktsteckdose ausgeschaltet wird das Sonos Modul auf disabled schaltet. Nach 60 Sekunden wird das Attribut wieder gelöscht.

Dies löst die Probleme und keine Log Einträge sind mehr zu finden.

Ein schönes Workaround ist das allerdings nicht.
Fhem 5.8 auf Raspi 3, HMLAN und 868MHz CUL mit einigen Komponenten, Z-Wave Rollladenaktoren, Tablet UI, 433 MHz CUL mit Baumarktsteckdosen und Temp Sensoren, Amazon Echo, Echo Dot, 2x SONOS  play1, 1x SONOS Connect AMP,  presence, HUE, Lightify

Jostar

Hallo, das Problem existiert noch immer. Gibt es schon eine allgemeine Lösung? Ich ziehe zum Beispiel manuell den Stecker und kann das schlecht in eine Regel zur Automatisierung umsetzen.
Danke und Gruß
Raspberry Pi(s) mit FHEM auf Rasbian Jessie/Strech, DbLog/DbRep mit mySQL, piface, 1Wire-USB-Master von SMS-GUARD, RFXtrx433E

Keule_09

#7
Hallo Zusammen,

Hab seit 2 Tagen auch das Problem das im Log diese Meldung erscheint.

Renewal of subscription failed with error: 412 Precondition Failed at ./FHEM/00_SONOS.pm line 4144 thread 4

Weiß jemand wodurch diese Meldung ausgelöst wird ?
Hab das Problem das meine Sonos auch kurzzeitig nicht über fhem steuerbar sind.


Grüße Marco

MikeRoxx

Hallo,

ich habe auch das gleiche Problem. 2 Sonos Play 1 die bei nicht Bedarf vom Strom getrennt werden. Dank dem Tipp von Fixel setzt ich das Sonos Modul auch kurz auf disable. Nicht schön, funktioniert aber.

Gruß
Mike

Gesendet von meinem A0001 mit Tapatalk
Proxmox mit FHEM und Debmatic auf Deb. Buster
HM / HmIP / FS20

stera

Gibt noch keine weitere Lösungen, außer das Modul zu deaktiveren oder?

Schalte meine Sonos auch bei Bedarf stromlos...

Gruß,
SteRa

mumpitzstuff

Ihr könnt ja mal versuchen diesen Code in Zeile 4046 hinzuzufügen:

$SIG{__WARN__} = sub { $_ = shift; };

ALT:
} elsif ($workType eq 'renewSubscription') {
if (defined($SONOS_TransportSubscriptions{$udn}) && (Time::HiRes::time() - $SONOS_TransportSubscriptions{$udn}->{_startTime} > $SONOS_SUBSCRIPTIONSRENEWAL)) {


NEU:
} elsif ($workType eq 'renewSubscription') {
$SIG{__WARN__} = sub { $_ = shift; };
if (defined($SONOS_TransportSubscriptions{$udn}) && (Time::HiRes::time() - $SONOS_TransportSubscriptions{$udn}->{_startTime} > $SONOS_SUBSCRIPTIONSRENEWAL)) {


Ich hatte das selbe Problem mit dem DLNARenderer und konnte damit das Problem lösen.