Hi All,
We have multiple devices such as tablet, phone which access the home assistant web UI. Is there is any way to display the device name on the lovelace which is accessing and displaying the HA.
For example: The lovelace in tablet shall show tablet device name while in phone, it shall show the phone name. Thank you
ronosu
(Ron)
July 24, 2024, 10:17pm
2
+1 for this functionality. I am trying to show/hide specific cards based on which one of my Nest Hubs is accessing a single dashboard.
Have you tried BrowserMod? The devices are uniquely identifiable on a browser level. So you could even set different things for different browsers on the device.
# The Browser Mod Configuration Panel
## This browser
The most important concept for Browser Mod is the _Browser_. A _Browser_ is identified by a unique `BrowserID` stored in the browsers [LocalStorage](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API).
Browser Mod will initially assigning a random `BrowserID` to each _Browser_ that connects, but you can change this if you want.
LocalStorage works basically like cookies in that the information is stored locally on your device. Unlike a cookie, though, the information is bound to a URL. Therefore you may get different `BrowserID`s in the same browser if you e.g. access Home Assistant through different URLs inside and outside of your LAN, or through Home Assistant Cloud.
### Register
Registering a _Browser_ as a device will create a Home Assistant Device associated with that browser. The device has the following entities:
- A `media_player` entitiy which will play sound and video through the browser.
- A `light` entity will turn the screen on or off and controll the brightness if you are using [Fully Kiosk Browser](https://www.fully-kiosk.com/) (FKB). If you are not using FKB the function will be simulated by covering the screen with a black (or semitransparent) box.
- A motion `binary_sensor` which reacts to mouse and/or keyboard activity in the Browser. In FKB this can also react to motion in front of the devices camera.
- A number of `sensor` and `binary_sensor` entities providing different bits of information about the Browser which you may or may not find useful.
Registering a browser also enables it to act as a target for Browser Mod _services_.
This file has been truncated. show original
Might be worth a try.