Smart Home Dev Journal

Devices

Kind Hubs
Zigbee/Z-Wave Nortek HUSBZB-1 Z-Wave/Zigbee USB Stick
Zigbee Repeating Devices
IKEA Tradfri lights
Zigbee Devices
Samsung SmartThings Multipurpose Sensor

Home Assistant Configuration

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

# Text to speech
tts:
  - platform: google_translate

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

Setup Nortek HUSBZB-1 Z-Wave/Zigbee USB Stick

Resources:

# check usb devices before inserting device
$ lsusb
# insert usb device
# Check devices again
$ lsusb
# it showed up for me as "Bus 001 Device 006: ID 10c4:8a2a Silicon Labs"
# you may also check for the device path with the following
$ sudo ls /dev/
# for me it showed up as both /dev/ttyUSB0 & /dev/ttyUSB1
# it shows up as two because one is zigbee and the other is zwave
# to get more info on the device search the logs for when it connected
$ journalctl | grep -C 10 ttyUSB
# output looks like this
Oct 04 12:25:48 gian-ProLiant-MicroServer-Gen8 kernel: usb 1-1.2: new full-speed USB device number 6 using ehci-pci
Oct 04 12:25:49 gian-ProLiant-MicroServer-Gen8 kernel: usb 1-1.2: New USB device found, idVendor=10c4, idProduct=8a2a, bcdDevice= 1.00
Oct 04 12:25:49 gian-ProLiant-MicroServer-Gen8 kernel: usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=5
Oct 04 12:25:49 gian-ProLiant-MicroServer-Gen8 kernel: usb 1-1.2: Product: HubZ Smart Home Controller
Oct 04 12:25:49 gian-ProLiant-MicroServer-Gen8 kernel: usb 1-1.2: Manufacturer: Silicon Labs
Oct 04 12:25:49 gian-ProLiant-MicroServer-Gen8 kernel: usb 1-1.2: SerialNumber: 61302481
Oct 04 12:25:49 gian-ProLiant-MicroServer-Gen8 kernel: cp210x 1-1.2:1.0: cp210x converter detected
Oct 04 12:25:49 gian-ProLiant-MicroServer-Gen8 kernel: usb 1-1.2: cp210x converter now attached to ttyUSB0
Oct 04 12:25:49 gian-ProLiant-MicroServer-Gen8 kernel: cp210x 1-1.2:1.1: cp210x converter detected
Oct 04 12:25:49 gian-ProLiant-MicroServer-Gen8 kernel: usb 1-1.2: cp210x converter now attached to ttyUSB1

The following is then added to the home-assistant.nomad job to give it access to the devices from the usb stick.

Setup Home Assistant with Nortek HUSBZB-1 Z-Wave/Zigbee USB Stick

Add the following to the home-assistant configuration.yaml file.

zwave:
  usb_path: /dev/ttyUSB0

zha:
  usb_path: /dev/ttyUSB1
  database_path: /config/zigbee.db

Setup SmartThings Multipurpose Sensor with HUSBZB-1

Hacs

Note I actually installed this dependency with this:

sudo curl -o /opt/home-assistant/config/custom_components/hacs.zip "https://github.com/hacs/integration/releases/download/1.6.0/hacs.zip"
sudo unzip hacs.zip -d "hacs"
rm -f hacs.zip

Circadian Lighting

Add the following to the custom repos in hacs:

Video of setting up adaptive-lighting integration

UI card for adaptive lighting:

HomeKit

Ensure Multicast DNS is allowed in Unifi gateway.

  • Disable Auto-Optimimize Network
    • This setting blocks multicast dns
  • Enable Multicast DNS
  • Disable Multicast and Broadcast Filtering
  • Enable multicast enhancement

Ensure the docker container is set to host mode with the following entries in the nomad job:

config {
  image = "homeassistant/home-assistant:stable"
  network_mode = "host"
  ...

network {
  mbits = 10
  mode = "host"
  port "http" {
    static = 8123
  }
}

Add the following to the home-assistant configuration.yml

zeroconf:
  default_interface: true

logger:
  default: warning
  logs:
    homeassistant.components.homekit: debug
    pyhap: debug

homekit:

Reboot home assistant and you should receive a notification with a qr code you can scan in the homekit app.

troubleshooting

# delete homekit state & restart home-assistant
ls /opt/home-assistant/config/.storage/
sudo rm /opt/home-assistant/config/.storage/homekit.XXXXXXXXXXXX.state

Casting

Inspiration

results matching ""

    No results matching ""