From f922534c31eb753076870cbce23c8156c2b47fa3 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 14 Oct 2021 00:06:04 +0200 Subject: [PATCH] TP-Link Kasa: Add support for the KP115 switch --- tplink/README.md | 3 ++- tplink/integrationplugintplink.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tplink/README.md b/tplink/README.md index 7b185018d..f26c0485a 100644 --- a/tplink/README.md +++ b/tplink/README.md @@ -5,7 +5,8 @@ This plugin adds support for the following tp-link Kasa devices to nymea. * HS100 Kasa Smart Wi-Fi Plug * HS103 Kasa Smart Wi-Fi Plug Lite * HS105 Kasa Smart Wi-Fi Plug Mini -* HS110 Kasa Smart Wi-Fi Plug With Energy Monitoring +* HS110 Kasa Smart Wi-Fi Plug with Energy Monitoring +* HS115 Kasa Smart Wi-Fi Plug Slim with Energy Monitoring * HS200 Kasa Smart Wi-Fi Light Switch * HS300 Kasa Smart Wi-Fi Power Strip * KP100 Kasa Smart Wi-Fi Plug Slim Edition diff --git a/tplink/integrationplugintplink.cpp b/tplink/integrationplugintplink.cpp index aded23b4f..3d586cca5 100644 --- a/tplink/integrationplugintplink.cpp +++ b/tplink/integrationplugintplink.cpp @@ -143,7 +143,7 @@ void IntegrationPluginTPLink::discoverThings(ThingDiscoveryInfo *info) if (info->thingClassId() == kasaPlug100ThingClassId) { modelFilter = QRegExp("(HS100|HS103|HS105|KP100|KP105).*"); } else if (info->thingClassId() == kasaPlug110ThingClassId) { - modelFilter = QRegExp("HS110.*"); + modelFilter = QRegExp("(HS110|KP115).*"); } else if (info->thingClassId() == kasaSwitch200ThingClassId) { modelFilter = QRegExp("HS200.*"); } else if (info->thingClassId() == kasaPowerStrip300ThingClassId) {