Skip to content

QNimbus/homeassistant-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Assistant Configuration

GitHub Maintenance GitHub last commit GitHub commit activity

HA Version HA Version

Installation

After the installation and boot up of the Home Assistant machine, open a browser and navigate to http://homeassistant.local:8123. If HA is unreachable check if any of the other NIC's on the HA machine are reachable (using the respective ip address of the NIC).

When opening the Home Assistant interface in the browser for the first time you will need to create a new user as part of the onboarding process. When the onboarding process is finished proceed to your profile. In your profile make sure you enable Advanced Mode. This enables the installation of advanced add-ons that would otherwise be unavailable.

SSH

Go to the Supervisor >> Add-on store and install the SSH & Web Terminal community add-on. Next, modify the add-on configuration to allow loging in with a password and/or private key authentication.

ssh:
 username: hassio
 password: '<YOUR_PASSWORD_HERE>'
 authorized_keys:
   - >-
     ssh-rsa
     <YOUR_PRIVATE_KEY_HERE>
     homeassistant
 sftp: false
 compatibility_mode: false
 allow_agent_forwarding: false
 allow_remote_port_forwarding: false
 allow_tcp_forwarding: false
zsh: true
share_sessions: false
packages: []
init_commands: []

When done editing the configuration do not forget to start the SSH server on the add-on page.

Network setup

Note: For reference see Using nmcli to set a static IPv4 address

Login to the HASS.io terminal using SSH (as setup in the previous section). View the current network interfaces and their configuration. Configure the network interfaces as appropriate.

$ nmcli con show
NAME            UUID                                  TYPE      DEVICE
HassOS default  2d06fa94-0ff0-11eb-adc1-0242ac120002  ethernet  enp2s3

$ nmcli
enp2s3: connected to HassOS default
        "enp2s3"
        ethernet (e1000), DE:AD:BE:EF:00:01, hw, mtu 1500
        ip4 default
        inet4 10.30.99.6/16
        route4 0.0.0.0/0
        route4 10.30.0.0/16
        inet6 fe80::ec15:9bd6:eb48:d87c/64
        route6 fe80::/64
        route6 ff00::/8

enp2s1: disconnected
        "enp2s1"
        1 connection available
        ethernet (e1000), DE:AD:BE:EF:00:02, hw, mtu 1500

enp2s2: disconnected
        "enp2s2"
        1 connection available
        ethernet (e1000), DE:AD:BE:EF:00:03, hw, mtu 1500

docker0: unmanaged
        "docker0"
        bridge, DE:AD:BE:EF:00:04, sw, mtu 1500

hassio: unmanaged
        "hassio"
        bridge, DE:AD:BE:EF:00:05, sw, mtu 1500

To rename existing connection:

$ nmcli connection modify "HassOS default" connection.id "IOT"

To add a new interface/connection:

$ nmcli con add type ethernet con-name "HassOS default" ifname enp2s1

Samba

Go to the Supervisor >> Add-on store and install the Samba share add-on from the official repository.

AppDaemon

Go to the Supervisor >> Add-on store and install the AppDaemon add-on from the community repository.

Clone config repository

Prior to cloning the config repository, ensure that HA core is stopped.

$ ha core stop

Clone this repository in the config folder.

* Note: You can add profile images to the person profile via the GUI or via the YAML config in customize/entities/person.<person_name>.yaml

Finally, restart the HA core.

$ ha core start

Integrations

Most integrations can be configured using YAML files. However some integration are exclusively configured through to web UI. A list of integrations that need to be installed and configured through the web UI:

ZWave

Renaming the default discovered device names (not entity names, I'm referring to the device names specifically) allows for better organisation of the ZWave network in HA.

  • Ensure tha HA ZWave binding has correctly started the ZWave network previously and saved it's configuration to zwcfg_0xe12deadbeaf.xml
  • Make a backup copy of the config file. e.g. zwcfg_0xe12deadbeaf.xml.bak
  • Install the OZWCP add-on (Supervisor >> Add-on store)
  • Start the OZWCP add-on (this shuts down the HA core container on HASS.io)
  • Navigate to http://homeassistant.local:8090 (may take up to 2 minutes to start)
  • Start network discovery for your device. (e.g. /dev/ttyACM0)
  • Rename your ZWave devices as required.
  • When finished make sure to save your changes and verify last modified date of zwcfg_0xe12deadbeaf.xml file.

Note: For reference see ZWave in Home Assistant

To do

  • Add ZWave-to-MQTT via standalone device (e.g. Raspberry Pi 3+)

Useful links

ZWave in Home Assistant

Reference

Add-ons & tools

License

MIT