mihai-dinculescu / tapo

Unofficial Tapo API Client. Works with TP-Link Tapo smart devices. Tested with light bulbs (L510, L520, L530, L610, L630), light strips (L900, L920, L930), plugs (P100, P105, P110, P115, P300), hubs (H100), switches (S200B) and sensors (KE100, T100, T110, T300, T310, T315).
MIT License
313 stars 30 forks source link

Example for doing things with devices accessed throung the hub #213

Closed mcatkins closed 1 month ago

mcatkins commented 1 month ago

It would be nice to have an example of how to access devices behind an h100 hub. In particular I am interested in how to get button events from an S200B and/or temperature/humidity history from a T310.

Comes to think of it, how do we respond in Python to events originating in the device - such as movements detected by the T100?

Great piece of work - many thanks!

mihai-dinculescu commented 1 month ago

This functionality exists in the Rust library, and I'm currently porting it to Python. The effort is tracked in #128.