Allows Smartthings to control a Particle Photon (spark core) as a 8 relay switch
To set up
- Put the INO code on your Photon
- Put the Groovy code as a device type on smartthings
- Add a new deivce and use the newly made device type
- In preferences of the new device add you photons token and device ID
- In preferences tell smartthings which relay it will control for 1-8. Realy 1 = Pin D0, Relay 8 = Pin D7 (Has Blue LED good for testing)