From 92237b9269ff2a5d79372abf2de82dd172b2002e Mon Sep 17 00:00:00 2001 From: Felix Tenley Date: Thu, 22 Oct 2020 19:16:43 +0200 Subject: [PATCH] fix(rpi4): fix home-assistant tasmota integration --- services/home-assistant.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/services/home-assistant.nix b/services/home-assistant.nix index 20016ad..ef9e7ce 100644 --- a/services/home-assistant.nix +++ b/services/home-assistant.nix @@ -48,12 +48,13 @@ in ]; hashedPasswordFile = "/etc/nixos/secrets/mqtt/hass"; }; - #"tasmota" = { - # acl = [ - # "topic readwrite tasmota/#" - # ]; - # hashedPasswordFile = "/etc/nixos/secrets/mqtt/tasmota"; - #}; + "tasmota" = { + acl = [ + "topic readwrite tasmota/#" + "topic readwrite homeassistant/#" + ]; + hashedPasswordFile = "/etc/nixos/secrets/mqtt/tasmota"; + }; "owntracks" = { acl = [ "topic readwrite owntracks/#" @@ -97,7 +98,7 @@ in }; mqtt = { broker = "localhost"; - port = "8883"; + port = config.services.mosquitto.port; username = "hass"; password = "!secret mqtt_password"; discovery = true;