I am fetching power values from the rest api of solar battery. They come as hex value e.g. 0x4413934F
The conversion via templates failes, because you can only convert hex to int there and this prduces the wrong value.
Via phyton it would be something like this :
import struct; print(struct.unpack("!f", bytes.fromhex(input())))
Can I somhow use a pyhton script inside a template to convert the value?