jtburgess / indigo-TP-LInk

Indigo Plugin for TP-Link SmartPlugs, powerStrips, dimmer switches, and dimmable bulbs; (coming someday color bulbs)
The Unlicense
2 stars 4 forks source link

TP-Link KL110 not working #12

Closed ja422fs closed 1 year ago

ja422fs commented 1 year ago

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?

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

Here are the errors I found in the log after attempting to add the KL110 device:

Dec 31, 2022 at 11:55:15 AM TP-Link Devices Error Error in plugin execution UiAction:

File "plugin.py", line 587, in selectTpDevice type: name 'dev' is not defined

TP-Link Devices Error Error in plugin execution UiAction:

File "plugin.py", line 587, in selectTpDevice type: name 'dev' is not defined

TP-Link Devices Error Error in plugin execution ServerReplacedElem:

File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1379, in device_updated File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1315, in _dispatch_device_start_comm File "plugin.py", line 274, in deviceStartComm File "plugin.py", line 152, in getPollClass File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/TP-Link-Device-2.indigoPlugin/Contents/Server Plugin/tpl_dimmer_poll.py", line 32, in init type: key deviceId not found in dict

jtburgess commented 1 year ago

Sorry. I checked in a bad branch awhile ago. Branch 0.9.9 should now solve this.

ja422fs commented 1 year ago

I'm getting the following error when I try to add the new KL110 device in Indigo.

TP-Link Devices Error Error in plugin execution UiAction:

File "plugin.py", line 591, in selectTpDevice type: name 'dev' is not defined

TP-Link Devices Error Error in plugin execution UiAction:

File "plugin.py", line 591, in selectTpDevice type: name 'dev' is not defined

TP-Link Devices Error Error in plugin execution ServerReplacedElem:

File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1379, in device_updated File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/plugin_base.py", line 1315, in _dispatch_device_start_comm File "plugin.py", line 277, in deviceStartComm File "plugin.py", line 152, in getPollClass File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/TP-Link-Device.indigoPlugin/Contents/Server Plugin/tpl_dimmer_poll.py", line 32, in init type: key deviceId not found in dict