From a695e0a9d2947dc805b1125d5e796615ad311c03 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Sun, 28 Jun 2020 20:40:35 +0100 Subject: [PATCH] [tplinksmarthome] Added support for KP105 (#8023) Signed-off-by: Matt Ward --- .../README.md | 10 +++++++-- .../internal/TPLinkSmartHomeThingType.java | 1 + .../main/resources/ESH-INF/thing/KP105.xml | 22 +++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 bundles/org.openhab.binding.tplinksmarthome/src/main/resources/ESH-INF/thing/KP105.xml diff --git a/bundles/org.openhab.binding.tplinksmarthome/README.md b/bundles/org.openhab.binding.tplinksmarthome/README.md index bdec100852404..dffe861baf8ec 100644 --- a/bundles/org.openhab.binding.tplinksmarthome/README.md +++ b/bundles/org.openhab.binding.tplinksmarthome/README.md @@ -99,6 +99,12 @@ Switching, Brightness and Color is done using the `color` channel. * LED On/Off * Wi-Fi signal strength (RSSI) +### KP105 Kasa Wi-Fi Smart Plug - Slim Edition + +* Power On/Off +* LED On/Off +* Wi-Fi signal strength (RSSI) + ### KP200 Smart Wi-Fi Power Outlet, 2-Sockets * Power On/Off Group @@ -285,7 +291,7 @@ All devices support some of the following channels: | Channel Type ID | Item Type | Description | Thing types supporting this channel | |---------------------|--------------------------|------------------------------------------------|----------------------------------------------------------------------------------------------------| -| switch | Switch | Power the device on or off. | HS100, HS103, HS105, HS107, HS110, HS200, HS210, HS300, KP100, KP200, KP303, KP400, RE270K, RE370K | +| switch | Switch | Power the device on or off. | HS100, HS103, HS105, HS107, HS110, HS200, HS210, HS300, KP100, KP105, KP200, KP303, KP400, RE270K, RE370K | | brightness | Dimmer | Set the brightness of device or dimmer. | HS220, KB100, KL50, KL60, KL110, KL120, LB100, LB110, LB120, LB200 | | colorTemperature | Dimmer | Set the color temperature in percentage. | KB130, KL120, KL130, LB120, LB130, LB230 | | colorTemperatureAbs | Number | Set the color temperature in Kelvin. | KB130, KL120, KL130, LB120, LB130, LB230 | @@ -294,7 +300,7 @@ All devices support some of the following channels: | eneryUsage | Number:Energy | Energy Usage in kWh. | HS110, HS300 | | current | Number:ElectricCurrent | Actual current usage in Ampere. | HS110, HS300 | | voltage | Number:ElectricPotential | Actual voltage usage in Volt. | HS110, HS300 | -| led | Switch | Switch the status LED on the device on or off. | HS100, HS103, HS105, HS107, HS110, HS200, HS210, HS220, HS300, KP100, KP303, KP200, KP400 | +| led | Switch | Switch the status LED on the device on or off. | HS100, HS103, HS105, HS107, HS110, HS200, HS210, HS220, HS300, KP100, KP105, KP303, KP200, KP400 | | rssi | Number:Power | Wi-Fi signal strength indicator in dBm. | All | The outlet devices (HS107, HS300, KP200, KP400) have group channels. diff --git a/bundles/org.openhab.binding.tplinksmarthome/src/main/java/org/openhab/binding/tplinksmarthome/internal/TPLinkSmartHomeThingType.java b/bundles/org.openhab.binding.tplinksmarthome/src/main/java/org/openhab/binding/tplinksmarthome/internal/TPLinkSmartHomeThingType.java index 60ad062192a6f..a31c7a93133e1 100644 --- a/bundles/org.openhab.binding.tplinksmarthome/src/main/java/org/openhab/binding/tplinksmarthome/internal/TPLinkSmartHomeThingType.java +++ b/bundles/org.openhab.binding.tplinksmarthome/src/main/java/org/openhab/binding/tplinksmarthome/internal/TPLinkSmartHomeThingType.java @@ -53,6 +53,7 @@ public enum TPLinkSmartHomeThingType { HS105("hs105", DeviceType.PLUG), HS110("hs110", DeviceType.PLUG), KP100("kp100", DeviceType.PLUG), + KP105("kp105", DeviceType.PLUG), // Switch Thing Type UIDs HS200("hs200", DeviceType.SWITCH), diff --git a/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/ESH-INF/thing/KP105.xml b/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/ESH-INF/thing/KP105.xml new file mode 100644 index 0000000000000..29a516366f1b4 --- /dev/null +++ b/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/ESH-INF/thing/KP105.xml @@ -0,0 +1,22 @@ + + + + + + TP-Link KP105 Kasa Wi-Fi Smart Plug - Slim Edition + PowerOutlet + + + + + + + + deviceId + + + +