I’ve been wondering for a while why we don’t have simple maths sensors, stuff like sum and substract?
I know template sensors are possible, but I think we can all agree that a proper sensor is better than having to do something like this:
I was thinking it could be a list op operations, executed from start to bottom
Yaml might indeed look complicated, but I think it’s way easier (and less error prone) than templates in the end.
Also, if a nice UI can be build around that integration setup…
Until math sensors arrive (if ever), you can do a few things fairly efficiently with templates. For example this gets the sum of all sensors whose device_class is ‘temperature’ (would be a better example with energy sensors but I have none):