mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
fixed 100% icon for LWB001 and LWL001
git-svn-id: https://svn.fhem.de/fhem/trunk@4137 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
75554eb259
commit
0ce05f1eb8
@ -86,6 +86,7 @@ HUEDevice_devStateIcon($)
|
|||||||
|
|
||||||
my $percent = ReadingsVal($name,"pct","100");
|
my $percent = ReadingsVal($name,"pct","100");
|
||||||
my $s = $dim_values{int($percent/7)};
|
my $s = $dim_values{int($percent/7)};
|
||||||
|
$s="on" if( $percent eq "100" );
|
||||||
|
|
||||||
return ".*:$s:toggle"
|
return ".*:$s:toggle"
|
||||||
if( AttrVal($name, "model", "") eq "LWB001" );
|
if( AttrVal($name, "model", "") eq "LWB001" );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user