Add GitHub repository with: owner: tronikos, name: FlumeSmartThings, branch: main
Update from Repo → FlumeSmartThings
Check tronikos:Flume Smart Home Water Monitor
Check Publish
Click Execute Update
Click Edit Properies of the new installed SmartApp
Expand Settings
Enter FlumeAPI_Key and FlumeAPI_Secret. You can get these from Flume Portal by expanding API Access
Go to “My Device Handlers”
Update from Repo → FlumeSmartThings
Check tronikos:Flume Smart Home Water Monitor DH
Check Publish
Click Execute Update
Proxy
Flume API has a rate limit of 120 requests per hour per IP address. SmartThings SmartApps run on the cloud so this limit is shared among other users of this SmartApp. To avoid rate limiting it’s recommended to setup a proxy running in your local network that the SmartThings hub will locally connect to.
The proxy is implemeted in Node.js, see code, that can run pretty much anywhere, e.g. Windows/Linux/macOS/Android etc. In my case, my hub is a SmartThings Link for NVIDIA SHIELD, so the proxy runs on the NVIDIA SHIELD that is always on. I used Termux. Do a web search how to run Node.js on whatever machine you have available. It needs to be in the same LAN as your SmartThings hub. And then enter local_ip:port in the SmartApp settings.
Thanks @getterdone for their version that this was based on.
Awesome! Can’t wait to try this version :). I have another update cooking as well but the rate limit issue keeps creeping up. I’ll try to figure out the Proxy solution/workaround you mentioned and test some and hopefully fixes the rate limit issue for me and then release my changes.
@NickT
Working great for me, thanks! Perhaps add an installation step for enabling OAuth, took me a minute to realize that. Any idea if it’s possible to get daily usage as a tile in ActionTiles?
Fixed icon that was always showing as wet. Water usage isn’t shown anymore in the dashboard. It’s only shown in the detail view. If you want water usage in the dashboard and don’t mind the broken icon, you can manually uncomment the corresponding vid in the DH code.
Thanks so much for this! Everything installed well and looks to be working great. I wound up going back to the broken tile just so I could see at a glance that everything is working properly and see flow at a glance.
It took me a while (ignorance) to get the js setup on my always on Windows 10 machine and to get it running properly as a service so it’d always be running in the background. Keep in mind the port is defined as 3006, but you can change it in the .js file if it is in use already for something else.
For anyone else that is struggling:
I installed node.js, including everything that came with it
Saved index.js file in the OP to where I want it to live
I attempted to run it from the command prompt (pointing to the location) and resulted in errors of missing modules
I installed missing modules with:
npm install xxxx --save (where xxxx is the missing dependent)
IIRC this allowed it to run without issue, but keeps the window open and will need to be run at each reboot, etc.
If you want to run it as a windows service, go here: GitHub - coreybutler/node-windows: Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Just create a new .js file with the included directions and point to the location of index.js. I was stupid and only included single backslashes between folders/files in the file path (it wants two for each).
I have two Flume2 and they are great… can’t imagine not having a Flume for peace of mind. We travel a lot and have guests at our houses and this has saved a few accidents!
is there a current app that will allow me to reconnect my 1st gen Flume to the smartthings app? I used Nick’s previous app but i guess its not working any longer? pardon my ignorance, once i got it working i haven’t logged into this community i a long time