Skip to content

C# interface to the TP-Link TapoP100 and TapoP110 smart plugs

Notifications You must be signed in to change notification settings

stewart-james/Tapo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tapo

C# interface to the TP-Link Tapo P100 and P110 smart plugs

var tapo = new TapoP110(new DeviceOptions("192.168.1.101", "username", "password"));

if(await tapo.IsTurnedOn())
{
    await tapo.TurnOff();
}
else
{
    await tapo.TurnOn();
}

var deviceInfo = await tapo.GetDeviceInfo();

Console.WriteLine(deviceInfo);

var energyUsage = await tapo.GetEnergyUsage();

Console.WriteLine(energyUsage);

Languages