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:
justme1968
2014-03-04 09:00:26 +00:00
parent 5451edea1d
commit 703f318a1e

View File

@@ -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 . ' %');}