Hi all, I’ve recently installed and set up HA on a Raspberry Pi to monitor solar, battery, thermostat and some smart power strips. I’m gradually getting a handle on how the system works.
I have a project in mind which would require monitoring my solar stats to trigger some actions on a web server. I wondered what setup people recommend to access HA data from outside of my LAN? (Actually, as I’m writing this, I’m guessing I should be able to access an API from my Sigen or Envoy accounts, which are already in the cloud, and which I use in HA for monitoring solar. But I am interested in other HA stats too, potentially.)
A google search shows some options for using HA remotely. I would prefer not to have another subscription account (Nabu Casa), so interested to hear what other means people are using to access HA, and particularly its API, remotely.
Thanks for this… I was wondering about how to access my Raspberry pi, which is just running in my home LAN, from a web server which is outside the LAN. I guess I have to assign the Pi a fixed IP and expose it to the web via my router? I will look into it.
If you want to avoid exposing a port for HA, you could use Webhooks as Tom mention, with that you can send from HA, to the other websever, which then need a Service or App to handle Webhooks. So big question is Are you admin on that webserver, and allowed to fix the required installation there, or you just want to “feed” an API , etc ?
My router can act as a VPN server. So I have configured it to act as a VPN server. My router can also register with a DDNS service - this essentially give a hostname that resolves to the internet facing IP address of the router. On my phone I configure the VPN client using the hostname from the DDNS provider and then enter the super long shared encryption key. Then when I activate the VPN on the phone, it works like the phone is on my local WiFi.