2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-17 05:16:02 +00:00

fixed toggle for HUEDevice_devStateIcon state off

git-svn-id: https://svn.fhem.de/fhem/trunk@4131 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2013-10-29 23:00:16 +00:00
parent 53c9fdd328
commit e74cc2d176

View File

@ -81,7 +81,7 @@ HUEDevice_devStateIcon($)
return ".*:light_question" if( !$hash->{fhem}{reachable} && AttrVal($name, "color-icons", 0) != 0 );
return undef
return ".*:off:toggle"
if( ReadingsVal($name,"state","off") eq "off" || ReadingsVal($name,"bri","0") eq 0 );
return undef