Skip to content

apdevelop/tapo-devices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tapo Devices

The C# .NET5 library for basic controlling of some types of TP-Link Tapo devices in local network without using TP-Link Cloud features. Device must be registered and has known IP address.

This project is mostly experimental and based on undocumented API features.

Usage

// Tapo account credentials (email and password)
var factory = new TapoDevices.TapoDeviceFactory("user@domain.com", "password");

// 1. Control the Smart Socket with specified IP address
var plug = factory.CreatePlug("192.168.1.71");
await plug.ConnectAsync();

// Get device information
var info = await plug.GetInfoAsync();
var energyUsage = await plug.GetEnergyUsageAsync();

// Turn device on and then off
await plug.TurnOnAsync();
await plug.TurnOffAsync();

// 2. Control the Light Bulb
var bulb = factory.CreateBulb("192.168.1.72");
await bulb.ConnectAsync();
await bulb.SetColorTemperatureAsync(2700);
await bulb.SetBrightnessAsync(50);
await bulb.SetParametersAsync(
    new TapoDevices.SetDeviceInfo.ParamsBulb
    {
        Brightness = 5,
        Hue = 120,
        Saturation = 100,
        ColorTemperature = 0,
    });

Supported and tested devices

Device Description FW Version
P110 Mini Smart Wi-Fi Socket, Energy Monitoring 1.3.0 Build 230905 Rel.152200
P300 Smart Wi-Fi Power Strip 1.0.15 Build 231130 Rel.122554
L510 Smart Wi-Fi Light Bulb, Dimmable 1.1.0 Build 230721 Rel.224802
L530 Smart Wi-Fi Light Bulb, Multicolor 1.1.0 Build 230721 Rel.224802
L535B Smart Wi-Fi Light Bulb, Multicolor 1.1.5 Build 240328 Rel.194528

Features

  • Asynchronous only set of methods for devices control
  • Generic types for requests/responses
  • NET 5.0 assembly without additional dependencies

TODOs

  • Implement as .NET8 / .NET Standard 2.0 library
  • Support for more of device features
  • Support for more device types
  • API documentation
  • Nuget package

References

About

The C# .NET5 library to control TP-Link Tapo devices locally

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy