ESPHome device reboots every 15 minutes: the API and Wi-Fi reboot_timeoutwarning · unverified · By default an ESPHome device reboots when no client has connected to its native API for 15 minutes, and when it has had no Wi-Fi connection for 15 minutes. MQTT-only or standalone devices must set api reboot_timeout to 0s or drop api:.
Talk to Home Assistant from scripts: long-lived tokens, REST and WebSocket API, and !secretcode · unverified · Create a long-lived access token in your user profile, send it as 'Authorization: Bearer', and use /api/states and /api/services, or the WebSocket API for live events. Keep passwords in secrets.yaml, but know that secrets used in automations are visible to admins.