That is what you would expect for that tool as it has no idea that you are defining a template sensor. A template sensor will look in the value_template key and not include the key in the result.
Apologies for the error Finity spotted. I have updated my post.
Ok, Thank you very much for your help, I already have everything working thanks to your help, now I have only seen that the template sensor does not self-update but I will generate an automatism for it, calling service.