TP-Link Plugin v 0.9.9 / v1.0

Posted on
Tue Dec 27, 2022 12:40 pm
aaaha offline
Posts: 6
Joined: Jun 20, 2011

TP-Link KL110 not working

I am using TP-Link Plugin v0.9.9 with Indigo 2022.1.2. I just added a KL110 Smart Dimmable Bulb to my collection of TP-Link Smart Plugs.

The Smart Plugs work with this software configuration, but the Smart Dimmable Bulb does not. The bulb does work with the iOS Kasa App.

Any idea what I might be doing wrong?

Code: Select all
   TP-Link Devices                 (plugin.py:actionControlUniversal:473): Action: RequestStatus for device: Master Bedroom Left Bed Lamp.
   TP-Link Devices                 Device Info for: Master Bedroom Left Bed Lamp
   TP-Link Devices                     TPlink device type: tplinkSmartBulb
   TP-Link Devices                     TP Link model: KL110(US)
   TP-Link Devices                     IP address: 192.168.3.175
   TP-Link Devices                     MAC address: 54AF973C5500
   TP-Link Devices                     Device ID: 8012ECDD5F92607F74C28410601DA4931FA34C7A
   TP-Link Devices                     alias :
   TP-Link Devices                     description:
   TP-Link Devices                 (plugin.py:devOrPluginParm:209): for attribute devPoll, using [False, 'dev']
   TP-Link Devices                     Polling enabled: [False, 'dev']
   TP-Link Devices                 (plugin.py:devOrPluginParm:209): for attribute onPoll, using ['60', 'plugin']
   TP-Link Devices                       On state polling freq: ['60', 'plugin']
   TP-Link Devices                 (plugin.py:devOrPluginParm:209): for attribute offPoll, using ['60', 'plugin']
   TP-Link Devices                       Off state polling freq: ['60', 'plugin']
   TP-Link Devices                 (plugin.py:devOrPluginParm:209): for attribute WarnInterval, using [5, 'default']
   TP-Link Devices                       Poll Warning interval: [5, 'default']
   TP-Link Devices                 (plugin.py:devOrPluginParm:209): for attribute SlowDown, using [1, 'default']
   TP-Link Devices                       SlowDown [1, 'default'] seconds at each warning
   TP-Link Devices                 (plugin.py:devOrPluginParm:209): for attribute StopPoll, using [20, 'default']
   TP-Link Devices                       Shutdown after [20, 'default'] errors
   TP-Link Devices                 (tpl_polling.py:interupt:33): called for Master Bedroom Left Bed Lamp with action=status, state=None
   TP-Link Devices                     Device polling and states updated.
   TP-Link Devices                     current state: brightness=0
   TP-Link Devices                     Supports Color: False

Posted on
Tue Dec 27, 2022 12:50 pm
sumocomputers offline
Posts: 253
Joined: Jun 23, 2008

Re: TP-Link Plugin v 0.9.9 / v1.0

For those having issues or questions, I would recommend creating a GitHub Issue here:

https://github.com/jtburgess/indigo-TP-LInk/issues

My guess is the author has gotten busy with life and maybe he will take a look on GitHub...

Chris

Posted on
Wed Jan 11, 2023 12:28 pm
jtburgess offline
User avatar
Posts: 73
Joined: Jan 17, 2018
Location: NJ

Re: TP-Link Plugin v 0.9.9 / v1.0

I am wondering if I should update the firmware on my KP125. I am on version 1.0.3.

I have several of these and they randomly disconnect from the network.

I don't think the device firmware matters.
There were problems with devices randomly not responding to polls, which would cause communications to be disabled.
This has now been solved with customizable polling parameters so that you can set how many failures before a disconnect
(or eliminate disconnects for all practical purposes with a very large number of failures required.

You can get the latest code from the head on GitHub, ... or ... I'll be creating a new release (1.0) Real Soon Now

-- John

Posted on
Sun Jan 15, 2023 11:47 am
jtburgess offline
User avatar
Posts: 73
Joined: Jan 17, 2018
Location: NJ

announcingTP-Link Plugin v1.0.0

I just published v1.0.0 fixing all known bugs, and incorporating several new Devices.
(Thanks to everyone who tested and told me about those new devices).

Happy New Year to all!

Posted on
Sat Feb 04, 2023 2:44 pm
sumocomputers offline
Posts: 253
Joined: Jun 23, 2008

Problem with devices not updating (HS-110) on 1.0.0

I recently upgraded from the 0.9.9 plugin to the 1.0.0 plugin. Please see screen recording here demonstrating the problem:

https://www.icloud.com/sharedalbum/#B17G1CvrSvicEH

What I have noticed is that event though the devices haven't been disabled from within Indigo due to losing WiFi momentarily (I set the timeout very high), the device usage stats at some point become frozen, and no longer update. I know the devices have not become disabled due to WiFi or other issues because I have a check that runs every few seconds and alerts me right away.

Anyway, a simple disable/enable Indigo communication does the trick, but I am not sure how long it lasts before the problem comes back.

I do know that my washer and dryer that use the TP-Link HS-110s will work on Saturday when I do the disable/enable trick, but by the next Saturday, they are frozen again.

Posted on
Sun Feb 05, 2023 9:23 pm
jtburgess offline
User avatar
Posts: 73
Joined: Jan 17, 2018
Location: NJ

Re: TP-Link Plugin v 0.9.9 / v1.0

Thanks for the report.
I won’t be able to check this out for a week or so.

Posted on
Mon Feb 06, 2023 4:25 pm
sumocomputers offline
Posts: 253
Joined: Jun 23, 2008

Re: TP-Link Plugin v 0.9.9 / v1.0

jtburgess wrote:
Thanks for the report.
I won’t be able to check this out for a week or so.


No worries. Not sure if there is a pattern, but in the meantime, I have a way with Grafana to tell how long the devices work before they stop updating.

Posted on
Sat May 06, 2023 8:57 am
pgershon offline
Posts: 482
Joined: Jul 10, 2004

Re: TP-Link Plugin v 0.9.9 / v1.0

I started getting frequent KeyError('system') errors yesterday. I'm not sure what happened. My log is cluttered with this for certain devices. Any ideas what might be going on. Some kind of WiFi issue perhaps?

Code: Select all
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #2 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #1 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Living Room Hall - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #2 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #1 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Living Room Hall - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #2 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Living Room Hall - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #1 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #2 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Living Room Hall - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #1 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #2 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Living Room Hall - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #1 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #2 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Living Room Hall - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #1 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices                 2 timeouts - Normal polling resuming for device guest Hall
   TP-Link Devices                 2 timeouts - Normal polling resuming for device TV Room Lights
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #2 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices                 7 timeouts - Normal polling resuming for device Kitchen Overhead #2 - S2 on/off
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Living Room Hall - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Kitchen Overhead #1 - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices                 7 timeouts - Normal polling resuming for device Kitchen Overhead #1 - S2 on/off
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Living Room Hall - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices                 3 timeouts - Normal polling resuming for device guest bedroom back
   TP-Link Devices Error           (tpl_relay_poll.py:run:339): Error attempting to update Living Room Hall - S2 on/off: KeyError('system'). Will try again in 1 seconds
   TP-Link Devices                 3 timeouts - Normal polling resuming for device guest bedroom front
   TP-Link Devices                 9 timeouts - Normal polling resuming for device Living Room Hall - S2 on/off
   Received INSTEON                "Thermostat-Boys Room" temperature changed to 68.0

Posted on
Mon May 22, 2023 12:10 pm
stanleykrasnow offline
Posts: 19
Joined: Dec 10, 2018

TP-Link Plugin v1.0.0

I am trying to add two TP Link bulbs to a new system, models KL50 and KL135. I get the following message:
May 22, 2023 at 11:06:29 AM

TP-Link Devices Error (plugin.py:getSubType:127): model 'KL50(' is not recognised
TP-Link Devices Error (plugin.py:getSubType:127): model 'KL50(' is not recognised
TP-Link Devices Error (plugin.py:selectTpDevice:584): Error: selected and actual Device types don't match (tplinkSmartBulb vs unknown)
TP-Link Devices Error (plugin.py:selectTpDevice:585): Delete and try again.
TP-Link Devices Polling started for new device@192.168.4.54.

I tried modifying tplink_dimmer_plugin.py to add the devices, and reloaded the plugin, but it still didn't work. Is there something else I need to do?

Thank you.

PS: running Indigo 2022.2 and v 1.0.0 of the TP Link plugin

Who is online

Users browsing this forum: No registered users and 2 guests