geko
(Geko)
February 6, 2015, 2:30am
3
I don’t see anything wrong with this approach. If power is not an issue, working with WiFi is definitely easier that with Zigbee for DIY projects. In fact, there’s already exist a couple of projects utilizing Spark Core. Check this out:
So I purchased a Spark Core a few weeks back and decided to have some fun.
First and foremost a big thank you to @juano2310 , I borrowed and updated your Spark Core device type. It now serves as a dimmer switch for blinds.
So the core of the code is located here:
Things you will need:
A Spark Core
A servo (preferably analog)
Standard horizontal slat window blinds (plantation style will work too)
DIY mentality
Steps
Wire up your spark core with the servo.
Create your Spark Core Blinds device type using the github code
Create your window Blinds device
Load the Spark code to www.spark.io/build
Add the Spark Core device id and access token to the device this can be done on the smart app under preferences for the device.
Put on your DIY hat finally and with your wife’s per…
Also,
Hello! I’m trying to write a Device type that allows for the control of my Spark Core which is attached to a 16-relay board. (The sole outlet of the GE duplex Z-wave outlets isn’t enough for my workshop ). Things are going well, but I’m noticing that sometimes the switches are left in limbo in the mobile app. So, let’s say I hit a relay to turn it off, it does indeed click off, but the status stays as “turning off”. I didn’t build the device type with polling and/or refreshing built in. Where would I insert this in the SmartThings device type? Would this resolve the problem? Should I use the response code sent by the Spark Core to accomplish this?
/**
Spark Core Relay Control
Thanks to Jonathan Wilson and juano23@gmail.com
Author: CMS
Date: 2014-12-20
*/
preferences {
inpu…
1 Like