Skip to content

Commit b9eb7bd

Browse files
committed
Added thermal power limit
1 parent 6476fd4 commit b9eb7bd

File tree

8 files changed

+119
-0
lines changed

8 files changed

+119
-0
lines changed

custom_components/luxtronik/const.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,10 @@ class LuxParameter(StrEnum):
461461
)
462462
P1158_POWER_LIMIT_SWITCH: Final = "parameters.Unknown_Parameter_1158"
463463
P1159_POWER_LIMIT_VALUE: Final = "parameters.Unknown_Parameter_1159"
464+
P1175_THERMAL_POWER_LIMIT_SWITCH: Final = "parameters.Unknown_Parameter_1175"
465+
P1176_THERMAL_POWER_LIMIT_HEATING: Final = "parameters.Unknown_Parameter_1176"
466+
P1177_THERMAL_POWER_LIMIT_WATER: Final = "parameters.Unknown_Parameter_1177"
467+
P1178_THERMAL_POWER_LIMIT_COOLING: Final = "parameters.Unknown_Parameter_1178"
464468

465469
P0731_AWAY_HEATING_STARTDATE: Final = "parameters.ID_SU_FstdHz"
466470
P0006_AWAY_HEATING_ENDDATE: Final = "parameters.ID_SU_FrkdHz"
@@ -760,6 +764,10 @@ class SensorKey(StrEnum):
760764
EFFICIENCY_PUMP_MINIMAL = "efficiency_pump_minimal"
761765
ELECTRICAL_POWER_LIMITATION_SWITCH = "electrical_power_limitation_switch"
762766
ELECTRICAL_POWER_LIMITATION_VALUE = "electrical_power_limitation_value"
767+
THERMAL_POWER_LIMITATION_SWITCH = "thermal_power_limitation_switch"
768+
THERMAL_POWER_LIMIT_HEATING = "thermal_power_limitation_heating"
769+
THERMAL_POWER_LIMIT_WATER = "thermal_power_limitation_water"
770+
THERMAL_POWER_LIMIT_COOLING = "thermal_power_limitation_cooling"
763771
PUMP_HEAT_CONTROL = "pump_heat_control"
764772
HEATING = "heating"
765773
PUMP_OPTIMIZATION = "pump_optimization"

custom_components/luxtronik/number_entities_predefined.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,45 @@
121121
native_max_value=30.0,
122122
native_step=0.1,
123123
),
124+
LuxtronikNumberDescription(
125+
key=SensorKey.THERMAL_POWER_LIMIT_HEATING,
126+
luxtronik_key=LP.P1176_THERMAL_POWER_LIMIT_HEATING,
127+
icon="mdi:heat-wave",
128+
device_class=SensorDeviceClass.POWER,
129+
entity_category=EntityCategory.CONFIG,
130+
native_unit_of_measurement=UnitOfPower.KILO_WATT,
131+
native_min_value=0.0,
132+
native_max_value=40.0,
133+
mode=NumberMode.BOX,
134+
native_step=0.5,
135+
factor=0.1,
136+
),
137+
LuxtronikNumberDescription(
138+
key=SensorKey.THERMAL_POWER_LIMIT_WATER,
139+
luxtronik_key=LP.P1177_THERMAL_POWER_LIMIT_WATER,
140+
icon="mdi:waves",
141+
device_class=SensorDeviceClass.POWER,
142+
entity_category=EntityCategory.CONFIG,
143+
native_unit_of_measurement=UnitOfPower.KILO_WATT,
144+
mode=NumberMode.BOX,
145+
native_min_value=0.0,
146+
native_max_value=40.0,
147+
native_step=0.5,
148+
factor=0.1,
149+
),
150+
LuxtronikNumberDescription(
151+
key=SensorKey.THERMAL_POWER_LIMIT_COOLING,
152+
luxtronik_key=LP.P1178_THERMAL_POWER_LIMIT_COOLING,
153+
icon="mdi:snowflake",
154+
device_class=SensorDeviceClass.POWER,
155+
mode=NumberMode.BOX,
156+
entity_category=EntityCategory.CONFIG,
157+
native_unit_of_measurement=UnitOfPower.KILO_WATT,
158+
native_min_value=0.0,
159+
native_max_value=40.0,
160+
native_step=0.5,
161+
factor=0.1,
162+
),
124163
# endregion Main heatpump
125164
# region Heating
126165
LuxtronikNumberDescription(

custom_components/luxtronik/switch_entities_predefined.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@
5252
visibility=LV.V0357_ELECTRICAL_POWER_LIMITATION_SWITCH,
5353
# min_firmware_version_minor=FirmwareVersionMinor.minor_90,
5454
),
55+
LuxtronikSwitchDescription(
56+
key=SensorKey.THERMAL_POWER_LIMITATION_SWITCH,
57+
luxtronik_key=LP.P1175_THERMAL_POWER_LIMIT_SWITCH,
58+
icon="mdi:download-lock",
59+
entity_category=EntityCategory.CONFIG,
60+
# min_firmware_version_minor=FirmwareVersionMinor.minor_90,
61+
),
5562
# LuxtronikSwitchDescription(
5663
# luxtronik_key=LP.P0870_AMOUNT_COUNTER_ACTIVE,
5764
# key="amount_counter_active",

custom_components/luxtronik/translations/cs.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
"electrical_power_limitation_switch": {
8181
"name": "Power limitation"
8282
},
83+
"thermal_power_limitation_switch": {
84+
"name": "Max. thermal power"
85+
},
8386
"pump_heat_control": {
8487
"name": "Ovl\u00e1d\u00e1n\u00ed \u010derpadla pro oh\u0159ev"
8588
},
@@ -123,6 +126,16 @@
123126
"electrical_power_limitation_value": {
124127
"name": "Power limit"
125128
},
129+
"thermal_power_limitation_heating": {
130+
"name": "Thermal power limit: Heating"
131+
},
132+
"thermal_power_limitation_water": {
133+
"name": "Thermal power limit: Water"
134+
}
135+
,
136+
"thermal_power_limitation_cooling": {
137+
"name": "Thermal power limit: Cooling"
138+
},
126139
"heating_threshold": {
127140
"name": "Teplotn\u00ed mez pro vyt\u00e1p\u011bn\u00ed"
128141
},

custom_components/luxtronik/translations/de.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
"electrical_power_limitation_switch": {
8181
"name": "Leistungsbegrenzung"
8282
},
83+
"thermal_power_limitation_switch": {
84+
"name": "Therm. Leistung max"
85+
},
8386
"pump_heat_control": {
8487
"name": "Pumpenheizkontrolle"
8588
},
@@ -123,6 +126,16 @@
123126
"electrical_power_limitation_value": {
124127
"name": "Leistungslimit"
125128
},
129+
"thermal_power_limitation_heating": {
130+
"name": "Therm. Leistung max: Heizung"
131+
},
132+
"thermal_power_limitation_water": {
133+
"name": "Therm. Leistung max: Warmwasser"
134+
}
135+
,
136+
"thermal_power_limitation_cooling": {
137+
"name": "Therm. Leistung max: Kühlung"
138+
},
126139
"heating_threshold": {
127140
"name": "Heizgrenze"
128141
},

custom_components/luxtronik/translations/en.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@
7777
"electrical_power_limitation_switch": {
7878
"name": "Power limitation"
7979
},
80+
"thermal_power_limitation_switch": {
81+
"name": "Max. thermal power"
82+
},
8083
"efficiency_pump": {
8184
"name": "Efficiency pump"
8285
},
@@ -126,6 +129,16 @@
126129
"electrical_power_limitation_value": {
127130
"name": "Power limit"
128131
},
132+
"thermal_power_limitation_heating": {
133+
"name": "Thermal power limit: Heating"
134+
},
135+
"thermal_power_limitation_water": {
136+
"name": "Thermal power limit: Water"
137+
}
138+
,
139+
"thermal_power_limitation_cooling": {
140+
"name": "Thermal power limit: Cooling"
141+
},
129142
"heating_threshold": {
130143
"name": "Heating threshold"
131144
},

custom_components/luxtronik/translations/nl.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
"electrical_power_limitation_switch": {
8181
"name": "Stroom limitatie"
8282
},
83+
"thermal_power_limitation_switch": {
84+
"name": "Max. thermal power"
85+
},
8386
"pump_heat_control": {
8487
"name": "Controle pompverwarming"
8588
},
@@ -123,6 +126,16 @@
123126
"electrical_power_limitation_value": {
124127
"name": "Stroom limiet"
125128
},
129+
"thermal_power_limitation_heating": {
130+
"name": "Thermal power limit: Heating"
131+
},
132+
"thermal_power_limitation_water": {
133+
"name": "Thermal power limit: Water"
134+
}
135+
,
136+
"thermal_power_limitation_cooling": {
137+
"name": "Thermal power limit: Cooling"
138+
},
126139
"heating_threshold": {
127140
"name": "Verwarmingslimiet"
128141
},

custom_components/luxtronik/translations/pl.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@
7777
"electrical_power_limitation_switch": {
7878
"name": "Power limitation"
7979
},
80+
"thermal_power_limitation_switch": {
81+
"name": "Max. thermal power"
82+
},
8083
"pump_heat_control": {
8184
"name": "Sterowanie ogrzewaniem pompy"
8285
},
@@ -123,6 +126,16 @@
123126
"electrical_power_limitation_value": {
124127
"name": "Power limit"
125128
},
129+
"thermal_power_limitation_heating": {
130+
"name": "Thermal power limit: Heating"
131+
},
132+
"thermal_power_limitation_water": {
133+
"name": "Thermal power limit: Water"
134+
}
135+
,
136+
"thermal_power_limitation_cooling": {
137+
"name": "Thermal power limit: Cooling"
138+
},
126139
"heating_target_correction": {
127140
"name": "Korekcja celu grzewczego"
128141
},

0 commit comments

Comments
 (0)