totoro: enable zigbee2mqtt and mosquitto
This commit is contained in:
parent
65d3576479
commit
d87a9cee2d
2 changed files with 30 additions and 1 deletions
|
@ -383,6 +383,10 @@
|
||||||
allow_websockets = true;
|
allow_websockets = true;
|
||||||
timeout = "0";
|
timeout = "0";
|
||||||
})
|
})
|
||||||
|
(service "totoro.int.as205479.net:8099" "zigbee2mqtt.int.lukegb.com" {
|
||||||
|
allow_websockets = true;
|
||||||
|
timeout = "0";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,31 @@
|
||||||
{ depot, lib, pkgs, ... }:
|
{ depot, lib, pkgs, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (depot.ops) secrets;
|
inherit (depot.ops) secrets;
|
||||||
in {
|
in {
|
||||||
|
services.zigbee2mqtt = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
homeassistant = true;
|
||||||
|
serial.port = "/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_eca6e9ba6596ed11ac206b4ce259fb3e-if00-port0";
|
||||||
|
mqtt.server = "mqtt://localhost:1883";
|
||||||
|
frontend = {
|
||||||
|
port = 8099;
|
||||||
|
host = config.my.ip.tailscale6;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.mosquitto = {
|
||||||
|
enable = true;
|
||||||
|
listeners = [{
|
||||||
|
address = "127.0.0.1";
|
||||||
|
port = 1883;
|
||||||
|
} {
|
||||||
|
address = "::1";
|
||||||
|
port = 1883;
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
|
||||||
services.home-assistant = {
|
services.home-assistant = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configWritable = true;
|
configWritable = true;
|
||||||
|
@ -34,6 +57,8 @@ in {
|
||||||
|
|
||||||
broadlink = {};
|
broadlink = {};
|
||||||
homekit = {};
|
homekit = {};
|
||||||
|
mqtt = {};
|
||||||
|
smartthings = {};
|
||||||
google_assistant = {
|
google_assistant = {
|
||||||
project_id = "malden-homeassistant";
|
project_id = "malden-homeassistant";
|
||||||
service_account = secrets.homeAssistant.googleServiceAccount;
|
service_account = secrets.homeAssistant.googleServiceAccount;
|
||||||
|
|
Loading…
Reference in a new issue