How do I create a sensor that uses 2 other sensors values?

I have 2 sensor. I want “custom” sensor that adds these values together so that I get a statistical graph and seperately saved data. Is that possible? I’d prefer using YAML and not Python if possible.

Two options

  1. Via the UI https://www.home-assistant.io/integrations/group/#sensor-groups

  2. Using YAML https://www.home-assistant.io/integrations/template/#state-based-template-binary-sensors-buttons-numbers-selects-and-sensors

1 Like

Ah that’s perfect. That’s what I’m looking for.

Another question, if I want to subtract of multiply, how would I go about that?

The second option.