[tplinksmarthome] Add support for TP-Link KP401 Smart WiFi Outdoor Plug (#13818)

* [tplinksmarthome] Adding support for tp-link KP401 Smart WiFi Outdoor Plug

Signed-off-by: Øystein Bedin <oybed78@gmail.com>
This commit is contained in:
Øystein Bedin
2022-12-01 14:50:28 -07:00
committed by GitHub
parent 43d01ad49c
commit 8d39875219
4 changed files with 47 additions and 14 deletions

View File

@@ -63,7 +63,7 @@ public enum TPLinkSmartHomeThingType {
KP105("kp105", DeviceType.PLUG),
KP115("kp115", DeviceType.PLUG_WITH_ENERGY),
KP125("kp125", DeviceType.PLUG_WITH_ENERGY),
KP405("kp405", DeviceType.DIMMER),
KP401("kp401", DeviceType.PLUG),
// Switch Thing Type UIDs
HS200("hs200", DeviceType.SWITCH),
@@ -73,6 +73,7 @@ public enum TPLinkSmartHomeThingType {
ES20M("es20m", DeviceType.DIMMER),
HS220("hs220", DeviceType.DIMMER),
KS230("ks230", DeviceType.DIMMER),
KP405("kp405", DeviceType.DIMMER),
// Power Strip Thing Type UIDs.
EP40("ep40", DeviceType.STRIP, 2),

View File

@@ -82,6 +82,8 @@ thing-type.tplinksmarthome.kp400.label = KP400
thing-type.tplinksmarthome.kp400.description = TP-Link KP400 Smart Outdoor Plug
thing-type.tplinksmarthome.kp400.group.outlet1.label = Outlet 1
thing-type.tplinksmarthome.kp400.group.outlet2.label = Outlet 2
thing-type.tplinksmarthome.kp401.label = KP401
thing-type.tplinksmarthome.kp401.description = TP-Link KP401 Kasa Smart WiFi Outdoor Plug
thing-type.tplinksmarthome.kp405.label = KP405
thing-type.tplinksmarthome.kp405.description = TP-Link KP405 Kasa Smart Wi-Fi Outdoor Plug-In Dimmer
thing-type.tplinksmarthome.ks230.label = KS230

View File

@@ -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="kp401">
<label>KP401</label>
<description>TP-Link KP401 Kasa Smart WiFi Outdoor Plug</description>
<category>PowerOutlet</category>
<channels>
<channel id="switch" typeId="system.power"/>
<channel id="led" typeId="led"/>
<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>