mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-18 18:16:03 +00:00
31_HUEDevice.pm: fixed icon for unreachable devices
git-svn-id: https://svn.fhem.de/fhem/trunk@20685 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
80770e7144
commit
df9e8689cf
@ -206,6 +206,9 @@ HUEDevice_devStateIcon($)
|
||||
return undef if( !$hash );
|
||||
my $name = $hash->{NAME};
|
||||
|
||||
return ".*:light_question:toggle" if( !$hash->{helper}{reachable} );
|
||||
return ".*:light_question:toggle" if( defined($hash->{mode}) && $hash->{mode} ne 'homeautomation' );
|
||||
|
||||
my $pct = ReadingsVal($name, 'pct', 100);
|
||||
my $subtype = AttrVal($name, 'subType', 'extcolordimmer' );
|
||||
|
||||
@ -222,8 +225,6 @@ HUEDevice_devStateIcon($)
|
||||
return undef if( $createGroupReadings && !AttrVal($hash->{NAME},"createGroupReadings", 1) );
|
||||
return undef if( !$createGroupReadings && !AttrVal($hash->{NAME},"createGroupReadings", undef) );
|
||||
|
||||
return ".*:light_question:toggle" if( !$hash->{helper}{reachable} );
|
||||
return ".*:light_question:toggle" if( defined($hash->{mode}) && $hash->{mode} ne 'homeautomation' );
|
||||
|
||||
return ".*:off:toggle" if( ReadingsVal($name,"onoff","0") eq "0" );
|
||||
|
||||
@ -243,8 +244,6 @@ HUEDevice_devStateIcon($)
|
||||
|
||||
return undef if( $hash->{helper}->{devtype} );
|
||||
|
||||
return ".*:light_question:toggle" if( !$hash->{helper}{reachable} );
|
||||
|
||||
return ".*:off:toggle" if( ReadingsVal($name,"state","off") eq "off" );
|
||||
|
||||
my $s = $dim_values{int($pct/7)};
|
||||
|
Loading…
x
Reference in New Issue
Block a user