From 965a6c96c3b7216bf8ca1b985f8bece6c73213c4 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 30 Jan 2022 23:51:32 +0100 Subject: ma ham: commit open changes --- makefu/2configs/home/ham/default.nix | 51 ++++++++++-------------------------- 1 file changed, 14 insertions(+), 37 deletions(-) (limited to 'makefu/2configs/home/ham/default.nix') diff --git a/makefu/2configs/home/ham/default.nix b/makefu/2configs/home/ham/default.nix index e17cfc35..b9701f12 100644 --- a/makefu/2configs/home/ham/default.nix +++ b/makefu/2configs/home/ham/default.nix @@ -4,7 +4,6 @@ ## let prefix = (import ./lib).prefix; - firetv_stick = "192.168.111.24"; hassdir = "/var/lib/hass"; unstable = import {}; @@ -29,6 +28,11 @@ in { ./calendar/nextcloud.nix + ./media/firetv.nix + ./media/sonos.nix + ./media/remote_sound_wohnzimmer.nix + + ./automation/check-in.nix ./automation/fenster_auf.nix ./automation/firetv_restart.nix ./automation/light_buttons.nix @@ -37,22 +41,25 @@ in { ./automation/flurlicht.nix #./automation/giesskanne.nix ./automation/pflanzen_giessen_erinnerung.nix - #./automation/urlaub.nix + ./automation/urlaub.nix ./automation/moodlight.nix + ./automation/shutdown_button.nix ./light/arbeitszimmer.nix ./light/schlafzimmer.nix ./light/wohnzimmer.nix + + ./tts/google.nix ]; services.home-assistant = { - package = (unstable.home-assistant.overrideAttrs (old: { + package = (pkgs.home-assistant.overrideAttrs (old: { doInstallCheck = false; })).override { - extraPackages = p: [ - (p.callPackage ./deps/dwdwfsapi.nix {}) - (p.callPackage ./signal-rest/pkg.nix {}) - #(p.callPackage ./deps/pykodi.nix {}) + extraPackages = p: [ + (p.callPackage ./deps/dwdwfsapi.nix {}) + (p.callPackage ./signal-rest/pkg.nix {}) + #(p.callPackage ./deps/pykodi.nix {}) ]; }; @@ -88,13 +95,6 @@ in { default = "info"; }; rest_command = {}; - tts = [ - { platform = "google_translate"; - language = "de"; - time_memory = 57600; - service_name = "google_say"; - } - ]; api = {}; esphome = {}; # fails camera = []; @@ -108,16 +108,6 @@ in { # (builtins.readFile )) #]; notify = [ - #{ - # platform = "kodi"; - # name = "Kodi Wohnzimmer"; - # host = firetv_stick; - #} - { - platform = "nfandroidtv"; - name = "FireTV Wohnzimmer"; - host = firetv_stick; - } #{ # platform = "telegram"; # name = "telegrambot"; @@ -128,19 +118,6 @@ in { ]; sun.elevation = 247; recorder = {}; - media_player = [ - { platform = "kodi"; - name = "FireTV Stick kodi"; - host = firetv_stick; - } - { platform = "androidtv"; - name = "FireTV Stick"; - device_class = "firetv"; - # adb_server_ip = firetv_stick; - host = firetv_stick; - port = 5555; - } - ]; mqtt = { broker = "localhost"; discovery = true; #enable esphome discovery -- cgit v1.2.3