Ability to import JSON for activities

The backup feature is obviously great, but it’s a blunt instrument. I can backup and restore everything, but it’d be more useful to me if I could be more selective. As an example, if I play around with an integration it can break my automations. I think what happens here is a new entity ID gets assigned, and all of the activities directly reference this ID.

I’d love to be able to directly edit or download/edit/upload the JSON. This would allow me to grab the new entity id and tweak as required in a text editor, and quickly restore all my sequence configurations and button mappings.

Perhaps in an ideal world, the entity id’s would be detected as no longer valid and an option to assign a new entity to them, but for now, some kind of text editor would be great.

EDIT: If you have ever edited a Grafana dashboard you will get what I mean. You can either use the UI and generate a nice dashboard, but you can also view and edit the underlying JSON directly.

Hi,
2 tips:

  1. Integration from Albaintor Web-Toolkit GitHub - albaintor/UC-Remote-Two-Toolkit
  2. The backups can easily be expanded and you have all json files and if you know what you are doing you can do everything. I for instance changed all uses of the HTTP-Post to json parameter with a backup and a json-Editor.

If you had UID1 and want to change to UID2 it could easily be done with NotePad++ and “search&replace in files” in your complete backup.

Caution: Only do it on a copy of your backup in case you make an error.

Ralf

1 Like

Thanks for the tips, I had figured out #2, and its definitely possible but it’s clunky. It could be smoother, hence the feature request.

#1 is very interesting! Thank you!

EDIT: Wow, this tool seems like a great addition, it explicitly has “replace entity” as functionality. Exactly what I needed!