home assistant and matrix changes
This commit is contained in:
@@ -248,12 +248,6 @@
|
||||
reservations = [
|
||||
# need fixed ips for all shelly devices
|
||||
# living room 1 - 14
|
||||
# 10.42.100.2 # bulb1
|
||||
# 10.42.100.3 # bulb2
|
||||
# 10.42.100.4 # bulb3
|
||||
# 10.42.100.5 # bulb4
|
||||
# 10.42.100.6 # bulb5
|
||||
# 10.42.100.7 # bulb6
|
||||
# 10.42.100.8 # piano
|
||||
# 10.42.100.9 # switch
|
||||
# 10.42.100.10 # steamdeck
|
||||
@@ -268,23 +262,21 @@
|
||||
# 10.42.100.37 # readingled2
|
||||
# 10.42.100.38 # bedled
|
||||
# bath:
|
||||
# 10.42.100.49 # switch
|
||||
# 10.42.100.50 # bulb1
|
||||
# 10.42.100.51 # bulb2
|
||||
# 10.42.100.52 # smallswitch
|
||||
# 10.42.100.53 # ht
|
||||
# hallway:
|
||||
# 10.42.100.65 # switch
|
||||
# 10.42.100.66 # bulb1
|
||||
# 10.42.100.67 # bulb2
|
||||
# 10.42.100.68 # bulb3
|
||||
# 10.42.100.69 # bulb4
|
||||
# toilet:
|
||||
# 10.42.100.81 # switch
|
||||
# 10.42.100.82 # bulb
|
||||
# storage:
|
||||
# 10.42.100.97 # switch
|
||||
|
||||
{
|
||||
hw-address = "fc:ee:28:03:63:e9";
|
||||
ip-address = "10.42.100.148";
|
||||
server-hostname = "k1c";
|
||||
}
|
||||
{
|
||||
hw-address = "60:a4:23:97:4a:ec";
|
||||
ip-address = "10.42.100.21";
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
|
||||
@@ -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 }}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
{
|
||||
services.home-assistant.extraComponents = [
|
||||
"nuki"
|
||||
];
|
||||
|
||||
services.home-assistant.config = {
|
||||
"automation power leave home" = {
|
||||
alias = "leave house power";
|
||||
|
||||
@@ -268,7 +268,7 @@ in {
|
||||
};
|
||||
bridge = {
|
||||
username_template = "signal_{{.}}";
|
||||
displayname_template = "{{or .ProfileName .PhoneNumber \"Unknown user\"}}";
|
||||
displayname_template = "{{or .ProfileName .PhoneNumber \"Unknown user\"}} (Signal)";
|
||||
double_puppet_server_map = { };
|
||||
login_shared_secret_map = { };
|
||||
command_prefix = "!signal";
|
||||
@@ -281,6 +281,9 @@ in {
|
||||
require = true;
|
||||
};
|
||||
};
|
||||
matrix = {
|
||||
sync_direct_chat_list = true;
|
||||
};
|
||||
logging = {
|
||||
min_level = "info";
|
||||
writers = lib.singleton {
|
||||
@@ -408,13 +411,14 @@ in {
|
||||
};
|
||||
bridge = {
|
||||
username_template = "discord_{{.}}";
|
||||
displayname_template = "{{or .ProfileName .PhoneNumber \"Unknown user\"}}";
|
||||
displayname_template = "{{or .GlobalName .Username}} (Discord{{if .Bot}} bot{{end}})";
|
||||
double_puppet_server_map = { };
|
||||
login_shared_secret_map = { };
|
||||
command_prefix = "!discord";
|
||||
permissions."*" = "relay";
|
||||
permissions."cloonar.com" = "user";
|
||||
relay.enabled = true;
|
||||
restricted_rooms = true;
|
||||
encryption = {
|
||||
allow = true;
|
||||
default = true;
|
||||
|
||||
Reference in New Issue
Block a user