diff --git a/fhem/FHEM/30_HUEBridge.pm b/fhem/FHEM/30_HUEBridge.pm
index 2c13967ed..2e80385c7 100644
--- a/fhem/FHEM/30_HUEBridge.pm
+++ b/fhem/FHEM/30_HUEBridge.pm
@@ -210,6 +210,14 @@ HUEBridge_Set($@)
} elsif($cmd eq 'autocreate') {
return HUEBridge_Autocreate($hash,1);
+ } elsif($cmd eq 'autodetect') {
+ my $result = HUEBridge_Call($hash, undef, 'lights', undef, 'POST');
+
+ return $result->{success}{'/lights'} if( $result->{success} );
+ return $result->{error}{description} if( $result->{error} );
+
+ return undef;
+
} elsif($cmd eq 'creategroup') {
my @lights = ();
@@ -882,17 +890,23 @@ HUEBridge_HTTP_Request($$$@)
Set
- autocreate
- Create fhem devices for all bridge devices.
+ Create fhem devices for all bridge devices.
+ - autodetect
+ Initiate the detection of new ZigBee devices. After aproximately one minute any newly detected
+ devices can be listed with get devices and the corresponding fhem devices
+ can be created by set autocreate.
- creategroup <name> <light-1>[ <light-2>..<lignt-n>]
- Create a group out of <light-1>-<light-n> in the bridge.
- The lights can be given as fhem device names or bridge device numbers.
+ Create a group out of <light-1>-<light-n> in the bridge.
+ The lights can be given as fhem device names or bridge device numbers.
- deletegroup <name>|<id>
- Deletes the given group in the bridge and deletes the associated fhem device.
+ Deletes the given group in the bridge and deletes the associated fhem device.
- statusRequest
- Update bridge status.
+ Update bridge status.
- swupdate
- Update bridge firmware. This command is only available if a new firmware is available (indicated by updatestate with a value of 2. The version and release date is shown in the reading swupdate.
- A notify of the form define HUEUpdate notify bridge:swupdate.* {...} can be used to be informed about available firmware updates.
+ Update bridge firmware. This command is only available if a new firmware is
+ available (indicated by updatestate with a value of 2. The version and release date is shown in the reading swupdate.
+ A notify of the form define HUEUpdate notify bridge:swupdate.* {...}
+ can be used to be informed about available firmware updates.