Guest Captive Portal for Unifi + HASS Users

Currently I have a guest wifi with no password, however this gives me no control of who are using my WiFi, and also I cannot automate the home for the guests.

I would like to have a Captive Portal, using Unifi system, where the user have to create an account, which would give them access to the WiFi and to a new user on HASS.

There are multiple WiFi antennas on my home, each room have its own, so I would like to use it as context on HASS, so user can control the room they are in, and after they leave it the room go to a default state.

Any ideas?