GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - apdevelop/tapo-devices: The C# .NET5 library to control TP-Link Tapo devices locally

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
Src
Src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

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("[email protected]", "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

  • TapoConnect
  • TP-Link Tapo devices support for MajorDoMo
  • Kostiantyn's Blog: Connecting to Tapo lamps from F#
  • KHome.TapoLights
  • PyP100 Python library
  • TapoSharp is a .NET implementation of the Tapo Smart Plug API
  • TapoPlugAPI

About

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

Topics

csharpcsharp-libraryiotnet5smart-hometapotapo-devicestapo-light-bulbtapo-plugtp-link

Resources

Readme
MIT license
Activity

Stars

16 stars

Watchers

3 watching

Forks

8 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.