montage hass

This commit is contained in:
nyanloutre 2020-11-29 12:52:41 +01:00
parent 90dd2c2b6d
commit d5e46b62a0
2 changed files with 26 additions and 2 deletions

View File

@ -157,6 +157,11 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/var/lib/hass" =
{ device = "loutrepool/var/hass";
fsType = "zfs";
};
swapDevices = swapDevices =
[ [
{ {

View File

@ -246,7 +246,10 @@ in
}; };
influxdb = null; influxdb = null;
config = null; config = null;
frontend = null; frontend.themes = "!include ${pkgs.fetchurl {
url = "https://raw.githubusercontent.com/bbbenji/synthwave-hass/0.3.3.1/themes/synthwave.yaml";
sha256 = "1n2yhk98cf778z7fdl5bswljhj45nv6bld191rxw7q6ckp235q4h";
}}";
history = null; history = null;
logbook = null; logbook = null;
map = null; map = null;
@ -321,6 +324,12 @@ in
broadcast_address = "10.30.255.255"; broadcast_address = "10.30.255.255";
} }
]; ];
device_tracker = [
{
platform = "ping";
hosts = { telephone_paul = "10.30.50.2"; };
}
];
scene = [ scene = [
{ {
name = "Movie"; name = "Movie";
@ -399,10 +408,20 @@ in
entity_id = "person.paul"; entity_id = "person.paul";
state = "home"; state = "home";
} }
# Sun below max elevation
{ {
condition = "template"; condition = "template";
value_template = "{{ state_attr('sun.sun', 'elevation') < ${toString min_sun_elevation} }}"; value_template = "{{ state_attr('sun.sun', 'elevation') < ${toString min_sun_elevation} }}";
} }
# All lights off
{
condition = "template";
value_template = ''
{% set domain = 'light' %}
{% set state = 'off' %}
{{ states[domain] | count == states[domain] | selectattr('state','eq', state) | list | count }}
'';
}
]; ];
action = { action = {
scene = "scene.home"; scene = "scene.home";
@ -421,7 +440,7 @@ in
entity_id = "all"; entity_id = "all";
} }
{ {
service = "media_player.media_pause"; service = "media_player.turn_off";
entity_id = "all"; entity_id = "all";
} }
]; ];