TankUtility tank sensor plugin

Posted on
Wed Jun 13, 2018 3:24 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

TankUtility tank sensor plugin

First release of the new plugin.

https://github.com/FlyingDiver/Indigo-T ... /releases/

Enter username and password from the https://app.tankutility.com/ in the config dialog.

The plugin will create a new Indigo device for each of your tank sensors.

Not in the plugin store yet.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Jun 14, 2018 11:03 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: TankUtility tank sensor plugin

Release 0.0.3 posted.

Added daily/monthly usage data.

Internal update scheduling removed. Requires setting up Schedules in Indigo for Daily and Monthly processing. See wiki.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Oct 01, 2019 6:32 am
jenkins007 offline
Posts: 113
Joined: Nov 08, 2006
Location: Seguin, TX

Re: TankUtility tank sensor plugin

Love the Tank Utility plugin. I have a 500 gallon tank that was filled up several months ago. I noticed the first time it indicated a negative number as expected. Since then the monthly usage is confusing as it shows a huge number. Today after the monthly processing it showed I used 2592.96 and my percentage full is 70.56%. When it was full it was at 84%. So usage should be around 56 gallons.

My thoughts on fill up...if the result of the monthly or daily processing is a negative number, then reset usage to the percentage full, ie my tank is 500 gallons they fill it up to around 80%-90%, so last fill up the tank had 420 gallons.

Thanks and I really appreciate this app!
Matthew

Thanks,
Matthew

Posted on
Tue Oct 01, 2019 6:39 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: TankUtility tank sensor plugin

Yeah, I never really fine tuned the logic on the monthly usage. I'll take a look at that again.

Filed as https://github.com/FlyingDiver/Indigo-T ... y/issues/3

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Oct 13, 2019 7:37 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: TankUtility tank sensor plugin

Release 0.0.4 available in the plugin store. Should fix this issue.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Oct 27, 2019 5:43 am
jenkins007 offline
Posts: 113
Joined: Nov 08, 2006
Location: Seguin, TX

Re: TankUtility tank sensor plugin

Yea! thanks for doing this. It appears the daily usage is working (I will monitor it as I ran it 3 times and after the first run it shows 0). The monthly usage scheduled run is getting this error:
Schedule Propaine Monthly
TankUtility TankUtility 000900393xxxxxxxxxxxxxxx: Performing monthly calculations...
TankUtility Debug doMonthly: previous monthly reading 70.88 %
TankUtility Debug doMonthly: current reading 60.42 %
TankUtility Debug doMonthly: Monthly usage 2.60 gallons
TankUtility Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 269, in doMonthlyAction
NameError: global name 'keyValueList' is not defined

My tank capacity is 500 gallons tank (shown in the daily usage run), previous monthly readying shows 70.88% or 354.4 gallons, current ready shows 60.42% or 302.1 gallons. Monthly usage in this case is 52.3 gallons used.

Thanks again for doing this! The daily usage shows this (hope this helps):

TankUtility Debug getDevices: Tank 0009003xxxxxxxxxxxxxxxxxxxx data =
{u'device': {u'status': u'deployed', u'capacity': 500, u'orientation': u'horizontal', u'lastReading': {u'time_iso': u'2019-10-26T18:54:04.308Z', u'tank': 60.41768, u'temperature': 75.663, u'time': 1572116044308}, u'address': u'my street, city, TX 78155, USA', u'accountId': u'', u'fuelType': u'propane', u'name': u'Ranch House Propane'}}

TankUtility TankUtility 000900xxxxxxxxxxxxxxxx: Performing daily calculations...
TankUtility Debug doDaily: previous reading 60.42 %
TankUtility Debug doDaily: current reading 60.42 %
TankUtility Debug doDaily: Daily usage 0.00 gallons
TankUtility Debug doDaily: Current month usage 2.60 gallons

Thanks,
Matthew

Posted on
Sun Oct 27, 2019 5:51 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: TankUtility tank sensor plugin

D'oh. That was a bonehead error. Release 0.0.5 has been posted to fix that.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed May 11, 2022 6:46 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: TankUtility tank sensor plugin updated for Indigo 2022.1


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon May 16, 2022 6:53 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: TankUtility tank sensor plugin

Last version not working. Missing the option to pick the tank id, based on the dialog box below. Also, getting no details with any action. However, when you turn debug on, you can see the data.

Screen Shot 2022-05-16 at 8.48.08 PM.png
Screen Shot 2022-05-16 at 8.48.08 PM.png (239.28 KiB) Viewed 2097 times

Posted on
Mon May 16, 2022 9:24 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: TankUtility tank sensor plugin


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri May 20, 2022 2:53 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: TankUtility tank sensor plugin

I had to go back and look at the code. The plugin creates all devices for that account automatically. There is never a popup there to pick a device.

Delete the device you have and restart the plugin. If a device is not created, turn on debug logging and then add that to the GitHub issue.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Fri May 20, 2022 4:44 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: TankUtility tank sensor plugin

Stopped the plugin. Deleted the device and restarted the plugin.

All works fine now. Thank you!

JP

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 12 guests