Propane Tank Monitoring - 500 gallon

Need a login ID and tank ID. I’ll make a setup in next version to derive from username and password. For now you get them from here: https://data.tankutility.com/api/getToken

And here:

https://data.tankutility.com/api/devices?token=<my_personal_token>

1 Like

got my token… I’m I loading code into Smarthings API my smart apps? where will I be pasting to token in the code? Thanks

Once you have the code imported you should be able to add it from MarketPlace -> SmartApps -> My Apps -> Propane Tank Monitor. It should prompt for the token and device id upon install, but if not you can find these under settings:

Sorry I haven’t gotten to do more work on it yet. So happy to have it in here.

Well done bowood. Tank Utility now speaks to ST.

so I’m new to this whole thing.

When I try and paste the code into a smart app in the IDE I get an error message:

No signature of method: script_app_metadata_789e7bf0_cbde_4766_be0e_f3311755af91.metadata() is applicable for argument types: (script_app_metadata_789e7bf0_cbde_4766_be0e_f3311755af91$_run_closure2) values: [script_app_metadata_789e7bf0_cbde_4766_be0e_f3311755af91$_run_closure2@172f7865] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)

However it compiles fine as a device handler. I assume I want a smart app for this all to work correctly or maybe that is an incorrect assumption.

so I guess a few questions:

  1. am I missing something about installing a device handler as a smart app? or do I need to do something differently? the app that comes with the tank utility works fine, but i’d like everything in one place.

  2. do I need to make any edits or change some steps to get this working as a smart app?

I see that several of you have it working so I’m thinking this is due to my limited knowledge with working with custom apps.

Thanks

Devicehandler is all that you need. I’m new at this too and haven’t gotten a chance to improve this yet, but it’ll show up as a “thing” so you can keep an eye on it. I think a smartapp will be required to make this useful for various actions. Not sure what you’d want it to do though, maybe shut off some appliances if it gets too low. My propane provider charges an inspection fee if you go to zero because they assume you have a leak. So maybe an automation to prevent that would be useful.

I’m loving my Tank Utility, it saved me from having to trek daily through a foot a snow during the recent snow storms. Thanks Bowood for building a device handler!

I did a little tweaking of Bowood’s code (basically changed everything that said level to energy) so I could use the device handler’s “energy” variable in webCoRe. Now I have a piston that can check the level daily and send me the current reading via email and text on Mondays. It will also text me when the level gets below 30%. My next piston will be to check the propane level mid summer and remind me to order propane for the winter and how many gallons I currently need to fill the tank.

If you haven’t had a chance to check out webCoRe, here is the link to their introduction page:

I’m very happy with the TankUtility, but I’ve been struggling with the lack of data access and integration.

I set up a DeviceHandler, and figured out how to create a device.

I added the tankID (from the TankUtility app) and generated the token (using: https://data.tankutility.com/api/getToken).

But I now get the following error in live logging:

error something went wrong: groovyx.net.http.HttpResponseException: Not Found

Can someone please help me out?

Thank you!

1 Like

I’m going to get setup with this system because of the API @tankutility posted as well as the work you’ve done so far (@JosephNY). If you can’t figure ST integration by the time mine is installed I’ll certainly help out!

Thanks very much, Andrew!

Your response inspired me to continue work on this and I figured out what I did wrong.

I used the Device ID of the tank from the TankUtility app instead of using the api calls to get the ID and token.

Within a browser tab:

This will give you the token:
https://data.tankutility.com/api/getToken

This will give you the deviceID:
https://data.tankutility.com/api/devices?token=[token]

This will give you the actual reading data:
https://data.tankutility.com/api/devices/[deviceID]?token=[token]

Hope this helps!

Thanks!

1 Like

So, I am either confused or incompetent (bets on both?). I have copied the code into IDE Device Handlers and published it. It shows up in IDE next to other Device Handlers. But, when I go into my ST app, I dont see it in Marketplace --> SmartApps --> My Apps, nor can I see it when I try to add a thing.

My device is working and connected to the Tank Utility App, so I know that isnt the problem

I would appreciate any help you can give.

Thanks

Pete

Nevermind! I figured it out. I needed to add the device in IDE, not in the app on my phone. I have it in and working. Now I need to figure out what to do with it…

Anyone have any advice?

All, I took this device handler and made it a little easier to install. Check it out!

Tank Utility Smart App

1 Like

Well it’s 2021 and the Tank Utility app sucks. I bought the monitor and spent several days trying to get it to work. It won’t work with Android 9 for one and the software hasn’t been updated I guess since it came out. They expect you to use a wifi network with NO password which isn’t going to happen. Buyer’s beware!!

Hi, just wanted to share my solution to the problem in the hopes it helps others with their own projects:

This isn’t Smartthings specific but I run my ST hub alongside and integrated with Home Assistant. Just thought some of this could still be useful.

I started my journey on the homeseer forum when I was researching how to do this so it seemed like the best place to post.

Would love to know how others have managed with their versions.

Is this still working?

No idea. I’ve abandoned smartthings and switched to HomeAssistant.

Hi everyone. Our company has an ultrasonic sensor that is designed for LPG level monitoring, it’s non-invasive, easy to install. It has been used by many customers, and its performance is really good.
If everyone is interested in it, pls kindly contact me. My email address is mona.f@dypcn.com. Tel is 86 180 3803 1719. Thank you.

Is this integrated with smartthings. Could you post some more information in this thread so we can all see how it works?

@tankutility Any further integration with Tank Utility and Smartthings? Last posts were from a while ago. It seems this would be a great solution, especially since Tank Utility is also partnered with Generac now!