2022.12.0 Combine the state of several sensors

I cannot find this helper in helpers? Any ideas?

under MIN/MAX

That’s intuitive (not :wink: )

2 Likes

I like the idea of having a helper for summing sensors instead of using the template platform.
But I have two issues with this helper:

  1. In case one input sensor goes unavailable, the helper sensor goes unavailable as well. I’d rather be able to set a default for a unavailable input sensor, as I can do it via |float(0) with a template sensor.

  2. Energy sensors I have combined with this helper can’t be used in the Energy Dashboard, because it’s missing the device_class: energy

Am I missing something or is this helper not ready yet for these use cases?

BR, Xygen

EDIT: Regarding 2. I just learned that one can add these attributes via the “States” Dev tool. :smile: Both last_reset and device_class can be set this way!

1 Like

Setting those via dev tools > states is not persistent. Dev tools is for testing, it won’t make permanent changes.

You could do it via a customize entry

1 Like

Suggestions are welcome for a concise self-explanatory term for a Helper that can perform any of the following functions:

min, max, mean, median or sum

Mathematical

Good choice; summarizes what the Helper can do and can accomodate the inclusion of other mathematical operations.

Create a Feature Request for renaming it to Mathematical (or just Math) and perhaps the development team will consider it.

Have done so :slight_smile:

1 Like

I have solved this for my solar power value by creating a new helper first using the Combine the state of several sensors with the function Most recently updated

Is there a way to do this, but have a timeout (ie, only show/record data if any of the sensors reported in the last 5 minutes?)