Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.

HomeAssistant is basically an OS (?) where you can add all the IoT devices (e.g. smart switches, cameras, smart led lights, sensors, TVs, etc.) of your home, to be controlled locally from a friendly UI, with ability to create automations to be executed at specific times and/or events. I will just cover the basics.

Usually the automations that come to my mind are easy but time consuming:

  • Feeling lazy to get up of the bed to turn off the light? Easy.
  • Turn off all the lights if nobody it at home? No problem.
  • Activate alarm if movement is detected while you are sleeping? Of course!
  • Who the fuck enjoys watering the plants? Exactly!
  • Start the coffee machine so coffee is ready when you get up? Yes sir!


There are several ways to install HomeAssistant, from using a raspberry pi, a docker container, full OS installation of virtualization. Depending on your needs, your experience and available hardware you may chose from the different options. Ususally the full OS is recommended. Either on a low power consumption hardware, like the raspberry or a tiny pc.


Once you have installed HomeAssistant, you can start adding integrations. Integrations can listen for or trigger events, offer services, and maintain states. So, an integration can be described as the main of communication between the instructions you give to HomeAssistant and the IoT device.

As an example, lets say you have a smart switch and you want to turn on your bedroom ligh and it is connected to "light integration" for homeassistant:

You (tur on) -> HomeAssistant -> Light integration -> Light (state: OFF)

then the light will turn on and you will see a change of the state of the light from off to on

You <- HomeAssistant <- Light integration <- Light (state: ON)


Automations are that, a series of instructions that will run automatically when a trigger event occurs. The trigger can be:

  • An specific time: Everyday at 20:00 h start irrigation system.
  • Motion triggered: When movement is detected, turn on hallway light.
  • Sensor triggered: If temperature of kitchen rises to 30°C turn on fan extraction system.

There are many pre-made automations called blueprints, where you can start looking around. Also, automations are easy to set up in HomeAssistant by just selecting from drop down menus.

What smart devices should I use?

This is probably the most important part, since it will later define the integrations in your HomeAssistant.

Most popular devices are the SonOff switches, bases on ESP chips, that work with the eWeLink App, then is probably Tuya devices, based now on Beken chips that work with Tuya Smart App and Smar Life App. You'll be safe with this devices, later I'll write about how to re-flash some devices to avoid using the apps like eWeLink and Tuya.

Final thoughts

I just covered quickly HomeAssistant, since there is plenty of information about it and the community is very active.

  • You can integrate Google home and alexa and make use of voice commands.
  • There are alternatives like OpenHAB, Domoticz or Homebridge.
  • Remember, you must run HomeAssistant 24/7 to work correctly, so a low power consumption hardware is recommended (like the raspberry pi).
  • I just wanted to bring HomeAssistant to your radar, I hope this post helped.
If you found this content useful, please support me:
BTC: 1E2YjL6ysiPxRF4AEdXChpzpesRuyzgE1y