Thank you! So I believe I got everything to mimic your pic and I like the output which helped me find a leaky toilet at one of my rentals. But I lost the functionality to automatic shut-off water valve after 25 minutes continous flow and I no longer get notified of continous water flow of more than 15 minutes. Did I overwrite the code somehow?
Ok thatâs good that you got things going again, so letâs focus on FortrezZâs smartapps.
How did you get the meter working again? Did you remove it and add it back to SmartThings?
Iâll have to install FortrezZâs apps to see whatâs up because I donât use those anymore, but they did work when I tested the updated DTH a few weeks ago.
Yes. I reset the interface, and that removed the meter and made me reinstall. I am concerned that overwrote code, but I see them in the Smart App section and I see them in the logging. But the push notification and command is not performing.
Ok, you probably need to back onto the SmartApp and select the meter again.
I just installed their SmartApps and will test again shortly. I have my own version of their smartapps that does more, so let me double check with their apps.
Ok, I believe I know where the issue is. Stay tuned. Iâll be updating my code shortly and running a few more tests.
yeah! Thank you!
Can you get my updated code from Github and try FortrezZâs apps again please?
Yep. I am about 10 minutes away from home now.
No worries. I remember a long time ago I found an error in FortrezZâs smartapp code related to how it handles getting time frames. Watch your live logging and if you see an error regarding something like âdoCall on line 184â, then youâll need updated SmartApps.
Youâll want to remove your old versions of those, including deleting the child rules first in the mobile app. Then delete the parent. Once you do that, delete the child code and parent code from the IDE. Hereâs the updated code:
Youâll notice you have a few more options. To replicate your legacy continuous flow rules, select Continuous Flow (gpm over time).
I am having a little trouble locating the code on github. Is there a link or a name to search under?
Itâs in the first post in this topic:
Were you able to get the code and make the changes I recommended?
I just updated the code to fix another issue I found, so please get the latest release on Github. Trying to support FortrezZâs legacy smartapp code while enhancing and updating the DTH code for the new app can be a bit challenging.
I was able to get the code and make the changes. It still didnât push the commands to shut off water valve or send notifications. I will try your new changes, later this evening.
Thank you so much for your work on this!
Did you use the updated SmartApps? Itâs working for me using the updated DTH code and SmartApp code.
Here are the live logging events. My flow test was just for 1 minute, and it sent the notification and turned off my valve:
Hereâs my SmartApp settings:
John,
I think everything is working now. I am still using old smart apps. I will keep testing before rolling it out to all properties.
Thanks for your help!
Angela
John,
Ok. So, everything works technically. The water valve shuts off after specified time and I get the reports after continuous flow after the specified time. So so so close. Here is the new issue: Letâs say I have the time for the shut off to occur at 60 minutes continuously flowing. I run the water for 15 minutes, then shut off water for 10 minutes, then water again for 15 minutes, then again shut off water for another 15 minutes, this occurs until the water has been running on and off again for 60 minutes. The water command tells the valve to shut off, even though water hasnât constantly flowed for the 60 minutes as specified. This also occurs with the continuous flow reports. Itâs like the language is looking at total, and not stopping at 0 flow and resetting.
Thanks again,
Angela
Yup, thatâs kind of what I though may happen if youâre using the new DTH and their older SmartApps. If you notice in my screenshots above, the updated SmartApps will log an event that shows when flow stops and then waits for it to start again.
First, double check that youâre using the latest DTH. It should be only 269 lines. If you have any doubt, you can always grab a copy from Github.
As soon as I get out of work Iâll replicate using the updated SmartApps to make sure theyâre not doing that, with 3 minutes of continuous flow so that testing can get done fairly quick.
Ok, here we go.
In summary, use the latest DTH code and updated SmartApps.
(click on the images to enlarge)
Child app set to look for continuous flow for over 2 minutes and notify and turn on a light:
Watching flow then stopped, which reset the timer:
Waited a minute and ran some more water for a little over a minute. It stopped and reset the timer:
More water running, then stopped and time reset. Note that Iâve run water for well over my 2 minute limit, but not all at once, so no notification or light turning on:
Water running for over 2 minutes. Notification sent and lights turned on: (log was too long to show, so itâs the first and last part)
(lot of logging)
ok. Just to clarify there is a Parent and Child Forezz icon on phone in Smartthings Application that I need to delete for each property location? or is there a files located somewhere else. Then I need to delete the Smart App, Child first then Parent, under âSmart Appsâ tab on Smart Things Website? Then add Child first then Parent under âSmart Appsâ tab on Smart Things Website. Then back on phone. Is this correct? The phone part is where I couldnât figure out the other day, then I went back to old Smart apps.
Thanks!
i believe everything is now working.
Thank you!