feat(hass): add HomeKit Controller

This commit is contained in:
Felix Schröter 2022-10-25 12:08:38 +02:00
parent d1fe6368e8
commit 15e6ec0de1
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -27,11 +27,7 @@ in {
services.home-assistant = {
enable = true;
openFirewall = true;
package = (pkgs.home-assistant.overrideAttrs (oldAttrs: rec {
# pytestCheckPhase uses too much RAM and pi can't handle it
doCheck = false;
doInstallCheck = false;
})).override { extraComponents = [ "otp" "roku" "sonos" "onvif" ]; };
extraComponents = [ "otp" "roku" "sonos" "onvif" "homekit_controller" ];
config = {
homeassistant = {
name = "Home";
@ -55,7 +51,6 @@ in {
automation = { };
frontend = { };
mobile_app = { };
discovery = { };
zeroconf = { };
ssdp = { };
shopping_list = { };
@ -125,6 +120,13 @@ in {
# configWritable = true; # doesn't work atm
};
networking.firewall.allowedTCPPorts = [
1400 # Sonos discovery
];
networking.firewall.allowedUDPPorts = [
5353 # HomeKit
];
age.secrets.hass-secrets = {
file = ../secrets/hass/secrets.age;
path = "/var/lib/hass/secrets.yaml";