Replies: 2 comments 5 replies
|
You mean by using switch_as_x (https://www.home-assistant.io/integrations/switch_as_x/) ? |
5 replies
|
I would open an issue rather than a discussion. It is always good to discuss, to exchange opinions, to reconsider one's position… This is how things move in the right direction ultimately ! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
I'm opening a new discussion to avoid cluttering the UI thread. During my testing, while creating and deleting entities (pins), I noticed something that I thought was a one-off issue, but it happens every time.
If you create a switch and tell Home Assistant to 'show it as' something else (for example, a light), HA creates a virtual light entity and hides the original switch.
If you then delete that entity (the pin) and recreate it, the new switch remains hidden and the light entity is not recreated. Technically, this is HA's expected behavior, as it preserves customizations linked to the Unique ID. However, in this case, it keeps the 'hidden' status but 'forgets' the light conversion. Consequently, the user has to manually unhide the switch to see it again.
Is this the behavior we want for this integration? If not, I can implement a check during entity creation to see if it previously existed and was hidden, and then unhide it.
All reactions