igami.zigbee2mqtt
Ansible role to install zigbee2mqtt on Raspberry Pi running stock Raspbian lite or full. Should also work on other Debian distributions.
Raspberry Pi with SSH enabled and CC2531 USB sniffer.
If installing on a fresh 'headless' Raspberry Pi server, add an empty file named 'ssh' to the boot directory of the SD card to enable remote SSH access.
zigbee_user
: zigbeezigbee_user_groups
: tty,dialoutzigbee_user_append
: falsezigbee_dir
: /opt/zigbee2mqttzigbee_repository
: https://github.com/Koenkk/zigbee2mqtt.gitzigbee_homeassistant
: falsezigbee_permit_join
: truezigbee_mqtt_base_topic
: zigbee2mqttzigbee_mqtt_server
: mqtt://localhostzigbee_serial_port
: /dev/ttyACM0zigbee_mqtt_user
:zigbee_mqtt_password
:zigbee_network_key
: "'!network_key network_key'"
Zigbee2mqtt uses a known default encryption key. Therefore it is recommended to use a different one.
By default this role will create an random key at firstrun.zigbee_generate_new_network_key
: no
- npm >=5.8
- nodejs >=10
To install zigbee2mqtt with default serial port:
- name: zigbee2mqtt octoprint on raspbian
hosts: ip_address_of_rpi
become: true
roles:
- igami.zigbee2mqtt
To install zigbee2mqtt with custom serial port:
- name: zigbee2mqtt octoprint on raspbian
hosts: ip_address_of_rpi
become: true
roles:
- role: igami.zigbee2mqtt
vars:
zigbee_serial_port: /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B0018ED3DDF-if00
To install zigbee2mqtt with default serial port and MQTT authentication:
- name: zigbee2mqtt octoprint on raspbian
hosts: ip_address_of_rpi
become: true
roles:
- role: igami.zigbee2mqtt
vars:
zigbee_mqtt_user: mqtt_user
zigbee_mqtt_password: mqtt_password
BSD