]> git.basschouten.com Git - openhab-addons.git/commitdiff
[wemo] Add Wemo Outdoor plug (#13319)
authorbillfor <billfor@users.noreply.github.com>
Fri, 26 Aug 2022 20:28:29 +0000 (16:28 -0400)
committerGitHub <noreply@github.com>
Fri, 26 Aug 2022 20:28:29 +0000 (22:28 +0200)
Signed-off-by: bill <git@billforsyth.net>
bundles/org.openhab.binding.wemo/README.md
bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryParticipant.java

index 8ebc22ce16a0229b021616d94fab1cfc77cea21d..c0bf4b84dc490d38520f6bde707d954fe55cfe82 100644 (file)
@@ -5,7 +5,7 @@ The integration happens either through the WeMo-Link bridge, which acts as an IP
 
 ## Supported Things
 
-The WeMo Binding supports the Socket, Insight, Lightswitch, Motion, Dimmer, Coffemaker and Maker devices, as well as the WeMo-Link bridge with WeMo LED bulbs. 
+The WeMo Binding supports the Socket, Outdoor Plug, Insight, Lightswitch, Motion, Dimmer, Coffemaker and Maker devices, as well as the WeMo-Link bridge with WeMo LED bulbs.
 The Binding also supports the Crock-Pot Smart Slow Cooker, Mr. Coffee Smart Coffemaker as well as the Holmes Smart Air Purifier, Holmes Smart Humidifier and Holmes Smart Heater.
 
 ## Discovery
index f92e6cf5fd29e4a3241f6afc8c739b9d16d4ff67..441ebe9e8f29b4fb8dbc7a28bb4e2a6ef2c8cdde 100644 (file)
@@ -86,6 +86,12 @@ public class WemoDiscoveryParticipant implements UpnpDiscoveryParticipant {
                                     device.getIdentity().getUdn().getIdentifierString());
                             return new ThingUID(THING_TYPE_SOCKET, device.getIdentity().getUdn().getIdentifierString());
                         }
+                        if (device.getDetails().getModelDetails().getModelName().toLowerCase()
+                                .startsWith("outdoorplug")) {
+                            logger.debug("Discovered a WeMo Outdoor Plug thing with UDN '{}'",
+                                    device.getIdentity().getUdn().getIdentifierString());
+                            return new ThingUID(THING_TYPE_SOCKET, device.getIdentity().getUdn().getIdentifierString());
+                        }
                         if (device.getDetails().getModelDetails().getModelName().toLowerCase().startsWith("insight")) {
                             logger.debug("Discovered a WeMo Insight thing with UDN '{}'",
                                     device.getIdentity().getUdn().getIdentifierString());