Git Product home page Git Product logo

Comments (5)

kcsoft avatar kcsoft commented on June 12, 2024

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:
image

No special url but for this user the kiosk mode is on.

from virtual-keys.

upamanyudas avatar upamanyudas commented on June 12, 2024

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.

kcsoft avatar kcsoft commented on June 12, 2024

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.

dakmalandro avatar dakmalandro commented on June 12, 2024

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.

kcsoft avatar kcsoft commented on June 12, 2024

image

from virtual-keys.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.