don't update reading for xy if unchanged

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@2832 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2013-02-28 20:44:35 +00:00
parent a590c26131
commit 1f2974c494

View File

@ -59,6 +59,7 @@ sub HUEDevice_Define($$)
$hash->{fhem}{ct} = -1;
$hash->{fhem}{hue} = -1;
$hash->{fhem}{sat} = -1;
$hash->{fhem}{xy} = '';
CommandAttr(undef,$name.' webCmd rgb:toggle:on:off') if( !defined( AttrVal($hash->{NAME}, "webCmd", undef) ) );
@ -490,6 +491,7 @@ HUEDevice_GetUpdate($)
$hash->{fhem}{ct} = $ct;
$hash->{fhem}{hue} = $hue;
$hash->{fhem}{sat} = $sat;
$hash->{fhem}{xy} = $xy;
}
1;