# Renaming and updating the selector

**URL:** <https://community.gladysassistant.com/t/renommage-et-mise-a-jour-du-selector/8419>\
**Category:** Développement\
**Created:** [October 23, 2023, 4:38pm UTC](https://community.gladysassistant.com/t/renommage-et-mise-a-jour-du-selector/8419 "2023-10-23T16:38:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romuald\_Pochet](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/romuald_pochet/32/6441_2.png) [@Romuald\_Pochet](https://community.gladysassistant.com/u/Romuald_Pochet)\
**Post date:** [October 23, 2023, 4:38pm UTC](https://community.gladysassistant.com/t/renommage-et-mise-a-jour-du-selector/8419/1 "2023-10-23T16:38:11Z")

</div>

Hello,

Small «&nbsp;issue&nbsp;» when renaming scenes.  
E.g.

1. We create a scene Titi (we create a scene with selector titi)
2. We change the title of the scene to Titi2 (the scene still has the selector titi)
3. We want to create a scene Titi again → Error «&nbsp;A scene with the same name already exists.&nbsp;»

Would it be possible to update the selector or other fields (but that could have other impacts)?

Thanks,

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 23, 2023, 4:43pm UTC](https://community.gladysassistant.com/t/renommage-et-mise-a-jour-du-selector/8419/2 "2023-10-23T16:43:28Z")

</div>

Hi @Romuald_Pochet !

No — the idea of a selector is that it should be immutable, because it’s used in scenes, and possibly in scripts the user coded themselves.

However, I think the selector should contain a random part, so that for example:

«&nbsp;Titi&nbsp;» =\> selector «&nbsp;titi&nbsp;»

Becomes:

«&nbsp;Titi&nbsp;» =\> "selector «&nbsp;titi-123"&nbsp;»

Which would solve collision issues.

I had wanted to make this change at one point on devices because the issue also exists in the MQTT integration, but it was a massive amount of work and I had little feedback on this point so I set it aside.

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [October 23, 2023, 5:00pm UTC](https://community.gladysassistant.com/t/renommage-et-mise-a-jour-du-selector/8419/3 "2023-10-23T17:00:30Z")

</div>

It’s true that I’ve already encountered this problem and I haven’t given any feedback about it!

---

<div class="post-metadata">

**Author:** ![Romuald\_Pochet](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/romuald_pochet/32/6441_2.png) [@Romuald\_Pochet](https://community.gladysassistant.com/u/Romuald_Pochet)\
**Post date:** [October 23, 2023, 5:07pm UTC](https://community.gladysassistant.com/t/renommage-et-mise-a-jour-du-selector/8419/4 "2023-10-23T17:07:33Z")

</div>

I had a feeling it was impossible. Fortunately I master SQL.
