Adding service will full Ip and port of the raspberry where home assistant is running (full address with IP and port is running when I use it from my home computer )
I installed remote.it on my Raspberry Pi with Home Assistant. Then added an http service with a persistent public url and get a http error “ bad request”
I was able to set it up by doing the following (Assumes that your Raspberry Pi has Home Automation OS installed and has ethernet or wifi internet access)
I found that if you looked in the logs the following error:
ERROR (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from 127.0.0.1, but your HTTP integration is not set-up for reverse proxies
This indicates that your Home Assistant needs to enable reverse proxies. In this case we only need it for localhost (127.0.0.1). Below is step by step guide for set up based on Home Assistant OS 13.2 for RPi.
Install the Advanced SSH & Web Terminal Add-On (So that I could install Remote.It & modify the configuration.yaml)
Turn on watch dog & Show in sidebar
Click on configuration at the top - add a password. (Note the username too)
Save and Start (It may prompt you that Home Assistant will need to reboot)
Modify configuration.yaml per HTTP - Home Assistant to add (spacing and indentation is important) - it is located in ~/homeassistant/configuration.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1 # You may also provide the subnet mask
(You may need to restart home assistant)
3. Install Remote.It by Logging into Remote.It.
* Click on + (Add Device) > Select Raspberry Pi > Add Remote Access > Copy the generated code
4. Paste that code into the SSH terminal
5. In the Remote.It app you will get a new device which will have an SSH service (you can use this to get to the Pi from outside of the network if needed)
6. Add the http service with the service url “http://127.0.0.1:8123”
Once you are done, you can now make connections.
You can connect from any computer or phone using the remote.it desktop app, mobile app or app.remote.it. If you want to share access to other people you can use sharing (only sharing the HTTP service) Sharing Individual Devices & Services