#Is the Home Assistant Cloud subscription only for one instance of Home Assistant?
1 messages · Page 1 of 1 (latest)
Another question, is the remote version of home assistant, in the browser lets say, identical to the one that'd be running on location? Like the browser version is a 1:1 copy, just using the data that's send from the local instance over the internet?
Correct.
The cloud version is your local one. The cloud functionality just gives remote access to your instance. It isn't something different.
Makes sense, thanks.
In what form though, is it port forwarding? Or is it sending https requests over the internet?
The remote UI encrypts all communication between your browser and your local instance. Encryption is provided by a Let's Encrypt certificate. Under the hood, your local Home Assistant instance is connected to one of our custom built UI proxy servers. Our UI proxy servers operate at the TCP level and will forward all encrypted data to the local instance.
Routing is made possible by the Server Name Indication (SNI) extension on the TLS handshake. It contains the information for which hostname an incoming request is destined, and we forward this information to the matching local instance. To be able to route multiple simultaneous requests, all data will be routed via a TCP multiplexer. The local Home Assistant instance will receive the TCP packets, demultiplex them, decrypt them with the SSL certificate and forward them to the HTTP component.
The source code is available on GitHub:
SniTun - End-to-End encryption with SNI proxy on top of a TCP multiplexer hass-nabucasa - Cloud integration in Home Assistant