Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement QR Code generated from secrets.yaml #2283

Open
open-forest opened this issue Sep 18, 2024 · 3 comments
Open

Enhancement QR Code generated from secrets.yaml #2283

open-forest opened this issue Sep 18, 2024 · 3 comments
Labels
Enhancement For suggestions that add new features or improve existing functionalities. Page: qrcode Validation pending A solution was proposed (maybe in `dev`). Waiting for validation/tests/feedback.
Milestone

Comments

@open-forest
Copy link

Enhancement Summary

I would like to have a central place to store my Guest Wifi password

Detailed Description

Could we reference secrets.yaml in the QR code field (e.g. !wifi_password instead of actual password)?

The idea being that if we can store the Wifi password in secrets.yaml, we do not have to manually update each and every NSPanel blueprint when we update/change the Wifi password. I have one panel per room, lots of rooms, so that is a lot of manual work. Use case could be an AirBNB where it might be useful to change the WiFi password between guests.

Additional Context

https://community.home-assistant.io/t/how-to-use-secrets-yaml-in-addons/358504

@open-forest open-forest added the Enhancement For suggestions that add new features or improve existing functionalities. label Sep 18, 2024
@tbretz65
Copy link

If the entry is contained in the secrets, then you always have to rebuild nspanel.
In the HA there is an action to execute.
With this it is possible to recreate the qr code

@edwardtfn
Copy link
Collaborator

Implement this from a secret is feasible, but it would be as a overlap to whatever is set on the blueprint, however, as @tbretz65 mentioned, you will have to flash your panel every time the QR code changes.
One option is to use a sensor (or an input text helper) to dynamically populate the QR code, which looks more logical for your use case.
There was #504 about this when I've started playing with this project. That was never merged, but would be an easy implementation.
In this case, you can use a template sensor getting the value from your secret. 😉
Please let me know your thoughts.

@edwardtfn edwardtfn added this to the v4.4.0 milestone Sep 19, 2024
@edwardtfn edwardtfn added Work in progress Indicates issues that are actively being worked on by the development team. Page: qrcode labels Sep 19, 2024
@open-forest
Copy link
Author

open-forest commented Sep 19, 2024 via email

edwardtfn added a commit that referenced this issue Sep 19, 2024
Solves #2282
Solves #2283
Solves #452
@edwardtfn edwardtfn added Validation pending A solution was proposed (maybe in `dev`). Waiting for validation/tests/feedback. and removed Work in progress Indicates issues that are actively being worked on by the development team. labels Oct 17, 2024
edwardtfn added a commit that referenced this issue Oct 18, 2024
Solves #452
Solves #2283

* Pending testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For suggestions that add new features or improve existing functionalities. Page: qrcode Validation pending A solution was proposed (maybe in `dev`). Waiting for validation/tests/feedback.
Projects
None yet
Development

No branches or pull requests

3 participants