Change dashboard based on whether user is remote or local

I’d like to give a user more access to my home assistant when they are on the network locally versus remotely. An example being I want them to be able to unlock the front building lock (I live on the 4th floor, so they can’t get on my wifi network in order to unlock locally), but they don’t need access to my home lights when they are outside of the house, and I want to forego the temptation to mess with me by randomly turning on and off my smart devices when they aren’t home :slight_smile:

Basically:

IF user is accessing HA from homeassistant.local:8123
Then show smart device cards

IF user is accessing HA from my remote URL
Then hide smart device cards

I’d also accept an automation that changes the default dashboard based on local vs remote access. (i.e. I create two dashboards, and the default changes based on how HA is accessed)

Note: I’m using browser_mod to severely limit what a user can see. I was trying to see If I could change dashboards based on a user’s local vs remote url access on browser_mod, because the UI does seem to detect which URL you are accessing it from, but I couldn’t figure it out.

You could setup a sensor to see if they are on your Wi-Fi.

Then, use a conditional card that only shows smart device cards when they are.

2 Likes

That’s it! Works perfectly. Amazing, thank you. Haven’t used conditional cards until now.

2 Likes

Can I ask how exactly you achieved that? I’m trying to do the same (only local user seeing a button to toggle surveillance cameras) but don’t really know where to get started.