Group switch
water_zone1 switch (the restful switch)
waterzone1 switch (the template switch)
I then looked up the entity waterzone1 and applied the correct area to it and I change the icon. Once reloaded HAS, the group switch disappeared, restful switch (water_zone1) is on it’s own again and waterzone1 (template switch) was merged into the card of the area I assigned to it. Good!
But if I use entity_id: switch.water_zone1 to identify the restful switch in the template, it means it has an identity_id. So why this big detour?
And can you confirm that with:
- platform: template
switches:
waterzone1: <----
waterzone1 is here the defined entity_id? I do not have to add an extra line entity_id: <name>? I’ve seen this in some examples in this forum but when I use it, HAS seems to ignore it.
Is the code above clean or dirty?
Last question the restful switch is now a bit useless in the Lovelace. What is the common way to have it not show up?
It seems you use the autogenerated lovelace. You can’t hide the restful switch unfortunately, only if you take control of lovelace.
Your template definition seems ok.