iobroker.luxtronik2-controller 0.17.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -23
- package/build/copManager.js +28 -6
- package/build/copManager.js.map +2 -2
- package/build/hupManager.js +11 -0
- package/build/hupManager.js.map +2 -2
- package/build/main.js +13 -1
- package/build/main.js.map +2 -2
- package/build/mapping/settings.js +6 -2
- package/build/mapping/settings.js.map +2 -2
- package/build/virtualStates.js +8 -3
- package/build/virtualStates.js.map +2 -2
- package/io-package.json +27 -27
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/mapping/settings.ts"],
|
|
4
|
-
"sourcesContent": ["import type { StateDefinition } from '../stateMapping';\n\nexport const SETTINGS_MAPPING: Record<string, StateDefinition> = {\n\t// ==========================================\n\t// Settings 01 - 06 (Standard)\n\t// ==========================================\n\theating_operation_mode: {\n\t\tfolder: 'Settings.01_OperatingMode',\n\t\tname: 'Operating mode heating',\n\t\trole: 'level.mode.thermostat',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '3',\n\t\tstates: {\n\t\t\ten: { 0: 'Automatic', 1: 'Second heat gen.', 2: 'Party', 3: 'Holidays', 4: 'Off' },\n\t\t\tde: { 0: 'Automatik', 1: 'Zweiter Erzeuger', 2: 'Party', 3: 'Urlaub', 4: 'Aus' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\twarmwater_operation_mode: {\n\t\tfolder: 'Settings.01_OperatingMode',\n\t\tname: 'Operating mode hot water',\n\t\trole: 'level.mode.thermostat',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '4',\n\t\tstates: {\n\t\t\ten: { 0: 'Automatic', 1: 'Second heat gen.', 2: 'Party', 3: 'Holidays', 4: 'Off' },\n\t\t\tde: { 0: 'Automatik', 1: 'Zweiter Erzeuger', 2: 'Party', 3: 'Urlaub', 4: 'Aus' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\theating_curve_end_point: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating curve end point (Return)',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '11',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\theating_curve_parallel_offset: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating curve parallel offset',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '12',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\tdeltaHeatingReduction: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating night reduction (Delta)',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '13',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\theating_temperature: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating target temp offset',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '1',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\treturnTemperatureHysteresis: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Return temperature hysteresis',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '88',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\tthresholdHeatingLimit: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating limit temperature',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '700',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\theatingLimit: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating limit active',\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '699',\n\t\tdataSource: 'raw_parameter',\n\t},\n\tHeizen_nach_Wasser: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating by water active',\n\t\trole: 'sensor.switch',\n\t\ttype: 'boolean',\n\t\tisVirtual: true,\n\t\trequired: true,\n\t},\n\theating_control_mode: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Heating control mode', de: 'Heizung Regelungsart (Einst. 103)' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '103', // P0103_HEATING_CONTROL_CIRCUIT_MODE\n\t\tstates: {\n\t\t\ten: { 0: 'Heating curve', 1: 'Fixed temperature', 2: 'Analog In' },\n\t\t\tde: { 0: 'Heizkurve', 1: 'Feste Temperatur', 2: 'Analog In' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\theating_flow_out_temperature_target: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Fixed return temperature target', de: 'Feste R\u00FCcklaufsolltemperatur (Einst. 17)' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '17', // P0017_HEATING_FLOW_OUT_TEMPERATURE_TARGET\n\t\tfactor: 10,\n\t\tmin: 15,\n\t\tmax: 60,\n\t\tdataSource: 'raw_parameter',\n\t},\n\t// ==========================================\n\t// ZUSATZ: Heizung & Thermostate\n\t// ==========================================\n\troom_thermostat_type: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Room thermostat type', de: 'Raumthermostat Typ' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '33', // P0033\n\t\tstates: {\n\t\t\ten: { 0: 'None', 1: 'RFV', 2: 'RFV-K', 3: 'RFV-DK', 4: 'RBE', 5: 'Smart' },\n\t\t\tde: { 0: 'Keines', 1: 'RFV', 2: 'RFV-K', 3: 'RFV-DK', 4: 'RBE', 5: 'Smart' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\troom_temp_impact_factor: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Room temp impact factor', de: 'Raumtemperatur Einflussfaktor' },\n\t\trole: 'value',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '980',\n\t\tdataSource: 'raw_parameter', // P0980\n\t},\n\theating_target_temp_room_thermostat: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Target temp room thermostat', de: 'Zieltemperatur Raumthermostat' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '1148',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P1148\n\t},\n\theating_max_flow_out_increase: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Max flow out increase', de: 'Max. Vorlauf-\u00DCberh\u00F6hung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '89',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P0089\n\t},\n\t// ==========================================\n\t// ZUSATZ: Urlaubsprogramme\n\t// ==========================================\n\taway_heating_startdate: {\n\t\tfolder: 'Settings.02_Heating.Holiday',\n\t\tname: { en: 'Away heating start date', de: 'Urlaub Heizung Startdatum' },\n\t\trole: 'date',\n\t\ttype: 'string',\n\t\twrite: true,\n\t\tluxWriteId: '731',\n\t\tdataSource: 'raw_parameter', // P0731\n\t},\n\taway_heating_enddate: {\n\t\tfolder: 'Settings.02_Heating.Holiday',\n\t\tname: { en: 'Away heating end date', de: 'Urlaub Heizung Enddatum' },\n\t\trole: 'date',\n\t\ttype: 'string',\n\t\twrite: true,\n\t\tluxWriteId: '6',\n\t\tdataSource: 'raw_parameter', // P0006\n\t},\n\n\twarmwater_temperature: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: 'Hot water target (Deckung WP)',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '2',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\ttemperature_hot_water_target: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: 'Hot water target (Wunschwert)',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '105',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\thotWaterTemperatureHysteresis: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: 'Hot water hysteresis',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '74',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\t// ==========================================\n\t// ZUSATZ: Warmwasser (DHW)\n\t// ==========================================\n\tdhw_thermal_desinfection_target: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: { en: 'Thermal desinfection target', de: 'Zieltemperatur Therm. Desinfektion' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '47',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P0047\n\t},\n\tdhw_charging_pump_active: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: { en: 'DHW charging pump active', de: 'Warmwasser-Ladepumpe aktiv' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '85',\n\t\tdataSource: 'raw_parameter', // P0085\n\t},\n\tdhw_max_temperature: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: { en: 'Max DHW temperature', de: 'Maximale Warmwassertemperatur' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '973',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P0973\n\t},\n\tdhw_frequency_control: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: { en: 'DHW frequency control', de: 'Frequenzregelung Warmwasser' },\n\t\trole: 'value',\n\t\ttype: 'number',\n\t\tunit: 'Hz',\n\t\twrite: true,\n\t\tluxWriteId: '1045',\n\t\tdataSource: 'raw_parameter', // P1045\n\t},\n\textra_dhw_target_temperature: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: { en: 'Extra DHW target temperature', de: 'Extra Warmwasser Zieltemperatur' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '1146',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P1146\n\t},\n\textra_dhw_duration: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: { en: 'Extra DHW duration', de: 'Extra Warmwasser Dauer' },\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 'min',\n\t\twrite: true,\n\t\tluxWriteId: '1147',\n\t\tdataSource: 'raw_parameter', // P1147\n\t},\n\taway_dhw_startdate: {\n\t\tfolder: 'Settings.03_HotWater.Holiday',\n\t\tname: { en: 'Away DHW start date', de: 'Urlaub Warmwasser Startdatum' },\n\t\trole: 'date',\n\t\ttype: 'string',\n\t\twrite: true,\n\t\tluxWriteId: '732',\n\t\tdataSource: 'raw_parameter', // P0732\n\t},\n\taway_dhw_enddate: {\n\t\tfolder: 'Settings.03_HotWater.Holiday',\n\t\tname: { en: 'Away DHW end date', de: 'Urlaub Warmwasser Enddatum' },\n\t\trole: 'date',\n\t\ttype: 'string',\n\t\twrite: true,\n\t\tluxWriteId: '7',\n\t\tdataSource: 'raw_parameter', // P0007\n\t},\n\n\theating_system_circ_pump_voltage_nominal: {\n\t\tfolder: 'Settings.04_HUP',\n\t\tname: 'HUP nominal voltage',\n\t\trole: 'level.voltage',\n\t\ttype: 'number',\n\t\tunit: 'V',\n\t\twrite: true,\n\t\tluxWriteId: '867',\n\t\tfactor: 100,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\theating_system_circ_pump_voltage_minimal: {\n\t\tfolder: 'Settings.04_HUP',\n\t\tname: 'HUP minimal voltage',\n\t\trole: 'level.voltage',\n\t\ttype: 'number',\n\t\tunit: 'V',\n\t\twrite: true,\n\t\tluxWriteId: '868',\n\t\tfactor: 100,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\theating_max_circ_pump_speed: {\n\t\tfolder: 'Settings.04_HUP',\n\t\tname: { en: 'Max HUP speed', de: 'Max. Drehzahl HUP' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\tunit: '%',\n\t\twrite: true,\n\t\tluxWriteId: '1032',\n\t\tdataSource: 'raw_parameter', // P1032\n\t},\n\tpump_heat_control: {\n\t\tfolder: 'Settings.04_HUP',\n\t\tname: { en: 'Pump heat control', de: 'Pumpenregelung Heizung' },\n\t\trole: 'value',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '1033',\n\t\tdataSource: 'raw_parameter', // P1033\n\t},\n\n\trunDeaerate: {\n\t\tfolder: 'Settings.05_ZIP',\n\t\tname: 'Start deaeration program',\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '158',\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\thotWaterCircPumpDeaerate: {\n\t\tfolder: 'Settings.05_ZIP',\n\t\tname: 'Deaerate circulation pump',\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '684',\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\thotWaterCircPumpOnTime: {\n\t\tfolder: 'Settings.05_ZIP',\n\t\tname: 'Runtime ZIP active',\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 'min',\n\t\twrite: true,\n\t\tluxWriteId: '697',\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t\tvisiIndex: 59,\n\t},\n\thotWaterCircPumpOffTime: {\n\t\tfolder: 'Settings.05_ZIP',\n\t\tname: 'Runtime ZIP inactive',\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 'min',\n\t\twrite: true,\n\t\tluxWriteId: '698',\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t\tvisiIndex: 59,\n\t},\n\tzip_aktiv: {\n\t\tfolder: 'Settings.05_ZIP',\n\t\tname: 'ZIP duration (Normal)',\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 's',\n\t\twrite: true,\n\t\tisVirtual: true,\n\t\tdef: 120,\n\t\trequired: true,\n\t\tvisiIndex: 59,\n\t},\n\n\tPumpenoptimierung: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Pump optimization',\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '49',\n\t\tdataSource: 'raw_parameter',\n\t},\n\tPumpen_Nachlauf: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Pump run-on time',\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 'min',\n\t\twrite: true,\n\t\tluxWriteId: '864',\n\t\tdataSource: 'raw_parameter',\n\t},\n\ttemperature_supply_limit: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Supply temperature maximum',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '149',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\ttemperature_return_limit: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Return temp target minimum',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '87',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\ttemperature_outdoor_max: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Outside temperature maximum',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '91',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\ttemperature_outdoor_min: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Outside temperature minimum',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '92',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\ttemperature_ZWE_possible: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Release second heat generator',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '90',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 61,\n\t},\n\ttemperature_hot_water_limit: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Max. hot water temperature',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '47',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\tthresholdTemperatureSetBack: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Reduction until outside temp',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '111',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\treturnTemperatureTargetMin: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Min. return target temp',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '979',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\tefficiency_pump_active: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Efficiency pump active', de: 'Effizienzpumpe aktiv' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '869',\n\t\tdataSource: 'raw_parameter',\n\t},\n\t// ==========================================\n\t// ZUSATZ: System, Entl\u00FCftung & Limits\n\t// ==========================================\n\theat_source_input_temp_min: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Min heat source inlet temp', de: 'Min. W\u00E4rmequellen-Eintrittstemp.' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '93',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P0093\n\t},\n\tflow_in_temp_max_allowed: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Max allowed flow temp', de: 'Max. erlaubte Vorlauftemperatur' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '149',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P0149\n\t},\n\trelease_time_second_heat_generator: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Release time ZWE', de: 'Freigabezeit ZWE' },\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 'min',\n\t\twrite: true,\n\t\tluxWriteId: '992',\n\t\tdataSource: 'raw_parameter', // P0992\n\t},\n\tpower_limit_switch: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Electrical power limit switch', de: 'Elektr. Leistungsbegrenzung aktiv' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '1158',\n\t\tdataSource: 'raw_parameter', // P1158\n\t},\n\tpower_limit_value: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Electrical power limit value', de: 'Elektr. Leistungsbegrenzung' },\n\t\trole: 'value',\n\t\ttype: 'number',\n\t\tunit: 'A',\n\t\twrite: true,\n\t\tluxWriteId: '1159',\n\t\tdataSource: 'raw_parameter', // P1159\n\t},\n\tthermal_power_limit_switch: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Thermal power limit switch', de: 'Therm. Leistungsbegrenzung aktiv' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '1175',\n\t\tdataSource: 'raw_parameter', // P1175\n\t},\n\tthermal_power_limit_heating: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Thermal power limit heating', de: 'Therm. Leistungsbegr. Heizung' },\n\t\trole: 'value.power',\n\t\ttype: 'number',\n\t\tunit: 'kW',\n\t\twrite: true,\n\t\tluxWriteId: '1176',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P1176\n\t},\n\tthermal_power_limit_water: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Thermal power limit water', de: 'Therm. Leistungsbegr. Warmwasser' },\n\t\trole: 'value.power',\n\t\ttype: 'number',\n\t\tunit: 'kW',\n\t\twrite: true,\n\t\tluxWriteId: '1177',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P1177\n\t},\n\tthermal_power_limit_cooling: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Thermal power limit cooling', de: 'Therm. Leistungsbegr. K\u00FChlung' },\n\t\trole: 'value.power',\n\t\ttype: 'number',\n\t\tunit: 'kW',\n\t\twrite: true,\n\t\tluxWriteId: '1179',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 5, // P1179\n\t},\n\tis_twin: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Is Twin system', de: 'Twin-Anlage (Master/Slave)' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '1010',\n\t\tdataSource: 'raw_parameter', // P1010\n\t},\n\tremote_maintenance: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Remote maintenance active', de: 'Fernwartung' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '860',\n\t\tdataSource: 'raw_parameter', // P0860\n\t},\n\tlast_defrost_timestamp: {\n\t\tfolder: 'Information.12_SystemInfo',\n\t\tname: { en: 'Last defrost timestamp', de: 'Zeitstempel letztes Abtauen' },\n\t\trole: 'date',\n\t\ttype: 'string',\n\t\tluxWriteId: '1119',\n\t\tdataSource: 'raw_parameter', // P1119\n\t},\n\t// Entl\u00FCftung (Venting)\n\tventing_time_hours: {\n\t\tfolder: 'Settings.06_SystemSettings.Venting',\n\t\tname: { en: 'Venting time', de: 'Entl\u00FCftungsdauer' },\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 'h',\n\t\twrite: true,\n\t\tluxWriteId: '155',\n\t\tdataSource: 'raw_parameter', // P0155\n\t},\n\tventing_hup_active: {\n\t\tfolder: 'Settings.06_SystemSettings.Venting',\n\t\tname: { en: 'Venting HUP active', de: 'Entl\u00FCftung HUP aktiv' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '678',\n\t\tdataSource: 'raw_parameter', // P0678\n\t},\n\tventing_zup_active: {\n\t\tfolder: 'Settings.06_SystemSettings.Venting',\n\t\tname: { en: 'Venting ZUP active', de: 'Entl\u00FCftung ZUP aktiv' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '679',\n\t\tdataSource: 'raw_parameter', // P0679\n\t},\n\t// ==========================================\n\t// NACHTRAG: Photovoltaik Modus (P0119)\n\t// ==========================================\n\tpv_mode: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'PV operation mode', de: 'PV Betriebsart' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '119',\n\t\tstates: {\n\t\t\ten: { 0: 'Automatic', 1: 'PV_Off', 2: 'Pool_Off', 3: 'Pool_Party', 4: 'Pool_Holidays' },\n\t\t\tde: { 0: 'Automatik', 1: 'PV Aus', 2: 'Schwimmbad Aus', 3: 'Schwimmbad Party', 4: 'Schwimmbad Urlaub' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\n\t// ==========================================\n\t// Settings 08_MixingCircuits\n\t// ==========================================\n\theating_curve_circuit1_end_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK1',\n\t\tname: { en: 'Heating curve MK1 end temp', de: 'Heizkurve MK1 Endpunkt' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '14',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 7,\n\t},\n\theating_curve_circuit1_parallel_shift_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK1',\n\t\tname: { en: 'Heating curve MK1 parallel shift', de: 'Heizkurve MK1 Verschiebung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '15',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 7,\n\t},\n\theating_curve_circuit2_end_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK2',\n\t\tname: { en: 'Heating curve MK2 end temp', de: 'Heizkurve MK2 Endpunkt' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '141',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 8,\n\t},\n\theating_curve_circuit2_parallel_shift_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK2',\n\t\tname: { en: 'Heating curve MK2 parallel shift', de: 'Heizkurve MK2 Verschiebung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '142',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 8,\n\t},\n\theating_curve_circuit3_end_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK3',\n\t\tname: { en: 'Heating curve MK3 end temp', de: 'Heizkurve MK3 Endpunkt' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '774',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 211,\n\t},\n\theating_curve_circuit3_parallel_shift_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK3',\n\t\tname: { en: 'Heating curve MK3 parallel shift', de: 'Heizkurve MK3 Verschiebung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '775',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 211,\n\t},\n\t// ==========================================\n\t// ZUSATZ: Mischkreis-Typen (Settings)\n\t// ==========================================\n\tmixing_circuit1_type: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK1',\n\t\tname: { en: 'Mixing circuit 1 type', de: 'Mischkreis 1 Typ' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '42',\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 7, // P0042\n\t},\n\tmode_heating_mk1: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK1',\n\t\tname: { en: 'Operating mode MK1', de: 'Betriebsart Heizung MK1' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '695',\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 7, // P0695\n\t},\n\tmixing_circuit2_type: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK2',\n\t\tname: { en: 'Mixing circuit 2 type', de: 'Mischkreis 2 Typ' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '130',\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 8, // P0130\n\t},\n\tmode_heating_mk2: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK2',\n\t\tname: { en: 'Operating mode MK2', de: 'Betriebsart Heizung MK2' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '696',\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 8, // P0696\n\t},\n\tmixing_circuit3_type: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK3',\n\t\tname: { en: 'Mixing circuit 3 type', de: 'Mischkreis 3 Typ' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '780',\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 211, // P0780\n\t},\n\tmode_heating_mk3: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK3',\n\t\tname: { en: 'Operating mode MK3', de: 'Betriebsart Heizung MK3' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '779',\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 211, // P0779\n\t},\n\t// ==========================================\n\t// NACHTRAG: Heizkurven Nachtabsenkung MK1-3\n\t// ==========================================\n\theating_curve_circuit1_night_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK1',\n\t\tname: { en: 'Heating curve MK1 night temp', de: 'Heizkurve MK1 Nachtabsenkung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '16',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 7,\n\t},\n\theating_curve_circuit2_night_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK2',\n\t\tname: { en: 'Heating curve MK2 night temp', de: 'Heizkurve MK2 Nachtabsenkung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '143',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 8,\n\t},\n\theating_curve_circuit3_night_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK3',\n\t\tname: { en: 'Heating curve MK3 night temp', de: 'Heizkurve MK3 Nachtabsenkung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '776',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 211,\n\t},\n\n\t// ==========================================\n\t// Settings 09_Ventilation, 10_Solar & 11_SmartGrid\n\t// ==========================================\n\tventilation_mode: {\n\t\tfolder: 'Settings.09_Ventilation',\n\t\tname: { en: 'Ventilation operation mode', de: 'L\u00FCftung Betriebsart' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '894',\n\t\tstates: {\n\t\t\ten: { 0: 'Automatic', 1: 'Party', 2: 'Holidays', 3: 'Off' },\n\t\t\tde: { 0: 'Automatik', 1: 'Party', 2: 'Urlaub', 3: 'Aus' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\t// ==========================================\n\t// NACHTRAG: L\u00FCftungs-Stufen (DIN 1946-6)\n\t// ==========================================\n\tventilation_stage_humidity_protection: {\n\t\tfolder: 'Settings.09_Ventilation',\n\t\tname: { en: 'Ventilation humidity protection', de: 'L\u00FCftungsstufe Feuchteschutz' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: false,\n\t\tluxWriteId: '960',\n\t\tdataSource: 'raw_parameter',\n\t},\n\tventilation_stage_reduced: {\n\t\tfolder: 'Settings.09_Ventilation',\n\t\tname: { en: 'Ventilation reduced', de: 'L\u00FCftungsstufe Reduziert' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: false,\n\t\tluxWriteId: '961',\n\t\tdataSource: 'raw_parameter',\n\t},\n\tventilation_stage_nominal: {\n\t\tfolder: 'Settings.09_Ventilation',\n\t\tname: { en: 'Ventilation nominal', de: 'L\u00FCftungsstufe Nennl\u00FCftung' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: false,\n\t\tluxWriteId: '962',\n\t\tdataSource: 'raw_parameter',\n\t},\n\tventilation_stage_intensive: {\n\t\tfolder: 'Settings.09_Ventilation',\n\t\tname: { en: 'Ventilation intensive', de: 'L\u00FCftungsstufe Intensiv' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: false,\n\t\tluxWriteId: '963',\n\t\tdataSource: 'raw_parameter',\n\t},\n\n\tsolar_mode: {\n\t\tfolder: 'Settings.10_Solar',\n\t\tname: { en: 'Solar operation mode', de: 'Solar Betriebsart' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '881',\n\t\tstates: {\n\t\t\ten: { 0: 'Automatic', 1: 'Off', 2: 'Party', 3: 'Holidays' },\n\t\t\tde: { 0: 'Automatik', 1: 'Aus', 2: 'Party', 3: 'Urlaub' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 250,\n\t},\n\t// ==========================================\n\t// NACHTRAG: Solar Details (P122, P123, P124, P883)\n\t// ==========================================\n\tsolar_pump_on_difference_temperature: {\n\t\tfolder: 'Settings.10_Solar',\n\t\tname: { en: 'Solar pump ON diff', de: 'Solarpumpe EIN Differenz' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '122',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 250,\n\t},\n\tsolar_pump_off_difference_temperature: {\n\t\tfolder: 'Settings.10_Solar',\n\t\tname: { en: 'Solar pump OFF diff', de: 'Solarpumpe AUS Differenz' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '123',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 250,\n\t},\n\tsolar_pump_off_max_difference_temperature_boiler: {\n\t\tfolder: 'Settings.10_Solar',\n\t\tname: { en: 'Solar max diff boiler', de: 'Solar Max. Differenz Speicher' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '124',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 250,\n\t},\n\tsolar_pump_max_temperature_collector: {\n\t\tfolder: 'Settings.10_Solar',\n\t\tname: { en: 'Solar max temp collector', de: 'Solar Max. Kollektortemperatur' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '883',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 250,\n\t},\n\n\tsmart_grid_switch: {\n\t\tfolder: 'Settings.11_SmartGrid',\n\t\tname: 'Smart Grid Mode',\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '1030',\n\t\tstates: {\n\t\t\ten: { 0: 'Off', 1: 'Plus/Minus', 2: 'SG 1.0', 3: 'SG 1.1' },\n\t\t\tde: { 0: 'Aus', 1: 'Plus/Minus', 2: 'SG 1.0', 3: 'SG 1.1' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\tsmart_grid_heating_reduction: {\n\t\tfolder: 'Settings.11_SmartGrid',\n\t\tname: { en: 'Smart Grid Heating Reduction', de: 'Smart Grid Heizung Absenkung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '1120',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\tsmart_grid_heating_increase: {\n\t\tfolder: 'Settings.11_SmartGrid',\n\t\tname: { en: 'Smart Grid Heating Increase', de: 'Smart Grid Heizung Anhebung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '1121',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\tsmart_grid_dhw_increase: {\n\t\tfolder: 'Settings.11_SmartGrid',\n\t\tname: { en: 'Smart Grid DHW Increase', de: 'Smart Grid Warmwasser Anhebung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '1122',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\t// ==========================================\n\t// NACHTRAG: K\u00FChlung MK Zieltemperaturen\n\t// ==========================================\n\tcooling_target_temperature_mk1: {\n\t\tfolder: 'Settings.12_Cooling',\n\t\tname: { en: 'Cooling target temp MK1', de: 'K\u00FChlung Solltemperatur MK1' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '132',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 7,\n\t},\n\tcooling_target_temperature_mk2: {\n\t\tfolder: 'Settings.12_Cooling',\n\t\tname: { en: 'Cooling target temp MK2', de: 'K\u00FChlung Solltemperatur MK2' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '133',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 8,\n\t},\n\tcooling_target_temperature_mk3: {\n\t\tfolder: 'Settings.12_Cooling',\n\t\tname: { en: 'Cooling target temp MK3', de: 'K\u00FChlung Solltemperatur MK3' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '966',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 211,\n\t},\n\tcooling_min_flow_out_temperature: {\n\t\tfolder: 'Settings.12_Cooling',\n\t\tname: { en: 'Cooling min flow temp', de: 'K\u00FChlung min. Vorlauftemperatur' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '993',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 5,\n\t},\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,mBAAoD;AAAA;AAAA;AAAA;AAAA,EAIhE,wBAAwB;AAAA,IACvB,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,QAAQ;AAAA,MACP,IAAI,EAAE,GAAG,aAAa,GAAG,oBAAoB,GAAG,SAAS,GAAG,YAAY,GAAG,MAAM;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,IAAI,2BAA2B,IAAI,gCAA6B;AAAA,IACxE,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,WAAW;AAAA,EACZ;AAAA,EACA,gCAAgC;AAAA,IAC/B,QAAQ;AAAA,IACR,MAAM,EAAE,IAAI,2BAA2B,IAAI,gCAA6B;AAAA,IACxE,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,WAAW;AAAA,EACZ;AAAA,EACA,gCAAgC;AAAA,IAC/B,QAAQ;AAAA,IACR,MAAM,EAAE,IAAI,2BAA2B,IAAI,gCAA6B;AAAA,IACxE,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,WAAW;AAAA,EACZ;AAAA,EACA,kCAAkC;AAAA,IACjC,QAAQ;AAAA,IACR,MAAM,EAAE,IAAI,yBAAyB,IAAI,oCAAiC;AAAA,IAC1E,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,WAAW;AAAA,EACZ;AACD;",
|
|
4
|
+
"sourcesContent": ["import type { StateDefinition } from '../stateMapping';\n\nexport const SETTINGS_MAPPING: Record<string, StateDefinition> = {\n\t// ==========================================\n\t// Settings 01 - 06 (Standard)\n\t// ==========================================\n\theating_operation_mode: {\n\t\tfolder: 'Settings.01_OperatingMode',\n\t\tname: 'Operating mode heating',\n\t\trole: 'level.mode.thermostat',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '3',\n\t\tstates: {\n\t\t\ten: { 0: 'Automatic', 1: 'Second heat gen.', 2: 'Party', 3: 'Holidays', 4: 'Off' },\n\t\t\tde: { 0: 'Automatik', 1: 'Zweiter Erzeuger', 2: 'Party', 3: 'Urlaub', 4: 'Aus' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\twarmwater_operation_mode: {\n\t\tfolder: 'Settings.01_OperatingMode',\n\t\tname: 'Operating mode hot water',\n\t\trole: 'level.mode.thermostat',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '4',\n\t\tstates: {\n\t\t\ten: { 0: 'Automatic', 1: 'Second heat gen.', 2: 'Party', 3: 'Holidays', 4: 'Off' },\n\t\t\tde: { 0: 'Automatik', 1: 'Zweiter Erzeuger', 2: 'Party', 3: 'Urlaub', 4: 'Aus' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\theating_curve_end_point: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating curve end point (Return)',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '11',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\theating_curve_parallel_offset: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating curve parallel offset',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '12',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\tdeltaHeatingReduction: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating night reduction (Delta)',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '13',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\theating_temperature: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating target temp offset',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '1',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\treturnTemperatureHysteresis: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Return temperature hysteresis',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '88',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\tthresholdHeatingLimit: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating limit temperature',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '700',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\theatingLimit: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating limit active',\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '699',\n\t\tdataSource: 'raw_parameter',\n\t},\n\tHeizen_nach_Wasser: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: 'Heating by water active',\n\t\trole: 'sensor.switch',\n\t\ttype: 'boolean',\n\t\tisVirtual: true,\n\t\trequired: true,\n\t},\n\theating_control_mode: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Heating control mode', de: 'Heizung Regelungsart (Einst. 103)' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '103', // P0103_HEATING_CONTROL_CIRCUIT_MODE\n\t\tstates: {\n\t\t\ten: { 0: 'Heating curve', 1: 'Fixed temperature', 2: 'Analog In' },\n\t\t\tde: { 0: 'Heizkurve', 1: 'Feste Temperatur', 2: 'Analog In' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\theating_flow_out_temperature_target: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Fixed return temperature target', de: 'Feste R\u00FCcklaufsolltemperatur (Einst. 17)' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '17', // P0017_HEATING_FLOW_OUT_TEMPERATURE_TARGET\n\t\tfactor: 10,\n\t\tmin: 15,\n\t\tmax: 60,\n\t\tdataSource: 'raw_parameter',\n\t},\n\t// ==========================================\n\t// ZUSATZ: Heizung & Thermostate\n\t// ==========================================\n\troom_thermostat_type: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Room thermostat type', de: 'Raumthermostat Typ' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '33', // P0033\n\t\tstates: {\n\t\t\ten: { 0: 'None', 1: 'RFV', 2: 'RFV-K', 3: 'RFV-DK', 4: 'RBE', 5: 'Smart' },\n\t\t\tde: { 0: 'Keines', 1: 'RFV', 2: 'RFV-K', 3: 'RFV-DK', 4: 'RBE', 5: 'Smart' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\troom_temp_impact_factor: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Room temp impact factor', de: 'Raumtemperatur Einflussfaktor' },\n\t\trole: 'value',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '980',\n\t\tdataSource: 'raw_parameter', // P0980\n\t},\n\theating_target_temp_room_thermostat: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Target temp room thermostat', de: 'Zieltemperatur Raumthermostat' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '1148',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P1148\n\t},\n\theating_max_flow_out_increase: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Max flow out increase', de: 'Max. Vorlauf-\u00DCberh\u00F6hung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '89',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P0089\n\t},\n\t// ==========================================\n\t// ZUSATZ: Urlaubsprogramme\n\t// ==========================================\n\taway_heating_startdate: {\n\t\tfolder: 'Settings.02_Heating.Holiday',\n\t\tname: { en: 'Away heating start date', de: 'Urlaub Heizung Startdatum' },\n\t\trole: 'date',\n\t\ttype: 'string',\n\t\twrite: true,\n\t\tluxWriteId: '731',\n\t\tdataSource: 'raw_parameter', // P0731\n\t},\n\taway_heating_enddate: {\n\t\tfolder: 'Settings.02_Heating.Holiday',\n\t\tname: { en: 'Away heating end date', de: 'Urlaub Heizung Enddatum' },\n\t\trole: 'date',\n\t\ttype: 'string',\n\t\twrite: true,\n\t\tluxWriteId: '6',\n\t\tdataSource: 'raw_parameter', // P0006\n\t},\n\n\twarmwater_temperature: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: 'Hot water target (Deckung WP)',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '2',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\ttemperature_hot_water_target: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: 'Hot water target (Wunschwert)',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '105',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\thotWaterTemperatureHysteresis: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: 'Hot water hysteresis',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '74',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\t// ==========================================\n\t// ZUSATZ: Warmwasser (DHW)\n\t// ==========================================\n\tdhw_thermal_desinfection_target: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: { en: 'Thermal desinfection target', de: 'Zieltemperatur Therm. Desinfektion' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '47',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P0047\n\t},\n\tdhw_charging_pump_active: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: { en: 'DHW charging pump active', de: 'Warmwasser-Ladepumpe aktiv' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '85',\n\t\tdataSource: 'raw_parameter', // P0085\n\t},\n\tdhw_max_temperature: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: { en: 'Max DHW temperature', de: 'Maximale Warmwassertemperatur' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '973',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P0973\n\t},\n\tdhw_frequency_control: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: { en: 'DHW frequency control', de: 'Frequenzregelung Warmwasser' },\n\t\trole: 'value',\n\t\ttype: 'number',\n\t\tunit: 'Hz',\n\t\twrite: true,\n\t\tluxWriteId: '1045',\n\t\tdataSource: 'raw_parameter', // P1045\n\t},\n\textra_dhw_target_temperature: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: { en: 'Extra DHW target temperature', de: 'Extra Warmwasser Zieltemperatur' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '1146',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P1146\n\t},\n\textra_dhw_duration: {\n\t\tfolder: 'Settings.03_HotWater',\n\t\tname: { en: 'Extra DHW duration', de: 'Extra Warmwasser Dauer' },\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 'min',\n\t\twrite: true,\n\t\tluxWriteId: '1147',\n\t\tdataSource: 'raw_parameter', // P1147\n\t},\n\taway_dhw_startdate: {\n\t\tfolder: 'Settings.03_HotWater.Holiday',\n\t\tname: { en: 'Away DHW start date', de: 'Urlaub Warmwasser Startdatum' },\n\t\trole: 'date',\n\t\ttype: 'string',\n\t\twrite: true,\n\t\tluxWriteId: '732',\n\t\tdataSource: 'raw_parameter', // P0732\n\t},\n\taway_dhw_enddate: {\n\t\tfolder: 'Settings.03_HotWater.Holiday',\n\t\tname: { en: 'Away DHW end date', de: 'Urlaub Warmwasser Enddatum' },\n\t\trole: 'date',\n\t\ttype: 'string',\n\t\twrite: true,\n\t\tluxWriteId: '7',\n\t\tdataSource: 'raw_parameter', // P0007\n\t},\n\n\theating_system_circ_pump_voltage_nominal: {\n\t\tfolder: 'Settings.04_HUP',\n\t\tname: 'HUP nominal voltage',\n\t\trole: 'level.voltage',\n\t\ttype: 'number',\n\t\tunit: 'V',\n\t\twrite: true,\n\t\tluxWriteId: '867',\n\t\tfactor: 100,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t\tmin: 0,\n\t\tmax: 10,\n\t},\n\theating_system_circ_pump_voltage_minimal: {\n\t\tfolder: 'Settings.04_HUP',\n\t\tname: 'HUP minimal voltage',\n\t\trole: 'level.voltage',\n\t\ttype: 'number',\n\t\tunit: 'V',\n\t\twrite: true,\n\t\tluxWriteId: '868',\n\t\tfactor: 100,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t\tmin: 0,\n\t\tmax: 10,\n\t},\n\theating_max_circ_pump_speed: {\n\t\tfolder: 'Settings.04_HUP',\n\t\tname: { en: 'Max HUP speed', de: 'Max. Drehzahl HUP' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\tunit: '%',\n\t\twrite: true,\n\t\tluxWriteId: '1032',\n\t\tdataSource: 'raw_parameter', // P1032\n\t},\n\tpump_heat_control: {\n\t\tfolder: 'Settings.04_HUP',\n\t\tname: { en: 'Pump heat control', de: 'Pumpenregelung Heizung' },\n\t\trole: 'value',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '1033',\n\t\tdataSource: 'raw_parameter', // P1033\n\t},\n\n\trunDeaerate: {\n\t\tfolder: 'Settings.05_ZIP',\n\t\tname: 'Start deaeration program',\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '158',\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\thotWaterCircPumpDeaerate: {\n\t\tfolder: 'Settings.05_ZIP',\n\t\tname: 'Deaerate circulation pump',\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '684',\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\thotWaterCircPumpOnTime: {\n\t\tfolder: 'Settings.05_ZIP',\n\t\tname: 'Runtime ZIP active',\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 'min',\n\t\twrite: true,\n\t\tluxWriteId: '697',\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t\tvisiIndex: 59,\n\t},\n\thotWaterCircPumpOffTime: {\n\t\tfolder: 'Settings.05_ZIP',\n\t\tname: 'Runtime ZIP inactive',\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 'min',\n\t\twrite: true,\n\t\tluxWriteId: '698',\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t\tvisiIndex: 59,\n\t},\n\tzip_aktiv: {\n\t\tfolder: 'Settings.05_ZIP',\n\t\tname: 'ZIP duration (Normal)',\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 's',\n\t\twrite: true,\n\t\tisVirtual: true,\n\t\tdef: 120,\n\t\trequired: true,\n\t\tvisiIndex: 59,\n\t},\n\n\tPumpenoptimierung: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Pump optimization',\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '49',\n\t\tdataSource: 'raw_parameter',\n\t},\n\tPumpen_Nachlauf: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Pump run-on time',\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 'min',\n\t\twrite: true,\n\t\tluxWriteId: '864',\n\t\tdataSource: 'raw_parameter',\n\t},\n\ttemperature_supply_limit: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Supply temperature maximum',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '149',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\ttemperature_return_limit: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Return temp target minimum',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '87',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\ttemperature_outdoor_max: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Outside temperature maximum',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '91',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\ttemperature_outdoor_min: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Outside temperature minimum',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '92',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\trequired: true,\n\t},\n\ttemperature_ZWE_possible: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Release second heat generator',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '90',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 61,\n\t},\n\ttemperature_hot_water_limit: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Max. hot water temperature',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '47',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\tthresholdTemperatureSetBack: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Reduction until outside temp',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '111',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\treturnTemperatureTargetMin: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: 'Min. return target temp',\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '979',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\tefficiency_pump_active: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Efficiency pump active', de: 'Effizienzpumpe aktiv' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '869',\n\t\tdataSource: 'raw_parameter',\n\t},\n\t// ==========================================\n\t// ZUSATZ: System, Entl\u00FCftung & Limits\n\t// ==========================================\n\theat_source_input_temp_min: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Min heat source inlet temp', de: 'Min. W\u00E4rmequellen-Eintrittstemp.' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '93',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P0093\n\t},\n\tflow_in_temp_max_allowed: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Max allowed flow temp', de: 'Max. erlaubte Vorlauftemperatur' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '149',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P0149\n\t},\n\trelease_time_second_heat_generator: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Release time ZWE', de: 'Freigabezeit ZWE' },\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 'min',\n\t\twrite: true,\n\t\tluxWriteId: '992',\n\t\tdataSource: 'raw_parameter', // P0992\n\t},\n\tpower_limit_switch: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Electrical power limit switch', de: 'Elektr. Leistungsbegrenzung aktiv' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '1158',\n\t\tdataSource: 'raw_parameter', // P1158\n\t},\n\tpower_limit_value: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Electrical power limit value', de: 'Elektr. Leistungsbegrenzung' },\n\t\trole: 'value',\n\t\ttype: 'number',\n\t\tunit: 'A',\n\t\twrite: true,\n\t\tluxWriteId: '1159',\n\t\tdataSource: 'raw_parameter', // P1159\n\t},\n\tthermal_power_limit_switch: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Thermal power limit switch', de: 'Therm. Leistungsbegrenzung aktiv' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '1175',\n\t\tdataSource: 'raw_parameter', // P1175\n\t},\n\tthermal_power_limit_heating: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Thermal power limit heating', de: 'Therm. Leistungsbegr. Heizung' },\n\t\trole: 'value.power',\n\t\ttype: 'number',\n\t\tunit: 'kW',\n\t\twrite: true,\n\t\tluxWriteId: '1176',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P1176\n\t},\n\tthermal_power_limit_water: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Thermal power limit water', de: 'Therm. Leistungsbegr. Warmwasser' },\n\t\trole: 'value.power',\n\t\ttype: 'number',\n\t\tunit: 'kW',\n\t\twrite: true,\n\t\tluxWriteId: '1177',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter', // P1177\n\t},\n\tthermal_power_limit_cooling: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Thermal power limit cooling', de: 'Therm. Leistungsbegr. K\u00FChlung' },\n\t\trole: 'value.power',\n\t\ttype: 'number',\n\t\tunit: 'kW',\n\t\twrite: true,\n\t\tluxWriteId: '1179',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 5, // P1179\n\t},\n\tis_twin: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Is Twin system', de: 'Twin-Anlage (Master/Slave)' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '1010',\n\t\tdataSource: 'raw_parameter', // P1010\n\t},\n\tremote_maintenance: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'Remote maintenance active', de: 'Fernwartung' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '860',\n\t\tdataSource: 'raw_parameter', // P0860\n\t},\n\tlast_defrost_timestamp: {\n\t\tfolder: 'Information.12_SystemInfo',\n\t\tname: { en: 'Last defrost timestamp', de: 'Zeitstempel letztes Abtauen' },\n\t\trole: 'date',\n\t\ttype: 'string',\n\t\tluxWriteId: '1119',\n\t\tdataSource: 'raw_parameter', // P1119\n\t},\n\t// Entl\u00FCftung (Venting)\n\tventing_time_hours: {\n\t\tfolder: 'Settings.06_SystemSettings.Venting',\n\t\tname: { en: 'Venting time', de: 'Entl\u00FCftungsdauer' },\n\t\trole: 'level.timer',\n\t\ttype: 'number',\n\t\tunit: 'h',\n\t\twrite: true,\n\t\tluxWriteId: '155',\n\t\tdataSource: 'raw_parameter', // P0155\n\t},\n\tventing_hup_active: {\n\t\tfolder: 'Settings.06_SystemSettings.Venting',\n\t\tname: { en: 'Venting HUP active', de: 'Entl\u00FCftung HUP aktiv' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '678',\n\t\tdataSource: 'raw_parameter', // P0678\n\t},\n\tventing_zup_active: {\n\t\tfolder: 'Settings.06_SystemSettings.Venting',\n\t\tname: { en: 'Venting ZUP active', de: 'Entl\u00FCftung ZUP aktiv' },\n\t\trole: 'switch',\n\t\ttype: 'boolean',\n\t\twrite: true,\n\t\tluxWriteId: '679',\n\t\tdataSource: 'raw_parameter', // P0679\n\t},\n\t// ==========================================\n\t// NACHTRAG: Photovoltaik Modus (P0119)\n\t// ==========================================\n\tpv_mode: {\n\t\tfolder: 'Settings.06_SystemSettings',\n\t\tname: { en: 'PV operation mode', de: 'PV Betriebsart' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '119',\n\t\tstates: {\n\t\t\ten: { 0: 'Automatic', 1: 'PV_Off', 2: 'Pool_Off', 3: 'Pool_Party', 4: 'Pool_Holidays' },\n\t\t\tde: { 0: 'Automatik', 1: 'PV Aus', 2: 'Schwimmbad Aus', 3: 'Schwimmbad Party', 4: 'Schwimmbad Urlaub' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\n\t// ==========================================\n\t// Settings 08_MixingCircuits\n\t// ==========================================\n\theating_curve_circuit1_end_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK1',\n\t\tname: { en: 'Heating curve MK1 end temp', de: 'Heizkurve MK1 Endpunkt' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '14',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 7,\n\t},\n\theating_curve_circuit1_parallel_shift_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK1',\n\t\tname: { en: 'Heating curve MK1 parallel shift', de: 'Heizkurve MK1 Verschiebung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '15',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 7,\n\t},\n\theating_curve_circuit2_end_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK2',\n\t\tname: { en: 'Heating curve MK2 end temp', de: 'Heizkurve MK2 Endpunkt' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '141',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 8,\n\t},\n\theating_curve_circuit2_parallel_shift_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK2',\n\t\tname: { en: 'Heating curve MK2 parallel shift', de: 'Heizkurve MK2 Verschiebung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '142',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 8,\n\t},\n\theating_curve_circuit3_end_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK3',\n\t\tname: { en: 'Heating curve MK3 end temp', de: 'Heizkurve MK3 Endpunkt' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '774',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 211,\n\t},\n\theating_curve_circuit3_parallel_shift_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK3',\n\t\tname: { en: 'Heating curve MK3 parallel shift', de: 'Heizkurve MK3 Verschiebung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '775',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 211,\n\t},\n\t// ==========================================\n\t// ZUSATZ: Mischkreis-Typen (Settings)\n\t// ==========================================\n\tmixing_circuit1_type: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK1',\n\t\tname: { en: 'Mixing circuit 1 type', de: 'Mischkreis 1 Typ' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '42',\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 7, // P0042\n\t},\n\tmode_heating_mk1: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK1',\n\t\tname: { en: 'Operating mode MK1', de: 'Betriebsart Heizung MK1' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '695',\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 7, // P0695\n\t},\n\tmixing_circuit2_type: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK2',\n\t\tname: { en: 'Mixing circuit 2 type', de: 'Mischkreis 2 Typ' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '130',\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 8, // P0130\n\t},\n\tmode_heating_mk2: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK2',\n\t\tname: { en: 'Operating mode MK2', de: 'Betriebsart Heizung MK2' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '696',\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 8, // P0696\n\t},\n\tmixing_circuit3_type: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK3',\n\t\tname: { en: 'Mixing circuit 3 type', de: 'Mischkreis 3 Typ' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '780',\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 211, // P0780\n\t},\n\tmode_heating_mk3: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK3',\n\t\tname: { en: 'Operating mode MK3', de: 'Betriebsart Heizung MK3' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '779',\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 211, // P0779\n\t},\n\t// ==========================================\n\t// NACHTRAG: Heizkurven Nachtabsenkung MK1-3\n\t// ==========================================\n\theating_curve_circuit1_night_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK1',\n\t\tname: { en: 'Heating curve MK1 night temp', de: 'Heizkurve MK1 Nachtabsenkung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '16',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 7,\n\t},\n\theating_curve_circuit2_night_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK2',\n\t\tname: { en: 'Heating curve MK2 night temp', de: 'Heizkurve MK2 Nachtabsenkung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '143',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 8,\n\t},\n\theating_curve_circuit3_night_temperature: {\n\t\tfolder: 'Settings.08_MixingCircuits.MK3',\n\t\tname: { en: 'Heating curve MK3 night temp', de: 'Heizkurve MK3 Nachtabsenkung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '776',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 211,\n\t},\n\n\t// ==========================================\n\t// Settings 09_Ventilation, 10_Solar & 11_SmartGrid\n\t// ==========================================\n\tventilation_mode: {\n\t\tfolder: 'Settings.09_Ventilation',\n\t\tname: { en: 'Ventilation operation mode', de: 'L\u00FCftung Betriebsart' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '894',\n\t\tstates: {\n\t\t\ten: { 0: 'Automatic', 1: 'Party', 2: 'Holidays', 3: 'Off' },\n\t\t\tde: { 0: 'Automatik', 1: 'Party', 2: 'Urlaub', 3: 'Aus' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\t// ==========================================\n\t// NACHTRAG: L\u00FCftungs-Stufen (DIN 1946-6)\n\t// ==========================================\n\tventilation_stage_humidity_protection: {\n\t\tfolder: 'Settings.09_Ventilation',\n\t\tname: { en: 'Ventilation humidity protection', de: 'L\u00FCftungsstufe Feuchteschutz' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: false,\n\t\tluxWriteId: '960',\n\t\tdataSource: 'raw_parameter',\n\t},\n\tventilation_stage_reduced: {\n\t\tfolder: 'Settings.09_Ventilation',\n\t\tname: { en: 'Ventilation reduced', de: 'L\u00FCftungsstufe Reduziert' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: false,\n\t\tluxWriteId: '961',\n\t\tdataSource: 'raw_parameter',\n\t},\n\tventilation_stage_nominal: {\n\t\tfolder: 'Settings.09_Ventilation',\n\t\tname: { en: 'Ventilation nominal', de: 'L\u00FCftungsstufe Nennl\u00FCftung' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: false,\n\t\tluxWriteId: '962',\n\t\tdataSource: 'raw_parameter',\n\t},\n\tventilation_stage_intensive: {\n\t\tfolder: 'Settings.09_Ventilation',\n\t\tname: { en: 'Ventilation intensive', de: 'L\u00FCftungsstufe Intensiv' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: false,\n\t\tluxWriteId: '963',\n\t\tdataSource: 'raw_parameter',\n\t},\n\n\tsolar_mode: {\n\t\tfolder: 'Settings.10_Solar',\n\t\tname: { en: 'Solar operation mode', de: 'Solar Betriebsart' },\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '881',\n\t\tstates: {\n\t\t\ten: { 0: 'Automatic', 1: 'Off', 2: 'Party', 3: 'Holidays' },\n\t\t\tde: { 0: 'Automatik', 1: 'Aus', 2: 'Party', 3: 'Urlaub' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 250,\n\t},\n\t// ==========================================\n\t// NACHTRAG: Solar Details (P122, P123, P124, P883)\n\t// ==========================================\n\tsolar_pump_on_difference_temperature: {\n\t\tfolder: 'Settings.10_Solar',\n\t\tname: { en: 'Solar pump ON diff', de: 'Solarpumpe EIN Differenz' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '122',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 250,\n\t},\n\tsolar_pump_off_difference_temperature: {\n\t\tfolder: 'Settings.10_Solar',\n\t\tname: { en: 'Solar pump OFF diff', de: 'Solarpumpe AUS Differenz' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '123',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 250,\n\t},\n\tsolar_pump_off_max_difference_temperature_boiler: {\n\t\tfolder: 'Settings.10_Solar',\n\t\tname: { en: 'Solar max diff boiler', de: 'Solar Max. Differenz Speicher' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '124',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 250,\n\t},\n\tsolar_pump_max_temperature_collector: {\n\t\tfolder: 'Settings.10_Solar',\n\t\tname: { en: 'Solar max temp collector', de: 'Solar Max. Kollektortemperatur' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '883',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 250,\n\t},\n\n\tsmart_grid_switch: {\n\t\tfolder: 'Settings.11_SmartGrid',\n\t\tname: 'Smart Grid Mode',\n\t\trole: 'level',\n\t\ttype: 'number',\n\t\twrite: true,\n\t\tluxWriteId: '1030',\n\t\tstates: {\n\t\t\ten: { 0: 'Off', 1: 'Plus/Minus', 2: 'SG 1.0', 3: 'SG 1.1' },\n\t\t\tde: { 0: 'Aus', 1: 'Plus/Minus', 2: 'SG 1.0', 3: 'SG 1.1' },\n\t\t},\n\t\tdataSource: 'raw_parameter',\n\t},\n\tsmart_grid_heating_reduction: {\n\t\tfolder: 'Settings.11_SmartGrid',\n\t\tname: { en: 'Smart Grid Heating Reduction', de: 'Smart Grid Heizung Absenkung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '1120',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\tsmart_grid_heating_increase: {\n\t\tfolder: 'Settings.11_SmartGrid',\n\t\tname: { en: 'Smart Grid Heating Increase', de: 'Smart Grid Heizung Anhebung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '1121',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\tsmart_grid_dhw_increase: {\n\t\tfolder: 'Settings.11_SmartGrid',\n\t\tname: { en: 'Smart Grid DHW Increase', de: 'Smart Grid Warmwasser Anhebung' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: 'K',\n\t\twrite: true,\n\t\tluxWriteId: '1122',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t},\n\t// ==========================================\n\t// NACHTRAG: K\u00FChlung MK Zieltemperaturen\n\t// ==========================================\n\tcooling_target_temperature_mk1: {\n\t\tfolder: 'Settings.12_Cooling',\n\t\tname: { en: 'Cooling target temp MK1', de: 'K\u00FChlung Solltemperatur MK1' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '132',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 7,\n\t},\n\tcooling_target_temperature_mk2: {\n\t\tfolder: 'Settings.12_Cooling',\n\t\tname: { en: 'Cooling target temp MK2', de: 'K\u00FChlung Solltemperatur MK2' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '133',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 8,\n\t},\n\tcooling_target_temperature_mk3: {\n\t\tfolder: 'Settings.12_Cooling',\n\t\tname: { en: 'Cooling target temp MK3', de: 'K\u00FChlung Solltemperatur MK3' },\n\t\trole: 'level.temperature',\n\t\ttype: 'number',\n\t\tunit: '\u00B0C',\n\t\twrite: true,\n\t\tluxWriteId: '966',\n\t\tfactor: 10,\n\t\tdataSource: 'raw_parameter',\n\t\tvisiIndex: 211,\n\t},\n\tcooling_min_flow_out_temperature: {\n\t\tfolder: 'Settings.12_Cooling',\n\t\tname: { en: 'Cooling min flow temp', de: 'K\u00FChlung min. Vorlauftemperatur' },\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Z;AAAA,EACA,kCAAkC;AAAA,IACjC,QAAQ;AAAA,IACR,MAAM,EAAE,IAAI,yBAAyB,IAAI,oCAAiC;AAAA,IAC1E,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,IACN,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,WAAW;AAAA,EACZ;AACD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/build/virtualStates.js
CHANGED
|
@@ -35,13 +35,18 @@ var import_objectManager = require("./objectManager");
|
|
|
35
35
|
var import_stateMapping = require("./stateMapping");
|
|
36
36
|
async function calculateSum(adapter, sourceId1, sourceId2, targetId, logName) {
|
|
37
37
|
try {
|
|
38
|
-
const [state1, state2] = await Promise.all([
|
|
38
|
+
const [state1, state2, currentState] = await Promise.all([
|
|
39
39
|
adapter.getStateAsync(sourceId1),
|
|
40
|
-
adapter.getStateAsync(sourceId2)
|
|
40
|
+
adapter.getStateAsync(sourceId2),
|
|
41
|
+
adapter.getStateAsync(targetId)
|
|
41
42
|
]);
|
|
42
43
|
const val1 = state1 && typeof state1.val === "number" ? state1.val : 0;
|
|
43
44
|
const val2 = state2 && typeof state2.val === "number" ? state2.val : 0;
|
|
44
|
-
|
|
45
|
+
const newSum = val1 + val2;
|
|
46
|
+
const currentVal = currentState && typeof currentState.val === "number" ? currentState.val : 0;
|
|
47
|
+
if (newSum >= currentVal) {
|
|
48
|
+
await adapter.setStateChangedAsync(targetId, newSum, true);
|
|
49
|
+
}
|
|
45
50
|
} catch (err) {
|
|
46
51
|
const msg = err instanceof Error ? err.message : String(err);
|
|
47
52
|
(0, import_logger.writeLog)(`Error calculating ${logName}: ${msg}`, "error");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/virtualStates.ts"],
|
|
4
|
-
"sourcesContent": ["import type { AdapterInstance } from '@iobroker/adapter-core';\nimport { ERROR_CODES, HP_TYPES, OUTAGE_CODES, STATE_HEATING, STATE_LINE_1, STATE_LINE_2, STATE_LINE_3 } from './codes';\nimport { writeLog } from './logger';\nimport { sanitizeName } from './objectManager';\nimport { getDpPath, getLuxIdByKey } from './stateMapping';\n\n// ==========================================\n// CALCULATIONS (DRY-Principle)\n// ==========================================\n\n/**\n * Universal helper function to add two values from the ioBroker state tree.\n *\n * @param adapter - ioBroker adapter instance\n * @param sourceId1 - Path of the first source state\n * @param sourceId2 - Path of the second source state\n * @param targetId - Path of the target state where the result will be written\n * @param logName - Name used for log entries\n * @returns A promise resolving after the addition completes\n */\nasync function calculateSum(\n\tadapter: AdapterInstance,\n\tsourceId1: string,\n\tsourceId2: string,\n\ttargetId: string,\n\tlogName: string,\n): Promise<void> {\n\ttry {\n\t\tconst [state1, state2] = await Promise.all([\n\t\t\tadapter.getStateAsync(sourceId1),\n\t\t\tadapter.getStateAsync(sourceId2),\n\t\t]);\n\n\t\tconst val1 = state1 && typeof state1.val === 'number' ? state1.val : 0;\n\t\tconst val2 = state2 && typeof state2.val === 'number' ? state2.val : 0;\n\n\t\tawait adapter.setStateChangedAsync(targetId, val1 + val2, true);\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error calculating ${logName}: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Calculates the total thermal energy (heating + hot water) and writes it to the target state.\n *\n * @param adapter - ioBroker adapter instance\n * @returns A promise resolving upon completion\n */\nexport async function calculateTotalThermalEnergy(adapter: AdapterInstance): Promise<void> {\n\tawait calculateSum(\n\t\tadapter,\n\t\tgetDpPath('thermalenergy_heating'),\n\t\tgetDpPath('thermalenergy_warmwater'),\n\t\tgetDpPath('thermalenergy_total'),\n\t\t'Total Thermal Energy',\n\t);\n}\n\n/**\n * Calculates the total energy consumed (heating + hot water) and writes it to the target state.\n *\n * @param adapter - ioBroker adapter instance\n * @returns A promise resolving upon completion\n */\nexport async function calculateTotalEnergy(adapter: AdapterInstance): Promise<void> {\n\tawait calculateSum(\n\t\tadapter,\n\t\tgetDpPath('energy_heating'),\n\t\tgetDpPath('energy_warmwater'),\n\t\tgetDpPath('energy_total'),\n\t\t'Total Energy',\n\t);\n}\n\n// ==========================================\n// HISTORY & LOGS (DRY-Principle)\n// ==========================================\n\n/**\n * Structure of an entry in the error or outage history.\n */\ninterface HistoryEntry {\n\t/** The code of the registered error or outage */\n\tcode: number;\n\t/** The clear text description of the code */\n\tbeschreibung: string;\n\t/** The formatted date of occurrence */\n\tdatum: string;\n\t/** The raw Unix timestamp */\n\ttimestamp: number;\n}\n\n/**\n * Internal helper function to generate error and outage histories.\n *\n * @param adapter The adapter instance.\n * @param rawValues The raw values from the heat pump.\n * @param timeStartIndex Index of the first timestamp in the raw data.\n * @param codeStartIndex Index of the first code in the raw data.\n * @param targetStateId The ioBroker ID where the JSON should be written.\n * @param fallbackPrefix Fallback text for unknown codes.\n * @param codeMap The dictionary mapping codes to readable text.\n * @returns A promise resolving upon completion\n */\nasync function updateHistory(\n\tadapter: AdapterInstance,\n\trawValues: number[],\n\ttimeStartIndex: number,\n\tcodeStartIndex: number,\n\ttargetStateId: string,\n\tfallbackPrefix: string,\n\tcodeMap: Record<number, string>,\n): Promise<void> {\n\ttry {\n\t\tconst historyList: HistoryEntry[] = [];\n\n\t\tfor (let i = 0; i < 5; i++) {\n\t\t\tconst code = rawValues[codeStartIndex + i];\n\t\t\tconst timestamp = rawValues[timeStartIndex + i];\n\n\t\t\tif (timestamp !== undefined && timestamp > 0) {\n\t\t\t\tconst date = new Date(timestamp * 1000);\n\t\t\t\tconst formattedDate = date.toISOString().replace('T', ' ').substring(0, 19);\n\n\t\t\t\tlet beschreibung = `${fallbackPrefix} (${code})`;\n\t\t\t\tif (codeMap[code] !== undefined) {\n\t\t\t\t\tbeschreibung = codeMap[code];\n\t\t\t\t}\n\n\t\t\t\thistoryList.push({\n\t\t\t\t\tcode: code,\n\t\t\t\t\tbeschreibung: beschreibung,\n\t\t\t\t\tdatum: formattedDate,\n\t\t\t\t\ttimestamp: timestamp,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\thistoryList.sort((a, b) => b.timestamp - a.timestamp);\n\n\t\tconst cleanList = historyList.map((entry, idx) => ({\n\t\t\tindex: idx + 1,\n\t\t\tcode: entry.code,\n\t\t\tbeschreibung: entry.beschreibung,\n\t\t\tdatum: entry.datum,\n\t\t\ttimestamp: entry.timestamp,\n\t\t}));\n\t\tconst jsonStr = JSON.stringify(cleanList);\n\n\t\tconst result = await adapter.setStateChangedAsync(targetStateId, { val: jsonStr, ack: true });\n\t\tif (result && (result as any).numChanges > 0) {\n\t\t\twriteLog(`History for ${targetStateId} updated from raw data.`, 'info');\n\t\t}\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error updating history: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Updates the error history with the latest error codes.\n *\n * @param adapter - The adapter instance.\n * @param rawValues - The raw values from the device.\n * @returns A promise resolving upon completion\n */\nexport async function updateErrorHistory(adapter: AdapterInstance, rawValues: number[]): Promise<void> {\n\tconst config = adapter.config as any;\n\tconst lang = config.language === 'de' ? 'de' : 'en';\n\tconst dpPath = getDpPath('Fehlerspeicher');\n\n\tif (dpPath) {\n\t\tconst fallback = lang === 'de' ? 'Unbekannter Fehler' : 'Unknown error';\n\t\tconst codeMap = ERROR_CODES[lang] || ERROR_CODES.en;\n\t\tawait updateHistory(adapter, rawValues, 95, 100, dpPath, fallback, codeMap);\n\t}\n}\n\n/**\n * Updates the outage history with the latest outage codes.\n *\n * @param adapter - The adapter instance.\n * @param rawValues - The raw values from the device.\n * @returns A promise resolving upon completion\n */\nexport async function updateOutageHistory(adapter: AdapterInstance, rawValues: number[]): Promise<void> {\n\tconst config = adapter.config as any;\n\tconst lang = config.language === 'de' ? 'de' : 'en';\n\tconst dpPath = getDpPath('Abschaltungen');\n\n\tif (dpPath) {\n\t\tconst fallback = lang === 'de' ? 'Unbekannte Abschaltung' : 'Unknown outage';\n\t\tconst codeMap = OUTAGE_CODES[lang] || OUTAGE_CODES.en;\n\t\tawait updateHistory(adapter, rawValues, 111, 106, dpPath, fallback, codeMap);\n\t}\n}\n\n/**\n * Calculates the temperature spread between supply and return temperatures.\n *\n * @param adapter - The adapter instance.\n * @returns A promise resolving upon completion\n */\nexport async function calculateTemperatureSpread(adapter: AdapterInstance): Promise<void> {\n\ttry {\n\t\tconst vorlaufPath = getDpPath('temperature_supply');\n\t\tconst ruecklaufPath = getDpPath('temperature_return');\n\n\t\tif (!vorlaufPath || !ruecklaufPath) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst [vorlaufState, ruecklaufState] = await Promise.all([\n\t\t\tadapter.getStateAsync(vorlaufPath),\n\t\t\tadapter.getStateAsync(ruecklaufPath),\n\t\t]);\n\n\t\tif (vorlaufState && ruecklaufState && vorlaufState.val !== null && ruecklaufState.val !== null) {\n\t\t\tconst spreizung = parseFloat((Number(vorlaufState.val) - Number(ruecklaufState.val)).toFixed(2));\n\t\t\tconst targetSpreadPath = getDpPath('spreizung_vorlauf_ruecklauf');\n\t\t\tif (targetSpreadPath) {\n\t\t\t\tawait adapter.setStateChangedAsync(targetSpreadPath, spreizung, true);\n\t\t\t}\n\t\t}\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error calculating temperature spread: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Updates the status strings based on raw sensor values and parameters.\n *\n * @param adapter - The adapter instance.\n * @param rawValues - The raw values array from the Luxtronik device.\n * @param rawParams - The raw parameters array from the Luxtronik device.\n * @returns A promise resolving upon completion\n */\nexport async function updateStatusStrings(\n\tadapter: AdapterInstance,\n\trawValues: number[],\n\trawParams: number[],\n): Promise<void> {\n\ttry {\n\t\tconst config = adapter.config as any;\n\t\tconst lang = config.language === 'de' ? 'de' : 'en';\n\n\t\t// ==========================================\n\t\t// 1. ZEIT- UND DAUERBERECHNUNG (GLOBAL)\n\t\t// ==========================================\n\t\tlet zeitSec = rawValues[120];\n\t\tconst codeZ1 = rawValues[117];\n\t\tconst codeZ3 = rawValues[119];\n\t\tconst isModernFirmware = (codeZ1 === undefined || codeZ1 === 0) && (codeZ3 === undefined || codeZ3 === 0);\n\n\t\t// FW 3.x Fallback: Wenn zeitSec fehlt, berechnen wir es aus der letzten Status\u00E4nderung\n\t\tif (isModernFirmware && (zeitSec === undefined || zeitSec === 0)) {\n\t\t\tconst bzState = await adapter.getStateAsync(getDpPath('WP_BZ_akt'));\n\t\t\tif (bzState && bzState.lc) {\n\t\t\t\tzeitSec = Math.floor((Date.now() - bzState.lc) / 1000);\n\t\t\t} else {\n\t\t\t\tzeitSec = 0;\n\t\t\t}\n\t\t}\n\n\t\t// HH:MM:SS Format (z.B. f\u00FCr FW 2.x und heatpump_duration)\n\t\tconst h = Math.floor((zeitSec || 0) / 3600);\n\t\tconst m = Math.floor(((zeitSec || 0) % 3600) / 60);\n\t\tconst s = (zeitSec || 0) % 60;\n\t\tconst zeitStringDuration = `${h.toString().padStart(2, '0')}:${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;\n\n\t\t// Ausgeschriebenes Format (z.B. f\u00FCr FW 3.x und K\u00FChlung)\n\t\tconst hText = lang === 'de' ? (h === 1 ? 'Stunde' : 'Stunden') : h === 1 ? 'hour' : 'hours';\n\t\tconst mText = lang === 'de' ? (m === 1 ? 'Minute' : 'Minuten') : m === 1 ? 'minute' : 'minutes';\n\t\tconst sText = lang === 'de' ? (s === 1 ? 'Sekunde' : 'Sekunden') : s === 1 ? 'second' : 'seconds';\n\t\tconst zeitStringText = `${h} ${hText} ${m} ${mText} ${s} ${sText}`;\n\n\t\t// ==========================================\n\t\t// 2. STATUS HEIZUNG BERECHNEN\n\t\t// ==========================================\n\t\tconst line1Map = STATE_LINE_1[lang] || STATE_LINE_1.en;\n\t\tconst line2Map = STATE_LINE_2[lang] || STATE_LINE_2.en;\n\t\tconst line3Map = STATE_LINE_3[lang] || STATE_LINE_3.en;\n\t\tconst stateHeatingMap = STATE_HEATING[lang] || STATE_HEATING.en;\n\n\t\tconst Absenkung = (rawParams[getLuxIdByKey('deltaHeatingReduction')] ?? 0) / 10;\n\t\tconst AbsenkungMax = (rawParams[getLuxIdByKey('thresholdTemperatureSetBack')] ?? 0) / 10;\n\t\tconst R\u00FCcklaufSollMin = (rawParams[getLuxIdByKey('returnTemperatureTargetMin')] ?? 15) / 10;\n\t\tconst BetriebsartHeizung = rawParams[getLuxIdByKey('heating_operation_mode')] ?? 0;\n\t\tconst Au\u00DFentemperatur = (rawValues[getLuxIdByKey('temperature_outside')] ?? 0) / 10;\n\t\tconst HeatingLimit = rawParams[getLuxIdByKey('heatingLimit')] ?? 0;\n\t\tconst opStateHeatingVal = rawValues[getLuxIdByKey('opStateHeating')] ?? 3;\n\t\tconst Mitteltemperatur = (rawValues[getLuxIdByKey('Mitteltemperatur')] ?? 15) / 10;\n\t\tconst thresholdHeatingLimit = (rawParams[getLuxIdByKey('thresholdHeatingLimit')] ?? 15) / 10;\n\t\tconst temperature_target_return = (rawValues[getLuxIdByKey('temperature_target_return')] ?? 15) / 10;\n\n\t\t// NEU: Parallelverschiebung auslesen\n\t\tconst Parallelverschiebung = (rawParams[getLuxIdByKey('heating_temperature')] ?? 0) / 10;\n\n\t\tlet heatingStr = stateHeatingMap[opStateHeatingVal] || `Unknown (${opStateHeatingVal})`;\n\n\t\tif (opStateHeatingVal === 2) {\n\t\t\theatingStr += ` (Target ${R\u00FCcklaufSollMin} \u00B0C)`;\n\t\t} else if (opStateHeatingVal === 4) {\n\t\t\theatingStr += ` (Target 20 \u00B0C)`;\n\t\t} else if (opStateHeatingVal === 0 || opStateHeatingVal === 1) {\n\t\t\t// Pr\u00FCfen, ob eigentlich Heizgrenze / Frostschutz aktiv ist\n\t\t\tif (HeatingLimit === 1 && Mitteltemperatur > thresholdHeatingLimit) {\n\t\t\t\tif (Au\u00DFentemperatur < 10) {\n\t\t\t\t\tconst textFrost = lang === 'de' ? 'Frostschutz' : 'Frost protection';\n\t\t\t\t\theatingStr = `${textFrost} ${temperature_target_return} \u00B0C`;\n\t\t\t\t} else {\n\t\t\t\t\tconst text = lang === 'de' ? 'Heizgrenze' : 'Heating limit';\n\t\t\t\t\theatingStr = `${text} ${temperature_target_return} \u00B0C`;\n\t\t\t\t}\n\t\t\t} else if (opStateHeatingVal === 0) {\n\t\t\t\t// Zustand 0: Laut Luxtronik-Uhrzeit befindet sich die Anlage im \"Absenk\"-Zeitfenster\n\t\t\t\tif (Absenkung !== 0) {\n\t\t\t\t\t// Es ist wirklich eine Absenkung konfiguriert\n\t\t\t\t\tconst vorzeichen = Absenkung > 0 ? '-' : '+';\n\t\t\t\t\theatingStr = `${stateHeatingMap[0]} ${vorzeichen}${Math.abs(Absenkung)} \u00B0C`;\n\t\t\t\t} else {\n\t\t\t\t\t// Absenkung steht auf 0K (Anlage l\u00E4uft einfach regul\u00E4r weiter)\n\t\t\t\t\theatingStr = lang === 'de' ? 'Normal (Zeitprogramm)' : 'Normal (Timer)';\n\t\t\t\t}\n\t\t\t} else if (opStateHeatingVal === 1) {\n\t\t\t\t// Zustand 1: Laut Luxtronik-Uhrzeit befindet sich die Anlage im \"Normal\"-Zeitfenster\n\t\t\t\theatingStr = stateHeatingMap[1] || 'Normal';\n\n\t\t\t\t// Zusatzinfo: War die Anlage eigentlich abgesenkt, heizt aber wegen der Au\u00DFentemperatur trotzdem normal?\n\t\t\t\tif (BetriebsartHeizung === 0 && Au\u00DFentemperatur < AbsenkungMax) {\n\t\t\t\t\tconst textNormal = lang === 'de' ? ' da AT' : ' because outside temp';\n\t\t\t\t\theatingStr += `${textNormal} < ${AbsenkungMax} \u00B0C`;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// H\u00E4nge die Parallelverschiebung an, sofern konfiguriert und kein Frostschutz aktiv\n\t\t\tif (Parallelverschiebung !== 0 && !(HeatingLimit === 1 && Mitteltemperatur > thresholdHeatingLimit)) {\n\t\t\t\tconst vorzeichen = Parallelverschiebung > 0 ? '+' : '';\n\t\t\t\theatingStr += ` (Offset ${vorzeichen}${Parallelverschiebung} \u00B0C)`;\n\t\t\t}\n\t\t}\n\n\t\tconst dpHeating = getDpPath('opStateHeatingString');\n\t\tif (dpHeating) {\n\t\t\tawait adapter.setStateChangedAsync(dpHeating, heatingStr, true);\n\t\t}\n\n\t\t// ==========================================\n\t\t// 3. ERWEITERTE STATUS-TEXTE (DISPLAY)\n\t\t// ==========================================\n\t\tlet stateStr = 'Unknown';\n\t\tlet extStateStr = 'Unknown';\n\n\t\tif (!isModernFirmware) {\n\t\t\t// Alte Firmware\n\t\t\tconst codeZ2 = rawValues[118];\n\t\t\tstateStr = line3Map[codeZ3] || 'Unknown';\n\n\t\t\tif (line1Map[codeZ1]) {\n\t\t\t\tconst textZ2 = line2Map[codeZ2] || '';\n\t\t\t\textStateStr = `${line1Map[codeZ1]} ${textZ2} ${zeitStringDuration}`.trim();\n\t\t\t}\n\t\t} else {\n\t\t\t// Moderne Firmware 3.x\n\t\t\tconst bzMapEn: Record<number, string> = {\n\t\t\t\t0: 'Heating operation',\n\t\t\t\t1: 'Hot water',\n\t\t\t\t2: 'Swimming pool / Photovoltaics',\n\t\t\t\t3: 'Lock time',\n\t\t\t\t4: 'Defrosting',\n\t\t\t\t5: 'No demand',\n\t\t\t\t6: 'Ext. heat source',\n\t\t\t\t7: 'Cooling',\n\t\t\t};\n\t\t\tconst bzMapDe: Record<number, string> = {\n\t\t\t\t0: 'Heizbetrieb',\n\t\t\t\t1: 'Warmwasser',\n\t\t\t\t2: 'Schwimmbad / PV',\n\t\t\t\t3: 'EVU-Sperre',\n\t\t\t\t4: 'Abtauen',\n\t\t\t\t5: 'Kein Bedarf',\n\t\t\t\t6: 'Zweiter Erzeuger',\n\t\t\t\t7: 'K\u00FChlbetrieb',\n\t\t\t};\n\t\t\tconst bzMap = lang === 'de' ? bzMapDe : bzMapEn;\n\n\t\t\tconst currentStateCode = rawValues[getLuxIdByKey('WP_BZ_akt')] ?? 5;\n\t\t\tstateStr = bzMap[currentStateCode] || `Status ${currentStateCode}`;\n\n\t\t\tconst isRunning = [0, 1, 2, 4, 6, 7].includes(currentStateCode);\n\t\t\tconst line1Text = isRunning ? line1Map[0] || 'Heat pump running' : line1Map[1] || 'Heat pump idle';\n\t\t\tconst line2Text = line2Map[0] || 'since';\n\n\t\t\textStateStr = `${line1Text} ${line2Text} ${zeitStringText}`;\n\n\t\t\tconst dpDuration = getDpPath('heatpump_duration');\n\t\t\tif (dpDuration) {\n\t\t\t\tawait adapter.setStateChangedAsync(dpDuration, zeitStringDuration, true);\n\t\t\t}\n\t\t}\n\n\t\tconst dpExtState = getDpPath('heatpump_extendet_state_string');\n\t\tif (dpExtState) {\n\t\t\tawait adapter.setStateChangedAsync(dpExtState, stateStr, true);\n\t\t}\n\n\t\tconst dpState = getDpPath('heatpump_state_string');\n\t\tif (dpState) {\n\t\t\tawait adapter.setStateChangedAsync(dpState, extStateStr, true);\n\t\t}\n\n\t\t// ==========================================\n\t\t// 4. STATUS WARMWASSER\n\t\t// ==========================================\n\t\tconst hotWaterBoilerValve = rawValues[getLuxIdByKey('hotWaterBoilerValve')] || 0;\n\t\tconst opStateHotWaterOriginal = rawValues[124];\n\t\tlet hotWaterStr = 'Unknown';\n\n\t\tif (opStateHotWaterOriginal === 0) {\n\t\t\thotWaterStr = lang === 'de' ? 'Sperrzeit' : 'Lock time';\n\t\t} else if (opStateHotWaterOriginal === 1 && hotWaterBoilerValve === 1) {\n\t\t\thotWaterStr = lang === 'de' ? 'Aufheizen' : 'Heating up';\n\t\t} else if (opStateHotWaterOriginal === 1 && hotWaterBoilerValve === 0) {\n\t\t\thotWaterStr = 'Temp. OK';\n\t\t} else if (opStateHotWaterOriginal === 3) {\n\t\t\thotWaterStr = lang === 'de' ? 'Aus' : 'Off';\n\t\t} else {\n\t\t\thotWaterStr = `Unknown [${opStateHotWaterOriginal}/${hotWaterBoilerValve}]`;\n\t\t}\n\n\t\tconst dpHotWater = getDpPath('opStateHotWaterString');\n\t\tif (dpHotWater) {\n\t\t\tawait adapter.setStateChangedAsync(dpHotWater, hotWaterStr, true);\n\t\t}\n\n\t\t// ==========================================\n\t\t// STATUS K\u00DCHLUNG BERECHNEN (opStateCoolingString)\n\t\t// ==========================================\n\t\tconst coolingOpMode = rawParams[getLuxIdByKey('cooling_operation_mode')]; // 0 = Aus, 1 = Automatik\n\t\tconst coolingReleaseTemp = (rawParams[getLuxIdByKey('cooling_release_temp')] ?? 0) / 10;\n\n\t\t// Boolean Pr\u00FCfung f\u00FCr Freigabe (Index 207 / cooling_release)\n\t\tconst rawFreigabe = rawValues[getLuxIdByKey('cooling_release')];\n\t\t// F\u00E4ngt sowohl '1/0' als Zahl als auch echte true/false Booleans sicher ab\n\t\tconst isReleased = rawFreigabe === 1 || String(rawFreigabe).toLowerCase() === 'true';\n\n\t\t// Aktueller Betriebszustand der W\u00E4rmepumpe (Index 80 / WP_BZ_akt)\n\t\tconst currentStateCode = rawValues[getLuxIdByKey('WP_BZ_akt')];\n\n\t\tlet coolingStr = lang === 'de' ? 'Unbekannt' : 'Unknown';\n\n\t\tif (coolingOpMode === 0) {\n\t\t\tcoolingStr = lang === 'de' ? 'Aus' : 'Off';\n\t\t} else if (coolingOpMode === 1) {\n\t\t\tif (currentStateCode === 7) {\n\t\t\t\t// PRIORIT\u00C4T 1: Betriebszustand ist 7 (W\u00E4rmepumpe k\u00FChlt AKTIV)\n\t\t\t\tcoolingStr = lang === 'de' ? `K\u00FChlen seit ${zeitStringText}` : `Cooling since ${zeitStringText}`;\n\t\t\t} else if (coolingReleaseTemp > Au\u00DFentemperatur) {\n\t\t\t\t// PRIORIT\u00C4T 2: Zu kalt drau\u00DFen (Au\u00DFentemperatur unter Freigabetemperatur)\n\t\t\t\tconst textKuehlgrenze = lang === 'de' ? 'K\u00FChlgrenze' : 'Cooling limit';\n\t\t\t\tcoolingStr = `${textKuehlgrenze} (${coolingReleaseTemp.toFixed(1)} \u00B0C)`;\n\t\t\t} else if (!isReleased) {\n\t\t\t\t// PRIORIT\u00C4T 3: Warm genug, aber Freigabe-Boolean ist noch false (Timer z\u00E4hlt noch runter)\n\t\t\t\tcoolingStr = lang === 'de' ? 'Wartet auf Timer-Freigabe' : 'Waiting for timer release';\n\t\t\t} else {\n\t\t\t\t// PRIORIT\u00C4T 4: Warm genug UND Freigabe ist erteilt, aber Anlage k\u00FChlt gerade nicht (Kein Bedarf im Haus)\n\t\t\t\tcoolingStr = lang === 'de' ? 'Keine Anforderung / Bereit' : 'No demand / Ready';\n\t\t\t}\n\t\t}\n\n\t\tconst dpCooling = getDpPath('opStateCoolingString');\n\t\tif (dpCooling) {\n\t\t\tawait adapter.setStateChangedAsync(dpCooling, coolingStr, true);\n\t\t}\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error updating status strings: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Reads individual start/end times from the settings and generates a formatted JSON array.\n *\n * @param adapter The adapter instance\n * @returns A promise resolving upon completion\n */\nexport async function updateTimerTables(adapter: AdapterInstance): Promise<void> {\n\ttry {\n\t\tconst timeCache = new Map<string, string>();\n\n\t\t/**\n\t\t * Internal helper to fetch and parse a specific time string.\n\t\t *\n\t\t * @param key The state key to fetch\n\t\t * @returns A promise resolving to the formatted time string\n\t\t */\n\t\tconst getTime = async (key: string): Promise<string> => {\n\t\t\tif (timeCache.has(key)) {\n\t\t\t\treturn timeCache.get(key) || '00:00';\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tconst dpPath = getDpPath(key);\n\t\t\t\tif (!dpPath) {\n\t\t\t\t\treturn '00:00';\n\t\t\t\t}\n\n\t\t\t\tconst state = await adapter.getStateAsync(dpPath);\n\t\t\t\tif (state && typeof state.val === 'string') {\n\t\t\t\t\tconst match = state.val.match(/^(\\d{1,2}):(\\d{1,2})/);\n\t\t\t\t\tif (match) {\n\t\t\t\t\t\tconst formatted = `${match[1].padStart(2, '0')}:${match[2].padStart(2, '0')}`;\n\t\t\t\t\t\ttimeCache.set(key, formatted);\n\t\t\t\t\t\treturn formatted;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn '00:00';\n\t\t\t} catch {\n\t\t\t\treturn '00:00';\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Internal helper to compile and save a single timer table array.\n\t\t *\n\t\t * @param targetKey The target state key for the JSON string\n\t\t * @param prefix The prefix identifying the associated timer slots\n\t\t * @param endStr The suffix indicating an end-time parameter\n\t\t * @param slots The total number of slots to iterate over\n\t\t * @returns A promise resolving when processing finishes\n\t\t */\n\t\tconst processTable = async (\n\t\t\ttargetKey: string,\n\t\t\tprefix: string,\n\t\t\tendStr: string,\n\t\t\tslots: number,\n\t\t): Promise<void> => {\n\t\t\ttry {\n\t\t\t\tconst table: { on: string; off: string }[] = [];\n\n\t\t\t\tfor (let i = 1; i <= slots; i++) {\n\t\t\t\t\tconst [onTime, offTime] = await Promise.all([\n\t\t\t\t\t\tgetTime(`${prefix}Start${i}`),\n\t\t\t\t\t\tgetTime(`${prefix}${endStr}${i}`),\n\t\t\t\t\t]);\n\t\t\t\t\ttable.push({ on: onTime, off: offTime });\n\t\t\t\t}\n\n\t\t\t\tconst targetPath = getDpPath(targetKey);\n\t\t\t\tif (targetPath) {\n\t\t\t\t\tconst jsonStr = JSON.stringify(table, null, 2);\n\t\t\t\t\tawait adapter.setStateChangedAsync(targetPath, jsonStr, true);\n\t\t\t\t}\n\t\t\t} catch {\n\t\t\t\tvoid 0;\n\t\t\t}\n\t\t};\n\n\t\tconst configs = [\n\t\t\t{ target: 'heatingOperationTimerTableWeek', prefix: 'HZ_MoSo_', end: 'End1', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTable52MonFri', prefix: 'HZ_MoFr_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTable52SatSun', prefix: 'HZ_SaSo_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDayMonday', prefix: 'HZ_Montag_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDayTuesday', prefix: 'HZ_Dienstag_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDayWednesday', prefix: 'HZ_Mittwoch_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDayThursday', prefix: 'HZ_Donnerstag_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDayFriday', prefix: 'HZ_Freitag_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDaySaturday', prefix: 'HZ_Samstag_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDaySunday', prefix: 'HZ_Sonntag_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'hotWaterTableWeek', prefix: 'WW_MoSo_', end: 'End', slots: 5 },\n\t\t\t{ target: 'hotWaterTable52MonFri', prefix: 'WW_MoFr_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTable52SatSun', prefix: 'WW_SaSo_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDayMonday', prefix: 'WW_Montag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDayTuesday', prefix: 'WW_Dienstag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDayWednesday', prefix: 'WW_Mittwoch_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDayThursday', prefix: 'WW_Donnerstag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDayFriday', prefix: 'WW_Freitag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDaySaturday', prefix: 'WW_Samstag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDaySunday', prefix: 'WW_Sonntag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTableWeek', prefix: 'Zirkulation_MoSo_', end: 'End', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTable52MonFri', prefix: 'Zirkulation_MoFr_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTable52SatSun', prefix: 'Zirkulation_SaSo_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTableDayMonday', prefix: 'Zirkulation_Montag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTableDayTuesday', prefix: 'Zirkulation_Dienstag_', end: 'Ende', slots: 5 },\n\t\t\t{\n\t\t\t\ttarget: 'hotWaterCircPumpTimerTableDayWednesday',\n\t\t\t\tprefix: 'Zirkulation_Mittwoch_',\n\t\t\t\tend: 'Ende',\n\t\t\t\tslots: 5,\n\t\t\t},\n\t\t\t{\n\t\t\t\ttarget: 'hotWaterCircPumpTimerTableDayThursday',\n\t\t\t\tprefix: 'Zirkulation_Donnerstag_',\n\t\t\t\tend: 'Ende',\n\t\t\t\tslots: 5,\n\t\t\t},\n\t\t\t{ target: 'hotWaterCircPumpTimerTableDayFriday', prefix: 'Zirkulation_Freitag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTableDaySaturday', prefix: 'Zirkulation_Samstag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTableDaySunday', prefix: 'Zirkulation_Sonntag_', end: 'Ende', slots: 5 },\n\t\t];\n\n\t\tawait Promise.all(configs.map(cfg => processTable(cfg.target, cfg.prefix, cfg.end, cfg.slots)));\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error generating JSON timer tables: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Configuration of a custom data point based on the adapter settings.\n */\ninterface CustomStateConfig {\n\t/** Indicates whether the custom state is enabled */\n\tactive: boolean;\n\t/** The corresponding Luxtronik internal ID */\n\tluxId?: number;\n\t/** The user-defined display name */\n\tname: string;\n\t/** The source classification (parameter or value) */\n\tsource: 'parameter' | 'value';\n\t/** The intended ioBroker data type */\n\ttype: 'number' | 'boolean' | 'datetime' | 'string';\n\t/** Optional factor for numerical conversion */\n\tfactor?: number | null;\n}\n\n/**\n * Updates custom states based on configured Luxtronik IDs.\n *\n * @param adapter - ioBroker adapter instance\n * @param rawValues - Raw telemetry values\n * @param rawParams - Raw parameters\n * @returns A promise resolving upon completion\n */\nexport async function updateCustomStates(\n\tadapter: AdapterInstance,\n\trawValues: number[],\n\trawParams: number[],\n): Promise<void> {\n\ttry {\n\t\tconst customStates = ((adapter.config as any).custom_states as CustomStateConfig[]) || [];\n\t\tfor (const custom of customStates) {\n\t\t\tif (!custom.active || custom.luxId === undefined || !custom.name) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst rawArray = custom.source === 'parameter' ? rawParams : rawValues;\n\t\t\tconst rawVal = rawArray[custom.luxId];\n\n\t\t\tif (rawVal === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlet finalVal: string | number | boolean;\n\n\t\t\tif (custom.type === 'number') {\n\t\t\t\tfinalVal = Number(rawVal);\n\t\t\t\tif (custom.factor !== undefined && custom.factor !== null) {\n\t\t\t\t\tfinalVal = finalVal * custom.factor;\n\t\t\t\t\tfinalVal = Math.round(finalVal * 10000) / 10000;\n\t\t\t\t}\n\t\t\t} else if (custom.type === 'boolean') {\n\t\t\t\tfinalVal = rawVal === 1 || String(rawVal).toLowerCase() === 'true';\n\t\t\t} else if (custom.type === 'datetime') {\n\t\t\t\tconst ts = Number(rawVal);\n\t\t\t\tif (!isNaN(ts) && ts > 0) {\n\t\t\t\t\tfinalVal = new Date(ts * 1000).toISOString().replace('T', ' ').substring(0, 19);\n\t\t\t\t} else {\n\t\t\t\t\tfinalVal = 'Invalid';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfinalVal = String(rawVal);\n\t\t\t}\n\n\t\t\tconst cleanId = sanitizeName(custom.name);\n\t\t\tconst stateId = `${adapter.namespace}.Custom.${cleanId}`;\n\n\t\t\tawait adapter.setForeignStateChangedAsync(stateId, finalVal, true);\n\t\t}\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error updating custom values: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Universal helper function to update system data points securely.\n *\n * @param adapter Adapter instance\n * @param key Key of the system data point\n * @param value New value\n * @returns A promise resolving upon completion\n */\nasync function setChangedSystemState(adapter: AdapterInstance, key: string, value: string): Promise<void> {\n\tconst dp = getDpPath(key);\n\tif (dp) {\n\t\tawait adapter.setStateChangedAsync(dp, value, true);\n\t}\n}\n\n/**\n * Updates system information such as firmware, IP address, and heat pump type.\n *\n * @param adapter Adapter instance\n * @param rawValues Array with raw data\n * @returns A promise resolving upon completion\n */\nexport async function updateSystemInfos(adapter: AdapterInstance, rawValues: number[]): Promise<void> {\n\ttry {\n\t\tconst firmwareBuf = rawValues.slice(81, 91);\n\t\tconst firmwareString = createFirmwareString(firmwareBuf);\n\t\t// Firmware f\u00FCr andere Module global in der Adapter-Instanz ablegen\n\t\t(adapter as any).systemFirmware = firmwareString;\n\n\t\tawait setChangedSystemState(adapter, 'firmware', firmwareString);\n\n\t\tconst ipAddress = int2ipAddress(rawValues[91]);\n\t\tawait setChangedSystemState(adapter, 'ip_address', ipAddress);\n\n\t\tconst subnet = int2ipAddress(rawValues[92]);\n\t\tawait setChangedSystemState(adapter, 'subnet', subnet);\n\n\t\tconst broadcastAddress = int2ipAddress(rawValues[93]);\n\t\tawait setChangedSystemState(adapter, 'broadcast_address', broadcastAddress);\n\n\t\tconst gateway = int2ipAddress(rawValues[94]);\n\t\tawait setChangedSystemState(adapter, 'standard_gateway', gateway);\n\n\t\tconst hpTypeIndex = rawValues[78];\n\t\tconst hpTypeString = createHeatPumpTypeString(hpTypeIndex);\n\t\tawait setChangedSystemState(adapter, 'heatpump_type', hpTypeString);\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error updating system information: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Converts an array of ASCII numbers into a readable firmware string.\n *\n * @param buf Array of ASCII numbers\n * @returns Cleaned firmware string\n */\nfunction createFirmwareString(buf: number[]): string {\n\tif (!buf || !Array.isArray(buf)) {\n\t\treturn 'Unknown';\n\t}\n\treturn buf\n\t\t.filter(v => v !== 0)\n\t\t.map(v => String.fromCharCode(v))\n\t\t.join('')\n\t\t.trim();\n}\n\n/**\n * Converts a 32-bit integer into an IPv4 address.\n *\n * @param value 32-bit integer\n * @returns IPv4 address as a string\n */\nfunction int2ipAddress(value: number): string {\n\tif (value === undefined || value === null || isNaN(value)) {\n\t\treturn '0.0.0.0';\n\t}\n\n\tconst part1 = value & 255;\n\tconst part2 = (value >>> 8) & 255;\n\tconst part3 = (value >>> 16) & 255;\n\tconst part4 = (value >>> 24) & 255;\n\n\treturn `${part4}.${part3}.${part2}.${part1}`;\n}\n\n/**\n * Retrieves the clear text name of the system type from the dictionary.\n *\n * @param value Index of the system type\n * @returns Clear text string of the system type\n */\nfunction createHeatPumpTypeString(value: number): string {\n\treturn HP_TYPES[value] || HP_TYPES[-1];\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAA6G;AAC7G,oBAAyB;AACzB,2BAA6B;AAC7B,0BAAyC;AAgBzC,eAAe,aACd,SACA,WACA,WACA,UACA,SACgB;AAChB,MAAI;AACH,UAAM,CAAC,QAAQ,MAAM,IAAI,MAAM,QAAQ,IAAI;AAAA,MAC1C,QAAQ,cAAc,SAAS;AAAA,MAC/B,QAAQ,cAAc,SAAS;AAAA,IAChC,CAAC;AAED,UAAM,OAAO,UAAU,OAAO,OAAO,QAAQ,WAAW,OAAO,MAA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M,SAAS,cAAc,UAAU,EAAE,CAAC;AAC1C,UAAM,sBAAsB,SAAS,UAAU,MAAM;AAErD,UAAM,mBAAmB,cAAc,UAAU,EAAE,CAAC;AACpD,UAAM,sBAAsB,SAAS,qBAAqB,gBAAgB;AAE1E,UAAM,UAAU,cAAc,UAAU,EAAE,CAAC;AAC3C,UAAM,sBAAsB,SAAS,oBAAoB,OAAO;AAEhE,UAAM,cAAc,UAAU,EAAE;AAChC,UAAM,eAAe,yBAAyB,WAAW;AACzD,UAAM,sBAAsB,SAAS,iBAAiB,YAAY;AAAA,EACnE,SAAS,KAAc;AACtB,UAAM,MAAM,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;AAC3D,gCAAS,sCAAsC,GAAG,IAAI,OAAO;AAAA,EAC9D;AACD;AAQA,SAAS,qBAAqB,KAAuB;AACpD,MAAI,CAAC,OAAO,CAAC,MAAM,QAAQ,GAAG,GAAG;AAChC,WAAO;AAAA,EACR;AACA,SAAO,IACL,OAAO,OAAK,MAAM,CAAC,EACnB,IAAI,OAAK,OAAO,aAAa,CAAC,CAAC,EAC/B,KAAK,EAAE,EACP,KAAK;AACR;AAQA,SAAS,cAAc,OAAuB;AAC7C,MAAI,UAAU,UAAa,UAAU,QAAQ,MAAM,KAAK,GAAG;AAC1D,WAAO;AAAA,EACR;AAEA,QAAM,QAAQ,QAAQ;AACtB,QAAM,QAAS,UAAU,IAAK;AAC9B,QAAM,QAAS,UAAU,KAAM;AAC/B,QAAM,QAAS,UAAU,KAAM;AAE/B,SAAO,GAAG,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK;AAC3C;AAQA,SAAS,yBAAyB,OAAuB;AACxD,SAAO,sBAAS,KAAK,KAAK,sBAAS,EAAE;AACtC;",
|
|
4
|
+
"sourcesContent": ["import type { AdapterInstance } from '@iobroker/adapter-core';\nimport { ERROR_CODES, HP_TYPES, OUTAGE_CODES, STATE_HEATING, STATE_LINE_1, STATE_LINE_2, STATE_LINE_3 } from './codes';\nimport { writeLog } from './logger';\nimport { sanitizeName } from './objectManager';\nimport { getDpPath, getLuxIdByKey } from './stateMapping';\n\n// ==========================================\n// CALCULATIONS (DRY-Principle)\n// ==========================================\n\n/**\n * Universal helper function to add two values from the ioBroker state tree.\n *\n * @param adapter - ioBroker adapter instance\n * @param sourceId1 - Path of the first source state\n * @param sourceId2 - Path of the second source state\n * @param targetId - Path of the target state where the result will be written\n * @param logName - Name used for log entries\n * @returns A promise resolving after the addition completes\n */\nasync function calculateSum(\n\tadapter: AdapterInstance,\n\tsourceId1: string,\n\tsourceId2: string,\n\ttargetId: string,\n\tlogName: string,\n): Promise<void> {\n\ttry {\n\t\t// Wir lesen zus\u00E4tzlich den ZIEL-Datenpunkt (den bisherigen H\u00F6chststand) mit aus\n\t\tconst [state1, state2, currentState] = await Promise.all([\n\t\t\tadapter.getStateAsync(sourceId1),\n\t\t\tadapter.getStateAsync(sourceId2),\n\t\t\tadapter.getStateAsync(targetId),\n\t\t]);\n\n\t\tconst val1 = state1 && typeof state1.val === 'number' ? state1.val : 0;\n\t\tconst val2 = state2 && typeof state2.val === 'number' ? state2.val : 0;\n\t\tconst newSum = val1 + val2;\n\n\t\tconst currentVal = currentState && typeof currentState.val === 'number' ? currentState.val : 0;\n\n\t\t// ROOT-CAUSE-FIX: Ein Energiez\u00E4hler darf niemals schrumpfen!\n\t\t// F\u00E4llt ein Luxtronik-Z\u00E4hler kurzzeitig auf 0, ist newSum kleiner als currentVal und wird knallhart ignoriert.\n\t\tif (newSum >= currentVal) {\n\t\t\tawait adapter.setStateChangedAsync(targetId, newSum, true);\n\t\t}\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error calculating ${logName}: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Calculates the total thermal energy (heating + hot water) and writes it to the target state.\n *\n * @param adapter - ioBroker adapter instance\n * @returns A promise resolving upon completion\n */\nexport async function calculateTotalThermalEnergy(adapter: AdapterInstance): Promise<void> {\n\tawait calculateSum(\n\t\tadapter,\n\t\tgetDpPath('thermalenergy_heating'),\n\t\tgetDpPath('thermalenergy_warmwater'),\n\t\tgetDpPath('thermalenergy_total'),\n\t\t'Total Thermal Energy',\n\t);\n}\n\n/**\n * Calculates the total energy consumed (heating + hot water) and writes it to the target state.\n *\n * @param adapter - ioBroker adapter instance\n * @returns A promise resolving upon completion\n */\nexport async function calculateTotalEnergy(adapter: AdapterInstance): Promise<void> {\n\tawait calculateSum(\n\t\tadapter,\n\t\tgetDpPath('energy_heating'),\n\t\tgetDpPath('energy_warmwater'),\n\t\tgetDpPath('energy_total'),\n\t\t'Total Energy',\n\t);\n}\n\n// ==========================================\n// HISTORY & LOGS (DRY-Principle)\n// ==========================================\n\n/**\n * Structure of an entry in the error or outage history.\n */\ninterface HistoryEntry {\n\t/** The code of the registered error or outage */\n\tcode: number;\n\t/** The clear text description of the code */\n\tbeschreibung: string;\n\t/** The formatted date of occurrence */\n\tdatum: string;\n\t/** The raw Unix timestamp */\n\ttimestamp: number;\n}\n\n/**\n * Internal helper function to generate error and outage histories.\n *\n * @param adapter The adapter instance.\n * @param rawValues The raw values from the heat pump.\n * @param timeStartIndex Index of the first timestamp in the raw data.\n * @param codeStartIndex Index of the first code in the raw data.\n * @param targetStateId The ioBroker ID where the JSON should be written.\n * @param fallbackPrefix Fallback text for unknown codes.\n * @param codeMap The dictionary mapping codes to readable text.\n * @returns A promise resolving upon completion\n */\nasync function updateHistory(\n\tadapter: AdapterInstance,\n\trawValues: number[],\n\ttimeStartIndex: number,\n\tcodeStartIndex: number,\n\ttargetStateId: string,\n\tfallbackPrefix: string,\n\tcodeMap: Record<number, string>,\n): Promise<void> {\n\ttry {\n\t\tconst historyList: HistoryEntry[] = [];\n\n\t\tfor (let i = 0; i < 5; i++) {\n\t\t\tconst code = rawValues[codeStartIndex + i];\n\t\t\tconst timestamp = rawValues[timeStartIndex + i];\n\n\t\t\tif (timestamp !== undefined && timestamp > 0) {\n\t\t\t\tconst date = new Date(timestamp * 1000);\n\t\t\t\tconst formattedDate = date.toISOString().replace('T', ' ').substring(0, 19);\n\n\t\t\t\tlet beschreibung = `${fallbackPrefix} (${code})`;\n\t\t\t\tif (codeMap[code] !== undefined) {\n\t\t\t\t\tbeschreibung = codeMap[code];\n\t\t\t\t}\n\n\t\t\t\thistoryList.push({\n\t\t\t\t\tcode: code,\n\t\t\t\t\tbeschreibung: beschreibung,\n\t\t\t\t\tdatum: formattedDate,\n\t\t\t\t\ttimestamp: timestamp,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\thistoryList.sort((a, b) => b.timestamp - a.timestamp);\n\n\t\tconst cleanList = historyList.map((entry, idx) => ({\n\t\t\tindex: idx + 1,\n\t\t\tcode: entry.code,\n\t\t\tbeschreibung: entry.beschreibung,\n\t\t\tdatum: entry.datum,\n\t\t\ttimestamp: entry.timestamp,\n\t\t}));\n\t\tconst jsonStr = JSON.stringify(cleanList);\n\n\t\tconst result = await adapter.setStateChangedAsync(targetStateId, { val: jsonStr, ack: true });\n\t\tif (result && (result as any).numChanges > 0) {\n\t\t\twriteLog(`History for ${targetStateId} updated from raw data.`, 'info');\n\t\t}\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error updating history: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Updates the error history with the latest error codes.\n *\n * @param adapter - The adapter instance.\n * @param rawValues - The raw values from the device.\n * @returns A promise resolving upon completion\n */\nexport async function updateErrorHistory(adapter: AdapterInstance, rawValues: number[]): Promise<void> {\n\tconst config = adapter.config as any;\n\tconst lang = config.language === 'de' ? 'de' : 'en';\n\tconst dpPath = getDpPath('Fehlerspeicher');\n\n\tif (dpPath) {\n\t\tconst fallback = lang === 'de' ? 'Unbekannter Fehler' : 'Unknown error';\n\t\tconst codeMap = ERROR_CODES[lang] || ERROR_CODES.en;\n\t\tawait updateHistory(adapter, rawValues, 95, 100, dpPath, fallback, codeMap);\n\t}\n}\n\n/**\n * Updates the outage history with the latest outage codes.\n *\n * @param adapter - The adapter instance.\n * @param rawValues - The raw values from the device.\n * @returns A promise resolving upon completion\n */\nexport async function updateOutageHistory(adapter: AdapterInstance, rawValues: number[]): Promise<void> {\n\tconst config = adapter.config as any;\n\tconst lang = config.language === 'de' ? 'de' : 'en';\n\tconst dpPath = getDpPath('Abschaltungen');\n\n\tif (dpPath) {\n\t\tconst fallback = lang === 'de' ? 'Unbekannte Abschaltung' : 'Unknown outage';\n\t\tconst codeMap = OUTAGE_CODES[lang] || OUTAGE_CODES.en;\n\t\tawait updateHistory(adapter, rawValues, 111, 106, dpPath, fallback, codeMap);\n\t}\n}\n\n/**\n * Calculates the temperature spread between supply and return temperatures.\n *\n * @param adapter - The adapter instance.\n * @returns A promise resolving upon completion\n */\nexport async function calculateTemperatureSpread(adapter: AdapterInstance): Promise<void> {\n\ttry {\n\t\tconst vorlaufPath = getDpPath('temperature_supply');\n\t\tconst ruecklaufPath = getDpPath('temperature_return');\n\n\t\tif (!vorlaufPath || !ruecklaufPath) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst [vorlaufState, ruecklaufState] = await Promise.all([\n\t\t\tadapter.getStateAsync(vorlaufPath),\n\t\t\tadapter.getStateAsync(ruecklaufPath),\n\t\t]);\n\n\t\tif (vorlaufState && ruecklaufState && vorlaufState.val !== null && ruecklaufState.val !== null) {\n\t\t\tconst spreizung = parseFloat((Number(vorlaufState.val) - Number(ruecklaufState.val)).toFixed(2));\n\t\t\tconst targetSpreadPath = getDpPath('spreizung_vorlauf_ruecklauf');\n\t\t\tif (targetSpreadPath) {\n\t\t\t\tawait adapter.setStateChangedAsync(targetSpreadPath, spreizung, true);\n\t\t\t}\n\t\t}\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error calculating temperature spread: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Updates the status strings based on raw sensor values and parameters.\n *\n * @param adapter - The adapter instance.\n * @param rawValues - The raw values array from the Luxtronik device.\n * @param rawParams - The raw parameters array from the Luxtronik device.\n * @returns A promise resolving upon completion\n */\nexport async function updateStatusStrings(\n\tadapter: AdapterInstance,\n\trawValues: number[],\n\trawParams: number[],\n): Promise<void> {\n\ttry {\n\t\tconst config = adapter.config as any;\n\t\tconst lang = config.language === 'de' ? 'de' : 'en';\n\n\t\t// ==========================================\n\t\t// 1. ZEIT- UND DAUERBERECHNUNG (GLOBAL)\n\t\t// ==========================================\n\t\tlet zeitSec = rawValues[120];\n\t\tconst codeZ1 = rawValues[117];\n\t\tconst codeZ3 = rawValues[119];\n\t\tconst isModernFirmware = (codeZ1 === undefined || codeZ1 === 0) && (codeZ3 === undefined || codeZ3 === 0);\n\n\t\t// FW 3.x Fallback: Wenn zeitSec fehlt, berechnen wir es aus der letzten Status\u00E4nderung\n\t\tif (isModernFirmware && (zeitSec === undefined || zeitSec === 0)) {\n\t\t\tconst bzState = await adapter.getStateAsync(getDpPath('WP_BZ_akt'));\n\t\t\tif (bzState && bzState.lc) {\n\t\t\t\tzeitSec = Math.floor((Date.now() - bzState.lc) / 1000);\n\t\t\t} else {\n\t\t\t\tzeitSec = 0;\n\t\t\t}\n\t\t}\n\n\t\t// HH:MM:SS Format (z.B. f\u00FCr FW 2.x und heatpump_duration)\n\t\tconst h = Math.floor((zeitSec || 0) / 3600);\n\t\tconst m = Math.floor(((zeitSec || 0) % 3600) / 60);\n\t\tconst s = (zeitSec || 0) % 60;\n\t\tconst zeitStringDuration = `${h.toString().padStart(2, '0')}:${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;\n\n\t\t// Ausgeschriebenes Format (z.B. f\u00FCr FW 3.x und K\u00FChlung)\n\t\tconst hText = lang === 'de' ? (h === 1 ? 'Stunde' : 'Stunden') : h === 1 ? 'hour' : 'hours';\n\t\tconst mText = lang === 'de' ? (m === 1 ? 'Minute' : 'Minuten') : m === 1 ? 'minute' : 'minutes';\n\t\tconst sText = lang === 'de' ? (s === 1 ? 'Sekunde' : 'Sekunden') : s === 1 ? 'second' : 'seconds';\n\t\tconst zeitStringText = `${h} ${hText} ${m} ${mText} ${s} ${sText}`;\n\n\t\t// ==========================================\n\t\t// 2. STATUS HEIZUNG BERECHNEN\n\t\t// ==========================================\n\t\tconst line1Map = STATE_LINE_1[lang] || STATE_LINE_1.en;\n\t\tconst line2Map = STATE_LINE_2[lang] || STATE_LINE_2.en;\n\t\tconst line3Map = STATE_LINE_3[lang] || STATE_LINE_3.en;\n\t\tconst stateHeatingMap = STATE_HEATING[lang] || STATE_HEATING.en;\n\n\t\tconst Absenkung = (rawParams[getLuxIdByKey('deltaHeatingReduction')] ?? 0) / 10;\n\t\tconst AbsenkungMax = (rawParams[getLuxIdByKey('thresholdTemperatureSetBack')] ?? 0) / 10;\n\t\tconst R\u00FCcklaufSollMin = (rawParams[getLuxIdByKey('returnTemperatureTargetMin')] ?? 15) / 10;\n\t\tconst BetriebsartHeizung = rawParams[getLuxIdByKey('heating_operation_mode')] ?? 0;\n\t\tconst Au\u00DFentemperatur = (rawValues[getLuxIdByKey('temperature_outside')] ?? 0) / 10;\n\t\tconst HeatingLimit = rawParams[getLuxIdByKey('heatingLimit')] ?? 0;\n\t\tconst opStateHeatingVal = rawValues[getLuxIdByKey('opStateHeating')] ?? 3;\n\t\tconst Mitteltemperatur = (rawValues[getLuxIdByKey('Mitteltemperatur')] ?? 15) / 10;\n\t\tconst thresholdHeatingLimit = (rawParams[getLuxIdByKey('thresholdHeatingLimit')] ?? 15) / 10;\n\t\tconst temperature_target_return = (rawValues[getLuxIdByKey('temperature_target_return')] ?? 15) / 10;\n\n\t\t// NEU: Parallelverschiebung auslesen\n\t\tconst Parallelverschiebung = (rawParams[getLuxIdByKey('heating_temperature')] ?? 0) / 10;\n\n\t\tlet heatingStr = stateHeatingMap[opStateHeatingVal] || `Unknown (${opStateHeatingVal})`;\n\n\t\tif (opStateHeatingVal === 2) {\n\t\t\theatingStr += ` (Target ${R\u00FCcklaufSollMin} \u00B0C)`;\n\t\t} else if (opStateHeatingVal === 4) {\n\t\t\theatingStr += ` (Target 20 \u00B0C)`;\n\t\t} else if (opStateHeatingVal === 0 || opStateHeatingVal === 1) {\n\t\t\t// Pr\u00FCfen, ob eigentlich Heizgrenze / Frostschutz aktiv ist\n\t\t\tif (HeatingLimit === 1 && Mitteltemperatur > thresholdHeatingLimit) {\n\t\t\t\tif (Au\u00DFentemperatur < 10) {\n\t\t\t\t\tconst textFrost = lang === 'de' ? 'Frostschutz' : 'Frost protection';\n\t\t\t\t\theatingStr = `${textFrost} ${temperature_target_return} \u00B0C`;\n\t\t\t\t} else {\n\t\t\t\t\tconst text = lang === 'de' ? 'Heizgrenze' : 'Heating limit';\n\t\t\t\t\theatingStr = `${text} ${temperature_target_return} \u00B0C`;\n\t\t\t\t}\n\t\t\t} else if (opStateHeatingVal === 0) {\n\t\t\t\t// Zustand 0: Laut Luxtronik-Uhrzeit befindet sich die Anlage im \"Absenk\"-Zeitfenster\n\t\t\t\tif (Absenkung !== 0) {\n\t\t\t\t\t// Es ist wirklich eine Absenkung konfiguriert\n\t\t\t\t\tconst vorzeichen = Absenkung > 0 ? '-' : '+';\n\t\t\t\t\theatingStr = `${stateHeatingMap[0]} ${vorzeichen}${Math.abs(Absenkung)} \u00B0C`;\n\t\t\t\t} else {\n\t\t\t\t\t// Absenkung steht auf 0K (Anlage l\u00E4uft einfach regul\u00E4r weiter)\n\t\t\t\t\theatingStr = lang === 'de' ? 'Normal (Zeitprogramm)' : 'Normal (Timer)';\n\t\t\t\t}\n\t\t\t} else if (opStateHeatingVal === 1) {\n\t\t\t\t// Zustand 1: Laut Luxtronik-Uhrzeit befindet sich die Anlage im \"Normal\"-Zeitfenster\n\t\t\t\theatingStr = stateHeatingMap[1] || 'Normal';\n\n\t\t\t\t// Zusatzinfo: War die Anlage eigentlich abgesenkt, heizt aber wegen der Au\u00DFentemperatur trotzdem normal?\n\t\t\t\tif (BetriebsartHeizung === 0 && Au\u00DFentemperatur < AbsenkungMax) {\n\t\t\t\t\tconst textNormal = lang === 'de' ? ' da AT' : ' because outside temp';\n\t\t\t\t\theatingStr += `${textNormal} < ${AbsenkungMax} \u00B0C`;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// H\u00E4nge die Parallelverschiebung an, sofern konfiguriert und kein Frostschutz aktiv\n\t\t\tif (Parallelverschiebung !== 0 && !(HeatingLimit === 1 && Mitteltemperatur > thresholdHeatingLimit)) {\n\t\t\t\tconst vorzeichen = Parallelverschiebung > 0 ? '+' : '';\n\t\t\t\theatingStr += ` (Offset ${vorzeichen}${Parallelverschiebung} \u00B0C)`;\n\t\t\t}\n\t\t}\n\n\t\tconst dpHeating = getDpPath('opStateHeatingString');\n\t\tif (dpHeating) {\n\t\t\tawait adapter.setStateChangedAsync(dpHeating, heatingStr, true);\n\t\t}\n\n\t\t// ==========================================\n\t\t// 3. ERWEITERTE STATUS-TEXTE (DISPLAY)\n\t\t// ==========================================\n\t\tlet stateStr = 'Unknown';\n\t\tlet extStateStr = 'Unknown';\n\n\t\tif (!isModernFirmware) {\n\t\t\t// Alte Firmware\n\t\t\tconst codeZ2 = rawValues[118];\n\t\t\tstateStr = line3Map[codeZ3] || 'Unknown';\n\n\t\t\tif (line1Map[codeZ1]) {\n\t\t\t\tconst textZ2 = line2Map[codeZ2] || '';\n\t\t\t\textStateStr = `${line1Map[codeZ1]} ${textZ2} ${zeitStringDuration}`.trim();\n\t\t\t}\n\t\t} else {\n\t\t\t// Moderne Firmware 3.x\n\t\t\tconst bzMapEn: Record<number, string> = {\n\t\t\t\t0: 'Heating operation',\n\t\t\t\t1: 'Hot water',\n\t\t\t\t2: 'Swimming pool / Photovoltaics',\n\t\t\t\t3: 'Lock time',\n\t\t\t\t4: 'Defrosting',\n\t\t\t\t5: 'No demand',\n\t\t\t\t6: 'Ext. heat source',\n\t\t\t\t7: 'Cooling',\n\t\t\t};\n\t\t\tconst bzMapDe: Record<number, string> = {\n\t\t\t\t0: 'Heizbetrieb',\n\t\t\t\t1: 'Warmwasser',\n\t\t\t\t2: 'Schwimmbad / PV',\n\t\t\t\t3: 'EVU-Sperre',\n\t\t\t\t4: 'Abtauen',\n\t\t\t\t5: 'Kein Bedarf',\n\t\t\t\t6: 'Zweiter Erzeuger',\n\t\t\t\t7: 'K\u00FChlbetrieb',\n\t\t\t};\n\t\t\tconst bzMap = lang === 'de' ? bzMapDe : bzMapEn;\n\n\t\t\tconst currentStateCode = rawValues[getLuxIdByKey('WP_BZ_akt')] ?? 5;\n\t\t\tstateStr = bzMap[currentStateCode] || `Status ${currentStateCode}`;\n\n\t\t\tconst isRunning = [0, 1, 2, 4, 6, 7].includes(currentStateCode);\n\t\t\tconst line1Text = isRunning ? line1Map[0] || 'Heat pump running' : line1Map[1] || 'Heat pump idle';\n\t\t\tconst line2Text = line2Map[0] || 'since';\n\n\t\t\textStateStr = `${line1Text} ${line2Text} ${zeitStringText}`;\n\n\t\t\tconst dpDuration = getDpPath('heatpump_duration');\n\t\t\tif (dpDuration) {\n\t\t\t\tawait adapter.setStateChangedAsync(dpDuration, zeitStringDuration, true);\n\t\t\t}\n\t\t}\n\n\t\tconst dpExtState = getDpPath('heatpump_extendet_state_string');\n\t\tif (dpExtState) {\n\t\t\tawait adapter.setStateChangedAsync(dpExtState, stateStr, true);\n\t\t}\n\n\t\tconst dpState = getDpPath('heatpump_state_string');\n\t\tif (dpState) {\n\t\t\tawait adapter.setStateChangedAsync(dpState, extStateStr, true);\n\t\t}\n\n\t\t// ==========================================\n\t\t// 4. STATUS WARMWASSER\n\t\t// ==========================================\n\t\tconst hotWaterBoilerValve = rawValues[getLuxIdByKey('hotWaterBoilerValve')] || 0;\n\t\tconst opStateHotWaterOriginal = rawValues[124];\n\t\tlet hotWaterStr = 'Unknown';\n\n\t\tif (opStateHotWaterOriginal === 0) {\n\t\t\thotWaterStr = lang === 'de' ? 'Sperrzeit' : 'Lock time';\n\t\t} else if (opStateHotWaterOriginal === 1 && hotWaterBoilerValve === 1) {\n\t\t\thotWaterStr = lang === 'de' ? 'Aufheizen' : 'Heating up';\n\t\t} else if (opStateHotWaterOriginal === 1 && hotWaterBoilerValve === 0) {\n\t\t\thotWaterStr = 'Temp. OK';\n\t\t} else if (opStateHotWaterOriginal === 3) {\n\t\t\thotWaterStr = lang === 'de' ? 'Aus' : 'Off';\n\t\t} else {\n\t\t\thotWaterStr = `Unknown [${opStateHotWaterOriginal}/${hotWaterBoilerValve}]`;\n\t\t}\n\n\t\tconst dpHotWater = getDpPath('opStateHotWaterString');\n\t\tif (dpHotWater) {\n\t\t\tawait adapter.setStateChangedAsync(dpHotWater, hotWaterStr, true);\n\t\t}\n\n\t\t// ==========================================\n\t\t// STATUS K\u00DCHLUNG BERECHNEN (opStateCoolingString)\n\t\t// ==========================================\n\t\tconst coolingOpMode = rawParams[getLuxIdByKey('cooling_operation_mode')]; // 0 = Aus, 1 = Automatik\n\t\tconst coolingReleaseTemp = (rawParams[getLuxIdByKey('cooling_release_temp')] ?? 0) / 10;\n\n\t\t// Boolean Pr\u00FCfung f\u00FCr Freigabe (Index 207 / cooling_release)\n\t\tconst rawFreigabe = rawValues[getLuxIdByKey('cooling_release')];\n\t\t// F\u00E4ngt sowohl '1/0' als Zahl als auch echte true/false Booleans sicher ab\n\t\tconst isReleased = rawFreigabe === 1 || String(rawFreigabe).toLowerCase() === 'true';\n\n\t\t// Aktueller Betriebszustand der W\u00E4rmepumpe (Index 80 / WP_BZ_akt)\n\t\tconst currentStateCode = rawValues[getLuxIdByKey('WP_BZ_akt')];\n\n\t\tlet coolingStr = lang === 'de' ? 'Unbekannt' : 'Unknown';\n\n\t\tif (coolingOpMode === 0) {\n\t\t\tcoolingStr = lang === 'de' ? 'Aus' : 'Off';\n\t\t} else if (coolingOpMode === 1) {\n\t\t\tif (currentStateCode === 7) {\n\t\t\t\t// PRIORIT\u00C4T 1: Betriebszustand ist 7 (W\u00E4rmepumpe k\u00FChlt AKTIV)\n\t\t\t\tcoolingStr = lang === 'de' ? `K\u00FChlen seit ${zeitStringText}` : `Cooling since ${zeitStringText}`;\n\t\t\t} else if (coolingReleaseTemp > Au\u00DFentemperatur) {\n\t\t\t\t// PRIORIT\u00C4T 2: Zu kalt drau\u00DFen (Au\u00DFentemperatur unter Freigabetemperatur)\n\t\t\t\tconst textKuehlgrenze = lang === 'de' ? 'K\u00FChlgrenze' : 'Cooling limit';\n\t\t\t\tcoolingStr = `${textKuehlgrenze} (${coolingReleaseTemp.toFixed(1)} \u00B0C)`;\n\t\t\t} else if (!isReleased) {\n\t\t\t\t// PRIORIT\u00C4T 3: Warm genug, aber Freigabe-Boolean ist noch false (Timer z\u00E4hlt noch runter)\n\t\t\t\tcoolingStr = lang === 'de' ? 'Wartet auf Timer-Freigabe' : 'Waiting for timer release';\n\t\t\t} else {\n\t\t\t\t// PRIORIT\u00C4T 4: Warm genug UND Freigabe ist erteilt, aber Anlage k\u00FChlt gerade nicht (Kein Bedarf im Haus)\n\t\t\t\tcoolingStr = lang === 'de' ? 'Keine Anforderung / Bereit' : 'No demand / Ready';\n\t\t\t}\n\t\t}\n\n\t\tconst dpCooling = getDpPath('opStateCoolingString');\n\t\tif (dpCooling) {\n\t\t\tawait adapter.setStateChangedAsync(dpCooling, coolingStr, true);\n\t\t}\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error updating status strings: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Reads individual start/end times from the settings and generates a formatted JSON array.\n *\n * @param adapter The adapter instance\n * @returns A promise resolving upon completion\n */\nexport async function updateTimerTables(adapter: AdapterInstance): Promise<void> {\n\ttry {\n\t\tconst timeCache = new Map<string, string>();\n\n\t\t/**\n\t\t * Internal helper to fetch and parse a specific time string.\n\t\t *\n\t\t * @param key The state key to fetch\n\t\t * @returns A promise resolving to the formatted time string\n\t\t */\n\t\tconst getTime = async (key: string): Promise<string> => {\n\t\t\tif (timeCache.has(key)) {\n\t\t\t\treturn timeCache.get(key) || '00:00';\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tconst dpPath = getDpPath(key);\n\t\t\t\tif (!dpPath) {\n\t\t\t\t\treturn '00:00';\n\t\t\t\t}\n\n\t\t\t\tconst state = await adapter.getStateAsync(dpPath);\n\t\t\t\tif (state && typeof state.val === 'string') {\n\t\t\t\t\tconst match = state.val.match(/^(\\d{1,2}):(\\d{1,2})/);\n\t\t\t\t\tif (match) {\n\t\t\t\t\t\tconst formatted = `${match[1].padStart(2, '0')}:${match[2].padStart(2, '0')}`;\n\t\t\t\t\t\ttimeCache.set(key, formatted);\n\t\t\t\t\t\treturn formatted;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn '00:00';\n\t\t\t} catch {\n\t\t\t\treturn '00:00';\n\t\t\t}\n\t\t};\n\n\t\t/**\n\t\t * Internal helper to compile and save a single timer table array.\n\t\t *\n\t\t * @param targetKey The target state key for the JSON string\n\t\t * @param prefix The prefix identifying the associated timer slots\n\t\t * @param endStr The suffix indicating an end-time parameter\n\t\t * @param slots The total number of slots to iterate over\n\t\t * @returns A promise resolving when processing finishes\n\t\t */\n\t\tconst processTable = async (\n\t\t\ttargetKey: string,\n\t\t\tprefix: string,\n\t\t\tendStr: string,\n\t\t\tslots: number,\n\t\t): Promise<void> => {\n\t\t\ttry {\n\t\t\t\tconst table: { on: string; off: string }[] = [];\n\n\t\t\t\tfor (let i = 1; i <= slots; i++) {\n\t\t\t\t\tconst [onTime, offTime] = await Promise.all([\n\t\t\t\t\t\tgetTime(`${prefix}Start${i}`),\n\t\t\t\t\t\tgetTime(`${prefix}${endStr}${i}`),\n\t\t\t\t\t]);\n\t\t\t\t\ttable.push({ on: onTime, off: offTime });\n\t\t\t\t}\n\n\t\t\t\tconst targetPath = getDpPath(targetKey);\n\t\t\t\tif (targetPath) {\n\t\t\t\t\tconst jsonStr = JSON.stringify(table, null, 2);\n\t\t\t\t\tawait adapter.setStateChangedAsync(targetPath, jsonStr, true);\n\t\t\t\t}\n\t\t\t} catch {\n\t\t\t\tvoid 0;\n\t\t\t}\n\t\t};\n\n\t\tconst configs = [\n\t\t\t{ target: 'heatingOperationTimerTableWeek', prefix: 'HZ_MoSo_', end: 'End1', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTable52MonFri', prefix: 'HZ_MoFr_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTable52SatSun', prefix: 'HZ_SaSo_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDayMonday', prefix: 'HZ_Montag_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDayTuesday', prefix: 'HZ_Dienstag_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDayWednesday', prefix: 'HZ_Mittwoch_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDayThursday', prefix: 'HZ_Donnerstag_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDayFriday', prefix: 'HZ_Freitag_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDaySaturday', prefix: 'HZ_Samstag_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'heatingOperationTimerTableDaySunday', prefix: 'HZ_Sonntag_', end: 'Ende', slots: 3 },\n\t\t\t{ target: 'hotWaterTableWeek', prefix: 'WW_MoSo_', end: 'End', slots: 5 },\n\t\t\t{ target: 'hotWaterTable52MonFri', prefix: 'WW_MoFr_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTable52SatSun', prefix: 'WW_SaSo_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDayMonday', prefix: 'WW_Montag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDayTuesday', prefix: 'WW_Dienstag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDayWednesday', prefix: 'WW_Mittwoch_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDayThursday', prefix: 'WW_Donnerstag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDayFriday', prefix: 'WW_Freitag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDaySaturday', prefix: 'WW_Samstag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterTableDaySunday', prefix: 'WW_Sonntag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTableWeek', prefix: 'Zirkulation_MoSo_', end: 'End', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTable52MonFri', prefix: 'Zirkulation_MoFr_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTable52SatSun', prefix: 'Zirkulation_SaSo_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTableDayMonday', prefix: 'Zirkulation_Montag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTableDayTuesday', prefix: 'Zirkulation_Dienstag_', end: 'Ende', slots: 5 },\n\t\t\t{\n\t\t\t\ttarget: 'hotWaterCircPumpTimerTableDayWednesday',\n\t\t\t\tprefix: 'Zirkulation_Mittwoch_',\n\t\t\t\tend: 'Ende',\n\t\t\t\tslots: 5,\n\t\t\t},\n\t\t\t{\n\t\t\t\ttarget: 'hotWaterCircPumpTimerTableDayThursday',\n\t\t\t\tprefix: 'Zirkulation_Donnerstag_',\n\t\t\t\tend: 'Ende',\n\t\t\t\tslots: 5,\n\t\t\t},\n\t\t\t{ target: 'hotWaterCircPumpTimerTableDayFriday', prefix: 'Zirkulation_Freitag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTableDaySaturday', prefix: 'Zirkulation_Samstag_', end: 'Ende', slots: 5 },\n\t\t\t{ target: 'hotWaterCircPumpTimerTableDaySunday', prefix: 'Zirkulation_Sonntag_', end: 'Ende', slots: 5 },\n\t\t];\n\n\t\tawait Promise.all(configs.map(cfg => processTable(cfg.target, cfg.prefix, cfg.end, cfg.slots)));\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error generating JSON timer tables: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Configuration of a custom data point based on the adapter settings.\n */\ninterface CustomStateConfig {\n\t/** Indicates whether the custom state is enabled */\n\tactive: boolean;\n\t/** The corresponding Luxtronik internal ID */\n\tluxId?: number;\n\t/** The user-defined display name */\n\tname: string;\n\t/** The source classification (parameter or value) */\n\tsource: 'parameter' | 'value';\n\t/** The intended ioBroker data type */\n\ttype: 'number' | 'boolean' | 'datetime' | 'string';\n\t/** Optional factor for numerical conversion */\n\tfactor?: number | null;\n}\n\n/**\n * Updates custom states based on configured Luxtronik IDs.\n *\n * @param adapter - ioBroker adapter instance\n * @param rawValues - Raw telemetry values\n * @param rawParams - Raw parameters\n * @returns A promise resolving upon completion\n */\nexport async function updateCustomStates(\n\tadapter: AdapterInstance,\n\trawValues: number[],\n\trawParams: number[],\n): Promise<void> {\n\ttry {\n\t\tconst customStates = ((adapter.config as any).custom_states as CustomStateConfig[]) || [];\n\t\tfor (const custom of customStates) {\n\t\t\tif (!custom.active || custom.luxId === undefined || !custom.name) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst rawArray = custom.source === 'parameter' ? rawParams : rawValues;\n\t\t\tconst rawVal = rawArray[custom.luxId];\n\n\t\t\tif (rawVal === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlet finalVal: string | number | boolean;\n\n\t\t\tif (custom.type === 'number') {\n\t\t\t\tfinalVal = Number(rawVal);\n\t\t\t\tif (custom.factor !== undefined && custom.factor !== null) {\n\t\t\t\t\tfinalVal = finalVal * custom.factor;\n\t\t\t\t\tfinalVal = Math.round(finalVal * 10000) / 10000;\n\t\t\t\t}\n\t\t\t} else if (custom.type === 'boolean') {\n\t\t\t\tfinalVal = rawVal === 1 || String(rawVal).toLowerCase() === 'true';\n\t\t\t} else if (custom.type === 'datetime') {\n\t\t\t\tconst ts = Number(rawVal);\n\t\t\t\tif (!isNaN(ts) && ts > 0) {\n\t\t\t\t\tfinalVal = new Date(ts * 1000).toISOString().replace('T', ' ').substring(0, 19);\n\t\t\t\t} else {\n\t\t\t\t\tfinalVal = 'Invalid';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfinalVal = String(rawVal);\n\t\t\t}\n\n\t\t\tconst cleanId = sanitizeName(custom.name);\n\t\t\tconst stateId = `${adapter.namespace}.Custom.${cleanId}`;\n\n\t\t\tawait adapter.setForeignStateChangedAsync(stateId, finalVal, true);\n\t\t}\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error updating custom values: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Universal helper function to update system data points securely.\n *\n * @param adapter Adapter instance\n * @param key Key of the system data point\n * @param value New value\n * @returns A promise resolving upon completion\n */\nasync function setChangedSystemState(adapter: AdapterInstance, key: string, value: string): Promise<void> {\n\tconst dp = getDpPath(key);\n\tif (dp) {\n\t\tawait adapter.setStateChangedAsync(dp, value, true);\n\t}\n}\n\n/**\n * Updates system information such as firmware, IP address, and heat pump type.\n *\n * @param adapter Adapter instance\n * @param rawValues Array with raw data\n * @returns A promise resolving upon completion\n */\nexport async function updateSystemInfos(adapter: AdapterInstance, rawValues: number[]): Promise<void> {\n\ttry {\n\t\tconst firmwareBuf = rawValues.slice(81, 91);\n\t\tconst firmwareString = createFirmwareString(firmwareBuf);\n\t\t// Firmware f\u00FCr andere Module global in der Adapter-Instanz ablegen\n\t\t(adapter as any).systemFirmware = firmwareString;\n\n\t\tawait setChangedSystemState(adapter, 'firmware', firmwareString);\n\n\t\tconst ipAddress = int2ipAddress(rawValues[91]);\n\t\tawait setChangedSystemState(adapter, 'ip_address', ipAddress);\n\n\t\tconst subnet = int2ipAddress(rawValues[92]);\n\t\tawait setChangedSystemState(adapter, 'subnet', subnet);\n\n\t\tconst broadcastAddress = int2ipAddress(rawValues[93]);\n\t\tawait setChangedSystemState(adapter, 'broadcast_address', broadcastAddress);\n\n\t\tconst gateway = int2ipAddress(rawValues[94]);\n\t\tawait setChangedSystemState(adapter, 'standard_gateway', gateway);\n\n\t\tconst hpTypeIndex = rawValues[78];\n\t\tconst hpTypeString = createHeatPumpTypeString(hpTypeIndex);\n\t\tawait setChangedSystemState(adapter, 'heatpump_type', hpTypeString);\n\t} catch (err: unknown) {\n\t\tconst msg = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error updating system information: ${msg}`, 'error');\n\t}\n}\n\n/**\n * Converts an array of ASCII numbers into a readable firmware string.\n *\n * @param buf Array of ASCII numbers\n * @returns Cleaned firmware string\n */\nfunction createFirmwareString(buf: number[]): string {\n\tif (!buf || !Array.isArray(buf)) {\n\t\treturn 'Unknown';\n\t}\n\treturn buf\n\t\t.filter(v => v !== 0)\n\t\t.map(v => String.fromCharCode(v))\n\t\t.join('')\n\t\t.trim();\n}\n\n/**\n * Converts a 32-bit integer into an IPv4 address.\n *\n * @param value 32-bit integer\n * @returns IPv4 address as a string\n */\nfunction int2ipAddress(value: number): string {\n\tif (value === undefined || value === null || isNaN(value)) {\n\t\treturn '0.0.0.0';\n\t}\n\n\tconst part1 = value & 255;\n\tconst part2 = (value >>> 8) & 255;\n\tconst part3 = (value >>> 16) & 255;\n\tconst part4 = (value >>> 24) & 255;\n\n\treturn `${part4}.${part3}.${part2}.${part1}`;\n}\n\n/**\n * Retrieves the clear text name of the system type from the dictionary.\n *\n * @param value Index of the system type\n * @returns Clear text string of the system type\n */\nfunction createHeatPumpTypeString(value: number): string {\n\treturn HP_TYPES[value] || HP_TYPES[-1];\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mBAA6G;AAC7G,oBAAyB;AACzB,2BAA6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