python-kasa/pyHS100
JsChiSurf 1aee353cbf Update smartplug.py to support dimming in HS220 (#115)
* Update smartplug.py to support dimming in HS220

Switch functions essentially as a "plug" with the addition to support for dimming, for which can be test for by verifying existence of 'brightness' array value.

* Attempt at updates to pass validator

* Maybe this time?  :-)

* Add more detail to comment blocks

Make clear in requests for current brightness level the expected return values, and note that light will turn on when setting a brightness level, if not already on.  This makes clear that a state change request (turn_on) does NOT have to be made first when setting brightness.

* Update smartplug.py

* Update smartplug.py

Fixes #114
2018-04-09 21:17:54 +02:00
..
tests move SmartDeviceException to SmartDevice, and remove types.py complet… (#95) 2017-10-07 17:41:51 +02:00
__init__.py move SmartDeviceException to SmartDevice, and remove types.py complet… (#95) 2017-10-07 17:41:51 +02:00
cli.py Add support for DNS host names (#104) 2018-01-17 22:03:19 +01:00
discover.py Add support for DNS host names (#104) 2018-01-17 22:03:19 +01:00
protocol.py Add support for DNS host names (#104) 2018-01-17 22:03:19 +01:00
smartbulb.py Add support for DNS host names (#104) 2018-01-17 22:03:19 +01:00
smartdevice.py Add support for DNS host names (#104) 2018-01-17 22:03:19 +01:00
smartplug.py Update smartplug.py to support dimming in HS220 (#115) 2018-04-09 21:17:54 +02:00