/
/
/
Ansible role that deploys my edge device with connectivity containers. Currently it deploys a thread border router via the zbt-1 dongle by Home Assistant, a zigbee2MQTT interface using the Sonoff zigbee dongle and a DSMR reader with a generic P1 to USB converter.
1services:
2 zigbee2mqtt:
3 image: "koenkk/zigbee2mqtt:{{ z2m.version }}"
4 container_name: zigbee2mqtt
5 restart: unless-stopped
6 network_mode: host
7 environment:
8 - TZ={{ ha_edge_timezone }}
9 volumes:
10 - "{{ z2m.data_dir }}:/app/data"
11 devices:
12{% if z2m.serial_device_raw %}
13 - "{{ z2m.serial_device_raw }}:/dev/ttyZigbee"
14{% else %}
15 - "{{ z2m.serial_symlink }}:{{ z2m.serial_symlink }}"
16{% endif %}
17
18