mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
Sonos: Fix a bug according the handling of disabling the Sonos-Device
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7732 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
714fe87b61
commit
c940ff05ff
@ -47,6 +47,8 @@
|
||||
# Changelog
|
||||
#
|
||||
# SVN-History:
|
||||
# 26.01.2015
|
||||
# Beim Setzen von "disable" am Sonos-Device wurde der "state" und "STATE" der Player nicht korrekt gesetzt.
|
||||
# 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
|
||||
@ -1027,7 +1029,14 @@ sub SONOS_StopSubProcess($) {
|
||||
|
||||
# Alle SonosPlayer-Devices disappearen
|
||||
for my $player (SONOS_getAllSonosplayerDevices()) {
|
||||
SONOS_readingsSingleUpdateIfChanged($player, 'presence', 'disappeared', 1);
|
||||
readingsBeginUpdate($player);
|
||||
SONOS_readingsBulkUpdateIfChanged($player, 'presence', 'disappeared');
|
||||
SONOS_readingsBulkUpdateIfChanged($player, 'state', 'disappeared');
|
||||
SONOS_readingsEndUpdate($player, 1);
|
||||
|
||||
if (AttrVal($player->{NAME}, 'stateVariable', '') eq 'Presence') {
|
||||
$player->{STATE} = 'disappeared';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user