fix: include automations

feat: include all modbus varta readings
This commit is contained in:
Patrick 2025-01-11 19:00:08 +01:00
parent d999cb30aa
commit c6e3d087ab
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F

View file

@ -35,6 +35,19 @@
3001 3001
]; ];
}; };
networking.nftables.firewall.zones.devices.interfaces = [ "mv-devices" ];
networking.nftables.firewall = {
rules = {
homematic = {
from = [
"devices"
];
to = [ "local" ];
allowedTCPPorts = [ 45053 ];
};
};
};
services.home-assistant = { services.home-assistant = {
enable = true; enable = true;
extraComponents = [ extraComponents = [
@ -83,6 +96,7 @@
frontend = { frontend = {
#themes = "!include_dir_merge_named themes"; #themes = "!include_dir_merge_named themes";
}; };
"automation ui" = "!include automations.yaml";
# influxdb = { # influxdb = {
# api_version = 2; # api_version = 2;
@ -95,6 +109,7 @@
# organization = "home"; # organization = "home";
# bucket = "home_assistant"; # bucket = "home_assistant";
# }; # };
# Modbus Varta element backup # Modbus Varta element backup
modbus = { modbus = {
@ -253,6 +268,46 @@
device_class = "power"; device_class = "power";
unit_of_measurement = "W"; unit_of_measurement = "W";
} }
### Active Power Exponent;
{
name = "mb_varta_active_power_exponent";
slave = 1;
address = 2066;
data_type = "int16";
device_class = "power";
}
### Apparent Power Exponent;
{
name = "mb_varta_apparent_power_exponent";
slave = 1;
address = 2067;
data_type = "int16";
device_class = "power";
}
### Enegrey Counter Exponent;
{
name = "mb_varta_energy_counter_exponent";
slave = 1;
address = 2069;
data_type = "int16";
device_class = "power";
}
### Capacity Counter Exponent;
{
name = "mb_varta_capacity_exponent";
slave = 1;
address = 2071;
data_type = "int16";
device_class = "power";
}
### Grid Power Exponent;
{
name = "mb_varta_grid_power_exponent";
slave = 1;
address = 2078;
data_type = "int16";
device_class = "power";
}
]; ];
}; };