Thanks for your answer, but frankly, thatās crazy!
The one line array manipulation is so elegant, I canāt believe it only supports one out of four maths operators (and a second with the inelegant workaround of multiplying by the inverse, as you pointed out)
The four math operators are pretty basic stuff. They really should be supported!
It looks as though multiply isnāt documented ā itās not on the Jinja page, I canāt find it in their repository, and it isnāt a Python method on intā¦
Edit: Found it in HA. Currently line 1520 of this file:
I was unfamiliar with the batch filter and the online examples focused on its ability to reformat HTML tables so I failed to grasp its utility for Home Assistant applications. However, your example makes me understand its strength is its ability to generate a ālist of listsā. That allows map to be applied to each item in the original list.