Tacoma Public Utilities: smart water/power meter integration

I live in University Place and we’re just starting to get the new “advanced” power/water meters from TPU that can provide. I have a friend with a Rainforest EMU-2 device (via Puget Sound Energy) that feeds into his Home Assistant, so I recently reached out to TPU to ask if they had similar functionality. Unfortunately, their Sensus meters are not compatible and use a fully encrypted radio signal (FlexNet?) that I can’t access with any of the existing SDR packages, either.

The rest of this thread is two-fold:

  1. My inquiry caught the eye of their R&D project manager and we had a chat about them possibly providing a publicly-accessible API for users of software like Home Assistant. I’m certain this will move “at the speed of government” but there was talk of an eventual focus group and discussion about other features we “advanced users” might be interested in. I’ll post updates in this thread as I receive them, but please chime in if you are interested in any of this, as it might help speed things up if there are a bunch of us.

  2. In the mean time (since I couldn’t find anyone else working on this) I’ve started experimenting with a basic web scraper that should be able to log into the standard “my account” mytpu.com interface and download the data used to render their usage graphs. Thankfully, the data format looks pretty straightforward. Once I have a working prototype data grabber, I’ll share a link to a repo for others to play with and figure out how to get the data into HA.

I have TPU as well. Did you get something to work?

I got distracted with other projects and never got to the “load it into home assistant” phase. And apparently never actually committed the actual code to my repo so it’s just been sitting there for a year (so that’s now fixed). You can see what I have here:

I haven’t tested it in a few months.

I live in Tacoma and haven’t even been able to get my meter replaced yet even though I have called them numerous times. I am, however, very interested in this project and hope to be able to actively participate sometime soon.

Sadly, I let this linger as I got sucked into other projects. The API calls themselves seem to work but I haven’t started looking into how to integrate anything with Home Assistant.

We are just now diving into our Home Assistant adventure, and I thought I’d check if there has been any more info on this subject? We have the new SensusIQ Meter outside, and I’d like to include this in my initial integration phase.

Nothing new. Work and other hobbies got in the way. It’s been awhile since I’ve tested things but I had the “get the data” aspect of things working fine and then got distracted trying to figure out how to actually get data into home assistant (and with a nice UI to add your login info).

Oof. Yeah, I’m split between about 20 different projects in the start of this adventure. I did send an email to the “my consumption” part of TPU. I’m hoping they’ll have an update. It’s a big bummer that Seattle & PSU have OnPower already, but not TPU. I’m hopeful that’s the direction they’re heading with the meter updates.

Yeah. In my case, I also get electricity reports from my solar panel system, which is why I let this sit on the backburner.

Water would be nice, though (TPU uses the same API for water and power).

I’ve made GitHub - thetic/hass-mytpu: Home Assistant integration for Tacoma Public Utilities (TPU) energy and water usage. Anyone is welcome to use or contribute. Many thanks to @ex-nerd for laying the ground work.

2 Likes

Awesome work!

I was told by TPU that I was not allowed to use this API so I am curious to see if anything happens as a result of people using it :sweat_smile:

1 Like

When I first started working on the integration, I got tentative permission from a tech-facing project manager at TPU who seemed interested in the idea and even working more closely over time. I don’t know if she’s still there, but it might be worth reopening that conversation now that @thetic has something more than just my initial prototype.

For what it’s worth, I couldn’t find anything in the site terms of use that would block personal access to the same APIs that are used by a web browser when you manually look up the account info.

1 Like

That’s awesome! I actually started looking into picking this up again a couple months ago but got distracted (for the hundredth time) on other things because “setting up a new integration from scratch, including securely storing auth credentials” is so poorly documented.