How can I obtain the token through the API when establishing the web socket connection for the firs time? How can we establish a web socket using the username and password, then secondly obtaining the token?
For those who are having trouble finding it, you get to your Profile page on Home Assistant by clicking on your username in the bottom left panel of the HA page (under Notifications)
Then click on Create Token all the way at the bottom: