Lovelace card > variable > "on what device is loaded"

Hi!

I want to have a variable into a frontend card, which gives me the current url or the name of the current dashboard, in order to achieve something like this:

Lets say that the name of the Dasboard it is “computer” or I will extract “computer” with a regex from the current url where HA is loaded.

type: markdown
content: >
  {% set url = "dashboard name" %}
  {{ states("sensor."+url+"temperature") }}

Edit: Or even the device name, if I get this, would be great.

Any idea?

Thanks in advance!