igor-panteleev / lovelace-qr-code-card Goto Github PK
View Code? Open in Web Editor NEWQR code generator card for Home Assistant interface
License: MIT License
QR code generator card for Home Assistant interface
License: MIT License
I have a sensor that pre-fills text of a URL, and I'm attempting to use the entity function to generate it.
type: custom:qr-code-card source: entity title: 'Read More:' entity: sensor.nytimes_headline_link
But on clicking Save:
It works with text and wifi correctly, but it refuses to render with a sensor. It is not limited to this sensor, either. Is there a theme restriction I'm not aware of? Or something else I can try to determine if the issue is on my end? I have rebooted HA, reloaded the Lovelace UI, cleared my cache, used multiple machines and even downgraded versions of QR-code-card in HACS with no success.
Hey @igor-panteleev, great card! Currently it doesn't seem to support setting templates for qr codes, e.g. assigning an input_text
state to the password field or setting it to source type text and rendering a template entity there. Both times the QR code text contains the literal template and not the actual value, e.g. instead of
S:WIFINAME;T:WPA;P:WIFIPASSWORD;;
it returns
{{ "S:WIFINAME;T:WPA;P:"~states('input_text.guest_wifi_password')~";;" }}
Could you entend the functionality by any chance?
Wondering if it would be possible to add an option to this card to generate a random password and update a unifi controller with that password. Someone else wrote a script to handle updating the Unifi side. Here is a link to that thread. https://community.home-assistant.io/t/updated-automating-unifi-wifi-ssid-password-changes-and-qr-code-generation/380616
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.