UPDATED: Automating Unifi WiFi SSID password changes and QR code generation

I achieved exactly this but with an alternative interration.
QR Codes Integration (qrcam) - Share your Projects! / Custom Integrations - Home Assistant Community (home-assistant.io)