Releases: heythisisnate/nodemcu-smartthings
Easy OAuth
Feature: Easy OAuth. The application handles the OAuth flow automatically now. Just point your browser
to http://<your-device-ip>:8100/oauth. See the updated README for details.
Feature: Authorize multiple alarms with the SmartApp.
Bug Fix: Strobe output did not work due to copy/paste bug.
Bug Fix: Fix error in SmartApp when you only have motion sensors authorized.
Upgrade instructions
- Update the
cloud-sensor.groovySmartApp code in the SmartThings web based IDE. - If you have an alarm connected, you will have to re-add it. Using the SmartThings mobile app, go to Automation -> SmartApps -> Cloud Sensor and open up the Alarms section. Check the device(s) connected to your NodeMCU.
- Remove the
apiHostandapiEndpointvariables from your variables.lua file. - Connect your NodeMCU device to your laptop, using ESPlorer go to Upload and upload all the
luafiles andhtmlfiles from theluadirectory. - Restart the device by toggling RTS and watch the console output for success.
bug fix (SmartApp)
- fix a null error in the SmartApp with some combinations of device types
- improve log messaging
Siren and strobe
Feature: Connect the alarm system siren and/or strobe which can be switched on via SmartThings. Integrates with Smart Home Monitor.
UPGRADING:
- This release now requires the
cjsonfirmware package. You must re-flash your firmware. See the README for the latest flashing instructions. - In
variables.lua, remove the/eventfrom the end of theapiEndpointvariable. - Update the
cloud-sensor.groovySmartApp code. - Create a NodeMCU Connected Alarm device handler with
nodemcu-connected-alarm.groovy - Upload the
application.luaandvariables.luato the NodeMCU. Note the newalarmconfiguration invariables.lua.example. - Upload the new
alarm.luafile to the NodeMCU if you're connecting a siren or strobe.
Reliable poll
Feature: Blink the onboard LED on successful communication with SmartThings. To enable set blink_led = true in
variables.lua
Feature: Reliable polling. Configure by setting poll_interval in variables.lua to a number to indicate the number of seconds between polling in case there are sensors that may have gotten out of sync.