The entity sun.sun does exist, and the attribute next_rising also exists, with a valid value. When I put the template into the the Template Editor, the correct value is returned. HOWEVER - the sensor “sensor.nextsunrise” does not get created. I cannot find it using STATES, nor can I find it when trying to use that value in a dashboard. I’ve been looking through the documentation, and I cannot seem to figure out where I’m screwing this up. Help?
When you add a new entity for the first time, you have to restart the system. After that, you can reload yaml and it will pick up changes for new template entities.
As a sidebar, you can jsut create this in the UI without needing to deal with yaml.
Lastly, you should add some safety into your template. There’s many potential error points. You can use this template and it will not error
I’ve tried that too. I did that again, just now, to see if maybe something was stuck. But no luck. Hence, why I’m pulling what little bit of hair I have left - everything seems to be right.
Anything that saves from having to deal with YAML would be helpful. I was not aware that I could create this in the UI without needing a template, though.