plasticrake / tplink-smarthome-api

TP-Link Smarthome WiFi API
MIT License
1.03k stars 142 forks source link

Support of KS240 - Kasa Smart Ceiling Fan Control & Dimmer Switch | Adjustable 4-Speed Fan & Brightness Control #167

Open shaarkys opened 7 months ago

shaarkys commented 7 months ago

Plasticrake, if you are still around, would you be able to add support for KS240 device ? I don't have device myself and I'm not expert at all, but it could be dimmer with childIDs like HS300 plug maybe ?

There is ongoing discussion on HA thread, if it would help. https://github.com/home-assistant/core/issues/111238

https://www.amazon.com/Kasa-Smart-Adjustable-Brightness-KS240/dp/B0CTDCQJVZ?th=1

obrazek

Thank you for your support

shaarkys commented 7 months ago

https://github.com/python-kasa/python-kasa/pull/764#issue-2141191253

shaarkys commented 7 months ago

https://github.com/python-kasa/python-kasa/blob/fe6b1892cc1b081d7ead2d65dcc9536551929f44/kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json#L108

shaarkys commented 7 months ago

https://github.com/python-kasa/python-kasa/issues/749

I'm not sure but API would probably need to be upgrade to support AesTransport / TAPO like ;-(

https://github.com/python-kasa/python-kasa/blob/fe6b1892cc1b081d7ead2d65dcc9536551929f44/kasa/aestransport.py#L60