31_HUEDevice.pm: show unrechable icon for devices with mode != homeautomation, i.e. streaming

git-svn-id: https://svn.fhem.de/fhem/trunk@20591 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2019-11-25 20:36:35 +00:00
parent 4f1361d2fc
commit 7e86772328

View File

@ -213,6 +213,7 @@ HUEDevice_devStateIcon($)
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" );
@ -971,7 +972,7 @@ HUEDevice_Set($@)
if( $hash->{IODev} && $hash->{IODev}{TYPE} eq 'HUEBridge' ) {
$list .= " alert:none,select,lselect";
$list .= ",breathe,okay,channelchange,finish,stop" if( $hash->{IODev}{modelid} eq 'deCONZ' );
$list .= ",breathe,okay,channelchange,finish,stop" if( $hash->{IODev} && $hash->{IODev}{modelid} eq 'deCONZ' );
$list .= " effect:none,colorloop" if( $subtype =~ m/color/ );
@ -1648,6 +1649,11 @@ HUEDevice_Parse($$)
my $battery = undef;
$battery = $config->{battery} if( defined($config->{battery}) );
if( defined($hash->{mode})
|| ( defined($state->{mode}) && $state->{mode} ne 'homeautomation' ) ) {
$hash->{mode} = $state->{mode};
}
if( defined($colormode) && $colormode ne $hash->{helper}{colormode} ) {readingsBulkUpdate($hash,"colormode",$colormode);}
if( defined($bri) && $bri != $hash->{helper}{bri} ) {readingsBulkUpdate($hash,"bri",$bri);}
if( defined($ct) && $ct != $hash->{helper}{ct} ) {