Dashboard Cloning

I have looked at some past threads and this doesn't seem to be straight forward or functional.
I just want to clone my Home dashboard to a new dashboard so I can change the resolution for my smaller tablets.
I have exported the JSON and created a new dashboard/imported the JSON but I still have to select every single device and basically create a whole new dashboard manually.

I believe that is the current state of being able to cline a dashboard. Other apps can be cloned but dashboards was one of the exceptions.

I did the following, which worked for me, I believe.

I went into the existing Dashboard, and grabbed the JSON.

I created new Dashboard, named it Dashboard2 and selected all devices. Then didn't accept any offers to place tiles. Then pasted the saved JSON and it fully populated.

1 Like

While the above has long worked, a recent platform update introduced a "clone" feature for all (well, most) apps. This is accessible from the "App Status" page, which is the gear icon in the top right of the app or to the left of the app name in the "Apps" page/list.

I just tried this with a Hubitat Dashboard child app, and it worked as expected. I did not need to manually copy/paste JSON to get the layout, reauthorize any devices, etc. The only slightly weird thing is that the access token was the exact same for both dashboards, so you might want to re-set that (though unless it's compromised, it's really not a problem either way), and perhaps there's more I haven't considered, but...it looks like a true clone would, in fact work.

That being said, I'd feel a bit more comfortable with the traditional option above. :smiley: Aside from needing to authorize the same devices, this has always been a bit easier with Dashboard compared to most other apps (before the introduction of the platform feature) given that the JSON made it easy.

EDIT: I see above that it was mentioned that Dashboard wasn't included with this clone feature. This worked for me on 2.3.0...not sure if it's different elsewhere?

1 Like

I tried Clone and Export first and what I got was a zero byte JSON. Clone did nothing as far as I saw and Export gave me a file, but it was zero bytes.

That's what I have saw in the past.

Is it worth confirming firmware versions? I'll test again tonight.

Hmmm, this is exciting, I was able to export a dashboard..... And import it into another hub, asking for device replacements. Looking at this again, I am going to speculate it is only dashbaords created after a certain version.... Older (most) dashboards I have setup still produce a zero byte file.

But Clone doesn't appear to work... Either from the "child" app representing the individual dashboard, or from the parent Hubitat Dashboard app, which appears like it is meant to be the place where this is done.

And I'm running 2.3.0.124

Thanks guys. Everything is fine doing it the long way.
I'm on the Beta and obviously the Clone still doesn't work so I'll mention that.

1 Like

If it does come up in conversation.... A few tests that I have done using the Export option rather than clone seem to indicate exporting doesn't like:

  • Any URLs, whether they be imports in Custom CSS, Dashboard background images, etc
  • Text tiles
  • Mode tiles (I think...)
  • Attribute tile without an attribute selected (maybe)

If I had any of those in my dashboard the Export option from the Settings for the dashboard child app produced an empty json file. If I took out the offending feature I would see a json file with text inside.

Not an exhaustive for rigorous test by any means, I haven't even tested loading the json file in for many of the dashboards I exported.

This does kind of rule this feature out for me atm, as I use text and images in plenty of places in my dashboards.

Simon

1 Like

And if people (dev's) are in that space, the ability to call the export of an app could be useful, e.g. initiate from a rule, etc. Unless it's already possible?