how can i use a device configured in eshome that i have in home assistant, away from home. The example is simple, I have an ESP32 with infrared to control the TV and I would like to try this device at a family member’s house.
You have multiple options:
A: Add a button at a GPIO and setup the action in ESPHome (e.g. Binary Sensor Component — ESPHome)
B: Add the wifi access point configuration (WiFi Component — ESPHome) to be able to connect to the device via your mobile phone. In addition to that, the webserver feature could be handy. (Web Server Component — ESPHome)
The important thing is that your esp does not need HA to execute the actions. If your action can only be triggered or need dara from HA, it will not work.
Set reboot_timeout
in this section to zero, so the ESPHome code doesn’t keep rebooting the ESP because it’s not connected to HA.
would HA cloud be a 3rd option then?
Not really because the ESP will not be able to connect to your family members network and even then, ESPHome devices are working at the local network (big advantage) instead of cloud communication.
HA Cloud connection is only established by HA and does only support one instance per account.
While it might not be the safest option, you could port-forward the ESP to the WAN, and connect to the ESP in HA with the WAN IP and port of your family member.
I got it this way… through the AP I managed to connect the space to another house and then through the web_server I managed to visualize the data. What is the best way to access this data outside the home afterwards?
instead of connecting to another wifi network, can i connect directly to the smartphone?