Switch Templates

I was able to edit my switch templates for a dashboard. Is there a way to apply this to all my dashboards, not just the switches within a single dashboard?

Sort of. Click the cog/setting icon in the upper right of the dashboard, then go to the "Advanced" link. Look for a customColors section, which may appear something like this:

  "customColors": [
    {
      "template": "switches",
      "bgColor": "rgb(0,115,0)",
      "iconColor": "rgb(255,255,255)",
      "state": "on"
    },
    {
      "template": "switches",
      "bgColor": "rgb(255,55,0)",
      "iconColor": "",
      "customIcon": "",
      "state": "off"
    }
  ],

Copy and paste that into another Dashboard in the same place (cogs > Advanced), either replacing the section that is already there (if you want to add the exact same custom colors to the new dashboard), creating it if it doesn't already exist (if you're not up on JSON syntax, creating a fake custom color and then overwriting it with this may help), or picking individual items from within this JSON if you don't care to copy all colors and just (for example) switches.

So, yes, it's possible, but not quite automatic. You'll have to manually copy and paste part of your settings to get it done.

1 Like

Thx