Hi Guys (@JonnyB and @johnconstantelo) , I was able to make some huge performance improvements in the chart code
Month Chart: 80% improvement
Week Chart: 90% improvement
Day Chart: 95% improvement
Please try it out and make sure it’s working for you.
That’s odd. My smartapp for continuous flow is OK. Have you removed and reinstalled the SmartApp since updating the device handler? I seem to remember that nullpointerexception error before, but I can’t remember what it was.
Yes accumulated flow is working but you have to deal with gallons not time so first I have to find out what is gallons limit over time I want setup, little bit complicate
@magda I set up simple logger with Google sheets. My household has a routine so the time things are used and how much was simple in my case after using the data and making graphs. Now I should also say my water meter is hooked up at the water softener loop. So I only read what’s used inside the house. My Sprinklers and pool autofill would have messed up my data. I decided accumulated flow in my case was better because I would catch it sooner then having something run for an hour.
Let me go back in my notes to see what may be causing this nullpointerexception error from the smartapp for you guys because I’m not seeing it. There has to be a root cause, so let me do some homework.
Just to make sure, you’re both using my current DTH?
Can you check something for me in FortrezZ’s SmartApp code?
Look at line 249 and change it to this:
if(gpm == “0”)
Save and publish and go to the SmartApp and walk through all the settings and tap on Save. You can always remove the app and start over, but redoing the settings should work too.
Please check your live log and let me know if that resolves the error?
EDIT : You may need to uninstall and reinstall the FortrezZ SmartApp.
Wrong app. It should be the parent app for Leak Detector.
I’m finding that my DTH and FortrezZ’s code with that change works, but not the first time. For some reason I need to go back into the SmartApp and change/refresh settings and the error goes away.
This is why I’m not seeing this issue but you are.
At first I got the same error you and @JonnyB were getting, but I went back into the mobile app and made some setting changes in the FortrezZ SmartApp for BOTH continuous flow AND the parent app. Once I did that, the error went away. I have no idea why their app behaves that way.