It is not very convenient to build a smart home and not have access to it from anywhere in the world. There are several ways of remote control: telegram, HA cloud, direct access via a router, VPN to your home network. We will talk now about the last method. This is a translation of my article in Zen. Also, do not forget to read us in other services: Instagram, telegram (RU, EN, DE). Medium, LiveJournal, YouTube. More information about telegram in home assistant was described here:
Notifications in telegram from a smart home (RU);
Telegram: talking to a smart home (RU);
Quick responses of the bot in Telegram (RU);
Control the light in a smart home via Telegram (RU); Why a VPN? Firstly, it is quite safe. Secondly, we get access to the smart home, remote desktop, cameras, ftp... Third, it will provide us with security in public networks. For implementation, we need any mikrotik and a white ip address (you decide the issue with your provider). My current provider allows you to enable th