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

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 :slight_smile:
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:


Is that possible and if so how?

Hi @mutmut :slight_smile:

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 :smiley:

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

1 Like