Comments (5)
Appreciate your comment.
In fact you can easily do that, I described that in the README file
To make this work, I need to make some additional steps (after installing Virtual Keys):
- create a new user in Home Assistant eg. "guest"
- create a new group eg. "guests" and add the user "guest" to it, and also the devices you want to give access to, eg "cover.front_gate", instructions here
- create a new View (tab) in the default Lovelace UI and add the entities you want to give access to, eg. "cover.front_gate", set the visibility to only show to user "guest".
install kiosk-mode and configure it set "kiosk" mode for user "guest"
This is how it looks in my case where I have setup a View (tab) with only those 2 entities for my guest user:
No special url but for this user the kiosk mode is on.
from virtual-keys.
Thanks for the reply.
I think the solution you mentioned only works if I don't have the automatic Lovelace dashboard and can control the visibility of individual View (tabs). The thing is I want to keep the default auto updating lovelace, but in that scenario - after logging in, even from the guest account, HA sends the user to the default lovelace.
I though if I could direct them to /lovelace-guest/0
or any other page, instead of the default /lovelace/0
- that'd let me have more control.
Hence the suggestion :)
from virtual-keys.
If the guest has access to /lovelace/0
, even if you redirect them to /lovelace-guest/0
, they can still manually navigate to /lovelace/0
.
If you need some special redirect, you can fork this repo and change it. Here is where the redirect url is determined.
https://github.com/kcsoft/virtual-keys/blob/master/dist/login.html#L5
from virtual-keys.
hello there!!! very nice work!!! i have followed all the steps in the read.me file, but i can't copy the url after create a log in
from virtual-keys.
from virtual-keys.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtual-keys.