0.1.0 • Published 7 years ago

wemo-hack v0.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

WeMo-Hack

For my home automation projct, I am using smart devices from a number of companies and one of those devices happens to be Belkin's WeMo Smart Plug. I got tired of using all of the separate apps, so I wanted to unify them under one. While building my application, I tried to configure the WeMo Smart Plug without using Belkin's app. This is how I realized I needed to be able to protect my smart devices from unknown users using a discovery service like this.

What does this do?

This script will scan for nearby wireless networks. If it one of the networks that is found has a name that contains 'WeMo', it will attempt to connect to it. If it successfully connects, it will then scan that network for any connected WeMo devices every two seconds. If it discovers a Smart Plug, it will then turn that switch off and on every four seconds until you terminate the script.

Requirements

A Belkin WeMo Smart Plug that is in range somewhere. I have included an image of the ones I was using.

A device capable of connecting to the internet via a nearby Wi-Fi network.

To run

Run the following commands:

'npm install .'

'node index.js'

Note

Please note that I wrote this script to improve my home automation project. I am sharing this with the intention that it will help others improve their setups as well.

I am in no way encouraging anyone to torment others by taking over their Smart Plugs.

While running the script, if you see an error such as 'addMembership is not defined', this is often caused by trying to control a Smart Plug that is too far away.