homestar-wemo
August 25, 2016 ยท View on GitHub
IOTDB Bridge for Belkin WeMo devices.
About
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.
Installation
Then:
$ npm install homestar-wemo
Use
Code to turn off all WeMo sockets
const iotdb = require('iotdb')
iotdb.use("homestar-wemo")
iotdb.connect("WeMoSocket").set(":on", false)
Models
WeMoSocket
This controls WeMo Sockets.
Functionality:
- discover WeMo Sockets
- turn on and off
- get same (including notifications)
Attributes
on: true or false, purposeiot-purpose:on
e.g.
{
"on": true
}
the socket is on / turn the socket on
WeMoInsight
NOT TESTED
Attributes
on: true or false, purposeiot-purpose:on
e.g.
{
"on": true
}
WeMoLightSwitch
NOT TESTED
Attributes
on: true or false, purposeiot-purpose:on
e.g.
{
"on": true
}
WeMoMotion
NOT TESTED
Attributes
motion: true or false, purposeiot-purpose:sensor.motion
e.g.
{
"motion": true
}
WeMoCrockpot
NOT TESTED
Attributes
on: true or false, purposeiot-purpose:on
e.g.
{
"on": true
}