Skip to content

Commit

Permalink
[tplinksmarthome] Added Kl50 and kl60 light bulbs. (openhab#7389)
Browse files Browse the repository at this point in the history
Signed-off-by: Hilbrand Bouwkamp <[email protected]>
  • Loading branch information
Hilbrand authored and andrewfg committed Aug 31, 2020
1 parent 1e8aacf commit 2ce4f54
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 1 deletion.
20 changes: 19 additions & 1 deletion bundles/org.openhab.binding.tplinksmarthome/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,24 @@ Switching and Brightness is done using the `brightness` channel.

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

### KL50 Kasa Filament Smart Bulb, Soft White

* Power On/Off
* Adjust the brightness
* Actual power usage
* Wi-Fi signal strength (RSSI)

Switching and Brightness is done using the `brightness` channel.

### KL60 Kasa Filament Smart Bulb, Warm Amber

* Power On/Off
* Adjust the brightness
* Actual power usage
* Wi-Fi signal strength (RSSI)

Switching and Brightness is done using the `brightness` channel.

### KL110 Smart Wi-Fi LED Bulb with Dimmable Light

* Power On/Off
Expand Down Expand Up @@ -268,7 +286,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 |
| brightness | Dimmer | Set the brightness of device or dimmer. | HS220, KB100, KL110, KL120, LB100, LB110, LB120, LB200 |
| 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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public enum TPLinkSmartHomeThingType {
LB130("lb130", DeviceType.BULB),
LB200("lb200", DeviceType.BULB),
LB230("lb230", DeviceType.BULB),
KL50("kl50", DeviceType.BULB),
KL60("kl60", DeviceType.BULB),
KL110("kl110", DeviceType.BULB),
KL120("kl120", DeviceType.BULB),
KL130("kl130", DeviceType.BULB),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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="kl50">
<label>KL50</label>
<description>Kasa Filament Smart Bulb, Soft White</description>
<category>Lightbulb</category>

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

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

<config-description-ref uri="thing-type:device:bulb" />
</thing-type>
</thing:thing-descriptions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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="kl60">
<label>KL60</label>
<description>Kasa Filament Smart Bulb, Warm Amber</description>
<category>Lightbulb</category>

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

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

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

0 comments on commit 2ce4f54

Please sign in to comment.