Skip to content

Commit

Permalink
[tplinksmarthome] Addes support for KL420 Light Strip
Browse files Browse the repository at this point in the history
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
  • Loading branch information
Hilbrand committed Dec 12, 2022
1 parent 712262f commit 741c7b9
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 4 deletions.
19 changes: 15 additions & 4 deletions bundles/org.openhab.binding.tplinksmarthome/README.md
Expand Up @@ -242,12 +242,22 @@ Switching, Brightness and Color is done using the `color` channel.

Switching, Brightness and Color is done using the `color` channel.

### KL400 Kasa Smart LED Light Strip
### KL400 Kasa Smart LED Light Strip, Multicolor

* Power On/Off
* Fine-tune colors
* Adjust light appearance from soft white (2500k) to daylight (9000k)
* Adjust the brightness
* Actual power usage
* Wi-Fi signal strength (RSSI)

### KL420 Kasa Smart LED Light Strip, Multicolor

* Power On/Off
* Fine-tune colors
* Adjust light appearance from soft white (2500k) to daylight (9000k)
* Adjust the brightness
* Actual power usage
* Wi-Fi signal strength (RSSI)

### KL430 Kasa Smart LED Light Strip, 16 Color Zones
Expand All @@ -256,6 +266,7 @@ Switching, Brightness and Color is done using the `color` channel.
* Fine-tune colors
* Adjust light appearance from soft white (2500k) to daylight (9000k)
* Adjust the brightness
* Actual power usage
* Wi-Fi signal strength (RSSI)

Switching, Brightness and Color is done using the `color` channel.
Expand Down Expand Up @@ -387,9 +398,9 @@ All devices support some of the following channels:
|---------------------|--------------------------|------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|
| 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 |
| 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 |
| colorTemperature | Dimmer | Set the color temperature in percentage. | KB130, KL120, KL125, KL130, KL135, KL400, KL420, KL430, LB120, LB130, LB230 |
| colorTemperatureAbs | Number | Set the color temperature in Kelvin. | KB130, KL120, KL125, KL130, KL135, KL400, KL420, KL430, LB120, LB130, LB230 |
| color | Color | Set the color of the light. | KB130, KL125, KL130, KL135, KL400, KL420, 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 |
| current | Number:ElectricCurrent | Actual current usage in Ampere. | HS110, HS300, KP115, KP125 |
Expand Down
Expand Up @@ -51,6 +51,7 @@ public enum TPLinkSmartHomeThingType {

// Light String thing Type UIDs.
KL400("kl400", DeviceType.LIGHT_STRIP, ColorScales.K_2500_9000),
KL420("kl420", DeviceType.LIGHT_STRIP, ColorScales.K_2500_9000),
KL430("kl430", DeviceType.LIGHT_STRIP, ColorScales.K_2500_9000),

// Plug Thing Type UIDs
Expand Down
Expand Up @@ -55,6 +55,8 @@ thing-type.tplinksmarthome.kl135.label = KL135
thing-type.tplinksmarthome.kl135.description = TP-Link KL135 Kasa Smart Wi-Fi Bulb Multicolor
thing-type.tplinksmarthome.kl400.label = KL400
thing-type.tplinksmarthome.kl400.description = TP-Link KL400 Kasa Smart Light Strip, Multicolour
thing-type.tplinksmarthome.kl420.label = KL420
thing-type.tplinksmarthome.kl420.description = TP-Link KL420 Kasa Smart Light Strip, Multicolor
thing-type.tplinksmarthome.kl430.label = KL430
thing-type.tplinksmarthome.kl430.description = TP-Link KL430 Kasa Smart Light Strip, Multicolour
thing-type.tplinksmarthome.kl50.label = KL50
Expand Down
@@ -0,0 +1,24 @@
<?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="kl420">
<label>KL420</label>
<description>TP-Link KL420 Kasa Smart Light Strip, Multicolor</description>
<category>Lightbulb</category>

<channels>
<channel id="color" typeId="system.color"/>
<channel id="colorTemperature" typeId="system.color-temperature"/>
<channel id="colorTemperatureAbs" typeId="colorTemperatureAbs2"/>
<channel id="power" typeId="power"/>
<channel id="rssi" typeId="rssi"/>
</channels>

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

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

0 comments on commit 741c7b9

Please sign in to comment.