fix(homeassistant): remove deprecated zha configs

This commit is contained in:
Felix Schröter 2021-03-21 12:13:36 +01:00
parent afed40dfd9
commit b2629eccef
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58

View file

@ -77,7 +77,7 @@ in {
default_config = { }; default_config = { };
config = { }; config = { };
"automation editor" = "!include automations.yaml"; "automation editor" = "!include automations.yaml";
automation = {}; automation = { };
frontend = { }; frontend = { };
mobile_app = { }; mobile_app = { };
discovery = { }; discovery = { };
@ -85,14 +85,8 @@ in {
ssdp = { }; ssdp = { };
shopping_list = { }; shopping_list = { };
zha = { zha = {
usb_path = "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2197055-if00";
radio_type = "deconz";
database_path = "/var/lib/hass/zigbee.db"; database_path = "/var/lib/hass/zigbee.db";
zigpy_config = { zigpy_config = { ota = { ikea_provider = true; }; };
ota = {
ikea_provider = true;
};
};
}; };
mqtt = { mqtt = {
broker = "localhost"; broker = "localhost";
@ -107,23 +101,21 @@ in {
client_id = "!secret netatmo_client_id"; client_id = "!secret netatmo_client_id";
client_secret = "!secret netatmo_client_secret"; client_secret = "!secret netatmo_client_secret";
}; };
sensor = [ sensor = [{
{ platform = "template";
platform = "template"; sensors = {
sensors = { energy_total_usage = {
energy_total_usage = { friendly_name = "Total Energy Usage";
friendly_name = "Total Energy Usage"; unit_of_measurement = "kWh";
unit_of_measurement = "kWh"; value_template = ''
value_template = '' {{
{{ (states.sensor.outlet_computer_energy_total.state | float) +
(states.sensor.outlet_computer_energy_total.state | float) + (states.sensor.outlet_tv_energy_total.state | float)
(states.sensor.outlet_tv_energy_total.state | float) }}
}} '';
'';
};
}; };
} };
]; }];
utility_meter = { utility_meter = {
energy_total_usage_daily = { energy_total_usage_daily = {
source = "sensor.energy_total_usage"; source = "sensor.energy_total_usage";