mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
Sonos: Fixed a bug with a wrong call of CommandAttr
git-svn-id: https://svn.fhem.de/fhem/trunk@7685 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7b5259bf5b
commit
ed4e3b1da0
@ -47,6 +47,8 @@
|
||||
# Changelog
|
||||
#
|
||||
# SVN-History:
|
||||
# 24.01.2015
|
||||
# Wenn man seine Player umbenannt hatte, wurde ein Attribut-Kommando (für das Model-Attribut) falsch aufgerufen und hat eine Fehlermeldung im Fhem-Log verursacht (z.B. "Please define Sonos_Wohnzimmer first")
|
||||
# 19.01.2015
|
||||
# Verweise auf die "alte" Wikiseite "Sonos Anwendungsbeispiel" in der commandref durch die "neue" Seite "SONOS" ersetzt.
|
||||
# Wenn kein Pingtype definiert wurde, dann wurde fälschlicherweise nicht der Standard "syn" verwendet, sondern "none"
|
||||
@ -1196,6 +1198,10 @@ sub SONOS_Read($) {
|
||||
CommandDefine(undef, $1);
|
||||
} elsif ($line =~ m/CommandAttr:(.*)/) {
|
||||
CommandAttr(undef, $1);
|
||||
} elsif ($line =~ m/CommandAttrWithUDN:(.*?):(.*)/) {
|
||||
my $hash = SONOS_getSonosPlayerByUDN($1);
|
||||
|
||||
CommandAttr(undef, $hash->{NAME}.' '.$2);
|
||||
} elsif ($line =~ m/deleteCurrentNextTitleInformationAndDisappear:(.*)/) {
|
||||
my $hash = SONOS_getSonosPlayerByUDN($1);
|
||||
|
||||
@ -4452,7 +4458,7 @@ sub SONOS_Discover_Callback($$$) {
|
||||
SONOS_Client_Data_Refresh('', $udn, 'LastSubscriptionsRenew', SONOS_TimeNow());
|
||||
SONOS_Client_Notifier('ReadingsEndUpdate:'.$udn);
|
||||
|
||||
SONOS_Client_Notifier('CommandAttr:'.$name.' model Sonos_'.$modelNumber);
|
||||
SONOS_Client_Notifier('CommandAttrWithUDN:'.$udn.':model Sonos_'.$modelNumber);
|
||||
|
||||
$SONOS_Client_SendQueue_Suspend = 0;
|
||||
SONOS_Log undef, 2, "SonosPlayer '$saveRoomName' is now updated";
|
||||
|
Loading…
x
Reference in New Issue
Block a user