Skip to content

.Net Standard 2.0 library providing easy communications with Wemo devices

License

Notifications You must be signed in to change notification settings

spudwebb/Wemo.net

 
 

Repository files navigation

Build Status

Wemo.net

.Net Standard 2.0 (C#) library providing easy, multi-platform communications with Wemo devices.

Wemo Communications

Communicate with your locally-accessible Wemo plug - this will not work externally via the internet (of which would require access to the Wemo network).

Usage

Compile the project, or acquire the latest nuget package and reference:

using WemoNet;

Instantiate the class

var wemo = new Wemo();

Turn-on a Wemo Plug

wemo.TurnOnWemoPlugAsync("http://192.168.1.5").GetAwaiter().GetResult();

Turn-off a Wemo Plug

wemo.TurnOffWemoPlugAsync("http://192.168.1.5").GetAwaiter().GetResult();

Toggle on/off a Wemo Plug

wemo.ToggleWemoPlugAsync("http://192.168.1.5").GetAwaiter().GetResult();

Verify communications example

var onSuccess = await wemo.TurnOnWemoPlugAsync("http://192.168.1.5");
var offSuccess = await wemo.TurnOffWemoPlugAsync("http://192.168.1.5");
var success = wemo.TurnOnWemoPlugAsync("http://192.168.1.5").GetAwaiter().GetResult();

Search for Wemo devices within your local network (caution, this will consume 2-3 minutes)

var listOfDevicesFound = await wemo.GetListOfLocalWemoDevicesAsync(192, 168, 10); // First 3 local IP address octets

About

.Net Standard 2.0 library providing easy communications with Wemo devices

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%