[OBSOLETE] Flume Water Meter Smartthings Smartapp + Flume Water Meter Device Handler

Here’s the updated OneApp DTH.


Steps to use:
Login to graph ide .
Add a new device handler:


Select From Code:
image
Copy paste the code above from OneApp Flume Water Flow DH.groovy file then hit Create button.

Go to your current Flume under My devices. Edit the device type:
Select OneApp Flume.
image
Click Update.

You’ll see this in OneApp:


Much thanks to @nayelyz and @orangebucket for helping me understand this new framework.

There are some cosmetic improvements I’m investigating but this updated OneApp DH should be a good start for now.

2 Likes

This looks great! I had the previous version of Flume (they have a new version out now) and got rid of it because I wasn’t able to integrate it with ST. I just happened to bump into this thread and I’m glad I did. Just so I understand this, would there be a way for WebCoRE to shut off a water valve (already have that installed and connected to ST) in case it detects a heavy flow leak (or maybe even a slow leak?) Will your implementation work with their newest Flume version? Thanks

The sensor is visible now within the SmartThings app


so ill be surprised if flume wet/dry sensor is not visible in webcore, ill get you a screenshot to confirm.

Here’s the sensor for webcore pistons

I’ll know for sure if the newer device works with this current implementation once I get my hands on one, it’s on its way courtesy of Flume :), if not ill work on an updated DH/implementation.

Cool, thanks. Is the data real-time with your implementation (no need refresh the app?)

@smartie Currently the implementation is setup to auto retrieve data every 6 minutes. This can be adjusted down to 1 minute

Line 124 of updated oneApp DH

schedule(“0 0/6 * * * ?”, poll) //refresh every 10 minutes change to 6

The refresh interval is limited due to Flume API’s rate limit. If you exceed rate limit you’ll be locked out and get request data/refresh denied response. im not sure what is the locked out time (guessing a couple of minutes) so six minutes is the safe/stable path.

Sounds good…

Thanks for updating this. I tried to install just the Smartapp and the new DH but that did not create a device. I had to also create the old DH in order for it to create a device and then update it to the new DH. Was that intended or did I miss a step somewhere?

Thanks for catching that and providing a workaround. There’s a line on the Flume smartapp that calls the device dth but currently calls old dth name.

For current device already installed updating to newer device type as mentioned earlier post is the way to go.

For new/fresh installs Ill need to update the smartapp to match the name of the new/updated device dth. Im working on a newer smartapp version with other features plus will include call to newer device dth, will release a week or two.

1 Like

I’ll be interested to hear your opinion of the new Flume 2 and integration with your Smartapp.

Hi, I have the flume 2. I installed the Smartapp and the “OneApp” DH.
How do i make my flume device appear in my devices list ?

I have been trying and trying and can’t get this to work.

log shows:

e014110e-f2b6-4eae-9463-7d428ea28a49 7:02:44 AM: error java.lang.NullPointerException: Cannot invoke method toDouble() on null object @line 207 (setListElement)

e014110e-f2b6-4eae-9463-7d428ea28a49 7:02:44 AM: error java.lang.NullPointerException: Cannot invoke method toDouble() on null object @line 207 (setListElement)

e014110e-f2b6-4eae-9463-7d428ea28a49 7:00:18 AM: debug Flume DH refresh() called- cloudData: [todayFlow:51, thisMonthFlow:1091, thisYearFlow:1091, inAlert:false], suspend: monitor

e014110e-f2b6-4eae-9463-7d428ea28a49 7:00:18 AM: debug Flume DH generateEvent() called with parameters: ‘[name:water, value:dry]’

e014110e-f2b6-4eae-9463-7d428ea28a49 7:00:18 AM: error groovy.lang.MissingMethodException: No signature of method: static java.lang.Math.round() is applicable for argument types: (null) values: [null]
Possible solutions: round(float), round(double), find(), rint(double), find(groovy.lang.Closure), random() @line 286 (refresh)

e014110e-f2b6-4eae-9463-7d428ea28a49 7:00:18 AM: debug device refresh state.thisYearFlow ‘1091’

e014110e-f2b6-4eae-9463-7d428ea28a49 7:00:06 AM: trace Flume DH poll() called

Any ideas?

Thanks!

I get this error when i use FlumeDHWorking.groovy.

The newer OneApp DH https://github.com/getterdone/FlumeWaterMeter/blob/master/OneApp%20Flume%20Water%20Flow%20DH.groovy seems to be working atleast from the logs (apart from one error about the old FlumeDH).
However, I am not able to see the device using this new OneApp DH+Smartapp (Flume 2 device)

@JosephNY
Try new version, if you still get this issue please let me know, I’ll take a look.

@frazered
I updated the SM and the Device handler here:

This new SM version handles multiple flume devices and with the newer DH should find your Flume devices once you enter your Login in the Options section of the SM.

I have been crazy busy with work but planned is add the option to view device Bridge Wifi Connection and Sensor Battery Level (Flume uses low, medium, high) but I’m partially there with the OneApp frontend presentations. This version is easier to setup Flume device(s) as mentioned earlier.

@smarties
The best thing about Flume v2 battery replacement it’s super easy now, there’s a YT video that talks about other differences, not mine, maybe I need a YT channel LOL.

1 Like

@Smartphi - Thanks! It is working now and I can see the Flume 2 device once logged in.

That did it!

Thank you so much!

1 Like

Using the new DH and SApp, I tried creating an Alert but the “Water Sensor” still shows “Dry”. I received the alerts in Flume app but the ST Device “-Flume Meter” kept showing “Dry”.

Logs for the smartapp show that it received the alert
request_id:SYSTEM_TRIGGERED_USAGE_ALERT, since_datetime:2021-01-04 12:17:00

Any advise?

can you take a screenshot of your Flume ios/Android App Notification (within Flume click the Bell icon on top right and it should have all Notifications) of the triggered alert you received.

This SM handles Low Leak Alerts.

With the screenshot I can confirm if this is a Low Leak or a custom Usage alert (which I think it is)
If it’s a custom usage alert then I will need to add additional code logic to handle custom usage alerts.
if screenshot shows Low Leak then I can take a look what’s going on with current implementation since this definitely should have turned to Wet.

Oh ok, yes it is a custom usage alert I created to test the Flume 2 (just got it yesterday).
Will await the custom alert addition if and when you add it to the DH.

Thanks again!

1 Like

Sorry, maybe I’m doing something wrong, but I can’t figure it out. After changing the code for the DH andSmartApp in IDE, Once I enter my email/pw and click done, I see “processing” and get taken back to the list of all my smartapps. When I click on the “Flume Home” again, I am taken back to the same screen with credentials.

Uninstalled the DH and SA from IDE and reinstalled everything form scratch and the devices showed up in the App!

1 Like