Skip to content

Commit

Permalink
[tplinksmarthome] Add new device: EP25
Browse files Browse the repository at this point in the history
The EP25 appears to be a version of the KP125 that lacks the LED.
Because of this, and per the comments in openhab#16027, this commit
mimics openhab#11771 and simply copies the KP125, without the LED channel.
  • Loading branch information
joshproehl committed Sep 6, 2024
1 parent c1a63ff commit 38f4e68
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
12 changes: 9 additions & 3 deletions bundles/org.openhab.binding.tplinksmarthome/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ The following TP-Link Smart Devices are supported:
- LED On/Off
- Wi-Fi signal strength (RSSI)

### EP25 Kasa Smart WiFi Plug Slim with Energy Monitoring

- Power On/Off
- Energy readings
- Wi-Fi signal strength (RSSI)

### EP40 Kasa Smart Wi-Fi Outdoor Plug

- Power On/Off Group
Expand Down Expand Up @@ -385,13 +391,13 @@ 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. | EP10, EP40, HS100, HS103, HS105, HS107, HS110, HS200, HS210, HS300, KP100, KP105, KP115, KP200, KP303, KP400, KP401, KS230, RE270K, RE370K |
| switch | Switch | Power the device on or off. | EP10, EP25, EP40, HS100, HS103, HS105, HS107, HS110, HS200, HS210, HS300, KP100, KP105, KP115, KP200, KP303, KP400, KP401, KS230, RE270K, RE370K |
| brightness | Dimmer | Set the brightness of device or dimmer. | ES20M, HS220, KB100, KL50, KL60, KL110, KL120, KP405, LB100, LB110, LB120, LB200 |
| colorTemperature | Dimmer | Set the color temperature in percentage. | KB130, KL120, KL125, KL130, KL135, KL400, KL430, LB120, LB130, LB230 |
| colorTemperatureAbs | Number | Set the color temperature in Kelvin. | KB130, KL120, KL125, KL130, KL135, KL400, KL430, LB120, LB130, LB230 |
| color | Color | Set the color of the light. | KB130, KL125, KL130, KL135, KL400, KL430, LB130, LB230 |
| power | Number:Power | Actual energy usage in Watt. | HS110, HS300, KLxxx, KP115, KP125, LBxxx, |
| eneryUsage | Number:Energy | Energy Usage in kWh. | HS110, HS300, KP115, KP125 |
| power | Number:Power | Actual energy usage in Watt. | EP25, HS110, HS300, KLxxx, KP115, KP125, LBxxx, |
| eneryUsage | Number:Energy | Energy Usage in kWh. | EP25, HS110, HS300, KP115, KP125 |
| current | Number:ElectricCurrent | Actual current usage in Ampere. | HS110, HS300, KP115, KP125 |
| voltage | Number:ElectricPotential | Actual voltage usage in Volt. | HS110, HS300, KP115, KP125 |
| led | Switch | Switch the status LED on the device on or off. | ES20M, EP10, EP40, HS100, HS103, HS105, HS107, HS110, HS200, HS210, HS220, HS300, KP100, KP105, KP115, KP125, KP303, KP200, KP400, KP401, KP405, KS230 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public enum TPLinkSmartHomeThingType {

// Plug Thing Type UIDs
EP10("ep10", DeviceType.PLUG),
EP25("ep25", DeviceType.PLUG_WITH_ENERGY),
HS100("hs100", DeviceType.PLUG),
HS103("hs103", DeviceType.PLUG),
HS105("hs105", DeviceType.PLUG),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ addon.tplinksmarthome.description = This binding integrates the TP-Link Wi-Fi Sm

thing-type.tplinksmarthome.ep10.label = EP10
thing-type.tplinksmarthome.ep10.description = TP-Link EP10 Kasa Smart Wi-Fi Plug Mini
thing-type.tplinksmarthome.ep25.label = EP25
thing-type.tplinksmarthome.ep25.description = TP-Link EP25 Kasa Smart WiFi Plug Slim with Energy Monitoring
thing-type.tplinksmarthome.ep40.label = EP40
thing-type.tplinksmarthome.ep40.description = TP-Link EP40 Kasa Smart Wi-Fi Outdoor Plug
thing-type.tplinksmarthome.ep40.group.outlet1.label = Outlet 1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="tplinksmarthome"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">

<thing-type id="ep25">
<label>EP25</label>
<description>TP-Link EP25 Kasa Smart Wi-Fi Plug Mini</description>
<category>PowerOutlet</category>

<channels>
<channel id="switch" typeId="system.power"/>
<channel id="rssi" typeId="rssi"/>
</channels>

<representation-property>deviceId</representation-property>

<config-description-ref uri="thing-type:tplinksmarthome:device-plug"/>
</thing-type>
</thing:thing-descriptions>

0 comments on commit 38f4e68

Please sign in to comment.