From c50cfed8130473030a503beebc1d417754c63828 Mon Sep 17 00:00:00 2001 From: "mike.toggweiler" Date: Thu, 21 Nov 2024 14:01:52 +0000 Subject: [PATCH] started creating translations and setting default enabled flag --- custom_components/askoheat/api_conf_desc.py | 2 + custom_components/askoheat/api_par_desc.py | 8 ++ .../askoheat/translations/en.json | 83 ++++++++++++++++++- 3 files changed, 90 insertions(+), 3 deletions(-) diff --git a/custom_components/askoheat/api_conf_desc.py b/custom_components/askoheat/api_conf_desc.py index 76944c5..4944f92 100644 --- a/custom_components/askoheat/api_conf_desc.py +++ b/custom_components/askoheat/api_conf_desc.py @@ -58,6 +58,7 @@ mode=NumberMode.BOX, icon="mdi:timelapse", api_descriptor=UnsignedIntRegisterInputDescriptor(0), + entity_registry_enabled_default=False, ), AskoheatNumberEntityDescription( key=NumberAttrKey.CON_PUMP_SEC_COUNT_SECONDS, @@ -70,6 +71,7 @@ mode=NumberMode.BOX, icon="mdi:timelapse", api_descriptor=UnsignedIntRegisterInputDescriptor(1), + entity_registry_enabled_default=False, ), AskoheatNumberEntityDescription( key=NumberAttrKey.CON_AUTO_HEATER_OFF_MINUTES, diff --git a/custom_components/askoheat/api_par_desc.py b/custom_components/askoheat/api_par_desc.py index 11b1d15..6dc406a 100644 --- a/custom_components/askoheat/api_par_desc.py +++ b/custom_components/askoheat/api_par_desc.py @@ -105,6 +105,7 @@ native_unit_of_measurement=UnitOfPower.WATT, device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT, entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, ), AskoheatSensorEntityDescription( key=SensorAttrKey.PAR_HEATER5_POWER, @@ -116,6 +117,7 @@ native_unit_of_measurement=UnitOfPower.WATT, device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT, entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, ), AskoheatSensorEntityDescription( key=SensorAttrKey.PAR_HEATER6_POWER, @@ -127,6 +129,7 @@ native_unit_of_measurement=UnitOfPower.WATT, device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT, entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, ), AskoheatSensorEntityDescription( key=SensorAttrKey.PAR_NUMBER_OF_STEPS, @@ -176,6 +179,7 @@ api_descriptor=FlagRegisterInputDescriptor(16, 2), device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT, entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, ), AskoheatBinarySensorEntityDescription( key=BinarySensorAttrKey.PAR_HEATER_TYPE_SCREW_IN, @@ -183,6 +187,7 @@ api_descriptor=FlagRegisterInputDescriptor(16, 3), device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT, entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, ), AskoheatBinarySensorEntityDescription( key=BinarySensorAttrKey.PAR_WIRED_AS_STAR_CONNECTION, @@ -190,6 +195,7 @@ api_descriptor=FlagRegisterInputDescriptor(16, 4), device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT, entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, ), AskoheatBinarySensorEntityDescription( key=BinarySensorAttrKey.PAR_WIRED_AS_DELTA_CONECTION, @@ -197,6 +203,7 @@ api_descriptor=FlagRegisterInputDescriptor(16, 5), device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT, entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, ), # bit 6 ignored AskoheatBinarySensorEntityDescription( @@ -204,6 +211,7 @@ api_descriptor=FlagRegisterInputDescriptor(16, 7), device_key=DeviceKey.WATER_HEATER_CONTROL_UNIT, entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, ), ], ) diff --git a/custom_components/askoheat/translations/en.json b/custom_components/askoheat/translations/en.json index d7f1c16..966f590 100644 --- a/custom_components/askoheat/translations/en.json +++ b/custom_components/askoheat/translations/en.json @@ -27,13 +27,70 @@ }, "binary_sensor": { "status.heater1": { - "name": "Status heater 1" + "name": "Heater 1" }, "status.heater2": { - "name": "Status heater 2" + "name": "Heater 2" }, "status.heater3": { - "name": "Status heater 3" + "name": "Heater 3" + }, + "status.pump": { + "name": "Pump" + }, + "status.relay_board_connected": { + "name": "Relay board connection" + }, + "status.emergency_mode": { + "name": "Emergency mode" + }, + "status.heat_pump_request": { + "name": "Heat pump request" + }, + "status.legionella_protection": { + "name": "Legionella protection" + }, + "status.analog_input": { + "name": "Analog input" + }, + "status.setpoint": { + "name": "Setpoint" + }, + "status.load_feedin": { + "name": "Load feedin" + }, + "status.autoheater": { + "name": "Auto-heater" + }, + "status.pump_relay_follow_up_time_active": { + "name": "Pump relay follow-up time active" + }, + "status.temp_limit_reached": { + "name": "Temp. limit reached" + }, + "status.error": { + "name": "Error" + }, + "type_3_stage_version": { + "name": "3 stage version" + }, + "type_7_stage_version": { + "name": "7 stage version" + }, + "heater_type_flange": { + "name": "Heater type flange" + }, + "heater_type_screw_in": { + "name": "Heater type screw-in" + }, + "wired_as_star_connection": { + "name": "Wired as star-connection" + }, + "wired_as_delta_connection": { + "name": "Wired as delta-connection" + }, + "oem_version": { + "name": "OEM Version" } }, "text": { @@ -41,5 +98,25 @@ "name": "Info string" } } + }, + "device": { + "modbus_master": { + "name": "Askoheat+ modbus master unit" + }, + "heat_pump_control_unit": { + "name": "Heat pump control unit" + }, + "analog_input_control_unit": { + "name": "Analog input control unit" + }, + "energy_manager": { + "name": "Energy manager unit" + }, + "water_heater_control_unit": { + "name": "Water heater unit" + }, + "legio_protection_control_unit": { + "name": "Legionella protection unit" + } } } \ No newline at end of file