iobroker.luxtronik2-controller 0.19.6 → 0.20.1
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 +16 -17
- package/admin/jsonConfig.json +165 -11
- package/build/main.js +47 -0
- package/build/main.js.map +2 -2
- package/build/mapping/info.js +36 -0
- package/build/mapping/info.js.map +2 -2
- package/build/mapping/settings.js +11 -9
- package/build/mapping/settings.js.map +2 -2
- package/build/notificationManager.js +31 -2
- package/build/notificationManager.js.map +2 -2
- package/build/updateManager.js +191 -0
- package/build/updateManager.js.map +7 -0
- package/build/zipManager.js.map +1 -1
- 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\tmodbus: { type: 'holding', register: 7, configKey: 'sync_modbus_holding_7' },\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\tmodbus: { type: 'holding', register: 8, configKey: 'sync_modbus_holding_8' },\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\tmodbus: { type: 'holding', register: 15, configKey: 'sync_modbus_holding_15' },\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\tmodbus: { type: 'holding', register: 16, configKey: 'sync_modbus_holding_16' },\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: 1,\n\t\tdataSource: 'raw_parameter',\n\t\tmodbus: { type: 'holding', register: 23, configKey: 'sync_modbus_holding_23' },\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\tmodbus: { type: 'holding', register: 2, configKey: 'sync_modbus_holding_2' },\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\tmodbus: { type: 'holding', register: 5, configKey: 'sync_modbus_holding_5' },\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\tmodbus: { type: 'holding', register: 5, configKey: 'sync_modbus_holding_5' },\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' },\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;AAAA,MACjF,IAAI,EAAE,GAAG,aAAa,GAAG,oBAAoB,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM;AAAA,IAChF;AAAA,IACA,YAAY;AAAA,IACZ,QAAQ,EAAE,MAAM,WAAW,UAAU,GAAG,WAAW,wBAAwB;AAAA,EAC5E;AAAA,EACA,0BAA0B;AAAA,IACzB,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;AAAA,MACjF,IAAI,EAAE,GAAG,aAAa,GAAG,oBAAoB,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM;AAAA,IAChF;AAAA,IACA,YAAY;AAAA,IACZ,QAAQ,EAAE,MAAM,WAAW,UAAU,GAAG,WAAW,wBAAwB;AAAA,EAC5E;AAAA,EACA,yBAAyB;AAAA,IACxB,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,I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AAA,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\tmodbus: { type: 'holding', register: 7, configKey: 'sync_modbus_holding_7' },\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\tmodbus: { type: 'holding', register: 8, configKey: 'sync_modbus_holding_8' },\n\t},\n\theating_curve_end_point: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Heating curve end point (Return)', de: 'Heizen Endpunkt' },\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\tmodbus: { type: 'holding', register: 15, configKey: 'sync_modbus_holding_15' },\n\t},\n\theating_curve_parallel_offset: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Heating curve parallel offset', de: 'Heizen Fusspunkt' },\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\tmodbus: { type: 'holding', register: 16, configKey: 'sync_modbus_holding_16' },\n\t},\n\tdeltaHeatingReduction: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Heating night reduction (Delta)', de: 'Heizen Absenkung' },\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: { en: 'Heating target temp offset', de: 'Heizen Parallelverschiebung' },\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\tmin: -5,\n\t\tmax: 5,\n\t\tdataSource: 'raw_parameter',\n\t\tmodbus: { type: 'holding', register: 23, configKey: 'sync_modbus_holding_23' },\n\t},\n\treturnTemperatureHysteresis: {\n\t\tfolder: 'Settings.02_Heating',\n\t\tname: { en: 'Return temperature hysteresis', de: 'Hysterese Heizen' },\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: { en: 'Heating limit temperature', de: 'Heizgrenze Temperatur' },\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: { en: 'Heating limit active', de: 'Heizgrenze' },\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: { en: 'Heating by water active', de: 'Heizen nach Wasser' },\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\tmodbus: { type: 'holding', register: 2, configKey: 'sync_modbus_holding_2' },\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\tmodbus: { type: 'holding', register: 5, configKey: 'sync_modbus_holding_5' },\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\tmodbus: { type: 'holding', register: 5, configKey: 'sync_modbus_holding_5' },\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' },\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;AAAA,MACjF,IAAI,EAAE,GAAG,aAAa,GAAG,oBAAoB,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM;AAAA,IAChF;AAAA,IACA,YAAY;AAAA,IACZ,QAAQ,EAAE,MAAM,WAAW,UAAU,GAAG,WAAW,wBAAwB;AAAA,EAC5E;AAAA,EACA,0BAA0B;AAAA,IACz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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;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -21,7 +21,8 @@ __export(notificationManager_exports, {
|
|
|
21
21
|
checkAndSendErrorNotifications: () => checkAndSendErrorNotifications,
|
|
22
22
|
checkAndSendOutageNotifications: () => checkAndSendOutageNotifications,
|
|
23
23
|
handleTestMessage: () => handleTestMessage,
|
|
24
|
-
sendTelegramNotification: () => sendTelegramNotification
|
|
24
|
+
sendTelegramNotification: () => sendTelegramNotification,
|
|
25
|
+
sendUpdateNotification: () => sendUpdateNotification
|
|
25
26
|
});
|
|
26
27
|
module.exports = __toCommonJS(notificationManager_exports);
|
|
27
28
|
var import_logger = require("./logger");
|
|
@@ -219,11 +220,39 @@ _Hinweis: Die Anlage versucht meist einen Neustart. Bitte Heizkreis-Druck und St
|
|
|
219
220
|
}
|
|
220
221
|
await sendNotification(adapter, msg);
|
|
221
222
|
}
|
|
223
|
+
async function sendUpdateNotification(adapter, message) {
|
|
224
|
+
var _a;
|
|
225
|
+
const config = adapter.config;
|
|
226
|
+
if (config.update_check_notification === true) {
|
|
227
|
+
if (typeof adapter.registerNotification === "function") {
|
|
228
|
+
await adapter.registerNotification("luxtronik2-controller", "lwpError", message);
|
|
229
|
+
(0, import_logger.writeLog)("ioBroker-Benachrichtigung (Glocke) \xFCber neues Firmware-Update erstellt.", "info");
|
|
230
|
+
} else {
|
|
231
|
+
(0, import_logger.writeLog)("\u{1F6A8} ioBroker Notification Center (Glocke) nicht verf\xFCgbar.", "warn");
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
const telegramInstance = config.telegram_instance;
|
|
235
|
+
const isTelegramActive = config.update_check_telegram === true && typeof telegramInstance === "string" && telegramInstance !== "none";
|
|
236
|
+
if (isTelegramActive) {
|
|
237
|
+
const sendObj = { text: message };
|
|
238
|
+
const receiver = (_a = config.telegram_receiver) == null ? void 0 : _a.trim();
|
|
239
|
+
if (receiver) {
|
|
240
|
+
if (/^-?\d+$/.test(receiver)) {
|
|
241
|
+
sendObj.chatId = Number(receiver);
|
|
242
|
+
} else {
|
|
243
|
+
sendObj.user = receiver;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
adapter.sendTo(telegramInstance, "send", sendObj);
|
|
247
|
+
(0, import_logger.writeLog)(`Telegram-Benachrichtigung f\xFCr Update an ${telegramInstance} gesendet.`, "info");
|
|
248
|
+
}
|
|
249
|
+
}
|
|
222
250
|
// Annotate the CommonJS export names for ESM import in node:
|
|
223
251
|
0 && (module.exports = {
|
|
224
252
|
checkAndSendErrorNotifications,
|
|
225
253
|
checkAndSendOutageNotifications,
|
|
226
254
|
handleTestMessage,
|
|
227
|
-
sendTelegramNotification
|
|
255
|
+
sendTelegramNotification,
|
|
256
|
+
sendUpdateNotification
|
|
228
257
|
});
|
|
229
258
|
//# sourceMappingURL=notificationManager.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/notificationManager.ts"],
|
|
4
|
-
"sourcesContent": ["import { writeLog } from './logger';\nimport { getDpPath } from './stateMapping';\nimport type { LuxtronikAdapter } from './types';\n\n// =========================================================\n// TYPES & INTERFACES\n// =========================================================\n\n/**\n * Structure of an entry in the error or outage history.\n */\nexport interface ErrorHistoryEntry {\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// HELPER FUNCTIONS\n// =========================================================\n\n/**\n * Parses a JSON string in a type-safe manner and silently handles parsing errors.\n *\n * @param value - The JSON string to parse.\n * @returns The parsed object of type T, or null if parsing fails.\n */\nfunction safeParse<T>(value: string): T | null {\n\ttry {\n\t\treturn JSON.parse(value) as T;\n\t} catch {\n\t\tvoid 0;\n\t\treturn null;\n\t}\n}\n\n/**\n * Sends a notification message via the configured channels (ioBroker Notification Center & Telegram).\n *\n * @param adapter - The extended adapter instance.\n * @param message - The message text to send.\n * @returns A promise resolving to an array of successful delivery channel names.\n */\nasync function sendNotification(adapter: LuxtronikAdapter, message: string): Promise<string[]> {\n\tconst config = adapter.config;\n\tconst successMessages: string[] = [];\n\n\tif (config.notification_bell === true) {\n\t\tif (typeof adapter.registerNotification === 'function') {\n\t\t\tawait adapter.registerNotification('luxtronik2-controller', 'lwpError', message);\n\t\t\twriteLog('Notification sent to ioBroker notification center.', 'info');\n\t\t\tsuccessMessages.push('Notification Center');\n\t\t} else {\n\t\t\twriteLog(`\uD83D\uDEA8 ioBroker notification center unavailable. Message: ${message}`, 'warn');\n\t\t}\n\t}\n\n\tconst telegramInstance = config.telegram_instance;\n\tconst isTelegramActive =\n\t\tconfig.telegram_enabled === true && typeof telegramInstance === 'string' && telegramInstance !== 'none';\n\n\tif (isTelegramActive) {\n\t\tconst sendObj: Record<string, any> = { text: message };\n\t\tconst receiver = config.telegram_receiver?.trim();\n\n\t\tif (receiver) {\n\t\t\tif (/^-?\\d+$/.test(receiver)) {\n\t\t\t\tsendObj.chatId = Number(receiver);\n\t\t\t} else {\n\t\t\t\tsendObj.user = receiver;\n\t\t\t}\n\t\t}\n\n\t\tadapter.sendTo(telegramInstance, 'send', sendObj);\n\t\twriteLog(`Telegram message sent to ${telegramInstance}`, 'info');\n\t\tsuccessMessages.push('Telegram');\n\t}\n\n\treturn successMessages;\n}\n\n// =========================================================\n// MAIN EXPORTS\n// =========================================================\n\n/**\n * Backwards-compatible wrapper to send Telegram notifications explicitly.\n * Forwards the request to the universal notification function.\n *\n * @param adapter - The extended adapter instance.\n * @param message - The message text to send.\n */\nexport function sendTelegramNotification(adapter: LuxtronikAdapter, message: string): void {\n\tvoid sendNotification(adapter, message);\n}\n\n/**\n * Handles the 'testTelegram' message from the ioBroker Admin UI.\n *\n * @param adapter - The extended adapter instance.\n * @param obj - The standardized ioBroker message structure.\n * @returns A promise resolving when the test message has been processed.\n */\nexport async function handleTestMessage(adapter: LuxtronikAdapter, obj: ioBroker.Message): Promise<void> {\n\ttry {\n\t\twriteLog('Test button triggered!', 'info');\n\t\tconst config = adapter.config;\n\n\t\tconst isTelegramActive =\n\t\t\tconfig.telegram_enabled === true && config.telegram_instance && config.telegram_instance !== 'none';\n\t\tconst isIoBrokerNotifyActive = config.notification_bell === true;\n\n\t\tif (!isTelegramActive && !isIoBrokerNotifyActive) {\n\t\t\tif (obj.callback) {\n\t\t\t\tadapter.sendTo(\n\t\t\t\t\tobj.from,\n\t\t\t\t\tobj.command,\n\t\t\t\t\t{\n\t\t\t\t\t\terror: 'Error: Neither Telegram nor Notification Center are active! Please save settings first.',\n\t\t\t\t\t},\n\t\t\t\t\tobj.callback,\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst errorPath = getDpPath('Fehlerspeicher');\n\t\tconst lastErrorState = errorPath ? await adapter.getStateAsync(errorPath) : null;\n\t\tlet msg = '';\n\n\t\tif (lastErrorState && typeof lastErrorState.val === 'string') {\n\t\t\tconst errorList = safeParse<ErrorHistoryEntry[]>(lastErrorState.val);\n\n\t\t\tif (errorList && errorList.length > 0) {\n\t\t\t\tconst newestError = errorList[0];\n\t\t\t\tmsg = `\uD83D\uDEA8 *Test Alarm: Error Log*\\n\\nMost recent error:\\nCode: ${newestError.code}\\nError: ${newestError.beschreibung}\\nDate: ${newestError.datum}\\n\\n`;\n\n\t\t\t\tif (errorList.length > 1) {\n\t\t\t\t\tconst history = errorList\n\t\t\t\t\t\t.slice(1)\n\t\t\t\t\t\t.map(e => `Date: ${e.datum}\\nCode: ${e.code}\\nError: ${e.beschreibung}`)\n\t\t\t\t\t\t.join('\\n\\n');\n\t\t\t\t\tmsg += `History:\\n${history}`;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (msg === '') {\n\t\t\tmsg =\n\t\t\t\t'\u2705 *Successful Test*\\n\\nThis is a generated test message. Communication via Telegram and ioBroker works perfectly! (There are currently no real heat pump errors).';\n\t\t}\n\n\t\tconst successMessages = await sendNotification(adapter, msg);\n\n\t\tif (obj.callback) {\n\t\t\tadapter.sendTo(\n\t\t\t\tobj.from,\n\t\t\t\tobj.command,\n\t\t\t\t{ result: `Successfully triggered: ${successMessages.join(' & ')}` },\n\t\t\t\tobj.callback,\n\t\t\t);\n\t\t}\n\t} catch (err: unknown) {\n\t\tconst errorMessage = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error processing test button: ${errorMessage}`, 'error');\n\t\tif (obj.callback) {\n\t\t\tadapter.sendTo(obj.from, obj.command, { error: `Script error: ${errorMessage}` }, obj.callback);\n\t\t}\n\t}\n}\n\n/**\n * Checks for changes in the error log, filters out known errors,\n * and triggers an alarm for new, genuine heat pump errors.\n *\n * @param adapter - The extended adapter instance.\n * @param oldFehlerVal - The previous state of the error memory as a JSON string.\n * @param newFehlerVal - The new state of the error memory as a JSON string.\n * @returns A promise resolving when the check finishes.\n */\nexport async function checkAndSendErrorNotifications(\n\tadapter: LuxtronikAdapter,\n\toldFehlerVal: string | undefined,\n\tnewFehlerVal: string | undefined,\n): Promise<void> {\n\tif (!newFehlerVal || newFehlerVal === oldFehlerVal) {\n\t\treturn;\n\t}\n\n\tconst newList = safeParse<ErrorHistoryEntry[]>(newFehlerVal);\n\tif (!newList || newList.length === 0) {\n\t\treturn;\n\t}\n\n\tconst newestError = newList[0];\n\tconst currentErrorTimestamp = newestError.timestamp;\n\tconst currentErrorCode = newestError.code;\n\n\tif (currentErrorTimestamp === undefined || currentErrorCode === 0) {\n\t\treturn;\n\t}\n\n\tif (adapter.lastKnownErrorTimestamp === undefined || adapter.lastKnownErrorTimestamp === null) {\n\t\tadapter.lastKnownErrorTimestamp = currentErrorTimestamp;\n\t\twriteLog('Error monitoring initialized. Last known error timestamp set silently.', 'debug');\n\t\treturn;\n\t}\n\n\tif (currentErrorTimestamp <= adapter.lastKnownErrorTimestamp) {\n\t\treturn;\n\t}\n\n\tadapter.lastKnownErrorTimestamp = currentErrorTimestamp;\n\n\tconst msg = `\uD83D\uDEA8 *Heat Pump Malfunction!*\\nAn error was registered on the heat pump:\\n\\n*Code:* ${currentErrorCode}\\n*Error:* ${newestError.beschreibung}\\n*Date:* ${newestError.datum}`;\n\n\tawait sendNotification(adapter, msg);\n}\n\n/**\n * \u00DCberwacht den Abschalt-Speicher gezielt auf kritische St\u00F6rungen und Durchfluss-Probleme,\n * die von der W\u00E4rmepumpe registriert wurden.\n *\n * @param adapter - Die erweiterte Adapter-Instanz.\n * @param oldOutageVal - Der vorherige State der Abschaltungen (JSON).\n * @param newOutageVal - Der neue State der Abschaltungen (JSON).\n */\nexport async function checkAndSendOutageNotifications(\n\tadapter: LuxtronikAdapter,\n\toldOutageVal: string | undefined,\n\tnewOutageVal: string | undefined,\n): Promise<void> {\n\tif (!newOutageVal || newOutageVal === oldOutageVal) {\n\t\treturn;\n\t}\n\n\tconst newList = safeParse<ErrorHistoryEntry[]>(newOutageVal);\n\tif (!newList || newList.length === 0) {\n\t\treturn;\n\t}\n\n\tconst newestOutage = newList[0];\n\tconst currentOutageTimestamp = newestOutage.timestamp;\n\tconst currentOutageCode = newestOutage.code;\n\n\t// Timestamp muss vorhanden und valide sein.\n\t// WICHTIG: currentOutageCode === 0 DARF HIER NICHT blockieren, da Code 0 = \"W\u00E4rmepumpen-St\u00F6rung\" ist!\n\tif (currentOutageTimestamp === undefined || currentOutageTimestamp <= 0) {\n\t\treturn;\n\t}\n\n\t// Filter f\u00FCr St\u00F6rungen und Durchflussprobleme\n\tconst descLower = newestOutage.beschreibung.toLowerCase();\n\tconst isFlowIssue = descLower.includes('durchfluss') || descLower.includes('flow');\n\tconst isMalfunction =\n\t\tdescLower.includes('st\u00F6rung') ||\n\t\tdescLower.includes('stoerung') ||\n\t\tdescLower.includes('wpst\u00F6rung') ||\n\t\tcurrentOutageCode === 0;\n\n\tif (!isFlowIssue && !isMalfunction) {\n\t\treturn;\n\t}\n\n\tif (adapter.lastKnownOutageTimestamp === undefined || adapter.lastKnownOutageTimestamp === null) {\n\t\tadapter.lastKnownOutageTimestamp = currentOutageTimestamp;\n\t\twriteLog('Outage monitoring initialized. Last known outage timestamp set silently.', 'debug');\n\t\treturn;\n\t}\n\n\tif (currentOutageTimestamp <= adapter.lastKnownOutageTimestamp) {\n\t\treturn; // Kein neuer Eintrag\n\t}\n\n\t// Spam-Schutz: Max 1 Nachricht pro Stunde f\u00FCr denselben Abschalt-Typ\n\tconst now = Date.now();\n\tif (adapter.lastFlowNotificationTime && now - adapter.lastFlowNotificationTime < 60 * 60 * 1000) {\n\t\tadapter.lastKnownOutageTimestamp = currentOutageTimestamp;\n\t\twriteLog('Outage registered, but notification skipped due to 60-minute cooldown spam protection.', 'info');\n\t\treturn;\n\t}\n\n\tadapter.lastKnownOutageTimestamp = currentOutageTimestamp;\n\tadapter.lastFlowNotificationTime = now;\n\n\tlet msg = '';\n\tif (isMalfunction) {\n\t\tmsg = `\uD83D\uDEA8 *Alarm: W\u00E4rmepumpen-Abschaltung (St\u00F6rung)!*\\nDie W\u00E4rmepumpe hat sich wegen einer St\u00F6rung abgeschaltet:\\n\\n*Grund:* ${newestOutage.beschreibung}\\n*Code:* ${currentOutageCode}\\n*Datum:* ${newestOutage.datum}\\n\\n_Hinweis: Bitte Fehlerspeicher und W\u00E4rmepumpen-Status pr\u00FCfen._`;\n\t} else {\n\t\tmsg = `\u26A0\uFE0F *Warnung: Durchfluss-Problem!*\\nDie W\u00E4rmepumpe hat sich wegen geringem Durchfluss abgeschaltet:\\n\\n*Grund:* ${newestOutage.beschreibung}\\n*Code:* ${currentOutageCode}\\n*Datum:* ${newestOutage.datum}\\n\\n_Hinweis: Die Anlage versucht meist einen Neustart. Bitte Heizkreis-Druck und Stellventile pr\u00FCfen._`;\n\t}\n\n\tawait sendNotification(adapter, msg);\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAyB;AACzB,0BAA0B;AA+B1B,SAAS,UAAa,OAAyB;AAC9C,MAAI;AACH,WAAO,KAAK,MAAM,KAAK;AAAA,EACxB,QAAQ;AAEP,WAAO;AAAA,EACR;AACD;AASA,eAAe,iBAAiB,SAA2B,SAAoC;AAhD/F;AAiDC,QAAM,SAAS,QAAQ;AACvB,QAAM,kBAA4B,CAAC;AAEnC,MAAI,OAAO,sBAAsB,MAAM;AACtC,QAAI,OAAO,QAAQ,yBAAyB,YAAY;AACvD,YAAM,QAAQ,qBAAqB,yBAAyB,YAAY,OAAO;AAC/E,kCAAS,sDAAsD,MAAM;AACrE,sBAAgB,KAAK,qBAAqB;AAAA,IAC3C,OAAO;AACN,kCAAS,gEAAyD,OAAO,IAAI,MAAM;AAAA,IACpF;AAAA,EACD;AAEA,QAAM,mBAAmB,OAAO;AAChC,QAAM,mBACL,OAAO,qBAAqB,QAAQ,OAAO,qBAAqB,YAAY,qBAAqB;AAElG,MAAI,kBAAkB;AACrB,UAAM,UAA+B,EAAE,MAAM,QAAQ;AACrD,UAAM,YAAW,YAAO,sBAAP,mBAA0B;AAE3C,QAAI,UAAU;AACb,UAAI,UAAU,KAAK,QAAQ,GAAG;AAC7B,gBAAQ,SAAS,OAAO,QAAQ;AAAA,MACjC,OAAO;AACN,gBAAQ,OAAO;AAAA,MAChB;AAAA,IACD;AAEA,YAAQ,OAAO,kBAAkB,QAAQ,OAAO;AAChD,gCAA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
"sourcesContent": ["import { writeLog } from './logger';\nimport { getDpPath } from './stateMapping';\nimport type { LuxtronikAdapter } from './types';\n\n// =========================================================\n// TYPES & INTERFACES\n// =========================================================\n\n/**\n * Structure of an entry in the error or outage history.\n */\nexport interface ErrorHistoryEntry {\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// HELPER FUNCTIONS\n// =========================================================\n\n/**\n * Parses a JSON string in a type-safe manner and silently handles parsing errors.\n *\n * @param value - The JSON string to parse.\n * @returns The parsed object of type T, or null if parsing fails.\n */\nfunction safeParse<T>(value: string): T | null {\n\ttry {\n\t\treturn JSON.parse(value) as T;\n\t} catch {\n\t\tvoid 0;\n\t\treturn null;\n\t}\n}\n\n/**\n * Sends a notification message via the configured channels (ioBroker Notification Center & Telegram).\n *\n * @param adapter - The extended adapter instance.\n * @param message - The message text to send.\n * @returns A promise resolving to an array of successful delivery channel names.\n */\nasync function sendNotification(adapter: LuxtronikAdapter, message: string): Promise<string[]> {\n\tconst config = adapter.config;\n\tconst successMessages: string[] = [];\n\n\tif (config.notification_bell === true) {\n\t\tif (typeof adapter.registerNotification === 'function') {\n\t\t\tawait adapter.registerNotification('luxtronik2-controller', 'lwpError', message);\n\t\t\twriteLog('Notification sent to ioBroker notification center.', 'info');\n\t\t\tsuccessMessages.push('Notification Center');\n\t\t} else {\n\t\t\twriteLog(`\uD83D\uDEA8 ioBroker notification center unavailable. Message: ${message}`, 'warn');\n\t\t}\n\t}\n\n\tconst telegramInstance = config.telegram_instance;\n\tconst isTelegramActive =\n\t\tconfig.telegram_enabled === true && typeof telegramInstance === 'string' && telegramInstance !== 'none';\n\n\tif (isTelegramActive) {\n\t\tconst sendObj: Record<string, any> = { text: message };\n\t\tconst receiver = config.telegram_receiver?.trim();\n\n\t\tif (receiver) {\n\t\t\tif (/^-?\\d+$/.test(receiver)) {\n\t\t\t\tsendObj.chatId = Number(receiver);\n\t\t\t} else {\n\t\t\t\tsendObj.user = receiver;\n\t\t\t}\n\t\t}\n\n\t\tadapter.sendTo(telegramInstance, 'send', sendObj);\n\t\twriteLog(`Telegram message sent to ${telegramInstance}`, 'info');\n\t\tsuccessMessages.push('Telegram');\n\t}\n\n\treturn successMessages;\n}\n\n// =========================================================\n// MAIN EXPORTS\n// =========================================================\n\n/**\n * Backwards-compatible wrapper to send Telegram notifications explicitly.\n * Forwards the request to the universal notification function.\n *\n * @param adapter - The extended adapter instance.\n * @param message - The message text to send.\n */\nexport function sendTelegramNotification(adapter: LuxtronikAdapter, message: string): void {\n\tvoid sendNotification(adapter, message);\n}\n\n/**\n * Handles the 'testTelegram' message from the ioBroker Admin UI.\n *\n * @param adapter - The extended adapter instance.\n * @param obj - The standardized ioBroker message structure.\n * @returns A promise resolving when the test message has been processed.\n */\nexport async function handleTestMessage(adapter: LuxtronikAdapter, obj: ioBroker.Message): Promise<void> {\n\ttry {\n\t\twriteLog('Test button triggered!', 'info');\n\t\tconst config = adapter.config;\n\n\t\tconst isTelegramActive =\n\t\t\tconfig.telegram_enabled === true && config.telegram_instance && config.telegram_instance !== 'none';\n\t\tconst isIoBrokerNotifyActive = config.notification_bell === true;\n\n\t\tif (!isTelegramActive && !isIoBrokerNotifyActive) {\n\t\t\tif (obj.callback) {\n\t\t\t\tadapter.sendTo(\n\t\t\t\t\tobj.from,\n\t\t\t\t\tobj.command,\n\t\t\t\t\t{\n\t\t\t\t\t\terror: 'Error: Neither Telegram nor Notification Center are active! Please save settings first.',\n\t\t\t\t\t},\n\t\t\t\t\tobj.callback,\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tconst errorPath = getDpPath('Fehlerspeicher');\n\t\tconst lastErrorState = errorPath ? await adapter.getStateAsync(errorPath) : null;\n\t\tlet msg = '';\n\n\t\tif (lastErrorState && typeof lastErrorState.val === 'string') {\n\t\t\tconst errorList = safeParse<ErrorHistoryEntry[]>(lastErrorState.val);\n\n\t\t\tif (errorList && errorList.length > 0) {\n\t\t\t\tconst newestError = errorList[0];\n\t\t\t\tmsg = `\uD83D\uDEA8 *Test Alarm: Error Log*\\n\\nMost recent error:\\nCode: ${newestError.code}\\nError: ${newestError.beschreibung}\\nDate: ${newestError.datum}\\n\\n`;\n\n\t\t\t\tif (errorList.length > 1) {\n\t\t\t\t\tconst history = errorList\n\t\t\t\t\t\t.slice(1)\n\t\t\t\t\t\t.map(e => `Date: ${e.datum}\\nCode: ${e.code}\\nError: ${e.beschreibung}`)\n\t\t\t\t\t\t.join('\\n\\n');\n\t\t\t\t\tmsg += `History:\\n${history}`;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (msg === '') {\n\t\t\tmsg =\n\t\t\t\t'\u2705 *Successful Test*\\n\\nThis is a generated test message. Communication via Telegram and ioBroker works perfectly! (There are currently no real heat pump errors).';\n\t\t}\n\n\t\tconst successMessages = await sendNotification(adapter, msg);\n\n\t\tif (obj.callback) {\n\t\t\tadapter.sendTo(\n\t\t\t\tobj.from,\n\t\t\t\tobj.command,\n\t\t\t\t{ result: `Successfully triggered: ${successMessages.join(' & ')}` },\n\t\t\t\tobj.callback,\n\t\t\t);\n\t\t}\n\t} catch (err: unknown) {\n\t\tconst errorMessage = err instanceof Error ? err.message : String(err);\n\t\twriteLog(`Error processing test button: ${errorMessage}`, 'error');\n\t\tif (obj.callback) {\n\t\t\tadapter.sendTo(obj.from, obj.command, { error: `Script error: ${errorMessage}` }, obj.callback);\n\t\t}\n\t}\n}\n\n/**\n * Checks for changes in the error log, filters out known errors,\n * and triggers an alarm for new, genuine heat pump errors.\n *\n * @param adapter - The extended adapter instance.\n * @param oldFehlerVal - The previous state of the error memory as a JSON string.\n * @param newFehlerVal - The new state of the error memory as a JSON string.\n * @returns A promise resolving when the check finishes.\n */\nexport async function checkAndSendErrorNotifications(\n\tadapter: LuxtronikAdapter,\n\toldFehlerVal: string | undefined,\n\tnewFehlerVal: string | undefined,\n): Promise<void> {\n\tif (!newFehlerVal || newFehlerVal === oldFehlerVal) {\n\t\treturn;\n\t}\n\n\tconst newList = safeParse<ErrorHistoryEntry[]>(newFehlerVal);\n\tif (!newList || newList.length === 0) {\n\t\treturn;\n\t}\n\n\tconst newestError = newList[0];\n\tconst currentErrorTimestamp = newestError.timestamp;\n\tconst currentErrorCode = newestError.code;\n\n\tif (currentErrorTimestamp === undefined || currentErrorCode === 0) {\n\t\treturn;\n\t}\n\n\tif (adapter.lastKnownErrorTimestamp === undefined || adapter.lastKnownErrorTimestamp === null) {\n\t\tadapter.lastKnownErrorTimestamp = currentErrorTimestamp;\n\t\twriteLog('Error monitoring initialized. Last known error timestamp set silently.', 'debug');\n\t\treturn;\n\t}\n\n\tif (currentErrorTimestamp <= adapter.lastKnownErrorTimestamp) {\n\t\treturn;\n\t}\n\n\tadapter.lastKnownErrorTimestamp = currentErrorTimestamp;\n\n\tconst msg = `\uD83D\uDEA8 *Heat Pump Malfunction!*\\nAn error was registered on the heat pump:\\n\\n*Code:* ${currentErrorCode}\\n*Error:* ${newestError.beschreibung}\\n*Date:* ${newestError.datum}`;\n\n\tawait sendNotification(adapter, msg);\n}\n\n/**\n * \u00DCberwacht den Abschalt-Speicher gezielt auf kritische St\u00F6rungen und Durchfluss-Probleme,\n * die von der W\u00E4rmepumpe registriert wurden.\n *\n * @param adapter - Die erweiterte Adapter-Instanz.\n * @param oldOutageVal - Der vorherige State der Abschaltungen (JSON).\n * @param newOutageVal - Der neue State der Abschaltungen (JSON).\n */\nexport async function checkAndSendOutageNotifications(\n\tadapter: LuxtronikAdapter,\n\toldOutageVal: string | undefined,\n\tnewOutageVal: string | undefined,\n): Promise<void> {\n\tif (!newOutageVal || newOutageVal === oldOutageVal) {\n\t\treturn;\n\t}\n\n\tconst newList = safeParse<ErrorHistoryEntry[]>(newOutageVal);\n\tif (!newList || newList.length === 0) {\n\t\treturn;\n\t}\n\n\tconst newestOutage = newList[0];\n\tconst currentOutageTimestamp = newestOutage.timestamp;\n\tconst currentOutageCode = newestOutage.code;\n\n\t// Timestamp muss vorhanden und valide sein.\n\t// WICHTIG: currentOutageCode === 0 DARF HIER NICHT blockieren, da Code 0 = \"W\u00E4rmepumpen-St\u00F6rung\" ist!\n\tif (currentOutageTimestamp === undefined || currentOutageTimestamp <= 0) {\n\t\treturn;\n\t}\n\n\t// Filter f\u00FCr St\u00F6rungen und Durchflussprobleme\n\tconst descLower = newestOutage.beschreibung.toLowerCase();\n\tconst isFlowIssue = descLower.includes('durchfluss') || descLower.includes('flow');\n\tconst isMalfunction =\n\t\tdescLower.includes('st\u00F6rung') ||\n\t\tdescLower.includes('stoerung') ||\n\t\tdescLower.includes('wpst\u00F6rung') ||\n\t\tcurrentOutageCode === 0;\n\n\tif (!isFlowIssue && !isMalfunction) {\n\t\treturn;\n\t}\n\n\tif (adapter.lastKnownOutageTimestamp === undefined || adapter.lastKnownOutageTimestamp === null) {\n\t\tadapter.lastKnownOutageTimestamp = currentOutageTimestamp;\n\t\twriteLog('Outage monitoring initialized. Last known outage timestamp set silently.', 'debug');\n\t\treturn;\n\t}\n\n\tif (currentOutageTimestamp <= adapter.lastKnownOutageTimestamp) {\n\t\treturn; // Kein neuer Eintrag\n\t}\n\n\t// Spam-Schutz: Max 1 Nachricht pro Stunde f\u00FCr denselben Abschalt-Typ\n\tconst now = Date.now();\n\tif (adapter.lastFlowNotificationTime && now - adapter.lastFlowNotificationTime < 60 * 60 * 1000) {\n\t\tadapter.lastKnownOutageTimestamp = currentOutageTimestamp;\n\t\twriteLog('Outage registered, but notification skipped due to 60-minute cooldown spam protection.', 'info');\n\t\treturn;\n\t}\n\n\tadapter.lastKnownOutageTimestamp = currentOutageTimestamp;\n\tadapter.lastFlowNotificationTime = now;\n\n\tlet msg = '';\n\tif (isMalfunction) {\n\t\tmsg = `\uD83D\uDEA8 *Alarm: W\u00E4rmepumpen-Abschaltung (St\u00F6rung)!*\\nDie W\u00E4rmepumpe hat sich wegen einer St\u00F6rung abgeschaltet:\\n\\n*Grund:* ${newestOutage.beschreibung}\\n*Code:* ${currentOutageCode}\\n*Datum:* ${newestOutage.datum}\\n\\n_Hinweis: Bitte Fehlerspeicher und W\u00E4rmepumpen-Status pr\u00FCfen._`;\n\t} else {\n\t\tmsg = `\u26A0\uFE0F *Warnung: Durchfluss-Problem!*\\nDie W\u00E4rmepumpe hat sich wegen geringem Durchfluss abgeschaltet:\\n\\n*Grund:* ${newestOutage.beschreibung}\\n*Code:* ${currentOutageCode}\\n*Datum:* ${newestOutage.datum}\\n\\n_Hinweis: Die Anlage versucht meist einen Neustart. Bitte Heizkreis-Druck und Stellventile pr\u00FCfen._`;\n\t}\n\n\tawait sendNotification(adapter, msg);\n}\n\n/**\n * Sendet eine Benachrichtigung \u00FCber ein neues Firmware-Update (Glocke und/oder Telegram).\n *\n * @param adapter - Die erweiterte Adapter-Instanz.\n * @param message - Der Nachrichtentext.\n */\nexport async function sendUpdateNotification(adapter: LuxtronikAdapter, message: string): Promise<void> {\n\tconst config = adapter.config as Record<string, any>;\n\n\t// 1. ioBroker Notification Center (Glocke)\n\tif (config.update_check_notification === true) {\n\t\tif (typeof adapter.registerNotification === 'function') {\n\t\t\t// Wir nutzen die bekannte Kategorie 'lwpError', damit ioBroker die Nachricht nicht verwirft\n\t\t\tawait adapter.registerNotification('luxtronik2-controller', 'lwpError', message);\n\t\t\twriteLog('ioBroker-Benachrichtigung (Glocke) \u00FCber neues Firmware-Update erstellt.', 'info');\n\t\t} else {\n\t\t\twriteLog('\uD83D\uDEA8 ioBroker Notification Center (Glocke) nicht verf\u00FCgbar.', 'warn');\n\t\t}\n\t}\n\n\t// 2. Telegram\n\tconst telegramInstance = config.telegram_instance;\n\tconst isTelegramActive =\n\t\tconfig.update_check_telegram === true && typeof telegramInstance === 'string' && telegramInstance !== 'none';\n\n\tif (isTelegramActive) {\n\t\tconst sendObj: Record<string, any> = { text: message };\n\t\tconst receiver = config.telegram_receiver?.trim();\n\n\t\tif (receiver) {\n\t\t\tif (/^-?\\d+$/.test(receiver)) {\n\t\t\t\tsendObj.chatId = Number(receiver);\n\t\t\t} else {\n\t\t\t\tsendObj.user = receiver;\n\t\t\t}\n\t\t}\n\n\t\tadapter.sendTo(telegramInstance, 'send', sendObj);\n\t\twriteLog(`Telegram-Benachrichtigung f\u00FCr Update an ${telegramInstance} gesendet.`, 'info');\n\t}\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAyB;AACzB,0BAA0B;AA+B1B,SAAS,UAAa,OAAyB;AAC9C,MAAI;AACH,WAAO,KAAK,MAAM,KAAK;AAAA,EACxB,QAAQ;AAEP,WAAO;AAAA,EACR;AACD;AASA,eAAe,iBAAiB,SAA2B,SAAoC;AAhD/F;AAiDC,QAAM,SAAS,QAAQ;AACvB,QAAM,kBAA4B,CAAC;AAEnC,MAAI,OAAO,sBAAsB,MAAM;AACtC,QAAI,OAAO,QAAQ,yBAAyB,YAAY;AACvD,YAAM,QAAQ,qBAAqB,yBAAyB,YAAY,OAAO;AAC/E,kCAAS,sDAAsD,MAAM;AACrE,sBAAgB,KAAK,qBAAqB;AAAA,IAC3C,OAAO;AACN,kCAAS,gEAAyD,OAAO,IAAI,MAAM;AAAA,IACpF;AAAA,EACD;AAEA,QAAM,mBAAmB,OAAO;AAChC,QAAM,mBACL,OAAO,qBAAqB,QAAQ,OAAO,qBAAqB,YAAY,qBAAqB;AAElG,MAAI,kBAAkB;AACrB,UAAM,UAA+B,EAAE,MAAM,QAAQ;AACrD,UAAM,YAAW,YAAO,sBAAP,mBAA0B;AAE3C,QAAI,UAAU;AACb,UAAI,UAAU,KAAK,QAAQ,GAAG;AAC7B,gBAAQ,SAAS,OAAO,QAAQ;AAAA,MACjC,OAAO;AACN,gBAAQ,OAAO;AAAA,MAChB;AAAA,IACD;AAEA,YAAQ,OAAO,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,SAAS,GAAG;AACpC;AAQA,eAAsB,uBAAuB,SAA2B,SAAgC;AAlTxG;AAmTC,QAAM,SAAS,QAAQ;AAGvB,MAAI,OAAO,8BAA8B,MAAM;AAC9C,QAAI,OAAO,QAAQ,yBAAyB,YAAY;AAEvD,YAAM,QAAQ,qBAAqB,yBAAyB,YAAY,OAAO;AAC/E,kCAAS,8EAA2E,MAAM;AAAA,IAC3F,OAAO;AACN,kCAAS,uEAA6D,MAAM;AAAA,IAC7E;AAAA,EACD;AAGA,QAAM,mBAAmB,OAAO;AAChC,QAAM,mBACL,OAAO,0BAA0B,QAAQ,OAAO,qBAAqB,YAAY,qBAAqB;AAEvG,MAAI,kBAAkB;AACrB,UAAM,UAA+B,EAAE,MAAM,QAAQ;AACrD,UAAM,YAAW,YAAO,sBAAP,mBAA0B;AAE3C,QAAI,UAAU;AACb,UAAI,UAAU,KAAK,QAAQ,GAAG;AAC7B,gBAAQ,SAAS,OAAO,QAAQ;AAAA,MACjC,OAAO;AACN,gBAAQ,OAAO;AAAA,MAChB;AAAA,IACD;AAEA,YAAQ,OAAO,kBAAkB,QAAQ,OAAO;AAChD,gCAAS,8CAA2C,gBAAgB,cAAc,MAAM;AAAA,EACzF;AACD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var updateManager_exports = {};
|
|
30
|
+
__export(updateManager_exports, {
|
|
31
|
+
checkFirmwareUpdate: () => checkFirmwareUpdate
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(updateManager_exports);
|
|
34
|
+
var https = __toESM(require("node:https"));
|
|
35
|
+
var import_logger = require("./logger");
|
|
36
|
+
var import_notificationManager = require("./notificationManager");
|
|
37
|
+
var import_stateMapping = require("./stateMapping");
|
|
38
|
+
const DOWNLOAD_PORTAL_URL = "https://www.heatpump24.com/software/fetchSoftware.php?softwareID=";
|
|
39
|
+
const CHANGELOG_URL = "https://www.heatpump24.com/software/fetchSoftware.php?changeLog=";
|
|
40
|
+
const httpsAgent = new https.Agent({ rejectUnauthorized: false });
|
|
41
|
+
function getFirmwareDownloadId(installedVersion) {
|
|
42
|
+
if (!installedVersion) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
if (installedVersion.startsWith("V1.")) {
|
|
46
|
+
return 0;
|
|
47
|
+
}
|
|
48
|
+
if (installedVersion.startsWith("V2.")) {
|
|
49
|
+
return 1;
|
|
50
|
+
}
|
|
51
|
+
if (installedVersion.startsWith("V3.")) {
|
|
52
|
+
return 2;
|
|
53
|
+
}
|
|
54
|
+
if (installedVersion.startsWith("V4.")) {
|
|
55
|
+
return 3;
|
|
56
|
+
}
|
|
57
|
+
if (installedVersion.startsWith("F1.")) {
|
|
58
|
+
return 4;
|
|
59
|
+
}
|
|
60
|
+
if (installedVersion.startsWith("WWB1.")) {
|
|
61
|
+
return 5;
|
|
62
|
+
}
|
|
63
|
+
if (installedVersion.startsWith("smo")) {
|
|
64
|
+
return 6;
|
|
65
|
+
}
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
function isVersionNewer(availableVersion, currentVersion) {
|
|
69
|
+
const normalize = (v) => v.replace(/^[^\d]+/, "");
|
|
70
|
+
const v1Parts = normalize(availableVersion).split(".").map(Number);
|
|
71
|
+
const v2Parts = normalize(currentVersion).split(".").map(Number);
|
|
72
|
+
for (let i = 0; i < Math.max(v1Parts.length, v2Parts.length); i++) {
|
|
73
|
+
const part1 = v1Parts[i] || 0;
|
|
74
|
+
const part2 = v2Parts[i] || 0;
|
|
75
|
+
if (part1 > part2) {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
if (part1 < part2) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
function fetchUrl(url, abortAfterHeaders = false, timeoutMs = 12e4) {
|
|
85
|
+
return new Promise((resolve, reject) => {
|
|
86
|
+
const options = {
|
|
87
|
+
method: "GET",
|
|
88
|
+
agent: httpsAgent,
|
|
89
|
+
timeout: timeoutMs,
|
|
90
|
+
// Dynamischer Timeout statt hart codiert
|
|
91
|
+
headers: {
|
|
92
|
+
"User-Agent": "ioBroker.luxtronik2-controller",
|
|
93
|
+
Accept: "*/*"
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
let wasAborted = false;
|
|
97
|
+
const req = https.request(url, options, (res) => {
|
|
98
|
+
if (abortAfterHeaders) {
|
|
99
|
+
wasAborted = true;
|
|
100
|
+
resolve({ headers: res.headers, data: "" });
|
|
101
|
+
req.destroy();
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
let body = "";
|
|
105
|
+
res.on("data", (chunk) => body += chunk);
|
|
106
|
+
res.on("end", () => resolve({ headers: res.headers, data: body }));
|
|
107
|
+
});
|
|
108
|
+
req.on("error", (err) => {
|
|
109
|
+
if (!wasAborted) {
|
|
110
|
+
reject(err);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
req.on("timeout", () => req.destroy(new Error("Timeout")));
|
|
114
|
+
req.end();
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
async function checkFirmwareUpdate(adapter) {
|
|
118
|
+
const config = adapter.config;
|
|
119
|
+
if (config.update_check_active !== true) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
const timeoutSeconds = config.update_check_timeout ? Number(config.update_check_timeout) : 120;
|
|
123
|
+
const timeoutMs = timeoutSeconds * 1e3;
|
|
124
|
+
try {
|
|
125
|
+
const firmwareState = await adapter.getStateAsync((0, import_stateMapping.getDpPath)("firmware"));
|
|
126
|
+
const currentFirmware = firmwareState && typeof firmwareState.val === "string" ? firmwareState.val : null;
|
|
127
|
+
if (!currentFirmware) {
|
|
128
|
+
(0, import_logger.writeLog)("Update-Pr\xFCfung abgebrochen: Aktuelle Firmware-Version ist noch nicht bekannt.", "debug");
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
const downloadId = getFirmwareDownloadId(currentFirmware);
|
|
132
|
+
if (downloadId === null) {
|
|
133
|
+
(0, import_logger.writeLog)(`Update-Pr\xFCfung abgebrochen: Unbekannter Firmware-Typ (${currentFirmware}).`, "debug");
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
const response = await fetchUrl(`${DOWNLOAD_PORTAL_URL}${downloadId}`, true, timeoutMs);
|
|
137
|
+
const contentDisposition = response.headers["content-disposition"] || "";
|
|
138
|
+
const filenameMatch = contentDisposition.match(/filename=(.+)/);
|
|
139
|
+
if (!filenameMatch) {
|
|
140
|
+
(0, import_logger.writeLog)("Update-Pr\xFCfung: Konnte keinen Dateinamen im Download-Portal finden.", "debug");
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const filename = filenameMatch[1].replace(/"/g, "");
|
|
144
|
+
const versionMatch = filename.match(/[BV]\d+\.\d+\.\d+(?:-\d+)?/);
|
|
145
|
+
const availableVersion = versionMatch ? versionMatch[0].split("-")[0] : null;
|
|
146
|
+
if (!availableVersion) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
await adapter.setState((0, import_stateMapping.getDpPath)("firmware_available"), { val: availableVersion, ack: true });
|
|
150
|
+
const isNewer = isVersionNewer(availableVersion, currentFirmware);
|
|
151
|
+
const updateStateDp = (0, import_stateMapping.getDpPath)("firmware_update_available");
|
|
152
|
+
const oldUpdateState = await adapter.getStateAsync(updateStateDp);
|
|
153
|
+
const wasAlreadyNotified = (oldUpdateState == null ? void 0 : oldUpdateState.val) === true;
|
|
154
|
+
await adapter.setState(updateStateDp, { val: isNewer, ack: true });
|
|
155
|
+
if (isNewer) {
|
|
156
|
+
const clResponse = await fetchUrl(`${CHANGELOG_URL}${downloadId}`, false, timeoutMs);
|
|
157
|
+
let cleanChangelog = "Kein Changelog verf\xFCgbar.";
|
|
158
|
+
if (clResponse.data) {
|
|
159
|
+
await adapter.setState((0, import_stateMapping.getDpPath)("firmware_changelog"), { val: clResponse.data, ack: true });
|
|
160
|
+
cleanChangelog = clResponse.data.replace(/<br\s*\/?>/gi, "\n").trim();
|
|
161
|
+
}
|
|
162
|
+
(0, import_logger.writeLog)(`Neues Firmware-Update verf\xFCgbar: ${availableVersion} (Aktuell: ${currentFirmware})`, "info");
|
|
163
|
+
if (!wasAlreadyNotified) {
|
|
164
|
+
(0, import_logger.writeLog)("Sende Benachrichtigungen \xFCber neues Firmware-Update...", "info");
|
|
165
|
+
await (0, import_notificationManager.sendUpdateNotification)(
|
|
166
|
+
adapter,
|
|
167
|
+
`Achtung: F\xFCr die W\xE4rmepumpe steht ein neues Firmware-Update bereit!
|
|
168
|
+
|
|
169
|
+
Aktuell: ${currentFirmware}
|
|
170
|
+
Neu: ${availableVersion}
|
|
171
|
+
|
|
172
|
+
Changelog:
|
|
173
|
+
${cleanChangelog}
|
|
174
|
+
|
|
175
|
+
Bitte das Update manuell \xFCber den USB-Stick installieren.`
|
|
176
|
+
);
|
|
177
|
+
} else {
|
|
178
|
+
(0, import_logger.writeLog)("Benachrichtigung \xFCbersprungen (f\xFCr diese Version bereits erfolgt).", "debug");
|
|
179
|
+
}
|
|
180
|
+
} else {
|
|
181
|
+
(0, import_logger.writeLog)(`Firmware ist auf dem neuesten Stand (${currentFirmware}).`, "debug");
|
|
182
|
+
}
|
|
183
|
+
} catch (err) {
|
|
184
|
+
(0, import_logger.writeLog)(`Fehler bei der Firmware-Update-Pr\xFCfung: ${err.message}`, "error");
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
188
|
+
0 && (module.exports = {
|
|
189
|
+
checkFirmwareUpdate
|
|
190
|
+
});
|
|
191
|
+
//# sourceMappingURL=updateManager.js.map
|