User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
homeautomation:home_assistant [2024/10/30 13:10] willyhomeautomation:home_assistant [2025/06/04 08:43] (current) – [Install Home Assistant] willy
Line 1: Line 1:
-====== Home Assistant ======+====== C) Home Assistant ======
  
 [[https://www.home-assistant.io/|Home Assistant]] stand for 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.  [[https://www.home-assistant.io/|Home Assistant]] stand for 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. 
Line 5: Line 5:
 ==== Which Home Assistant edition? ==== ==== Which Home Assistant edition? ====
  
-Home Assistant comes in different flavours and so called  __editions__.+Home Assistant comes in different flavours and so called  __editions__ and it can be installed in three different ways: 
 +  * Dedicated hardwareBest solution! 
 +  * Virtual Machine, like using dedicated hardware but on shared hardware. 
 +  * Docker container, but it does not support direct Add-On integration (there are workarounds)
  
-There are three ways: +The Virtual Machine approach can be useful if you don't have or don't want to use dedicated hardware, but it comes with the downside of requiring USB pass-trough for hardware devices like ZigBee/Z-Wave, modbus or similar devices.
-  * Dedicated hardware +
-  * Virtual Machine +
-  * Docker container +
- +
-The docker container approach has some limitations, like being unable to manage add-ons, which is quite limiting. The Virtual Machine approach can be useful if you don't have or don't want to use dedicated hardware, but it comes with the downside or requiring USB pass-trough for hardware devices like ZigBee/Z-Wave, modbus or similar devices.+
  
 I choose to use dedicated hardware because i want my smart home to be independent from my home-server services. In a way, the smart home needs to be operative even if/when my home IT services are down or the internet is not working. I choose to use dedicated hardware because i want my smart home to be independent from my home-server services. In a way, the smart home needs to be operative even if/when my home IT services are down or the internet is not working.
Line 19: Line 17:
 ==== Where to run Home Assistant ==== ==== Where to run Home Assistant ====
  
-Home Assistant offers different ways to self-host a standalone instance of Home Assistant on dedicated hardware. The easiest, which is also a good way to support the project itself, is tu buy a [[https://green.home-assistant.io/|Home Assistant Green]] or [[https://yellow.home-assistant.io/|Home Assistant Yellow]]. +Home Assistant offers different ways to self-host a standalone instance of Home Assistant on dedicated hardware. The easiest, which is also a good way to support the project itself, is to buy a [[https://green.home-assistant.io/|Home Assistant Green]] or [[https://yellow.home-assistant.io/|Home Assistant Yellow]]. 
  
 The green is a fully functional hardware with small form factor ready to plug & run. The yellow is quite similar, but you provide yourself a Raspberry Pi4 CPU board. The green is a fully functional hardware with small form factor ready to plug & run. The yellow is quite similar, but you provide yourself a Raspberry Pi4 CPU board.
  
-choose to self-host Home Assistant on my own hardwarei picked an oldish laptop to leverage the low-power conusmption. As requirements, i can recoment the following:+did three different installations over time, and here is why: 
 +  * I started with an old repurposed laptop (see [[homeautomation:uefipc|here]]), but failing hardware and noisy fan where downsides. 
 +  * Then i purchased an Orange Pi 3B (see [[homeautomation:opi3b|here]]) and leveraged that for a while, but requiring manual updates to the OS was annoying. 
 +  * At last, i purchased a Home Assistant Green (see [[homeautomation:green|here)]]both to support the project and get the best full stack support out of it. And i have been really happy so far. 
 + 
 +As requirements, i can recoment the following:
   * One wired ethernet card (as WiFi will interfere with ZigBee and similar networks)   * One wired ethernet card (as WiFi will interfere with ZigBee and similar networks)
-  * 8GB RAM (officially, 2GB is the minimm required) +  * 4GB RAM (officially, 2GB is the minimm required, 8GB could be preferred, 4GB seems plenty at the moment
-  * Any (even small) SSD/NVWE. A traditional HDD will also do the job, but be more power hungry.+  * Any (even small) EMMC/SSD/NVWE. Using a mechanical HDD (on PC hardware) is more powerhungry and using an uSD on ARM hardware is not recomended due to poor uSD overall stability.
   * At least one, better two or three, USB ports   * At least one, better two or three, USB ports
  
 You can place this computer in a strategic point in your house, to maximize the ZigBee or Z-Wave rage and signal distribution. You can start anywhere, and then move it if needed, this is specially easy on a laptop where you don't have to power it down. You can place this computer in a strategic point in your house, to maximize the ZigBee or Z-Wave rage and signal distribution. You can start anywhere, and then move it if needed, this is specially easy on a laptop where you don't have to power it down.
- 
  
 ==== Install Home Assistant ==== ==== Install Home Assistant ====
  
-Follow the official [[https://www.home-assistant.io/installation/generic-x86-64|installation instructions]] which are well written and comprehensiveI suggest you use an USB stick for the installation, or leverage an existing linux installation on the target machine. +Follow the [[homeautomation:green|C.1) HA: setup Home Assistant Green]][[homeautomation:opi3b|C.1) HAsetup an OrangePi 3B]] or the [[homeautomation:uefipc|C.2HA on a standard PC]] pages.
- +
-As a general note, Home Assistant //does not provide an installer//. Soyou don't actually **install** it, rather you //image// it on the target hard drive. +
- +
-I already had a Linux installed, so i just downloaded the IMG file from Home Assistant download page and flashed it with a typical: +
-<code bash> +
-dd if=home-assistant.img of=/dev/sda +
-</code> +
- +
-**Beware:** the above command will **destroy** your computer operating system and replace it with Home Assistant. You will not even be able to reboot, only power cycling will work. +
- +
-Make sure your wired network is plugged, as after the first boot you will need to fire up a web browser and locate your Home Assistant IP (see your DHCP logs...). In any case, you can check Home Assistant console output on Home Assistant computer screen: it should tell you which IP address it is using. You can also perform basic maintanance tasks, which includes IP changes, from this CLI.+
  
  
Line 60: Line 51:
 At this point you can start designing your rooms and areas. I suggest you define at this point all the floors and rooms that you have, so adding devices, lights and switches will be easier later on. At this point you can start designing your rooms and areas. I suggest you define at this point all the floors and rooms that you have, so adding devices, lights and switches will be easier later on.
  
 +You will want to install the File Editor extension, and sooner or later you will need to edit your **configuration.yaml** file by hand.
  
  
  

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information