From 5bc4bb794e42e50445ed2b6c07224c6a6b977d7f Mon Sep 17 00:00:00 2001 From: billfor Date: Fri, 26 Aug 2022 16:28:29 -0400 Subject: [PATCH] [wemo] Add Wemo Outdoor plug (#13319) Signed-off-by: bill --- bundles/org.openhab.binding.wemo/README.md | 2 +- .../wemo/internal/discovery/WemoDiscoveryParticipant.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.wemo/README.md b/bundles/org.openhab.binding.wemo/README.md index 8ebc22ce16a..c0bf4b84dc4 100644 --- a/bundles/org.openhab.binding.wemo/README.md +++ b/bundles/org.openhab.binding.wemo/README.md @@ -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 diff --git a/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryParticipant.java b/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryParticipant.java index f92e6cf5fd2..441ebe9e8f2 100644 --- a/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.wemo/src/main/java/org/openhab/binding/wemo/internal/discovery/WemoDiscoveryParticipant.java @@ -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());