Stacey on IoT | Internet of Things news and analysis

Internet of Things

  • Home
  • Analysis
  • Startups
  • How-To
  • News
  • Podcast
  • Events
  • About
  • Advertise
  • Speaking
    • Facebook
    • RSS
    • Twitter
    • YouTube

Can you run an OpenHAB or Home Assistant smart home in the cloud?

April 17, 2019 by Kevin C. Tofel 4 Comments

Typically, people who use either the OpenHAB or Home Assistant open source smart home platforms tend to run the software on their own computer or a low-cost Raspberry Pi. Can you actually run these on cloud platforms such as AWS, Google Cloud or Microsoft Azure?

That’s the question we received earlier this week from an IoT Podcast listener:

I am playing with home assistant and other automation systems and I do not want to buy multiple raspberry pi devices or host them on my laptop.

Is there an easy way to set up a site to site VPN to Azure or AWS and host my containers in the cloud. I could then host and compare easily until I get to a final solution to run locally.
This could also be a more perminent solution to automate homes for family members if their router supported the VPN connection.
The short answer is yes and no, you can either test or run OpenHAB full-time on a cloud server but all of the Home Assistant cloud setups I’ve found are simply cloud connectors to the software on a Pi. If I’m mistaken and a reader has implemented Home Assistant in the cloud, please let me know.
The Home Assistant folks blogged about why they’re not fans of the cloud when it comes to smart homes:

The cloud is a magical thing. Somewhere in the world there are computers collecting the data that your house generates, testing them against your automation rules and sending commands back when needed. The cloud will receive updates and improve itself over time so it is able to serve you better. Until it’s not. There are many reasons why your home might lose its connection to the cloud. The internet can stop working, an update might have gone wrong or the servers running the cloud crash.

When this happens, your house should be able to keep functioning. The cloud should be treated as an extension to your smart home instead of running it. That way you’ll avoid awkward situations like when Amazon AWS was down and the Amazon Echo stopped working.

If running OpenHAB in the cloud still sounds appealing, even if it’s just for testing purposes, there are plenty of resources and tutorials available. Just keep in mind that for security purposes, you’ll likely want to use a VPS, or Virtual Private Server, which is a bit different than a standard cloud instance.

Note that the devil’s in the details for OpenHAB because it’s far easier to buy a $35 Raspberry Pi and set up either of these systems.

That Raspberry Pi may come in handy for other uses in the future and it’s a one-time sunk cost. With cloud platforms, you pay for compute, disk and network resources over time, which can quickly add up if you decide the cloud is your long-term solution. Depending on your project requirements, one month of cloud computing could actually be more than the cost of a Pi.

In this particular case, simply testing one or both of these open source platforms may be more cost efficient – particularly since all of the major cloud providers offer a free tier of service for a limited time – but this does come with more complexity and points of potential failure.

Here are three tutorials to get you started with OpenHAB in the cloud; note that I haven’t run through any of these myself as I have multiple Raspberry Pi devices, which would be my preferred approach:

  • OpenHAB Cloud: This procedure is designed to with AWS but I suspect could easily be modified to work with Google Cloud Platform, Microsoft Azure or any other cloud provider that offers compute containers. Once you’ve run through the setup steps, you’ll have a secure web-frontend to access and manage your smart home and receive notifications on your mobile phone.
  • Setup your own OpenHAB-Cloud: An alternative installation that’s worth visiting because people have shared their setup and use experiences, as well as solutions to some of the challenges. Note that in this thread, it’s mentioned that for native iOS notifications you need to be part of the Apple Developer Program which is a $99 annual cost. A free alternative is to configure your hub in the cloud to send SMS notifications.
  • OpenHAB in a Docker container: The overview of these procedures specifically says they’re ideal to “easily test out different versions” of OpenHAB, so while some functionality may be limited or different based on the installed version, it should provide a good test environment to see if OpenHAB is right for you.

Again, for testing purposes, the cloud may be fine for open source smart home software. Long term, I’d say most, if not all, homeowners are better off with a simpler and less expensive over the long term approach of a Raspberry Pi.

Want the latest IoT news and analysis? Get my newsletter in your inbox every Friday.

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)

Related

Filed Under: Featured, How-To Tagged With: cloud, Home Assistant, hub, open source, openhab, raspberry pi, smart home

Sponsors



Become a sponsor

Subscribe to Blog via Email

Enter your email address to receive notifications of new posts by email.

Comments

  1. Rick Tinker says

    April 17, 2019 at 12:25 pm

    The base question aside, this is actually quite contrary to the usual movement. It is unusual (IMHO) for somebody to want more dependence on the cloud rather than the other way around. Most of what I have seen are people wanting local automation from SmartThings or controllers that do not depend on the cloud. If your Internet connection is spotty or unreliable, why would you want that for running things in your home? It seems this might have been a more academic question than one based in reality!

    Reply
    • Kevin C. Tofel says

      April 17, 2019 at 12:29 pm

      No argument there, Rick. But I think for testing purposes between the two, it’s a valid question, especially if you don’t already have a Pi on hand.

      Reply
  2. Paulus (Founder Home Assistant) says

    April 17, 2019 at 4:09 pm

    You can run Home Assistant in the cloud. Just spin up our official Docker container on a server. You will be limited to what you can integrate with, any integration that requires local APIs won’t work. If you want it to interact with local APIs, well, then you need to connect your server running Home Assistant and your local network to the same VPN.

    Since Home Assistant focuses on local control and privacy, if an integration has a local and a cloud API, we will implement the local one.

    My suggestion: keep it local ????

    Reply
  3. Josiah Eichelman says

    December 3, 2022 at 1:56 pm

    Nonetheless, it is possible to do and may be a good solution for some. I’m working on a service to make set up super simple.

    https://home-cloud.icu/

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IoT Podcast

Listen to the latest episode of the Internet of Things Podcast. Just press play!

Sponsors

Become a sponsor







Get Stacey’s free weekly Internet of Things newsletter

  • This field is for validation purposes and should be left unchanged.

Recent Comments

  • Michael Rada on Podcast: Hacking sensors and securing medical devices
  • Jon Smirl on TP-Link Tapo Smart Plug with Matter: Simple and mostly smart
  • Lawrence K on TP-Link Tapo Smart Plug with Matter: Simple and mostly smart
  • Hugo on TP-Link Tapo Smart Plug with Matter: Simple and mostly smart

Stacey on Twitter

Tweets by gigastacey
Copyright © 2023 SKT Labs, LLC · Privacy Policy