This is my Home Assistant configuration which is running on a Raspberry PI 3 running Hassbian.
Home Assistant Version: 0.60.1
- Setup your Raspberry Pi like this
- Lights
- Switches
- Door/Window
- Motion
- Cameras
- Climate
- Media
- Amazon Echo (1st Gen)
- Amazon Echo Dot (1st Gen)
- Xbox One S
- Network
- Location
- Owntracks MQTT
- Other
- Config the raspberry pi (things like keyboard layout, timezone, etc.)
sudo raspi-config
- Change the default password (for user username)
sudo passwd username
- Prevent the wifi device from going to sleep
sudo iw dev wlan0 set power_save off
- Turn off the pi's wifi device
sudo ifwconfig wlan0 txpower off
- Give homeassistant access to the Pi's GPIO pins
sudo usermod -G gpio -a homeassistant
- Update hassbian
sudo hassbian-config upgrade hassbian
- Update homeassistant
sudo hassbian-config upgrade home-assistant
- Restart homeassistant
sudo systemctl restart home-assistant@homeassistant
- List the available install scripts for some useful services
sudo hassbian-config show
- Install some useful services
# Install a mosquitto MQTT server
sudo hassbian-config install mosquitto
# Install samba to view and edit config files as a network location on a PC
sudo hassbian-config install samba
- Edit the wifi configuration
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
- List connected USB devices
lsusb
- Install hassctl to more easily control home-assistant
sudo curl -o /usr/local/bin/hassctl https://raw.githubusercontent.com/dale3h/hassctl/master/hassctl && sudo chmod +x /usr/local/bin/hassctl
- hassctl method to update home-assistant
hassctl update-hass && hassctl config && hassctl restart
- install appdaemon for home-assistant
sudo hassbian-conf install appdaemon
- Reboot the pi
sudo reboot now