I appreciate I am somewhat late to this discussion, however, as a Certified AWS DevOps Professional and general AWS proponent, I thought I might offer my perspective.
Do not use AWS for Home Assistant.
While much of the modern world functions perfectly well in “the cloud,” there remains a compelling case for running certain systems “on-premises” or “in-house.” For domestic purposes, this translates literally to “in-house.” I strongly believe that Home Assistant is one such system that justifies an on-premises setup.
Consider a scenario where you want to turn on a light. Can you guarantee that your internet connection, AWS services, and your EC2 instance within AWS are all operational? The answer is no. You simply want the light to work without delays or dependencies.
On a related note, I have personal experience with this issue. I used to use Tuya lights but switched to Shelly after Tuya blocked my Home Assistant access due to a lapse in renewing my developer API key. My spouse was not pleased when all the lights stopped working.
The only way to ensure reliability is by minimising these potential points of failure. This can be achieved by using locally accessible hardware that operates independently of an internet connection.
I understand there are concerns about availability, but these risks can be effectively mitigated:
Power Outages:
- Use an Uninterruptible Power Supply (UPS)
- Consider a house battery
- Install solar panels
Random Loss of Network Connection:
- Invest in a reliable server to run Home Assistant
Server Failure:
- Utilise the backup integration to generate daily backups and store them on a separate device, such as a NAS
- It is feasible to automatically build a new instance on a standby server if the primary server fails. This would require running a local proxy, DNS, and other necessary infrastructure
- Prevent failures by using a robust server for Home Assistant. I acquired mine for ÂŁ80 on eBay. It is a 1U server, but it performs the task effectively.
Additional Benefits of Hosting Home Assistant Locally:
Privacy and Security:
- Local hosting ensures that your data remains within your control and is not transmitted over the internet, reducing the risk of data breaches and unauthorised access.
- Sensitive information, such as your home automation routines and personal preferences, stays private.
Latency and Performance:
- Local hosting eliminates the latency associated with cloud services, resulting in faster response times for your home automation commands.
- Performance is generally more consistent and reliable as it is not dependent on the internet connection or remote servers.
Cost Efficiency:
- Over time, local hosting can be more cost-effective than paying for cloud services, especially if you have a stable and capable local server.
- There are no recurring fees for cloud services or bandwidth usage.
Customization and Flexibility:
- You have full control over the hardware and software environment, allowing for greater customisation and flexibility.
- You can run additional services and integrations that might not be supported or allowed on cloud platforms.
Offline Functionality:
- Home Assistant continues to function during internet outages, ensuring that your home automation system remains operational at all times.
Learning and Experimentation:
- Hosting Home Assistant locally can be a valuable learning experience, offering hands-on knowledge about networking, server maintenance, and home automation technologies.
- It provides an excellent platform for experimentation and trying out new integrations and customisations without restrictions.
Independence from Cloud Service Providers:
- You are not reliant on the uptime and policies of cloud service providers, avoiding issues such as service changes, downtimes, or unexpected deprecations.
- There is no risk of losing access to services or data if a provider goes out of business or changes their terms of service.
Integration with Other Local Services:
- Home Assistant can integrate more seamlessly with other local services and devices, such as local storage, media servers, and IoT devices that operate on the local network.
- Local integrations can offer more robust and reliable performance compared to cloud-based counterparts.
In conclusion, while cloud solutions have their place, Home Assistant benefits greatly from a local setup due to the need for reliability, control, and enhanced functionality. By addressing power, network, and hardware contingencies, and considering the additional benefits of privacy, performance, cost efficiency, customisation, offline functionality, learning opportunities, independence, and better local integration, you can maintain a robust and resilient home automation system tailored to your needs and preferences.