From f166a0ca36b1792fdc54f4db5fdafef94fc871aa Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sun, 17 Nov 2019 10:06:10 +0000 Subject: [PATCH] 31_HUEDevice.pm: additional alert types for deConz git-svn-id: https://svn.fhem.de/fhem/trunk@20525 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/31_HUEDevice.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/31_HUEDevice.pm b/fhem/FHEM/31_HUEDevice.pm index 717ae4618..5149289bd 100644 --- a/fhem/FHEM/31_HUEDevice.pm +++ b/fhem/FHEM/31_HUEDevice.pm @@ -963,6 +963,8 @@ 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 .= " effect:none,colorloop" if( $subtype =~ m/color/ ); $list .= " lights" if( $hash->{helper}->{devtype} eq 'G' ); @@ -1235,7 +1237,8 @@ HUEDevice_GetUpdate($) } 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 @@ -1376,7 +1379,7 @@ HUEDevice_Parse($$) if( defined($hash->{helper}->{update}) ) { delete $hash->{helper}->{update}; - fhem( "set $hash->{IODev}{NAME} statusRequest" ); + fhem( "set $hash->{IODev}{NAME} statusRequest" ) if( $hash->{IODev} ); return undef; }