From 18358f1df9db152971e8e5e18e4f9714046ee0e5 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 24 Jun 2021 23:39:15 +0200 Subject: [PATCH] TP-Link Kasa: Add KP105 --- tplink/README.md | 3 +- tplink/integrationplugintplink.cpp | 2 +- tplink/integrationplugintplink.json | 2 +- ...024ff2e3-30df-44a1-9c8d-63cc416f1fb8-de.ts | 156 +++++++++--------- ...ff2e3-30df-44a1-9c8d-63cc416f1fb8-en_US.ts | 150 ++++++++--------- 5 files changed, 157 insertions(+), 156 deletions(-) diff --git a/tplink/README.md b/tplink/README.md index 4cadc8bd..7b185018 100644 --- a/tplink/README.md +++ b/tplink/README.md @@ -1,5 +1,5 @@ # tp-link Kasa - + This plugin adds support for the following tp-link Kasa devices to nymea. * HS100 Kasa Smart Wi-Fi Plug @@ -9,6 +9,7 @@ This plugin adds support for the following tp-link Kasa devices to nymea. * HS200 Kasa Smart Wi-Fi Light Switch * HS300 Kasa Smart Wi-Fi Power Strip * KP100 Kasa Smart Wi-Fi Plug Slim Edition +* KP105 Kasa Smart Wi-Fi Plug Slim In order to use such a device, it must be connected to the same network as nymea. The Kasa app is required for a one time setup of the device to connect it to the Wi-Fi. diff --git a/tplink/integrationplugintplink.cpp b/tplink/integrationplugintplink.cpp index f16fc16a..aded23b4 100644 --- a/tplink/integrationplugintplink.cpp +++ b/tplink/integrationplugintplink.cpp @@ -141,7 +141,7 @@ void IntegrationPluginTPLink::discoverThings(ThingDiscoveryInfo *info) QRegExp modelFilter; if (info->thingClassId() == kasaPlug100ThingClassId) { - modelFilter = QRegExp("(HS100|HS103|HS105|KP100).*"); + modelFilter = QRegExp("(HS100|HS103|HS105|KP100|KP105).*"); } else if (info->thingClassId() == kasaPlug110ThingClassId) { modelFilter = QRegExp("HS110.*"); } else if (info->thingClassId() == kasaSwitch200ThingClassId) { diff --git a/tplink/integrationplugintplink.json b/tplink/integrationplugintplink.json index d0625fef..8af77510 100644 --- a/tplink/integrationplugintplink.json +++ b/tplink/integrationplugintplink.json @@ -11,7 +11,7 @@ { "id": "48f981ba-3836-4810-9744-a349088f4545", "name": "kasaPlug100", - "displayName": "Kasa Smart Wi-Fi Plug (HS100/HS103/HS105/KP100)", + "displayName": "Kasa Smart Wi-Fi Plug (HS100/HS103/HS105/KP100/KP105)", "createMethods": ["discovery"], "interfaces": [ "powersocket", "wirelessconnectable" ], "paramTypes": [ diff --git a/tplink/translations/024ff2e3-30df-44a1-9c8d-63cc416f1fb8-de.ts b/tplink/translations/024ff2e3-30df-44a1-9c8d-63cc416f1fb8-de.ts index a0b3480b..83cf9259 100644 --- a/tplink/translations/024ff2e3-30df-44a1-9c8d-63cc416f1fb8-de.ts +++ b/tplink/translations/024ff2e3-30df-44a1-9c8d-63cc416f1fb8-de.ts @@ -27,16 +27,16 @@ tplink - - - - - - - - - - + + + + + + + + + + Connected The name of the ParamType (ThingClass: kasaSocket, EventType: connected, ID: {59feb3a8-d35e-4c10-ac2e-01361e711a5e}) ---------- @@ -60,11 +60,11 @@ The name of the StateType ({79bcdd81-2e9d-4312-a4a7-85f808d046ef}) of ThingClass Verbunden - - - - - + + + + + Connected changed The name of the EventType ({59feb3a8-d35e-4c10-ac2e-01361e711a5e}) of ThingClass kasaSocket ---------- @@ -78,10 +78,10 @@ The name of the EventType ({79bcdd81-2e9d-4312-a4a7-85f808d046ef}) of ThingClass Verbunden/getrennt - - - - + + + + Current power consumption The name of the ParamType (ThingClass: kasaPowerStrip300, EventType: currentPower, ID: {f973b4e8-99fb-4331-8193-e287bd37f5a0}) ---------- @@ -93,8 +93,8 @@ The name of the StateType ({ccb52b57-5800-4f03-b7fa-f36dcebe1d4e}) of ThingClass Aktueller Energieverbrauch - - + + Current power consumption changed The name of the EventType ({f973b4e8-99fb-4331-8193-e287bd37f5a0}) of ThingClass kasaPowerStrip300 ---------- @@ -102,11 +102,11 @@ The name of the EventType ({ccb52b57-5800-4f03-b7fa-f36dcebe1d4e}) of ThingClass Aktueller Energieverbrauch geändert - - - - - + + + + + ID The name of the ParamType (ThingClass: kasaSocket, Type: thing, ID: {dd944807-c7f2-49da-b443-b69eb8387f41}) ---------- @@ -120,48 +120,48 @@ The name of the ParamType (ThingClass: kasaPlug100, Type: thing, ID: {7c7a4d88-6 ID - + Kasa Smart Wi-Fi Light Switch (HS200) The name of the ThingClass ({d527e576-d65e-4ae6-ae43-c89b594fb4c1}) Kasa Smart Wi-Fi Lichtschalter (HS200) - - Kasa Smart Wi-Fi Plug (HS100/HS103/HS105/KP100) + + Kasa Smart Wi-Fi Plug (HS100/HS103/HS105/KP100/KP105) The name of the ThingClass ({48f981ba-3836-4810-9744-a349088f4545}) - Kasa Smart WLAN-Steckdose (HS100/HS103/HS105/KP100) + Kasa Smart WLAN-Steckdose (HS100/HS103/HS105/KP100/KP105) - + Kasa Smart Wi-Fi Plug With Energy Monitoring (HS110) The name of the ThingClass ({32830124-9efb-4614-8227-ee269b1889b0}) Kasa Smart WLAN-Steckdose mit Verbrauchsanzeige (HS110) - + Kasa Smart Wi-Fi Power Strip (HS300) The name of the ThingClass ({bbdee989-9431-4187-b135-5030a7a11be2}) - + Kasa Smart WLAN-Steckleiste (HS300) - + Kasa power socket The name of the ThingClass ({2f40e28c-2484-4e09-bda9-e7accc29ab41}) - + Kasa Steckdose - - - - - - - - - - - - + + + + + + + + + + + + Power The name of the ParamType (ThingClass: kasaSocket, ActionType: power, ID: {b1d006a6-f2f5-475c-ab9e-8b431b1ac5f8}) ---------- @@ -189,16 +189,16 @@ The name of the StateType ({a8991ea0-89f0-477b-97fb-414dd7d185b3}) of ThingClass Eingeschaltet - - - - - - - - - - + + + + + + + + + + Signal strength The name of the ParamType (ThingClass: kasaSocket, EventType: signalStrength, ID: {16b71516-2ff4-4a2f-b0fc-53fff11f3a16}) ---------- @@ -222,11 +222,11 @@ The name of the StateType ({1de7fac2-87f1-4c2b-9286-1b0895c5ac49}) of ThingClass Signalstärke - - - - - + + + + + Signal strength changed The name of the EventType ({16b71516-2ff4-4a2f-b0fc-53fff11f3a16}) of ThingClass kasaSocket ---------- @@ -240,10 +240,10 @@ The name of the EventType ({1de7fac2-87f1-4c2b-9286-1b0895c5ac49}) of ThingClass Signalstärke geändert - - - - + + + + Total energy consumed The name of the ParamType (ThingClass: kasaPowerStrip300, EventType: totalEnergyConsumed, ID: {f2992226-1f36-477f-b053-04dc5dc3a31c}) ---------- @@ -255,8 +255,8 @@ The name of the StateType ({a3533121-69ee-44fd-8394-13373e8f960e}) of ThingClass Gesamter Energieverbrauch - - + + Total energy consumed changed The name of the EventType ({f2992226-1f36-477f-b053-04dc5dc3a31c}) of ThingClass kasaPowerStrip300 ---------- @@ -264,10 +264,10 @@ The name of the EventType ({a3533121-69ee-44fd-8394-13373e8f960e}) of ThingClass Gesamter Energieverbrauch geändert - - - - + + + + Turn on or off The name of the ActionType ({b1d006a6-f2f5-475c-ab9e-8b431b1ac5f8}) of ThingClass kasaSocket ---------- @@ -279,10 +279,10 @@ The name of the ActionType ({a8991ea0-89f0-477b-97fb-414dd7d185b3}) of ThingClas Ein- ausschalten - - - - + + + + Turned on or off The name of the EventType ({b1d006a6-f2f5-475c-ab9e-8b431b1ac5f8}) of ThingClass kasaSocket ---------- @@ -294,8 +294,8 @@ The name of the EventType ({a8991ea0-89f0-477b-97fb-414dd7d185b3}) of ThingClass Ein- ausgeschaltet - - + + tp-link The name of the vendor ({8603b6cf-52ec-4481-aca2-f29ebd6cd8a8}) ---------- diff --git a/tplink/translations/024ff2e3-30df-44a1-9c8d-63cc416f1fb8-en_US.ts b/tplink/translations/024ff2e3-30df-44a1-9c8d-63cc416f1fb8-en_US.ts index 48cf121e..f39af0a4 100644 --- a/tplink/translations/024ff2e3-30df-44a1-9c8d-63cc416f1fb8-en_US.ts +++ b/tplink/translations/024ff2e3-30df-44a1-9c8d-63cc416f1fb8-en_US.ts @@ -27,16 +27,16 @@ tplink - - - - - - - - - - + + + + + + + + + + Connected The name of the ParamType (ThingClass: kasaSocket, EventType: connected, ID: {59feb3a8-d35e-4c10-ac2e-01361e711a5e}) ---------- @@ -60,11 +60,11 @@ The name of the StateType ({79bcdd81-2e9d-4312-a4a7-85f808d046ef}) of ThingClass - - - - - + + + + + Connected changed The name of the EventType ({59feb3a8-d35e-4c10-ac2e-01361e711a5e}) of ThingClass kasaSocket ---------- @@ -78,10 +78,10 @@ The name of the EventType ({79bcdd81-2e9d-4312-a4a7-85f808d046ef}) of ThingClass - - - - + + + + Current power consumption The name of the ParamType (ThingClass: kasaPowerStrip300, EventType: currentPower, ID: {f973b4e8-99fb-4331-8193-e287bd37f5a0}) ---------- @@ -93,8 +93,8 @@ The name of the StateType ({ccb52b57-5800-4f03-b7fa-f36dcebe1d4e}) of ThingClass - - + + Current power consumption changed The name of the EventType ({f973b4e8-99fb-4331-8193-e287bd37f5a0}) of ThingClass kasaPowerStrip300 ---------- @@ -102,11 +102,11 @@ The name of the EventType ({ccb52b57-5800-4f03-b7fa-f36dcebe1d4e}) of ThingClass - - - - - + + + + + ID The name of the ParamType (ThingClass: kasaSocket, Type: thing, ID: {dd944807-c7f2-49da-b443-b69eb8387f41}) ---------- @@ -120,48 +120,48 @@ The name of the ParamType (ThingClass: kasaPlug100, Type: thing, ID: {7c7a4d88-6 - + Kasa Smart Wi-Fi Light Switch (HS200) The name of the ThingClass ({d527e576-d65e-4ae6-ae43-c89b594fb4c1}) - - Kasa Smart Wi-Fi Plug (HS100/HS103/HS105/KP100) + + Kasa Smart Wi-Fi Plug (HS100/HS103/HS105/KP100/KP105) The name of the ThingClass ({48f981ba-3836-4810-9744-a349088f4545}) - + Kasa Smart Wi-Fi Plug With Energy Monitoring (HS110) The name of the ThingClass ({32830124-9efb-4614-8227-ee269b1889b0}) - + Kasa Smart Wi-Fi Power Strip (HS300) The name of the ThingClass ({bbdee989-9431-4187-b135-5030a7a11be2}) - + Kasa power socket The name of the ThingClass ({2f40e28c-2484-4e09-bda9-e7accc29ab41}) - - - - - - - - - - - - + + + + + + + + + + + + Power The name of the ParamType (ThingClass: kasaSocket, ActionType: power, ID: {b1d006a6-f2f5-475c-ab9e-8b431b1ac5f8}) ---------- @@ -189,16 +189,16 @@ The name of the StateType ({a8991ea0-89f0-477b-97fb-414dd7d185b3}) of ThingClass - - - - - - - - - - + + + + + + + + + + Signal strength The name of the ParamType (ThingClass: kasaSocket, EventType: signalStrength, ID: {16b71516-2ff4-4a2f-b0fc-53fff11f3a16}) ---------- @@ -222,11 +222,11 @@ The name of the StateType ({1de7fac2-87f1-4c2b-9286-1b0895c5ac49}) of ThingClass - - - - - + + + + + Signal strength changed The name of the EventType ({16b71516-2ff4-4a2f-b0fc-53fff11f3a16}) of ThingClass kasaSocket ---------- @@ -240,10 +240,10 @@ The name of the EventType ({1de7fac2-87f1-4c2b-9286-1b0895c5ac49}) of ThingClass - - - - + + + + Total energy consumed The name of the ParamType (ThingClass: kasaPowerStrip300, EventType: totalEnergyConsumed, ID: {f2992226-1f36-477f-b053-04dc5dc3a31c}) ---------- @@ -255,8 +255,8 @@ The name of the StateType ({a3533121-69ee-44fd-8394-13373e8f960e}) of ThingClass - - + + Total energy consumed changed The name of the EventType ({f2992226-1f36-477f-b053-04dc5dc3a31c}) of ThingClass kasaPowerStrip300 ---------- @@ -264,10 +264,10 @@ The name of the EventType ({a3533121-69ee-44fd-8394-13373e8f960e}) of ThingClass - - - - + + + + Turn on or off The name of the ActionType ({b1d006a6-f2f5-475c-ab9e-8b431b1ac5f8}) of ThingClass kasaSocket ---------- @@ -279,10 +279,10 @@ The name of the ActionType ({a8991ea0-89f0-477b-97fb-414dd7d185b3}) of ThingClas - - - - + + + + Turned on or off The name of the EventType ({b1d006a6-f2f5-475c-ab9e-8b431b1ac5f8}) of ThingClass kasaSocket ---------- @@ -294,8 +294,8 @@ The name of the EventType ({a8991ea0-89f0-477b-97fb-414dd7d185b3}) of ThingClass - - + + tp-link The name of the vendor ({8603b6cf-52ec-4481-aca2-f29ebd6cd8a8}) ----------