[wemo] Add Wemo Outdoor plug (#13319)

Signed-off-by: bill <git@billforsyth.net>
pull/13326/head
billfor 2022-08-26 16:28:29 -04:00 committed by GitHub
parent e656c1f4df
commit 5bc4bb794e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View 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

View 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());