Installation Guide

The HMG can function as either a Zigbee to Ethernet adapter or a Zigbee to USB adapter. Depending on your usage, connect your device accordingly.

Zigbee2MQTT Configuration

Ethernet Connection

  1. Insert the RJ45 cable into your device.
  1. Follow the Zigbee2MQTT setup process as outlined in the official guide. It can be set up as a Linux package, Docker container, or as an extension for Home Assistant.

  2. Use the following configuration for the port: settings:

serial:
  port: tcp://192.168.0.2:6638
where:

  • 192.168.0.2 is the IP address of the HMG on your network.

  • 6638 is the port for your HMG adapter (default is 6638, can be configured via the Web Interface).

When using mDNS Zeroconf autodiscovery, your Zigbee2MQTT serial settings should look like this:

  serial:
    port: mdns://zigstar-gw
  1. Start Zigbee2MQTT.

USB Connection

  1. Connect the Type-C cable to the device.
  1. Follow the Zigbee2MQTT setup process as outlined in the official guide. It can be set up as a Linux package, Docker container, or as an extension for Home Assistant.

  2. Use the following configuration for the port: settings:

    serial:
      port: /dev/ttyUSB0
    
    where:

  3. /dev/ttyUSB0 is the device path. For Windows users, this is typically a COM port, such as COM3.

  4. Start Zigbee2MQTT.

Zigbee2MQTT in Docker

  1. Install Docker and docker-compose.

  2. Create a docker-compose.yml file:

version: '3.8'

services:
  zigbee2mqtt:
    container_name: zigbee2mqtt
    image: koenkk/zigbee2mqtt
    restart: always
    environment:
      - TZ=Europe/Berlin
    volumes:
      - /run/udev:/run/udev:ro
      - /home/pi/docker-containers/zigbee2mqtt:/app/data

HMG Zigbee2MQTT in Docker

Key parameters and their definitions:

  • network_mode: host - This means that your container has the same network access as the host machine.
  • privileged: true - This allows your container to access your host devices, which is important if you are using a USB connection.
  • /home/pi/docker-containers/zigbee2mqtt is the location of your Zigbee2MQTT configuration.yaml file.

ZHA (Zigbee Home Automation) Configuration

Autodiscovery

Home Assistant version 2023.1 and above includes LAN autodiscovery for the HMG. If your network router allows mDNS, the setup is straightforward:

  1. Run Home Assistant.
  2. Connect your HMG to the LAN (via Ethernet or WiFi).
  3. Home Assistant will notify you that a new supported device has been found and will offer to set it up. Confirm this to integrate the HMG with Home Assistant using the ZHA integration.

Manual Configuration

  1. Open Home Assistant.
  2. Click Settings.
  3. Go to Devices & Services.
  4. Click Add integration (bottom right corner).
  5. Find Zigbee Home Automation and click on it.
  6. Choose Zigbee Home Automation from the options.
  7. In the serial port window, select Enter manually.
  8. In the radio type window, choose ZNP = Texas Instruments Z-Stack ZNP ....
  9. For the serial port settings:
    • Serial device path: socket://192.168.1.2:6638, where 192.168.1.2 is the IP address of your HMG.
    • Leave the port speed at the default of 115200.
    • Data flow control can be left undefined (it is not relevant for LAN adapters).
  10. Click Submit.
  11. In the network formation window, select Erase network settings and form a new network.
  12. Wait for the Zigbee network to form, then try adding some Zigbee end-devices (e.g., sensors).