Hi, I’m new to Home Assistant, I figure it would be a great tool to use in order to control my home. I have a Raspberry Pi 4 running Home Assistant Core. Beside the Home Assistant server, the Raspberry Pi is also running a WireGuard VPN server using PiVPN. I’m planning to make a Python script that manages VPN clients profile based on the existing Home Assistant users i.e. create a VPN client profile when a new Home Assistant user is created and delete the VPN client profile when its Home Assistant user is deleted. This should be fairly easy to do. What I don’t know how to do is to create a download button on my Home Assistant dashboard. This button would be used by users to download their VPN configuration file. I assume a button can retrieve the username of the user who clicked on it. Based on that username, the right configuration file would be sent to the user for download. I could put the configuration file of all users in the www folder and create a button on the dashboard that links to the current user configuration file in that folder. I won’t do that for security reasons… Is there a way this could be achieved?
Thanks