Update home-assistant config
This commit is contained in:
parent
c767171fad
commit
f829371b6a
@ -88,6 +88,13 @@
|
|||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
age.secrets."files/services/home-assistant/secrets.yaml" = {
|
||||||
|
file = "${inputs.secrets}/files/services/home-assistant/secrets.yaml.age";
|
||||||
|
path = "${config.services.home-assistant.configDir}/secrets.yaml";
|
||||||
|
owner = "hass";
|
||||||
|
group = "hass";
|
||||||
|
};
|
||||||
|
|
||||||
services.home-assistant = {
|
services.home-assistant = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraComponents = [
|
extraComponents = [
|
||||||
@ -116,10 +123,27 @@
|
|||||||
backup = {};
|
backup = {};
|
||||||
homeassistant = {
|
homeassistant = {
|
||||||
name = "Home";
|
name = "Home";
|
||||||
unit_system = "metric";
|
latitude = "!secret latitude";
|
||||||
|
longitude = "!secret longitude";
|
||||||
|
country = "GB";
|
||||||
temperature_unit = "C";
|
temperature_unit = "C";
|
||||||
|
time_zone = config.time.timeZone;
|
||||||
|
unit_system = "metric";
|
||||||
|
};
|
||||||
|
mqtt = {
|
||||||
|
broker = "127.0.0.1";
|
||||||
|
port = 1883;
|
||||||
|
discovery = true;
|
||||||
|
client_id = "home-assistant-1";
|
||||||
|
birth_message = {
|
||||||
|
topic = "homeassistant/status";
|
||||||
|
payload = "online";
|
||||||
|
};
|
||||||
|
will_message = {
|
||||||
|
topic = "homeassistant/status";
|
||||||
|
payload = "offline";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
mqtt = {};
|
|
||||||
recorder = {
|
recorder = {
|
||||||
purge_keep_days = 365;
|
purge_keep_days = 365;
|
||||||
};
|
};
|
||||||
@ -147,7 +171,13 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
dataDir = "/var/lib/zigbee2mqtt";
|
dataDir = "/var/lib/zigbee2mqtt";
|
||||||
settings = {
|
settings = {
|
||||||
homeassistant = config.services.home-assistant.enable;
|
homeassistant = lib.optionalAttrs config.services.home-assistant.enable {
|
||||||
|
discovery_topic = "homeassistant";
|
||||||
|
status_topic = "hass/status";
|
||||||
|
legacy_entity_attributes = true;
|
||||||
|
legacy_triggers = true;
|
||||||
|
};
|
||||||
|
availability = true;
|
||||||
frontend = true;
|
frontend = true;
|
||||||
device_options = {
|
device_options = {
|
||||||
retain = true;
|
retain = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user