From 963499847cb690289fdbac2f32a07640a994bccf Mon Sep 17 00:00:00 2001 From: fhemrocks Date: Wed, 23 Jul 2014 09:00:59 +0000 Subject: [PATCH] bugfix for on/off status to be reflected in UI git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6305 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/98_SB_PLAYER.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fhem/contrib/98_SB_PLAYER.pm b/fhem/contrib/98_SB_PLAYER.pm index ec90808a8..bb13fdec7 100644 --- a/fhem/contrib/98_SB_PLAYER.pm +++ b/fhem/contrib/98_SB_PLAYER.pm @@ -1427,6 +1427,8 @@ sub SB_PLAYER_RecBroadcast( $$@ ) { SB_PLAYER_Amplifier( $hash ); } elsif( $args[ 0 ] eq "ON" ) { # the server is back + readingsSingleUpdate( $hash, "state", "on", 1 ); + readingsSingleUpdate( $hash, "power", "on", 1 ); # do and update of the status InternalTimer( gettimeofday() + 10, "SB_PLAYER_GetStatus",