2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 19:32:42 +00:00

fixed onoff reading

git-svn-id: https://svn.fhem.de/fhem/trunk@5120 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-03-04 09:00:26 +00:00
parent ab0cd06eb3
commit 7b985d2c58

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