With this app, you can restore older versions of your Flows. Open the App Settings page in a web browser, and download the last 5 revisions of your Flows.
This sound like a very useful app!
Thx! nice one.
Nice initiative, Sven, thanks.
Creating & keeping revisions is fully automated as per app description;
Two things are not clear to me yet:
Does a revision get saved after manually saving a flow? (I press “Save” as often as possible)
Are the revisions still kept after deleting a flow (by accident)?
Yes, when manually saving the Flow, 1 new revision is created. If there are more than 5 revisions, the oldest one gets deleted. I’m still working on a manual “number of max revisions” settings.
Yes, but only when you know their ID (from, for example, your browser history). I want to build a “Trash” feature where deleted Flows are kept until it will get deleted after f.e. 30 days
I was alr thinking of a script which saves all flow names + their ID somehow.
This can come in handy to both revision viewing and to keep deleted flow ID’s around.
Ah, of course, the flow ID is in the URL.
The app collects a list of Flows already (including their ID), so I only need to add a listener for flow.delete and advancedflow.delete and then set a deleted flag for that Flow. However, building a UI for it in the settings page will take some time.
On initialialization of the app, it obtains all Flows and copies them (/userdata folder on Homey). So it creates 1 revision for each Flow. After this, it listens for the update events (which trigger when you save the Flow) and creates a new revision on each update. If I also add a listener for the delete event, I can add it to a specific “deleted” array and show it in the settings page. I hope to add it tomorrow or tonight, but I’m not sure.
No hurries!

