From ff38de4a2608c0b9de9521f91681169801055a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 2 Sep 2023 20:24:28 +0100 Subject: [PATCH] migrate to zigbee2mqtt --- nixos/boxes/bolty/home-assistant.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/nixos/boxes/bolty/home-assistant.nix b/nixos/boxes/bolty/home-assistant.nix index 57d0db39..c026ea30 100644 --- a/nixos/boxes/bolty/home-assistant.nix +++ b/nixos/boxes/bolty/home-assistant.nix @@ -12,7 +12,7 @@ in { imports = [../nginx.nix ./virtualisation.nix]; - networking.firewall.allowedTCPPorts = [port 1883]; + networking.firewall.allowedTCPPorts = [port 1883 8089]; services.mosquitto = { enable = true; listeners = [ @@ -27,7 +27,19 @@ in { } ]; }; - + services.zigbee2mqtt = { + enable = true; + settings = { + homeassistant = true; + permit_join = true; + frontend.port = 8089; + mqtt.server = "mqtt://10.0.0.8:1883"; + serial = { + port = "/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0"; + baudrate = 115200; + }; + }; + }; services.nginx = { virtualHosts = { "bolty.raptor-carp.ts.net" = {