From 85aa43536ae3385146df6895bd2396bc8746e16b Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sat, 17 Jun 2023 17:12:54 +0200 Subject: [PATCH] Home assitant: update config --- loki/configuration.nix | 40 +++++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/loki/configuration.nix b/loki/configuration.nix index ba12268..e81ea0c 100644 --- a/loki/configuration.nix +++ b/loki/configuration.nix @@ -84,7 +84,10 @@ with lib; { }; blueman.enable = true; dbus.packages = [ pkgs.dconf ]; - esphome = { enable = true; openFirewall = true; }; + esphome = { + enable = true; + openFirewall = true; + }; fail2ban = { enable = true; bantime-increment.enable = true; @@ -325,12 +328,13 @@ with lib; { automation = "!include automations.yaml"; scene = "!include scenes.yaml"; + assist_pipeline = { }; cloud = { }; config = { }; - device_tracker = [{ - platform = "bluetooth_tracker"; - request_rssi = true; - }]; + # device_tracker = [{ + # platform = "bluetooth_tracker"; + # request_rssi = true; + # }]; esphome = { }; frontend = { }; # google_assistant = { project_id = "light-cathode-372118"; }; @@ -340,10 +344,31 @@ with lib; { logger.default = "info"; "map" = { }; mobile_app = { }; + notify = [ + { + platform = "telegram"; + name = "t_filippo"; + chat_id = "!secret filippo_t_chat_id"; + } + { + platform = "telegram"; + name = "t_famiglia"; + chat_id = "!secret famiglia_t_chat_id"; + } + ]; recorder.purge_keep_days = 30; shopping_list = { }; sun = { }; system_health = { }; + telegram_bot = [{ + # platform = "polling"; + platform = "webhooks"; + api_key = "!secret telegram_api_key"; + allowed_chat_ids = [ + "!secret filippo_t_chat_id" + "!secret famiglia_t_chat_id" + ]; + }]; tts = [{ platform = "google_translate"; language = "it"; @@ -362,8 +387,8 @@ with lib; { "bayesian" "binary_sensor" "blueprint" - "bluetooth_le_tracker" - "bluetooth_tracker" + # "bluetooth_le_tracker" + # "bluetooth_tracker" "button" "camera" "cast" @@ -383,6 +408,7 @@ with lib; { "dlna_dmr" "dlna_dms" "esphome" + "fail2ban" "flux" "gdacs" "google"