# How to retrieve a history to re-inject it into another module of the same type?

**URL:** <https://community.gladysassistant.com/t/comment-recuperer-un-historique-pour-le-reinjecter-sur-un-autre-module-du-meme-type/9234>\
**Category:** Configuration\
**Created:** [December 9, 2024, 2:08pm UTC](https://community.gladysassistant.com/t/comment-recuperer-un-historique-pour-le-reinjecter-sur-un-autre-module-du-meme-type/9234 "2024-12-09T14:08:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [December 9, 2024, 2:08pm UTC](https://community.gladysassistant.com/t/comment-recuperer-un-historique-pour-le-reinjecter-sur-un-autre-module-du-meme-type/9234/1 "2024-12-09T14:08:03Z")

</div>

Hello,  
for readability reasons, I changed the name of a plug in z2m and the new name appeared as a new device in gladys, so far nothing new 🙂  
However I haven’t deleted the old device yet so I still have its history, history that I would like to re-inject into the new one:

 ![gladys_Capture d’écran 2024-12-03 à 13.22.34](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/1/0183ac5bc7fd3f0f9fa15e66ddc0e8ba1dd4e0f6.png)  
Is that possible and if so how?

---

<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:** [December 10, 2024, 8:29am UTC](https://community.gladysassistant.com/t/comment-recuperer-un-historique-pour-le-reinjecter-sur-un-autre-module-du-meme-type/9234/2 "2024-12-10T08:29:06Z")

</div>

Hi @mutmut 🙂

That’s not possible in the Gladys interface.

If you’re a bit of a developer, you can modify that in the DuckDB database.

You need to stop Gladys, open DuckDB and modify the `device_feature_id` of the values coming from your old sensor to the id of your new sensor.

But that might be a bit complicated 😃

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [December 10, 2024, 10:19am UTC](https://community.gladysassistant.com/t/comment-recuperer-un-historique-pour-le-reinjecter-sur-un-autre-module-du-meme-type/9234/3 "2024-12-10T10:19:29Z")

</div>

thanks @pierre-gilles, I suspected it wasn’t that simple.  
Besides
