home assistant and matrix changes

This commit is contained in:
2024-11-11 00:28:41 +01:00
parent 21d2e34025
commit 96d26c5431
15 changed files with 241 additions and 123 deletions

View File

@@ -39,22 +39,23 @@ in
localAddress = "10.42.97.20/24";
extraFlags = [
"--capability=CAP_NET_ADMIN"
"--capability=CAP_MKNOD"
];
allowedDevices = [
{
modifier = "rwm";
node = "char-usb_device";
}
{
modifier = "rwm";
node = "char-ttyUSB";
}
];
# allowedDevices = [
# {
# modifier = "rwm";
# node = "char-usb_device";
# }
# {
# modifier = "rwm";
# node = "char-ttyUSB";
# }
# ];
bindMounts = {
# "/dev/ttyUSB0" = {
# hostPath = "/dev/ttyUSB0";
# isReadOnly = false;
# };
"/dev/ttyUSB0" = {
hostPath = "/dev/ttyUSB0";
isReadOnly = false;
};
"/etc/localtime" = {
hostPath = "/etc/localtime";
};

View File

@@ -18,7 +18,7 @@ in {
friendly_name = "Current Price of electricity";
unit_of_measurement = "EUR/kWh";
value_template = ''
{{ (((states('sensor.epex_spot_data_price') | int ) / 1000) + (0.0149 + 0.0053 + 0.00866)) | float }}
{{ (((states('sensor.epex_spot_data_price') | int ) / 1000) + (0.0149 + 0.053 + 0.00866)) | float }}
'';
};
};

View File

@@ -75,7 +75,7 @@
entity_id = "{{ trigger.entity_id }}";
};
data = {
brightness_pct = 10;
brightness_pct = 20;
color_temp = 450;
};
}
@@ -120,7 +120,7 @@
entity_id = "{{ trigger.entity_id }}";
};
data = {
brightness_pct = 25;
brightness_pct = 20;
rgbw_color = [ 255 126 0 255 ];
};
}
@@ -416,6 +416,20 @@
"light.hallway_bulb_2"
];
}
{
platform = "switch";
name = "Toilet Switch";
entity_id = "switch.toilet";
}
{
platform = "group";
name = "Toilet Lights";
all = true;
entities = [
"light.toilet_switch"
"light.toilet_bulb"
];
}
];
};
}

View File

@@ -1,8 +1,4 @@
{
services.home-assistant.extraComponents = [
"nuki"
];
services.home-assistant.config = {
"automation power leave home" = {
alias = "leave house power";