This SmartApp integrates Sense Energy Monitor devices into SmartThings. It requires running a node server on the same LAN as your hub to actually maintain the real-time connection with Sense. Once the connection is set up, the SmartApp will automatically create devices in SmartThings matching your devices in Sense.
A few ways you can use this:
-
Trigger various automations based on Sense devices turning on or off (or by changes in usage amounts)
-
Initiate SmartThings push notifications when Sense devices turn on or off (and restrict notifications to certain modes).
-
Delay push notifications by X minutes to ensure that device really is off. (Example: only notify that the dryer is off if it’s stayed off for at least 15 minutes)
-
Show your Sense usage (individual devices and total usage) on ActionTiles or within the ST mobile app
Installation
- Follow the instructions and get the code here: GitHub - brbeaird/SmartThings_SenseMonitor: Connects SmartThings with Sense
- You’ll install code for SmartApp and Device Handlers
- You will also need to follow the instructions for setting up the node server.
- You will need to edit the node config.js file with your Sense login information and your SmartThings hub IP.
Screenshots
Special thanks to blandman, the author of the unofficial Sense API node library I used to build the data collection piece of this.
Notable design info
- The node server maintains a websocket connection to Sense that receives data every second.
- Periodically and as devices turn on or off, data is sent to the SmartThings hub via local network calls. No Oauth setup is necessary.
- The Sense devices in SmartThings are updated near-instantaneously (essentially replacing the IFTTT functionality and a lot more)
Enjoy!