8000 GitHub - pnlinh-it/home-assistant: Some note when setup my Home Automation · GitHub
[go: up one dir, main page]

Skip to content

About

Some note when setup my Home Automation

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Install Hass.io on Raspberry 4

Add ssh remote

Generate ssh key-pair

pnlinh@Linhs-MacBook-Pro  ~  ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/pnlinh/.ssh/id_rsa): homeassistant
pnlinh@Linhs-MacBook-Pro  ~  cat homeassistant.pub

Open sysconf.txt at root directory of debian image uncomment line root_authorized_key

root_pw=password
root_authorized_key=<entire_homeassistant.pub_content>
ssh root@<pi_ip_address> -i homeassistant
apt update && apt upgrade -y
apt install sudo -y
apt-get install -y software-properties-common apparmor-utils apt-transport-https ca-certificates curl dbus jq network-manager

systemctl disable ModemManager

systemctl stop ModemManager

curl -fsSL get.docker.com | sh

curl -sL "https://raw.githubusercontent.com/Kanga-Who/home-assistant/master/supervised-installer.sh" | bash -s -- -m raspberrypi4

sudo apt --fix-broken install
sudo apt-get install udisks2 wget
cd /usr/local/src
sudo wget https://github.com/home-assistant/os-agent/releases/download/1.2.2/os-agent_1.2.2_linux_aarch64.deb
dpkg -i os-agent_1.2.2_linux_aarch64.deb
sudo reboot
sudo apt update && sudo apt upgrade -y && sudo apt autoremove –y

Add Zigbee to MQTT

  • Add official Add-on: Mosquitto broker
    • Update config
logins:
  - username: plinh
    password: passwd
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
  • Add: https://github.com/zigbee2mqtt/hassio-zigbee2mqtt

image

Home assistant Config

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.32.0/24
    - 192.168.1.0/24

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

AutoSSH config

hostname: ha.pnlinh.me
ssh_port: '2223'
username: root
remote_forwarding:
  - ':80:172.17.0.1:8123'
local_forwarding:
  - ''
other_ssh_options: '-o ExitOnForwardFailure=yes -v'
monitor_port: '0'
gatetime: '30'

Blog

About

Some note when setup my Home Automation

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

0