diff --git a/custom_components/luxtronik/const.py b/custom_components/luxtronik/const.py index e7bf86a..23924de 100644 --- a/custom_components/luxtronik/const.py +++ b/custom_components/luxtronik/const.py @@ -503,6 +503,7 @@ class LuxCalculation(StrEnum): # 254 Flow Rate C0257_CURRENT_HEAT_OUTPUT: Final = "calculations.Heat_Output" # 258 RBE Version + C0268_CURRENT_POWER_CONSUMPTION: Final = "calculations.Unknown_Calculation_268" # endregion Lux calculations @@ -606,6 +607,7 @@ class SensorKey(StrEnum): ANALOG_OUT1 = "analog_out1" ANALOG_OUT2 = "analog_out2" CURRENT_HEAT_OUTPUT = "current_heat_output" + CURRENT_POWER_CONSUMPTION = "current_power_consumption" PUMP_FREQUENCY = "pump_frequency" PUMP_FLOW_DELTA_TARGET = "pump_flow_delta_target" PUMP_FLOW_DELTA = "pump_flow_delta" diff --git a/custom_components/luxtronik/sensor_entities_predefined.py b/custom_components/luxtronik/sensor_entities_predefined.py index f06e669..8651de6 100644 --- a/custom_components/luxtronik/sensor_entities_predefined.py +++ b/custom_components/luxtronik/sensor_entities_predefined.py @@ -443,6 +443,17 @@ attr(SA.REMEDY, LC.C0100_ERROR_REASON), ), ), + descr( + key=SensorKey.CURRENT_POWER_CONSUMPTION, + luxtronik_key=LC.C0268_CURRENT_POWER_CONSUMPTION, + icon="mdi:lightning-bolt-circle", + state_class=SensorStateClass.MEASUREMENT, + device_class=SensorDeviceClass.POWER, + entity_category=EntityCategory.DIAGNOSTIC, + native_unit_of_measurement=UnitOfPower.WATT, + entity_registry_enabled_default=False, + native_precision=0, + ), # endregion Main heatpump # region Heating descr( diff --git a/custom_components/luxtronik/translations/de.json b/custom_components/luxtronik/translations/de.json index c57f816..8fe8d99 100644 --- a/custom_components/luxtronik/translations/de.json +++ b/custom_components/luxtronik/translations/de.json @@ -683,6 +683,9 @@ "current_heat_output": { "name": "Leistung Ist" }, + "current_power_consumption": { + "name": "Leistungsaufnahme" + }, "additional_heat_generator_amount_counter": { "name": "Zus\u00e4tzlicher W\u00e4rmeerzeuger W\u00e4rmemenge" }, diff --git a/custom_components/luxtronik/translations/en.json b/custom_components/luxtronik/translations/en.json index ba288b0..baf7708 100644 --- a/custom_components/luxtronik/translations/en.json +++ b/custom_components/luxtronik/translations/en.json @@ -195,13 +195,13 @@ "cooling_stop_delay_hours": { "name": "Stop delay" }, - "cooling_target_temperature_mk1": { + "cooling_target_temperature_mk1": { "name": "Cooling target temperature" }, - "cooling_target_temperature_mk2": { + "cooling_target_temperature_mk2": { "name": "Cooling target temperature" }, - "cooling_target_temperature_mk3": { + "cooling_target_temperature_mk3": { "name": "Cooling target temperature" }, "heat_source_input_temperature_min": { @@ -314,7 +314,7 @@ "remedy": { "name": "Remedy" } - }, + }, "switchoff_reason": { "name": "Switchoff reason", "state": { @@ -445,6 +445,9 @@ "current_heat_output": { "name": "Current heat output" }, + "current_power_consumption": { + "name": "Current power consumption" + }, "additional_heat_generator_amount_counter": { "name": "Additional heat generator amount counter" }, @@ -559,8 +562,8 @@ "user": { "description": "Set up your Luxtronik heatpump controller to allow monitoring and control.", "data": { - "host": "Host", - "port": "Network Port", + "host": "Host", + "port": "Network Port", "timeout": "Network socket timeout (Sec.)", "max_data_length": "Max data package length" }, @@ -570,8 +573,8 @@ "timeout": "If the network or the heatpump is slow, you can fine tune the timeout.", "max_data_length": "If the network or the heatpump is slow, you can fine tune the date package length." } - }, - "options": { + }, + "options": { "description": "Settings for the Luxtronik heatpump {name}.\nThese settings can also be changed later under Integrations.", "data": { "ha_sensor_indoor_temperature": "Sensor id for the indoor temperature", @@ -583,7 +586,7 @@ "control_mode_home_assistant": "When the Home Assistant Thermostat is in the Idle state, the Off state is reported to Luxtronik and Luxtronik cannot start this item.", "ha_sensor_prefix": "Important if several heat pumps are used.\nIn the case of a single one, 'luxtronik' can simply be used." } - } + } } }, "options": {