Unofficial Rust API Client

Unofficial Rust API Client

Unofficial Rust API Client
Unofficial Rust API Client
2022-07-02 17:53:03 - last edited 3 weeks ago

I've recently built a Rust API Client that works with TP-Link Tapo smart devices. Tested with light bulbs (L510, L530) and plugs (P100, P105, P110, P115).

 

You can find it at https://github.com/mihai-dinculescu/tapo. Feedback will be much appreciated!

  2      
  2      
#1
Options
9 Reply
Re:Unofficial Rust API Client
2022-08-04 02:09:59

  @FaithRaven 

 

Nice, will your app fix my problem below?

 

https://community.tp-link.com/en/smart-home/forum/topic/576282

  0  
  0  
#2
Options
Re:Unofficial Rust API Client
2022-08-07 11:19:59

@JJJ123 I don't think that it will help in your situation.

 

This library enables you to programmatically interact with your devices. It does not change how the devices interact with the mobile Tapo app.

  0  
  0  
#3
Options
Re:Unofficial Rust API Client
2022-10-14 11:07:43

  @FaithRaven Hi

 

Do you have any idea how to get at the energy usage of a Tapo bulb?   The "get_energy_usage" method which works for the plug returns an error for the bulb, but the Tapo iOS app shows energy consumption for the bulbs, so there must be a way!

 

  0  
  0  
#4
Options
Re:Unofficial Rust API Client
2022-10-17 09:36:38 - last edited 2022-10-17 09:37:52

  @acarter 

get_energy_usage is a feature unique to P110, as per the Device Support table.

 

While the bulbs don't offer the advanced energy usage monitoring of P110, they do offer some.

get_device_usage will return the Time Usage, Power Usage and the Estimated Saved Power for today, the last 7 days and the last 30 days.

 

  0  
  0  
#5
Options
Re:Unofficial Rust API Client
2022-10-17 09:57:10

  @FaithRaven  Thanks!

 

  0  
  0  
#6
Options
Re:Unofficial Rust API Client
2022-11-20 18:08:53 - last edited 2022-11-20 18:09:47

Release v0.3.0 brings a new `set` API that allows multiple properties to be set in a single request for the L510 and L530 devices.

https://github.com/mihai-dinculescu/tapo

 

Next up, I plan to add support for L930 devices.

  0  
  0  
#7
Options
Re:Unofficial Rust API Client
2023-02-25 20:00:45

Release v0.4.0 adds the `get_energy_data` for P110 devices.

https://github.com/mihai-dinculescu/tapo

  0  
  0  
#8
Options
Re:Unofficial Rust API Client
3 weeks ago

Release v0.6.0 brings the much-anticipated support for light strips (L900, L920 & L930), more bulbs (L610 & L630) and improved ergonomics.

https://github.com/mihai-dinculescu/tapo

 

  0  
  0  
#9
Options
Re:Unofficial Rust API Client
Friday

Tapo v0.7.0 adds support for the H100 hub and most of the sensors and switches it interacts with.

https://github.com/mihai-dinculescu/tapo

  0  
  0  
#10
Options

Information

Helpful: 2

Views: 474

Replies: 10