diff --git a/bundles/org.openhab.binding.tplinksmarthome/README.md b/bundles/org.openhab.binding.tplinksmarthome/README.md index dffe861ba..6dfe23271 100644 --- a/bundles/org.openhab.binding.tplinksmarthome/README.md +++ b/bundles/org.openhab.binding.tplinksmarthome/README.md @@ -105,6 +105,13 @@ Switching, Brightness and Color is done using the `color` channel. * LED On/Off * Wi-Fi signal strength (RSSI) +### KP115 Kasa Wi-Fi Smart Plug with Energy Monitoring - Slim Edition + +* Power On/Off +* Energy readings +* LED On/Off +* Wi-Fi signal strength (RSSI) + ### KP200 Smart Wi-Fi Power Outlet, 2-Sockets * Power On/Off Group @@ -291,16 +298,16 @@ 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, KP105, KP200, KP303, KP400, RE270K, RE370K | +| switch | Switch | Power the device on or off. | HS100, HS103, HS105, HS107, HS110, HS200, HS210, HS300, KP100, KP105, KP115, 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 | | color | Color | Set the color of the light. | KB130, KL130, LB130, LB230 | -| power | Number:Power | Actual energy usage in Watt. | HS110, HS300, KLxxx, LBxxx | -| 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, KP105, KP303, KP200, KP400 | +| power | Number:Power | Actual energy usage in Watt. | HS110, HS300, KLxxx, KP115, LBxxx, | +| eneryUsage | Number:Energy | Energy Usage in kWh. | HS110, HS300, KP115 | +| current | Number:ElectricCurrent | Actual current usage in Ampere. | HS110, HS300, KP115 | +| voltage | Number:ElectricPotential | Actual voltage usage in Volt. | HS110, HS300, KP115 | +| led | Switch | Switch the status LED on the device on or off. | HS100, HS103, HS105, HS107, HS110, HS200, HS210, HS220, HS300, KP100, KP105, KP115, 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/TPLinkSmartHomeHandlerFactory.java b/bundles/org.openhab.binding.tplinksmarthome/src/main/java/org/openhab/binding/tplinksmarthome/internal/TPLinkSmartHomeHandlerFactory.java index c577cfa0c..f55409173 100644 --- a/bundles/org.openhab.binding.tplinksmarthome/src/main/java/org/openhab/binding/tplinksmarthome/internal/TPLinkSmartHomeHandlerFactory.java +++ b/bundles/org.openhab.binding.tplinksmarthome/src/main/java/org/openhab/binding/tplinksmarthome/internal/TPLinkSmartHomeHandlerFactory.java @@ -75,7 +75,7 @@ public class TPLinkSmartHomeHandlerFactory extends BaseThingHandlerFactory { device = new DimmerDevice(); break; case PLUG: - if (HS110.is(thingTypeUID)) { + if (HS110.is(thingTypeUID) || KP115.is(thingTypeUID)) { device = new EnergySwitchDevice(); } else { device = new SwitchDevice(); 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 cc032196e..93a09cb0c 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 @@ -54,6 +54,7 @@ public enum TPLinkSmartHomeThingType { HS110("hs110", DeviceType.PLUG), KP100("kp100", DeviceType.PLUG), KP105("kp105", DeviceType.PLUG), + KP115("kp115", DeviceType.PLUG), // Switch Thing Type UIDs HS200("hs200", DeviceType.SWITCH), diff --git a/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/OH-INF/thing/KP115.xml b/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/OH-INF/thing/KP115.xml new file mode 100644 index 000000000..adacbf011 --- /dev/null +++ b/bundles/org.openhab.binding.tplinksmarthome/src/main/resources/OH-INF/thing/KP115.xml @@ -0,0 +1,26 @@ + + + + + + TP-Link KP115 Kasa Wi-Fi Smart Plug with Energy Monitoring - Slim Edition + PowerOutlet + + + + + + + + + + + + deviceId + + + +