IOTDB / Home☆Star Controller for SmartThings
This Module allows you to control your SmartThings devices from IOTDB and Home☆Star. Note that this inherently is complicated. You'll have to add a new app to SmartThings. If you're not comfortable with programming-like things, please ask for help from someone who is.
Then:
$ homestar install homestar-smartthings
$ homestar configure homestar-smartthings
If you have correctly setup and configured your SmartThings app, all you need do is:
$ homestar runner browser=1
You may have to refresh the page, as it may take a little while for your Things to be discovered.
Turn a SmartThings switch off
$ homestar configure homestar-smartthings
$ node
>>> iotdb = require('iotdb')
>>> things = iotdb.connect("SmartThingsSwitch")
>>> things.set(":on", false)
There are many more samples available.
Look for the files called iotdb_*.js
.
e.g.
{
"battery": 90
}
e.g.
{
"open": true
}
e.g.
{
"on": true
}
In Fahrenheit
e.g.
{
"temperature": 72
}
May be affected by SmartThings API changes. If you care to investigate...
true
if there is motion.
e.g.
{
"motion": true
}
No particular units
e.g.
{
"x": 10,
"y": -180,
"z": 78
}