mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
bug fix for color-icons == 2 and pct = 100
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3315 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b8c5a2de7d
commit
289d830c71
@ -90,7 +90,7 @@ HUEDevice_devStateIcon($)
|
|||||||
my $s = $dim_values{int($percent/7)};
|
my $s = $dim_values{int($percent/7)};
|
||||||
|
|
||||||
return ".*:$s@#".CommandGet("","$name RGB").":toggle" if( $percent < 100 && AttrVal($name, "color-icons", 0) == 2 );
|
return ".*:$s@#".CommandGet("","$name RGB").":toggle" if( $percent < 100 && AttrVal($name, "color-icons", 0) == 2 );
|
||||||
return ".*:on@#".CommandGet("","$name rgb").":toggle" if( AttrVal($name, "color-icons", 0) == 1 );
|
return ".*:on@#".CommandGet("","$name rgb").":toggle" if( AttrVal($name, "color-icons", 0) != 0 );
|
||||||
|
|
||||||
return '<div style="width:32px;height:19px;'.
|
return '<div style="width:32px;height:19px;'.
|
||||||
'border:1px solid #fff;border-radius:8px;background-color:#'.CommandGet("","$name rgb").';"></div>';
|
'border:1px solid #fff;border-radius:8px;background-color:#'.CommandGet("","$name rgb").';"></div>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user