Robot Engage Blog Buy Now
Blog

Misty Community Forum

Can a wemo light plug/switch be called from JavaScript?

Is it possible to call the Wemo client in JavaScript on Misty to turn On and off a plug / light? There is no REST API to call. Below is the Wemo client for node.js to understand how the client is accessed.

https://npm.taobao.org/package/@octoblu/wemo-client#wemoclient

I was able to call the Wemo.net library in C# to turn on / off a light using the Misty C# SDK but not sure how to call it in JavaScript.

Thanks for any help.

Hi @wspeerbrecker,

The easiest option would be to use a combination of WebHook and Wemo services from IFTTT to trigger the switch/light from JavaScript skill.

CP

1 Like

Hi CP,

Thanks for the information. I have not used these technologies before but I will spend some time reviewing the information on webhooks / wemo services / IFTTT and try to implement it.

Wes
P.s. FYI - it took less than 6 lines of code to turn on/off a light with the wemo.net and C# SDK. :slight_smile: