[XTension] Fwd: Kasa/TPLink Issue List

Andy Poggio apoggio at pacbell.net
Mon Feb 20 16:07:32 EST 2023


The dimmable switch mentioned below is actually an HS220, not an HS200.

—andy


> Begin forwarded message:
> 
> From: Andy Poggio <apoggio at pacbell.net>
> Subject: Kasa/TPLink Issue List
> Date: February 20, 2023 at 9:15:50 AM PST
> To: XTension <xtensionlist at machomeautomation.com>
> 
> As I’ve been working with 9.5.1, I’ve uncovered a number of issues with the Kasa/TPLink interface and sent out emails describing each issue.  I thought I’d put everything I’ve found into one list with the hope that this will speed their resolution.  To plagiarize James and paraphrase the Who:  meet the new list, same as the old list:
> 
> 1.  Undefined var:
> 	2/19/23 11:15:37 AM  Entry Kasa light is not responding (name 'lightState' is not defined)
> Just change 'lightState' to ‘light_state'
> 
> 2.  Low brightness after mechanical turn on:  I have a smart bulb in a fixture with a mechanical power switch.  If I use XTension to turn off the bulb and then the mechanical switch to power cycle the bulb, turning it on, the bulb brightness is 1.  This is set to 1 in line 910 of tplink.py.  It should be set to the previous brightness setting, or taken from a property of the unit.
> 
> 3.  HS200 dimmable switches:  Can turn off but not turn on.
> 	2/20/23 8:40:59 AM  Sending ON for "Upstairs bath 1”
> 	2/20/23 8:40:59 AM  Upstairs bath 1 is not responding ('SmartDimmer' object has no attribute 'set_light_state’)
> I’m guessing “set_light_state” shouldn’t be called for a dimmer switch;  only turn_on, turn_off, and set_brightness should be called.
> 
> 4.  Log entries when mechanically turned off:  This is a Kasa/TPLink smart bulb which is screwed into a fixture with a mechanical switch.  I get these log entries when the mechanical switch is off.  
> 	2/19/23 9:03:39 AM  Tony desk light: Error in _doPoll( Unable to connect to the device: 192.168.0.22)
> 	2/19/23 9:04:37 AM  Tony desk light: Error in _doPoll( Unable to connect to the device: 192.168.0.22)
> 	2/19/23 9:05:20 AM  Tony desk light: Error in _doPoll( Unable to connect to the device: 192.168.0.22)
> 	2/19/23 9:06:18 AM  Tony desk light: Error in _doPoll( Unable to connect to the device: 192.168.0.22)
> This needs to be changed so that it is logged infrequently or only logged when the state changes.
> 
> 5.  Log entries with differing numbers of discovered units:  These fill up my log.
> 	2/18/23 10:42:51 AM  Kasa-TPLink: 12 Kasa/TP-Link devices were found.
> 	2/18/23 10:42:57 AM  Kasa-TPLink: 13 Kasa/TP-Link devices were found.
> 	2/18/23 10:43:34 AM  Kasa-TPLink: 10 Kasa/TP-Link devices were found.
> 	2/18/23 10:43:39 AM  Kasa-TPLink: 13 Kasa/TP-Link devices were found.
> One fix would be to allow this logging to be shutoff.
> 
> 
> Looking forward to the fixes!
> 
> —andy
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://machomeautomation.com/pipermail/xtensionlist_machomeautomation.com/attachments/20230220/00e5b101/attachment.htm>


More information about the XtensionList mailing list