Should I move sensors to template: or doesn’t it matter? It looks like I can only set unique_ids in template. I read that template is the new way to do it, but I am not sure how to move thing like that:
The new integration can be reloaded without restarting, it supports state_class (for LTS or the energy dashboard), and a unique_id (so you can assign the sensor to an area).
You can still use the sensor platform with LTS or the energy dashboard but but you have to use customize.
I’ve seen you post this in another thread but, unless I am misunderstanding what you mean, that is not a benefit of the “new” method since you can also reload the “legacy” method without restarting too.
I’m pretty sure the “template entities” button under the “YAML Config reloading” section will reload both the “new” & “legacy” templates.
I use it all the time. I only have a few “new” style templates but both styles get reloaded with that service call.