[RELEASE] TankUtility Propane Tank Monitor SmartApp

I created a smart app and device handler for the TankUtility propane tank monitor.

Device Handler: ST_TankUtility/devicetypes/joshs85/tank-utility.src at master · joshs85/ST_TankUtility · GitHub

Smart app: ST_TankUtility/tank-utility-connect.groovy at master · joshs85/ST_TankUtility · GitHub

Install Instructions

Enjoy!

4 Likes

Hi,

I’ve been trying to get your TankUtility integtration working and having some difficulty.

It seems to work, but then stops – “Tank Utility (Connect)” shows the following error:

a83f908a-bd15-4308-a50f-ebc460ea3db5 7:37:26 AM: error groovyx.net.http.HttpResponseException: Unauthorized @line 146 (doCall)

a83f908a-bd15-4308-a50f-ebc460ea3db5 7:37:26 AM: info starting RefreshDeviceStatus()

a83f908a-bd15-4308-a50f-ebc460ea3db5 7:37:26 AM: info starting pollChildren

a83f908a-bd15-4308-a50f-ebc460ea3db5 7:37:26 AM: info starting pollChildren

And the DH when polled from the simulator shows:

141594ee-4700-42d6-aaf0-8b47c63aef7e 7:50:09 AM: error java.lang.reflect.UndeclaredThrowableException @line 67 (poll)

141594ee-4700-42d6-aaf0-8b47c63aef7e 7:50:09 AM: debug Executing ‘poll’ using parent SmartApp

141594ee-4700-42d6-aaf0-8b47c63aef7e 7:50:09 AM: debug Executing ‘poll’ using parent SmartApp

But sometimes it works when I initiate manually.

Any suggestions?

Thank you,

Joseph

If you open the app up does it ask you for your credentials again?

No, when I open the app it just says “Authentication Succeeded!” without having to reenter my credentials.

Sorry for the late reply. I started getting the same issue on mine after a smart things firmware update. If you open the app and click save at the top right, it should fix it. It looks like maybe the scheduling got stopped by smart things or one of the stored values got removed somehow… not sure why though. If it happens to you again, let me know. I’ll try to keep an eye on mine and debug it more.

I’ll give it a try.

Thanks!

It looks like it worked, but it was only temporary.

That is, resaving resulted in sending the data to grovestreams just the one time.

Any other ideas?

Thanks!

I figured it out and fixed it. Looks like the api tokens expire after 24 hours and I originally didn’t account for that. Should be working now. Just update the Smart App to get the update.

Hello, I have been using your integration and recently had to switch the smart app to a new hub. It worked and created my tank in the list of devices, but it stopped polling after 24 hours. Found your notes above, and have removed and reinstalled the device handler and smartapp multiple times, but the device never appears in my list of devices. Can you help me figure out what is going wrong?

Yeah. I can help. Remove the app, make sure you’re updated to the latest available version and re-install with live logging opened up and send me the logs from the device handler and smart app once you’ve entered your credentials and saved the app’s settings. and completed configuring the app. Make sure to send them in a private message because the logs may contain your API key\secret.

Thanks Josh! Not sure what happened but I went in to remove the SmartApp and it looked a little different. My username and password no longer displayed and it said authentication succeeded. I clicked save and the device appeared as it normally did. If I have further issues, I’ll let you know. Thanks again for setting this up for the community!

Hey Josh, thanks for this integration. I just installed a new Tank Utility and it and your integration with smartthings seem to work fine. However the issue I have is when I try to use it with the “new” smarthings app and with ActionTiles; they both report the “level” as an energy value (kwh), not a percentage. Not a huge deal since the value is correct but just wondering if you have any ideas how to work around this?

Best regards,

I tried to find a workaround for this a while back and couldn’t. The app needs to be adjusted so it works with the new ST app, but I haven’t had much time to work on this. When I do, I’ll try to fix this in the new app.

Thank Josh,

I actually managed to make it work by switching it from energy to battery capability. I got that suggestion from the good folks at ActionTiles.

Regards,

Mike Puiu
Waterside Beach Holdings Inc.
c (954) 295-9056

All worked great till I got to smart app enter info. Grayed out: null. Enter your tank utility username and password. Can’t get it to allow me to enter information

Hey John,

Did you ever get this to work. It’s been working fine for me for a couple of years but just recently I noticed I wasn’t getting updates anymore even though the Tank Utility app is being updated. So I went into the Smartthings app and I too am getting the “grayed out” prompt you referred to. When I look at the device using the Smartthings IDE it shows it hasn’t been updated for over a month and I think that lines up with when I deleted the old Smartthings app from my phone so it may well be that this integration just flat doesn’t work on the new app. I don’t know if Josh is monitoring this thread anymore so I’ll see if I can dust off my programming skills and get this thing working again. I’ll post here if I have any luck.

Regards,

Oh well I’m embarrassed to admit that my problem was simply that my Tank Utility login password was wrong. I still can’t enter it on the new SmartThings app but I did correct it using the simulator. Since SmartThings seems to be going in the wrong direction I think I’m going to jump ship at this point and switch to Hubitat. So no need to reenergize my programming skills.

Josh, any chance you are going to update this for Edge. There is another developer that is creating a lot of API based EDGE drivers. Maybe you two could collaborate or if you abandon he can use your code to make an edge one.

No I got fed up with ST and moved everything to HomeAssistant but before I did that I sold my house along with my tank utility so I don’t even have a device to test with now. Sorry… anyone who wants to use my code to make this better, feel free to.