IOTDB Bridge for Belkin WeMo
npm install homestar-wemo
See the samples for details how to add to your project.
particularly model.js for "standalone" and iotdb.js
for use in IOTDB / HomeStar projects.
Then:
$ npm install homestar-wemo
Code to turn off all WeMo sockets
const iotdb = require('iotdb')
iotdb.use("homestar-wemo")
iotdb.connect("WeMoSocket").set(":on", false)
This controls WeMo Sockets.
Functionality:
* discover WeMo Sockets
* turn on and off
* get same (including notifications)
* on: true or false, purpose iot-purpose:on
e.g.
{
"on": true
}
the socket is on / turn the socket on
NOT TESTED
* on: true or false, purpose iot-purpose:on
e.g.
{
"on": true
}
NOT TESTED
* on: true or false, purpose iot-purpose:on
e.g.
{
"on": true
}
NOT TESTED
* motion: true or false, purpose iot-purpose:sensor.motion
e.g.
{
"motion": true
}
NOT TESTED
* on: true or false, purpose iot-purpose:on
e.g.
{
"on": true
}