Show Dashboard card only on selected devices

Hello,

I would like to use a conditional card to show certain elements only on particular dashboards and not on others. My dashboards are Android tablets.

I once saw a solution here based on Card_Mod or the Fully Kiosk integration, but I can’t find it anymore.

Does anyone know how I could do this?

Regards,
Eckart

Your card would have to be conditional on the device which was displaying it - not sure if that’s possible.

The only way to do it that I’ve found is to have almost identical dashboards, with one or the other hidden.

In Fully Kiosk you can specify the start URL so that the display opens on the right dashboard.

I have found a solution: lovelace-state-switch in connenction with Broser-Mod by thomasloven.
https://github.com/thomasloven/lovelace-state-switch. lovelace-state-switch can be used to hide maps on certaintablets using the deviceID.

But there is a bug that needs a workaround.

It does not work as soon as I have renamed the deviceID in the browser mod settings.

An example: deviceID, issued with commandl “localStorage[“lovelace-player-device-id”] into your browsers console”
In Browser-Mod deviceID renamed to “k68w14-chrome”

The results are:

type: custom:state-switch
entity: deviceID
default: default
states:
  1b22b00b-fe70767a:
    type: markdown
    content: |
      Desktop x
  default:
    type: markdown
    content: |
      Default  

ejects: Desktop x

type: custom:state-switch
entity: deviceID
default: default
states:
  k68w14-chrome:
    type: markdown
    content: |
      Desktop renamed
  default:
    type: markdown
    content: |
      Default

ejects: Default

So you have to use the original deviceID.

Regards, Eckart