![]()
Wow, your config is in bad shape.
Mostly not supplying default values for your templates and ignoring this warning:
https://www.home-assistant.io/docs/configuration/templating/#states
But also depreciated options in your config, missing entities and duplicated devices.
Start by fixing all that up.
