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
339 stars 35 forks source link

Add get_current_power to power monitoring plugs #110

Closed Michal-Szczepaniak closed 1 year ago

Michal-Szczepaniak commented 1 year ago

Related issue https://github.com/mihai-dinculescu/tapo/issues/109

I've somehow managed to implement it (and tested it) without prior rust knowledge

mihai-dinculescu commented 1 year ago

Thank you for this.

Are you sure this is your first time writing Rust? :) The PR is almost flawless. Can you please run cargo fmt and commit the changes?

Michal-Szczepaniak commented 1 year ago

Sure will do.

First time writing rust, but not first time programming :P

mihai-dinculescu commented 1 year ago

Ah, cargo clippy has a few complaints as well.

Michal-Szczepaniak commented 1 year ago

yes yes I'm already ahead of you :P