fixed onoff reading
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5120 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -692,7 +692,7 @@ HUEDevice_GetUpdate($)
|
||||
{
|
||||
$s = 'off';
|
||||
$percent = 0;
|
||||
if( $on && $on != $hash->{helper}{on} ) {readingsBulkUpdate($hash,"onoff",0);}
|
||||
if( $on != $hash->{helper}{on} ) {readingsBulkUpdate($hash,"onoff",0);}
|
||||
}
|
||||
|
||||
if( $percent != $hash->{helper}{percent} ) {readingsBulkUpdate($hash,"level", $percent . ' %');}
|
||||
|
||||
Reference in New Issue
Block a user