Skip to content

JustinJS/SmartIntegration

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();

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages