Need I say more? Why do I need to resort to using attributes of a template sensor configured in yaml?