'Sum' state-combiner breaks

I have a simple “Combine the state of several sensors” helper that just sums two custom sensors (uploads and downloads) to create a total “internet usage”.

I’m trying to use the UI as much as possible instead of the YAML files, so this is what it looks like:

It works fine for a about half a day, but then stops outputting with what looks like a units error:

If I delete and re-create the helper, it will repeat the same cycle.

Before I abandon the UI and go back to YAML, am I doing something wrong here? The two source sensors are both Utility Meter helpers with “GB” units of measurement.

Have you checked your logs for errors?

I haven’t seen anything in the logs at the time that reporting stops; but once it no longer works, there are a couple errors logged on startup:

Logger: homeassistant.components.min_max.sensor
Source: components/min_max/sensor.py:332
Integration: Combine the state of several sensors (documentation, issues)
First occurred: 9:39:07 AM (2 occurrences)
Last logged: 9:39:07 AM

Units of measurement do not match for entity sensor.internet_usage_monthly

So it’s consistent with this being a units issue, but I’m not sure how that can become a problem after the template has already been working; it implies that one of the source sensors unit of measurement is changing, but that shouldn’t be possible.

Which integration is providing your source sensors?

Raw data is from an OpenWRT router connected via the uPnP/IGD integration. That provided “data sent” and “data received” sensors (in B).

I then use each of those sensors to create Utility Meters for monthly total uploads/downloads (in GB).

Now I just want to Sum the two Utility Meters for a single total.