For the second Raspberry PI, HassOS was installed. HassOS was configured using LAN port of the Raspberry Pi.
We selected GPIO port 11 & 12 and added the config for these pins in the config file of HassIO. We then configured devices (LED) using breadboard and register.
To start running HassOS on the RaspberryPi, you need to download HassOS first.
1) Go to https://home-assistant.io/hassio/installation/ and chose the appropriate image for your Raspberry Pi
2) Go to https://etcher.io/ and install Etcher on your computer. Select the appropriate installation for your operating system. Make sure Etcher selects the right SD card and img. Then, click Flash to burn the img to SDCard.
5) When flashing is done, Insert the SD card on the Raspberry Pi.
6) After a few minutes you should be able to access Home Assistant user interface from any device on the same local network. You just need to type on the browser http://hassio.local:8123 or go to your Pi’s IPAddress:8123
-
Raspberry Pi Board running Home Assistant – read Best Raspberry Pi Starter Kits
-
MicroSD Card – at least 8GB Class10
-
Raspberry Pi Power Supply (5V 2.5A)
-
2x LEDs
-
2x 330 Ohm resistors
-
Breadboard
-
Jumper Wires
- You need to connect two LEDs through a 330 Ohm resistor to GPIO 11 and GPIO 12 like the following.
- Install the Configurator Add on from HassOS’s Dashboard.
- Open the Configurator page and navigate to configuration.yaml
- Paste the following code so that the OS understands GPIO 11, 12 PIN
# Example configuration.yaml entry
switch:
- platform: rpi_gpio
ports:
11: Fan Office
12: Light Desk
It can control any devices away from home.
Video link for home automation using HassOS - https://www.facebook.com/saiftheboss7/videos/10157096817822768/
Screenshot