2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 20:24:36 +00:00

31_HUEDevice.pm: additional alert types for deConz

git-svn-id: https://svn.fhem.de/fhem/trunk@20525 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2019-11-17 10:06:10 +00:00
parent 3e3d6db2f6
commit f166a0ca36

View File

@ -963,6 +963,8 @@ HUEDevice_Set($@)
if( $hash->{IODev} && $hash->{IODev}{TYPE} eq 'HUEBridge' ) { if( $hash->{IODev} && $hash->{IODev}{TYPE} eq 'HUEBridge' ) {
$list .= " alert:none,select,lselect"; $list .= " alert:none,select,lselect";
$list .= ",breathe,okay,channelchange,finish,stop" if( $hash->{IODev}{modelid} eq 'deCONZ' );
$list .= " effect:none,colorloop" if( $subtype =~ m/color/ ); $list .= " effect:none,colorloop" if( $subtype =~ m/color/ );
$list .= " lights" if( $hash->{helper}->{devtype} eq 'G' ); $list .= " lights" if( $hash->{helper}->{devtype} eq 'G' );
@ -1235,7 +1237,8 @@ HUEDevice_GetUpdate($)
} }
HUEDevice_Parse($hash,$result); HUEDevice_Parse($hash,$result);
HUEBridge_updateGroups($hash->{IODev}, $hash->{ID}) if( $hash->{IODev}{TYPE} eq 'HUEBridge' ); HUEBridge_updateGroups($hash->{IODev}, $hash->{ID}) if( $hash->{IODev} && ( $hash->{IODev}{TYPE} eq 'HUEBridge'
|| $hash->{IODev}{TYPE} eq 'tradfri' ) );
} }
sub sub
@ -1376,7 +1379,7 @@ HUEDevice_Parse($$)
if( defined($hash->{helper}->{update}) ) { if( defined($hash->{helper}->{update}) ) {
delete $hash->{helper}->{update}; delete $hash->{helper}->{update};
fhem( "set $hash->{IODev}{NAME} statusRequest" ); fhem( "set $hash->{IODev}{NAME} statusRequest" ) if( $hash->{IODev} );
return undef; return undef;
} }