diff --git a/packages/control/chargelog/chargelog.py b/packages/control/chargelog/chargelog.py index e38328186d..f7cbd5ccd8 100644 --- a/packages/control/chargelog/chargelog.py +++ b/packages/control/chargelog/chargelog.py @@ -305,12 +305,12 @@ def calculate_charge_cost(cp, create_log_entry: bool = False): reference_time = get_reference_time(cp, reference) reference_entry = _get_reference_entry(content["entries"], reference_time) energy_entry = process_entry(reference_entry, content["entries"][-1], CalculationType.ENERGY) - power_source_entry = analyse_percentage(energy_entry) + energy_source_entry = analyse_percentage(energy_entry) if reference == ReferenceTime.START: charged_energy = cp.data.set.log.imported_since_mode_switch elif reference == ReferenceTime.MIDDLE: charged_energy = (content["entries"][-1]["cp"][f"cp{cp.num}"]["imported"] - - power_source_entry["cp"][f"cp{cp.num}"]["imported"]) + energy_source_entry["cp"][f"cp{cp.num}"]["imported"]) elif reference == ReferenceTime.END: reference_start_position = _get_reference_position(cp, False) if reference_start_position == ReferenceTime.START: @@ -322,9 +322,9 @@ def calculate_charge_cost(cp, create_log_entry: bool = False): last_considered_entry["cp"][f"cp{cp.num}"]["imported"] else: raise TypeError(f"Unbekannter Referenz-Zeitpunkt {reference}") - log.debug(f'power source {power_source_entry["power_source"]}') + log.debug(f'power source {energy_source_entry["energy_source"]}') log.debug(f"charged_energy {charged_energy}") - cp.data.set.log.costs += _calc(power_source_entry["power_source"], + cp.data.set.log.costs += _calc(energy_source_entry["energy_source"], charged_energy, (data.data.optional_data.et_module is not None)) Pub().pub(f"openWB/set/chargepoint/{cp.num}/set/log", asdict(cp.data.set.log)) @@ -394,20 +394,20 @@ def get_daily_log(day): return [] -def _calc(power_source: Dict[str, float], charged_energy_last_hour: float, et_active: bool) -> float: +def _calc(energy_source: Dict[str, float], charged_energy_last_hour: float, et_active: bool) -> float: prices = data.data.general_data.data.prices - bat_costs = prices.bat * charged_energy_last_hour * power_source["bat"] - cp_costs = prices.cp * charged_energy_last_hour * power_source["cp"] + bat_costs = prices.bat * charged_energy_last_hour * energy_source["bat"] + cp_costs = prices.cp * charged_energy_last_hour * energy_source["cp"] if et_active: - grid_costs = data.data.optional_data.et_get_current_price() * charged_energy_last_hour * power_source["grid"] + grid_costs = data.data.optional_data.et_get_current_price() * charged_energy_last_hour * energy_source["grid"] else: - grid_costs = prices.grid * charged_energy_last_hour * power_source["grid"] - pv_costs = prices.pv * charged_energy_last_hour * power_source["pv"] + grid_costs = prices.grid * charged_energy_last_hour * energy_source["grid"] + pv_costs = prices.pv * charged_energy_last_hour * energy_source["pv"] log.debug( - f'Ladepreis für die letzte Stunde: {bat_costs}€ Speicher ({power_source["bat"]}%), {grid_costs}€ Netz ' - f'({power_source["grid"]}%), {pv_costs}€ Pv ({power_source["pv"]}%)') + f'Ladepreis für die letzte Stunde: {bat_costs}€ Speicher ({energy_source["bat"]}%), {grid_costs}€ Netz ' + f'({energy_source["grid"]}%), {pv_costs}€ Pv ({energy_source["pv"]}%)') return round(bat_costs + cp_costs + grid_costs + pv_costs, 4) diff --git a/packages/helpermodules/measurement_logging/conftest.py b/packages/helpermodules/measurement_logging/conftest.py index da787419ae..48200d8b46 100644 --- a/packages/helpermodules/measurement_logging/conftest.py +++ b/packages/helpermodules/measurement_logging/conftest.py @@ -67,17 +67,17 @@ def daily_log_sample(): @pytest.fixture() def daily_log_totals(): - return {'bat': {'all': {'exported': 550.857, 'imported': 0.0}, - 'bat2': {'exported': 550.857, 'imported': 0.0}}, - 'counter': {'counter0': {'exported': 0.0, 'imported': 1492.011}}, - 'cp': {'all': {'exported': 0, 'imported': 1919.625999999999}, - 'cp3': {'exported': 0, 'imported': 1151.52}, - 'cp4': {'exported': 0, 'imported': 383.942}, - 'cp5': {'exported': 0, 'imported': 191.928}, - 'cp6': {'exported': 0, 'imported': 0}}, - 'pv': {'all': {'exported': 251}, 'pv1': {'exported': 251}}, - "sh": {"sh1": {"imported": 0.3, "exported": 0}}, - "hc": {"all": {"imported": 20}}} + return {'bat': {'all': {'energy_exported': 550.0, 'energy_imported': 0.0}, + 'bat2': {'energy_exported': 550.0, 'energy_imported': 0.0}}, + 'counter': {'counter0': {'energy_exported': 0.0, 'energy_imported': 1492.0, 'grid': True}}, + 'cp': {'all': {'energy_exported': 0.0, 'energy_imported': 1920.0}, + 'cp3': {'energy_exported': 0.0, 'energy_imported': 1152.0}, + 'cp4': {'energy_exported': 0.0, 'energy_imported': 384.0}, + 'cp5': {'energy_exported': 0.0, 'energy_imported': 192.0}, + 'cp6': {'energy_exported': 0.0, 'energy_imported': 0}}, + 'pv': {'all': {'energy_exported': 251.0}, 'pv1': {'energy_exported': 251.0}}, + "sh": {"sh1": {"energy_imported": 0.0, "energy_exported": 0.0}}, + "hc": {"all": {"energy_imported": 20.0}}} @pytest.fixture() @@ -88,41 +88,40 @@ def daily_log_entry_kw(): "cp3": { "imported": 3620.971, "exported": 0, - "power_average": 6.932299665551841, - "power_imported": 6.932299665551841, - "power_exported": 0, - "energy_imported": 0.5757660000000001, - "energy_exported": 0 + "power_average": 6.932, + "power_imported": 6.932, + "power_exported": 0.0, + "energy_imported": 0.576, + "energy_exported": 0.0 }, "cp5": { "imported": 1208.646, "exported": 0, - "power_average": 2.3108387959866237, - "power_imported": 2.3108387959866237, - "power_exported": 0, - "energy_imported": 0.1919280000000001, - "energy_exported": 0 + "power_average": 2.311, + "power_imported": 2.311, + "power_exported": 0.0, + "energy_imported": 0.192, + "energy_exported": 0.0 }, "cp4": { "imported": 1198.566, "exported": 0, - "power_average": 2.3131384615384603, - "power_imported": 2.3131384615384603, - "power_exported": 0, - "energy_imported": 0.1921189999999999, - "energy_exported": 0 + "power_average": 2.313, + "power_imported": 2.313, + "power_exported": 0.0, + "energy_imported": 0.192, + "energy_exported": 0.0 }, "all": { "imported": 6028.183, "exported": 0, - "power_average": 11.556276923076913, - "power_imported": 11.556276923076913, - "power_exported": 0, - "energy_imported": 0.9598129999999991, - "energy_exported": 0 + "power_average": 11.556, + "power_imported": 11.556, + "power_exported": 0.0, + "energy_imported": 0.96, + "energy_exported": 0.0 } - }, - "ev": { + }, "ev": { "ev0": { "soc": 0 } @@ -132,28 +131,28 @@ def daily_log_entry_kw(): "imported": 4686.054, "exported": 2.396, "grid": True, - "power_average": 8.983420735785948, - "power_imported": 8.983420735785948, - "power_exported": 0, - "energy_imported": 0.7461229999999996, - "energy_exported": 0 + "power_average": 8.983, + "power_imported": 8.983, + "power_exported": 0.0, + "energy_imported": 0.746, + "energy_exported": 0.0 } }, "pv": { "pv1": { "exported": 804, - "power_average": -1.517056856187291, - "power_imported": 0, - "power_exported": 1.517056856187291, - "energy_imported": 0, + "power_average": -1.517, + "power_imported": 0.0, + "power_exported": 1.517, + "energy_imported": 0.0, "energy_exported": 0.126 }, "all": { "exported": 804, - "power_average": -1.517056856187291, - "power_imported": 0, - "power_exported": 1.517056856187291, - "energy_imported": 0, + "power_average": -1.517, + "power_imported": 0.0, + "power_exported": 1.517, + "energy_imported": 0.0, "energy_exported": 0.126 } }, @@ -162,21 +161,21 @@ def daily_log_entry_kw(): "imported": 2.42, "exported": 1742.135, "soc": 15, - "power_average": -3.316262207357859, - "power_imported": 0, - "power_exported": 3.316262207357859, - "energy_imported": 0, - "energy_exported": 0.27543399999999996 + "power_average": -3.316, + "power_imported": 0.0, + "power_exported": 3.316, + "energy_imported": 0.0, + "energy_exported": 0.275 }, "all": { "imported": 2.42, "exported": 1742.135, "soc": 15, - "power_average": -3.316262207357859, - "power_imported": 0, - "power_exported": 3.316262207357859, - "energy_imported": 0, - "energy_exported": 0.27543399999999996 + "power_average": -3.316, + "power_imported": 0.0, + "power_exported": 3.316, + "energy_imported": 0.0, + "energy_exported": 0.275 } }, "sh": { @@ -186,16 +185,16 @@ def daily_log_entry_kw(): "temp2": 300, "imported": 0.1, "exported": 0, - "power_average": 0.0012040133779264216, - "power_imported": 0.0012040133779264216, - "power_exported": 0, - "energy_imported": 0.0001, - "energy_exported": 0 + "power_average": 0.001, + "power_imported": 0.001, + "power_exported": 0.0, + "energy_imported": 0.0, + "energy_exported": 0.0 } }, 'hc': {'all': {'energy_exported': 0.0, 'energy_imported': 0.01, 'imported': 100, - 'power_average': 0.12040133779264214, - 'power_exported': 0, - 'power_imported': 0.12040133779264214}}} + 'power_average': 0.12, + 'power_exported': 0.0, + 'power_imported': 0.12}}} diff --git a/packages/helpermodules/measurement_logging/process_log.py b/packages/helpermodules/measurement_logging/process_log.py index 0bedac1fa6..84ab614352 100644 --- a/packages/helpermodules/measurement_logging/process_log.py +++ b/packages/helpermodules/measurement_logging/process_log.py @@ -30,47 +30,46 @@ def string_to_int(value: str, default: int = 0) -> int: return default -def get_totals(entries: List) -> Dict: - totals: Dict[str, Dict] = {"cp": {}, "counter": {}, "pv": {}, "bat": {}, "sh": {}, "hc": {}} - prev_entry: Dict = {} - for group in totals.keys(): +def get_totals(entries: List, process_entries: bool = True) -> Dict: + """ Berechnet aus der übergebenen Liste "entries" die Summen (totals). + "process_entries" besagt, ob die Differenzen der einzelnen Einträge noch + berechnet werden müssen. + """ + if process_entries: + entries = _process_entries(entries, CalculationType.ENERGY) + totals = {"cp": {}, "counter": {}, "pv": {}, "bat": {}, "sh": {}, "hc": {}} + for totals_group in totals.keys(): for entry in entries: - if group in entry: - for module in entry[group]: + if totals_group in entry: + for entry_module in entry[totals_group]: try: - if not prev_entry or module not in totals[group]: - if group == "hc": - totals[group][module] = {"imported": 0} - elif group == "pv": - totals[group][module] = {"exported": 0} + if entry_module not in totals[totals_group]: + if totals_group == "hc": + totals[totals_group][entry_module] = {"energy_imported": 0.0} + elif totals_group == "pv": + totals[totals_group][entry_module] = {"energy_exported": 0.0} else: - totals[group][module] = {"imported": 0, "exported": 0} - else: - for key, value in entry[group][module].items(): - if key != "soc" and key != "grid" and "temp" not in key: - if value == "": - # Manchmal fehlen Werte im alten Log - value = 0 - try: - prev_value = prev_entry[group][module][key] - # Wenn ein Modul neu hinzugefügt wurde, das es mit dieser ID schonmal gab, werden - # die Werte zusammen addiert. - except KeyError: - prev_value = entry[group][module][key] - if prev_value == "": - # Manchmal fehlen Werte im alten Log - prev_value = 0 - # avoid floating point issues with using Decimal - value = (Decimal(str(value)) - - Decimal(str(prev_value)) - + Decimal(str(totals[group][module][key]))) - value = f'{value: f}' - # remove trailing zeros - totals[group][module][key] = string_to_float( - value) if "." in value else string_to_int(value) + totals[totals_group][entry_module] = {"energy_imported": 0.0, "energy_exported": 0.0} + if totals_group == "counter" and "grid" in entry[totals_group][entry_module]: + totals[totals_group][entry_module]["grid"] = entry[ + totals_group][entry_module]["grid"] + for entry_module_key, entry_module_value in entry[totals_group][entry_module].items(): + if "grid" != entry_module_key and entry_module_key in totals[totals_group][entry_module]: + log.debug(f"group:{totals_group}, module:{entry_module}, key:{entry_module_key}, " + f"value:{entry_module_value}, " + f"total:{totals[totals_group][entry_module][entry_module_key]}") + # avoid floating point issues with using Decimal + value = (Decimal(str(totals[totals_group][entry_module][entry_module_key])) + + Decimal(str(entry_module_value * 1000))) # totals in Wh! + value.quantize(Decimal('0.001')) + value = f'{value: f}' + # remove trailing zeros + totals[totals_group][entry_module][entry_module_key] = string_to_float( + value) if "." in value else string_to_int(value) + except Exception: - log.exception(f"Fehler beim Berechnen der Summe von {module}") - prev_entry = entry + log.exception(f"Fehler beim Berechnen der Summe von {entry_module}; " + f"group:{totals_group}, module:{entry_module}, key:{entry_module_key}") return totals # {"entries": [ @@ -114,7 +113,7 @@ def get_totals(entries: List) -> Dict: # }, # ... (dynamisch, je nach Anzahl konfigurierter Geräte) # }, -# "power_source": {"grid": %, "pv": %, "bat": %, "cp": %} +# "energy_source": {"grid": %, "pv": %, "bat": %, "cp": %} # }], # "totals": { # {'bat': {'all': {'exported': 0, 'imported': 175.534}, @@ -128,7 +127,7 @@ def get_totals(entries: List) -> Dict: # 'ev': {'ev1': {}}, # 'pv': {'all': {'imported': 251}, 'pv1': {'imported': 247}}}, # 'sh': { 'sh1': {'exported': 123, 'imported': 123}}, -# "power_source": {"grid": %, "pv": %, "bat": %, "cp": %} +# "energy_source": {"grid": %, "pv": %, "bat": %, "cp": %} # }, # "names": { # "counter0": "Mein EVU-Zähler", @@ -140,8 +139,9 @@ def get_totals(entries: List) -> Dict: def get_daily_log(date: str): data = _collect_daily_log_data(date) - data = _process_entries(data, CalculationType.ALL) - data = _analyse_power_source(data) + data["entries"] = _process_entries(data["entries"], CalculationType.ALL) + data["totals"] = get_totals(data["entries"], False) + data = _analyse_energy_source(data) return data @@ -157,7 +157,6 @@ def _collect_daily_log_data(date: str): log_data["entries"].append(next_log_data["entries"][0]) except FileNotFoundError: pass - log_data["totals"] = get_totals(log_data["entries"]) except FileNotFoundError: log_data = {"entries": [], "totals": {}, "names": {}} return log_data @@ -165,8 +164,9 @@ def _collect_daily_log_data(date: str): def get_monthly_log(date: str): data = _collect_monthly_log_data(date) - data = _process_entries(data, CalculationType.ENERGY) - data = _analyse_power_source(data) + data["entries"] = _process_entries(data["entries"], CalculationType.ENERGY) + data["totals"] = get_totals(data["entries"], False) + data = _analyse_energy_source(data) return data @@ -196,8 +196,6 @@ def _collect_monthly_log_data(date: str): log_data["entries"].append(next_log_data["entries"][0]) except FileNotFoundError: pass - # calculate totals - log_data["totals"] = get_totals(log_data["entries"]) except FileNotFoundError: log_data = {"entries": [], "totals": {}, "names": {}} return log_data @@ -205,8 +203,9 @@ def _collect_monthly_log_data(date: str): def get_yearly_log(year: str): data = _collect_yearly_log_data(year) - data = _process_entries(data, CalculationType.ENERGY) - data = _analyse_power_source(data) + data["entries"] = _process_entries(data["entries"], CalculationType.ENERGY) + data["totals"] = get_totals(data["entries"], False) + data = _analyse_energy_source(data) return data @@ -279,11 +278,11 @@ def add_daily_log(day: str) -> None: except Exception: log.exception(f"Fehler beim Zusammenstellen der Jahresdaten für Monat {next_date}") - # calculate totals and return our data - return {"entries": entries, "totals": get_totals(entries), "names": names} + # return our data + return {"entries": entries, "names": names} -def _analyse_power_source(data) -> Dict: +def _analyse_energy_source(data) -> Dict: if data: for i in range(0, len(data["entries"])): data["entries"][i] = analyse_percentage(data["entries"][i]) @@ -308,26 +307,40 @@ def format(value): grid_exported = counter["energy_exported"] consumption = grid_imported - grid_exported + pv + bat_exported - bat_imported + cp_exported try: - entry["power_source"] = {"grid": format(grid_imported / consumption), - "pv": format((pv - grid_exported - bat_imported) / consumption), - "bat": format(bat_exported/consumption), - "cp": format(cp_exported/consumption)} + entry["energy_source"] = { + "grid": format(grid_imported / consumption), + "pv": format((pv - grid_exported - bat_imported) / consumption), + "bat": format(bat_exported/consumption), + "cp": format(cp_exported/consumption)} except ZeroDivisionError: - entry["power_source"] = {"power_source": {"grid": 0, "pv": 0, "bat": 0, "cp": 0}} + entry["energy_source"] = {"grid": 0, "pv": 0, "bat": 0, "cp": 0} + for source in ("grid", "pv", "bat", "cp"): + if "all" in entry["hc"].keys(): + value = (Decimal(str(entry["hc"]["all"]["energy_imported"])) * + Decimal(str(entry["energy_source"][source]))).quantize(Decimal('0.001')) # limit precision + value = f'{value: f}' + value = string_to_float(value) if "." in value else string_to_int(value) + entry["hc"]["all"][f"energy_imported_{source}"] = value + if "all" in entry["cp"].keys(): + value = (Decimal(str(entry["cp"]["all"]["energy_imported"])) * + Decimal(str(entry["energy_source"][source]))).quantize(Decimal('0.001')) # limit precision + value = f'{value: f}' + value = string_to_float(value) if "." in value else string_to_int(value) + entry["cp"]["all"][f"energy_imported_{source}"] = value except Exception: log.exception(f"Fehler beim Berechnen des Strom-Mix von {entry['timestamp']}") finally: return entry -def _process_entries(data, calculation): - if data and len(data["entries"]) > 0: - for i in range(0, len(data["entries"])-1): - entry = data["entries"][i] - next_entry = data["entries"][i+1] - data["entries"][i] = process_entry(entry, next_entry, calculation) - data["entries"].pop() - return data +def _process_entries(entries: List, calculation: CalculationType): + if entries and len(entries) > 0: + for i in range(0, len(entries)-1): + entry = entries[i] + next_entry = entries[i+1] + entries[i] = process_entry(entry, next_entry, calculation) + entries.pop() + return entries def process_entry(entry: dict, next_entry: dict, calculation: CalculationType): @@ -354,8 +367,9 @@ def process_entry(entry: dict, next_entry: dict, calculation: CalculationType): next_value_exported = next_entry[type][module]["exported"] except KeyError: next_value_exported = value_exported - average_power = _calculate_average_power(time_diff, value_imported, next_value_imported, - value_exported, next_value_exported) + average_power = _calculate_average_power( + time_diff, value_imported / 1000, next_value_imported / 1000, + value_exported / 1000, next_value_exported / 1000) if calculation in [CalculationType.POWER, CalculationType.ALL]: new_data.update({ "power_average": average_power, @@ -364,22 +378,33 @@ def process_entry(entry: dict, next_entry: dict, calculation: CalculationType): }) if calculation in [CalculationType.ENERGY, CalculationType.ALL]: new_data.update({ - "energy_imported": _calculate_energy_difference(value_imported, next_value_imported), - "energy_exported": _calculate_energy_difference(value_exported, next_value_exported) + "energy_imported": + _calculate_energy_difference(value_imported / 1000, next_value_imported / 1000), + "energy_exported": + _calculate_energy_difference(value_exported / 1000, next_value_exported / 1000) }) entry[type][module].update(new_data) except Exception: log.exception("Fehler beim Berechnen der Leistung") + # next_entry may contain new modules, we add them here + for module in next_entry[type].keys(): + if module not in entry[type].keys(): + log.warning(f"adding module {module} from next entry") + entry[type].update({module: {"energy_imported": 0.0, "energy_exported": 0.0}}) return entry def _calculate_energy_difference(current_value: float, next_value: float) -> float: - return (next_value - current_value) / 1000 + value = (Decimal(str(next_value)) - Decimal(str(current_value))) + value = value.quantize(Decimal('0.001')) # limit precision + value = f'{value: f}' + return string_to_float(value) if "." in value else string_to_int(value) def _calculate_average_power(time_diff: float, current_imported: float = 0, next_imported: float = 0, current_exported: float = 0, next_exported: float = 0) -> float: - energy_diff = next_imported - current_imported - (next_exported - current_exported) - energy_diff_ws = energy_diff * 3600 # Ws - power = energy_diff_ws / time_diff # W - return power / 1000 # kW + power = (Decimal(str(next_imported)) - Decimal(str(current_imported)) + - (Decimal(str(next_exported)) - Decimal(str(current_exported)))) * Decimal(str(3600 / time_diff)) # Ws + power = power.quantize(Decimal('0.001')) # limit precision + power = f'{power: f}' + return string_to_float(power) if "." in power else string_to_int(power) diff --git a/packages/helpermodules/measurement_logging/process_log_test.py b/packages/helpermodules/measurement_logging/process_log_test.py index 415004bf58..3789ad01f7 100644 --- a/packages/helpermodules/measurement_logging/process_log_test.py +++ b/packages/helpermodules/measurement_logging/process_log_test.py @@ -9,7 +9,8 @@ def test_get_totals(daily_log_sample, daily_log_totals): # setup and execution - totals = get_totals(daily_log_sample) + entries = deepcopy(daily_log_sample) + totals = get_totals(entries) # evaluation assert totals == daily_log_totals @@ -18,7 +19,17 @@ def test_get_totals(daily_log_sample, daily_log_totals): def test_analyse_percentage(daily_log_entry_kw): # setup expected = deepcopy(daily_log_entry_kw) - expected.update({"power_source": {'bat': 0.24, 'cp': 0.0, 'grid': 0.6502, 'pv': 0.1098}}) + expected.update({"energy_source": {'bat': 0.2398, 'cp': 0.0, 'grid': 0.6504, 'pv': 0.1099}}) + expected["cp"]["all"].update({ + "energy_imported_bat": 0.23, + "energy_imported_cp": 0.0, + "energy_imported_grid": 0.624, + "energy_imported_pv": 0.106}) + expected["hc"]["all"].update({ + "energy_imported_bat": 0.002, + "energy_imported_cp": 0.0, + "energy_imported_grid": 0.007, + "energy_imported_pv": 0.001}) # execution entry = analyse_percentage(daily_log_entry_kw) @@ -32,7 +43,7 @@ def test_convert_value_to_kW(): power = _calculate_average_power(100, 250, 300) # evaluation - assert power == 1.8 + assert power == 1800 def test_convert(daily_log_entry_kw, daily_log_sample): diff --git a/packages/helpermodules/measurement_logging/update_daily_yields.py b/packages/helpermodules/measurement_logging/update_daily_yields.py index ddd60556f5..abbf4d7b94 100644 --- a/packages/helpermodules/measurement_logging/update_daily_yields.py +++ b/packages/helpermodules/measurement_logging/update_daily_yields.py @@ -19,8 +19,8 @@ def update_daily_yields(entries): """ totals = get_totals(entries) [update_module_yields(type, totals) for type in ("bat", "counter", "cp", "pv")] - data.data.counter_all_data.data.set.daily_yield_home_consumption = totals["hc"]["all"]["imported"] - Pub().pub("openWB/set/counter/set/daily_yield_home_consumption", totals["hc"]["all"]["imported"]) + data.data.counter_all_data.data.set.daily_yield_home_consumption = totals["hc"]["all"]["energy_imported"] + Pub().pub("openWB/set/counter/set/daily_yield_home_consumption", totals["hc"]["all"]["energy_imported"]) def update_module_yields(module: str, totals: Dict) -> None: @@ -35,7 +35,7 @@ def update_imported_exported(daily_imported: float, daily_exported: float) -> No Pub().pub(f"openWB/set/{topic}/{module_data.num}/get/daily_imported", daily_imported) Pub().pub(f"openWB/set/{topic}/{module_data.num}/get/daily_exported", daily_exported) elif not isinstance(module_data, BatAll): - # wird im changed_values_handler gepublished + # wird im changed_values_handler an den Broker gesendet Pub().pub(f"openWB/set/{topic}/get/daily_imported", daily_imported) Pub().pub(f"openWB/set/{topic}/get/daily_exported", daily_exported) @@ -53,8 +53,8 @@ def update_exported(daily_exported: float) -> None: else: module_data = getattr(data.data, f"{module}_data")[m] if module == "pv": - update_exported(totals[module][m]["exported"]) + update_exported(totals[module][m]["energy_exported"]) else: - update_imported_exported(totals[module][m]["imported"], totals[module][m]["exported"]) + update_imported_exported(totals[module][m]["energy_imported"], totals[module][m]["energy_exported"]) else: log.info(f"Modul {m} wurde zwischenzeitlich gelöscht und wird daher nicht mehr aufgeführt.") diff --git a/packages/helpermodules/measurement_logging/update_daily_yields_test.py b/packages/helpermodules/measurement_logging/update_daily_yields_test.py index 21c4b9fef4..24670f2aea 100644 --- a/packages/helpermodules/measurement_logging/update_daily_yields_test.py +++ b/packages/helpermodules/measurement_logging/update_daily_yields_test.py @@ -9,20 +9,20 @@ def test_update_module_yields(daily_log_totals, mock_pub): # evaluation expected = { - "openWB/set/bat/2/get/daily_imported": 0, - "openWB/set/bat/2/get/daily_exported": 550.857, - "openWB/set/counter/0/get/daily_imported": 1492.011, - "openWB/set/counter/0/get/daily_exported": 0, - "openWB/set/chargepoint/get/daily_imported": 1919.625999999999, - "openWB/set/chargepoint/get/daily_exported": 0, - "openWB/set/chargepoint/4/get/daily_imported": 383.942, - "openWB/set/chargepoint/4/get/daily_exported": 0, - "openWB/set/chargepoint/5/get/daily_imported": 191.928, - "openWB/set/chargepoint/5/get/daily_exported": 0, - "openWB/set/chargepoint/6/get/daily_imported": 0, - "openWB/set/chargepoint/6/get/daily_exported": 0, - "openWB/set/pv/get/daily_exported": 251, - "openWB/set/pv/1/get/daily_exported": 251} + "openWB/set/bat/2/get/daily_imported": 0.0, + "openWB/set/bat/2/get/daily_exported": 550.0, + "openWB/set/counter/0/get/daily_imported": 1492.0, + "openWB/set/counter/0/get/daily_exported": 0.0, + "openWB/set/chargepoint/get/daily_imported": 1920.0, + "openWB/set/chargepoint/get/daily_exported": 0.0, + "openWB/set/chargepoint/4/get/daily_imported": 384.0, + "openWB/set/chargepoint/4/get/daily_exported": 0.0, + "openWB/set/chargepoint/5/get/daily_imported": 192.0, + "openWB/set/chargepoint/5/get/daily_exported": 0.0, + "openWB/set/chargepoint/6/get/daily_imported": 0.0, + "openWB/set/chargepoint/6/get/daily_exported": 0.0, + "openWB/set/pv/get/daily_exported": 251.0, + "openWB/set/pv/1/get/daily_exported": 251.0} for topic, value in expected.items(): for call in mock_pub.mock_calls: try: diff --git a/packages/helpermodules/measurement_logging/write_log.py b/packages/helpermodules/measurement_logging/write_log.py index 662b9d2c84..d51ce0d865 100644 --- a/packages/helpermodules/measurement_logging/write_log.py +++ b/packages/helpermodules/measurement_logging/write_log.py @@ -92,10 +92,10 @@ def save_log(folder): gibt an, ob ein Tages-oder Monats-Log-Eintrag erstellt werden soll. """ if folder == "daily": - date = timecheck.create_timestamp() + date = timecheck.create_timestamp_HH_MM() else: date = timecheck.create_timestamp_YYYYMMDD() - current_timestamp = timecheck.create_timestamp() + current_timestamp = int(timecheck.create_timestamp()) cp_dict = {} for cp in data.data.cp_data: try: diff --git a/packages/helpermodules/timecheck.py b/packages/helpermodules/timecheck.py index 13ec875494..7a53ceae47 100644 --- a/packages/helpermodules/timecheck.py +++ b/packages/helpermodules/timecheck.py @@ -241,6 +241,10 @@ def create_timestamp_YYYYMMDD() -> str: return stamp +def create_timestamp_HH_MM() -> str: + return datetime.datetime.today().strftime("%H:%M") + + def create_unix_timestamp_current_full_hour() -> int: full_hour = datetime.datetime.fromtimestamp(create_timestamp()).strftime("%m/%d/%Y, %H") return int(datetime.datetime.strptime(full_hour, "%m/%d/%Y, %H").timestamp()) diff --git a/packages/helpermodules/update_config.py b/packages/helpermodules/update_config.py index 078630c629..e5168f39ca 100644 --- a/packages/helpermodules/update_config.py +++ b/packages/helpermodules/update_config.py @@ -33,7 +33,7 @@ class UpdateConfig: - DATASTORE_VERSION = 34 + DATASTORE_VERSION = 35 valid_topic = [ "^openWB/bat/config/configured$", "^openWB/bat/set/charging_power_left$", @@ -560,7 +560,7 @@ def _loop_all_received_topics(self, func): try: func(topic, payload) except Exception: - log.exception(f"Fehler beim Akutalisieren von {topic} mit Payload {payload}") + log.exception(f"Fehler beim Aktualisieren von {topic} mit Payload {payload}") def upgrade_datastore_0(self) -> None: # prevent_switch_stop auf zwei Einstellungen prevent_phase_switch und prevent_charge_stop aufteilen @@ -1126,3 +1126,27 @@ def upgrade_fix_price_unit(topic: str, payload) -> None: Pub().pub(topic, updated_payload) self._loop_all_received_topics(upgrade_fix_price_unit) Pub().pub("openWB/system/datastore_version", 34) + + def upgrade_datastore_34(self) -> None: + def convert_file(file): + try: + with open(file, "r+") as jsonFile: + content = json.load(jsonFile) + for e in content["entries"]: + if type(e["date"]) is not str: + old_date = datetime.datetime.fromtimestamp(e["date"]) + e["date"] = old_date.strftime('%H:$M') + if type(e["timestamp"]) is float: + e["timestamp"] = int(e["timestamp"]) + jsonFile.seek(0) + json.dump(content, jsonFile) + jsonFile.truncate() + log.debug(f"Format der Logdatei {file} aktualisiert.") + except FileNotFoundError: + pass + except Exception: + log.exception(f"Logfile {file} konnte nicht konvertiert werden.") + files = glob.glob(str(self.base_path / "data" / "daily_log") + "/*") + for file in files: + convert_file(file) + Pub().pub("openWB/system/datastore_version", 35) diff --git a/web/settings/assets/ChargeLog-543068b9.js b/web/settings/assets/ChargeLog-7d6b1f1d.js similarity index 96% rename from web/settings/assets/ChargeLog-543068b9.js rename to web/settings/assets/ChargeLog-7d6b1f1d.js index 3ee3877a62..e7a3b318f5 100644 --- a/web/settings/assets/ChargeLog-543068b9.js +++ b/web/settings/assets/ChargeLog-7d6b1f1d.js @@ -1,2 +1,2 @@ -import{l as C,S as q,T as R,F as k}from"./vendor-fortawesome-cf9a975a.js";import{_ as x,a0 as E,q as l,k as h,l as m,u as g,B as o,M as s,z as V,A as y,x as d,y as F,R as B,S as T}from"./vendor-b03da118.js";import{C as S}from"./index-bed1470e.js";import"./vendor-sortablejs-595f2e06.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";C.add(q,R);const I={name:"OpenwbChargeLog",components:{Vue3TableLite:E,FontAwesomeIcon:k},mixins:[S],emits:["sendCommand"],data(){return{dateTimeFormat:new Intl.DateTimeFormat("de-DE",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentMonth:"",chargeLogRequestData:{month:"",year:"",filter:{chargepoint:{id:[]},vehicle:{id:[],rfid:[],chargemode:[],prio:void 0}}},downloadFile:null,table:{messages:{pagingInfo:"Einträge {0}-{1} von {2}",pageSizeChangeLabel:"Einträge:",gotoPageLabel:" Gehe zu:",noDataAvailable:"Keine Einträge gefunden."},pageOptions:[{value:5,text:"5"},{value:10,text:"10"},{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"}],columns:[{label:"Beginn",field:"time_begin",sortable:!0},{label:"Ende",field:"time_end",sortable:!0},{label:"Fahrzeug",field:"vehicle_name",sortable:!0},{label:"Dauer",field:"time_time_charged",sortable:!0,display:e=>this.alignEnd(e.time_time_charged)},{label:"Energie",field:"data_imported_since_mode_switch",sortable:!0,display:e=>this.alignEnd(this.formatNumber(e.data_imported_since_mode_switch/1e3,2)+" kWh / "+this.formatNumber(e.data_range_charged,0)+" km")},{label:"Kosten",field:"data_costs",sortable:!0,display:e=>this.alignEnd(this.formatNumber(e.data_costs,2)+" €")},{label:"Lademodus",field:"vehicle_chargemode",sortable:!0,display:e=>'
'+e.vehicle_chargemode+"
"},{label:"Ladepunkt",field:"chargepoint_name",sortable:!0},{label:"Priorität",field:"vehicle_prio",display:e=>this.translateBool(e.vehicle_prio)},{label:"ID-Tag",field:"vehicle_rfid",sortable:!0}],sortable:{order:"timestamp_begin",sort:"asc"}},totals:{columns:[{label:"Dauer",field:"time_charged",sortable:!1,display:e=>this.alignEnd(e.time_charged)},{label:"Energie",field:"imported_since_mode_switch",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.imported_since_mode_switch/1e3,2)+" kWh")},{label:"Reichweite",field:"range_charged",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.range_charged,0)+" km")},{label:"Kosten",field:"costs",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.costs,2)+" €")}]}}},computed:{downloadUrl(){const e=parseInt(location.port)||(location.protocol=="https:"?443:80);return`${location.protocol}//${location.hostname}:${e}/openWB/web/settings/downloadChargeLog.php`+`?year=${this.chargeLogRequestData.year}&month=${this.chargeLogRequestData.month}`},chargeLogDate:{get(){return this.chargeLogRequestData.year+"-"+this.chargeLogRequestData.month},set(e){let t=e.split("-");this.chargeLogRequestData.year=t[0],this.chargeLogRequestData.month=t[1]}},chargeLogTotals(){return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"]?[this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].totals]:[]},chargeLogDataset:{get(){try{return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].entries.map(e=>{var t=Date.parse(e.time.begin),n=Date.parse(e.time.end);return{chargepoint_id:e.chargepoint.id,chargepoint_name:e.chargepoint.name,vehicle_id:e.vehicle.id,vehicle_name:e.vehicle.name,vehicle_chargemode:this.translateChargeMode(e.vehicle.chargemode),vehicle_rfid:e.vehicle.rfid,vehicle_prio:e.vehicle.prio,timestamp_begin:t/1e3,time_begin:this.dateTimeFormat.format(new Date(t)),timestamp_end:n/1e3,time_end:this.dateTimeFormat.format(new Date(n)),time_time_charged:e.time.time_charged,data_power:e.data.power,data_range_charged:e.data.range_charged,data_costs:e.data.costs,data_imported_since_plugged:e.data.imported_since_plugged,data_imported_since_mode_switch:e.data.imported_since_mode_switch}})}catch{return[]}}},chargeLogCsv:{get(){return[["Ladepunkt-ID","Ladepunkt","Fahrzeug-ID","Fahrzeug","Lademodus","Priorität","ID-Tag","Beginn","Ende","Zeitstempel Beginn","Zeitstempel Ende","Dauer","Leistung","Energie","Reichweite","Kosten"],...this.chargeLogDataset.map(t=>[t.chargepoint_id,'"'+t.chargepoint_name+'"',t.vehicle_id,'"'+t.vehicle_name+'"','"'+t.vehicle_chargemode+'"','"'+this.translateBool(t.vehicle_prio,!1)+'"','"'+t.vehicle_rfid+'"','"'+t.time_begin+'"','"'+t.time_end+'"','"'+t.timestamp_begin+'"','"'+t.timestamp_end+'"','"'+t.time_time_charged+'"',this.formatNumber(t.data_power/1e3,3),this.formatNumber(t.data_imported_since_mode_switch/1e3,2),this.formatNumber(t.data_range_charged,0),this.formatNumber(t.data_costs,2)])].map(t=>t.join(";")).join(` +import{l as C,S as q,T as R,F as k}from"./vendor-fortawesome-0685c9c0.js";import{_ as x,a0 as E,q as l,k as h,l as m,u as g,B as o,M as s,z as V,A as y,x as d,y as F,R as B,S as T}from"./vendor-72da2ec6.js";import{C as S}from"./index-e599db2d.js";import"./vendor-sortablejs-bc651bf7.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";C.add(q,R);const I={name:"OpenwbChargeLog",components:{Vue3TableLite:E,FontAwesomeIcon:k},mixins:[S],emits:["sendCommand"],data(){return{dateTimeFormat:new Intl.DateTimeFormat("de-DE",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentMonth:"",chargeLogRequestData:{month:"",year:"",filter:{chargepoint:{id:[]},vehicle:{id:[],rfid:[],chargemode:[],prio:void 0}}},downloadFile:null,table:{messages:{pagingInfo:"Einträge {0}-{1} von {2}",pageSizeChangeLabel:"Einträge:",gotoPageLabel:" Gehe zu:",noDataAvailable:"Keine Einträge gefunden."},pageOptions:[{value:5,text:"5"},{value:10,text:"10"},{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"}],columns:[{label:"Beginn",field:"time_begin",sortable:!0},{label:"Ende",field:"time_end",sortable:!0},{label:"Fahrzeug",field:"vehicle_name",sortable:!0},{label:"Dauer",field:"time_time_charged",sortable:!0,display:e=>this.alignEnd(e.time_time_charged)},{label:"Energie",field:"data_imported_since_mode_switch",sortable:!0,display:e=>this.alignEnd(this.formatNumber(e.data_imported_since_mode_switch/1e3,2)+" kWh / "+this.formatNumber(e.data_range_charged,0)+" km")},{label:"Kosten",field:"data_costs",sortable:!0,display:e=>this.alignEnd(this.formatNumber(e.data_costs,2)+" €")},{label:"Lademodus",field:"vehicle_chargemode",sortable:!0,display:e=>'
'+e.vehicle_chargemode+"
"},{label:"Ladepunkt",field:"chargepoint_name",sortable:!0},{label:"Priorität",field:"vehicle_prio",display:e=>this.translateBool(e.vehicle_prio)},{label:"ID-Tag",field:"vehicle_rfid",sortable:!0}],sortable:{order:"timestamp_begin",sort:"asc"}},totals:{columns:[{label:"Dauer",field:"time_charged",sortable:!1,display:e=>this.alignEnd(e.time_charged)},{label:"Energie",field:"imported_since_mode_switch",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.imported_since_mode_switch/1e3,2)+" kWh")},{label:"Reichweite",field:"range_charged",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.range_charged,0)+" km")},{label:"Kosten",field:"costs",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.costs,2)+" €")}]}}},computed:{downloadUrl(){const e=parseInt(location.port)||(location.protocol=="https:"?443:80);return`${location.protocol}//${location.hostname}:${e}/openWB/web/settings/downloadChargeLog.php`+`?year=${this.chargeLogRequestData.year}&month=${this.chargeLogRequestData.month}`},chargeLogDate:{get(){return this.chargeLogRequestData.year+"-"+this.chargeLogRequestData.month},set(e){let t=e.split("-");this.chargeLogRequestData.year=t[0],this.chargeLogRequestData.month=t[1]}},chargeLogTotals(){return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"]?[this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].totals]:[]},chargeLogDataset:{get(){try{return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].entries.map(e=>{var t=Date.parse(e.time.begin),n=Date.parse(e.time.end);return{chargepoint_id:e.chargepoint.id,chargepoint_name:e.chargepoint.name,vehicle_id:e.vehicle.id,vehicle_name:e.vehicle.name,vehicle_chargemode:this.translateChargeMode(e.vehicle.chargemode),vehicle_rfid:e.vehicle.rfid,vehicle_prio:e.vehicle.prio,timestamp_begin:t/1e3,time_begin:this.dateTimeFormat.format(new Date(t)),timestamp_end:n/1e3,time_end:this.dateTimeFormat.format(new Date(n)),time_time_charged:e.time.time_charged,data_power:e.data.power,data_range_charged:e.data.range_charged,data_costs:e.data.costs,data_imported_since_plugged:e.data.imported_since_plugged,data_imported_since_mode_switch:e.data.imported_since_mode_switch}})}catch{return[]}}},chargeLogCsv:{get(){return[["Ladepunkt-ID","Ladepunkt","Fahrzeug-ID","Fahrzeug","Lademodus","Priorität","ID-Tag","Beginn","Ende","Zeitstempel Beginn","Zeitstempel Ende","Dauer","Leistung","Energie","Reichweite","Kosten"],...this.chargeLogDataset.map(t=>[t.chargepoint_id,'"'+t.chargepoint_name+'"',t.vehicle_id,'"'+t.vehicle_name+'"','"'+t.vehicle_chargemode+'"','"'+this.translateBool(t.vehicle_prio,!1)+'"','"'+t.vehicle_rfid+'"','"'+t.time_begin+'"','"'+t.time_end+'"','"'+t.timestamp_begin+'"','"'+t.timestamp_end+'"','"'+t.time_time_charged+'"',this.formatNumber(t.data_power/1e3,3),this.formatNumber(t.data_imported_since_mode_switch/1e3,2),this.formatNumber(t.data_range_charged,0),this.formatNumber(t.data_costs,2)])].map(t=>t.join(";")).join(` `)}},chargeLogRead:{get(){return this.chargeLogDataset!=null}},chargeLogHasEntries:{get(){return this.chargeLogDataset==null?!1:this.chargeLogDataset.length>0}},totalRecordCount(){return this.chargeLogDataset.length},chargeModeList(){let e=this.chargeModes.map(t=>({value:t,text:this.translateChargeMode(t)}));return e.unshift({value:void 0,text:"Alle"}),e},chargePointList(){let e=this.getWildcardTopics("openWB/chargepoint/+/config");var t=[{value:void 0,text:"Alle"}];for(const[,n]of Object.entries(e))t.push({value:n.id,text:n.name});return t},vehicleList(){let e=this.getWildcardTopics("openWB/vehicle/+/name");var t=[{value:void 0,text:"Alle"}];for(const[n,c]of Object.entries(e)){let i=parseInt(n.match(/\/([0-9]+)\/name$/)[1]);t.push({value:i,text:c})}return t}},methods:{cleanRequestData(){"id"in this.chargeLogRequestData.filter.chargepoint&&(this.chargeLogRequestData.filter.chargepoint.id=this.chargeLogRequestData.filter.chargepoint.id.filter(e=>e!=null)),"chargemode"in this.chargeLogRequestData.filter.vehicle&&(this.chargeLogRequestData.filter.vehicle.chargemode=this.chargeLogRequestData.filter.vehicle.chargemode.filter(e=>e!=null)),"id"in this.chargeLogRequestData.filter.vehicle&&(this.chargeLogRequestData.filter.vehicle.id=this.chargeLogRequestData.filter.vehicle.id.filter(e=>e!=null))},requestChargeLog(){if(document.forms.chargeLogForm.reportValidity())this.cleanRequestData(),this.$emit("sendCommand",{command:"getChargeLog",data:this.chargeLogRequestData});else{console.warn("form invalid");return}},makeTextFile(e){var t=new Blob([e],{type:"text/csv"});return this.downloadFile!==null&&window.URL.revokeObjectURL(this.downloadFile),this.downloadFile=window.URL.createObjectURL(t),this.downloadFile},downloadChargeLog(){this.$refs.downloadChargeLogLink.setAttribute("download","Ladeprotokoll-"+this.chargeLogDate+".csv"),this.$refs.downloadChargeLogLink.href=this.makeTextFile(this.chargeLogCsv),this.$refs.downloadChargeLogLink.dispatchEvent(new MouseEvent("click"))},alignEnd(e){return'
'+e+"
"},alignCenter(e){return'
'+e+"
"},translateBool(e,t=!0){let n="Nein",c="bg-danger";return e&&(n="Ja",c="bg-success"),t?'
'+n+"
":n},getChargeModeClass(e){switch(e){case"Sofort":return"bg-danger";case"PV":return"bg-success";case"Zielladen":return"bg-primary";case"Zeitladen":return"bg-warning";case"Standby":return"bg-secondary";case"Stop":return"bg-dark";default:return console.warn("unknown charge mode:",e),"bg-light"}},translateHeading(e){switch(e){case"time_charged":return"Dauer";case"range_charged":return"Reichweite";case"imported_since_mode_switch":return"Energie im Lademodus";case"imported_since_plugged":return"Energie seit Anstecken";case"power":return"Leistung";case"costs":return"Kosten";default:return console.warn("unknown heading:",e),e}}},mounted(){const e=new Date;this.currentMonth=this.chargeLogDate=e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0"),this.requestChargeLog()}},N=e=>(B("data-v-8607e7e7"),e=e(),T(),e),U={class:"chargeLog"},M={name:"chargeLogForm"},W=["href"],A={key:1},O={key:0},P={class:"row justify-content-center"},j={class:"hide",ref:"downloadChargeLogLink"},z=N(()=>g("div",{class:"row"},[g("div",{class:"col"},[g("h2",null,"Summe")])],-1));function K(e,t,n,c,i,a){const L=l("openwb-base-text-input"),p=l("font-awesome-icon"),v=l("openwb-base-button-group-input"),u=l("openwb-base-select-input"),w=l("openwb-base-array-input"),_=l("openwb-base-card"),b=l("openwb-base-alert"),f=l("vue3-table-lite"),D=l("openwb-base-click-button");return h(),m("div",U,[g("form",M,[o(_,{title:"Filter"},{default:s(()=>[o(L,{title:"Zeitraum",subtype:"month",min:"2018-01",showQuickButtons:!0,max:i.currentMonth,modelValue:a.chargeLogDate,"onUpdate:modelValue":[t[0]||(t[0]=r=>a.chargeLogDate=r),t[1]||(t[1]=r=>a.requestChargeLog())]},null,8,["max","modelValue"]),o(_,{title:"Erweiterte Optionen",collapsible:!0,collapsed:!0},{header:s(()=>[o(p,{"fixed-width":"",icon:["fas","filter"]}),d(" Erweiterte Optionen ")]),default:s(()=>[o(v,{title:"Priorität",buttons:[{buttonValue:void 0,text:"Alle"},{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:i.chargeLogRequestData.filter.vehicle.prio,"onUpdate:modelValue":[t[2]||(t[2]=r=>i.chargeLogRequestData.filter.vehicle.prio=r),t[3]||(t[3]=r=>a.requestChargeLog())]},null,8,["modelValue"]),o(u,{title:"Lademodus",multiple:"",options:a.chargeModeList,modelValue:i.chargeLogRequestData.filter.vehicle.chargemode,"onUpdate:modelValue":[t[4]||(t[4]=r=>i.chargeLogRequestData.filter.vehicle.chargemode=r),t[5]||(t[5]=r=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Elemente ausgewählt werden. ")]),_:1},8,["options","modelValue"]),o(u,{title:"Ladepunkt",multiple:"",options:a.chargePointList,modelValue:i.chargeLogRequestData.filter.chargepoint.id,"onUpdate:modelValue":[t[6]||(t[6]=r=>i.chargeLogRequestData.filter.chargepoint.id=r),t[7]||(t[7]=r=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Elemente ausgewählt werden. ")]),_:1},8,["options","modelValue"]),o(u,{title:"Fahrzeug",multiple:"",options:a.vehicleList,modelValue:i.chargeLogRequestData.filter.vehicle.id,"onUpdate:modelValue":[t[8]||(t[8]=r=>i.chargeLogRequestData.filter.vehicle.id=r),t[9]||(t[9]=r=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Elemente ausgewählt werden. ")]),_:1},8,["options","modelValue"]),o(w,{title:"ID-Tags",modelValue:i.chargeLogRequestData.filter.vehicle.tag,"onUpdate:modelValue":[t[10]||(t[10]=r=>i.chargeLogRequestData.filter.vehicle.tag=r),t[11]||(t[11]=r=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Tags als Filter verwendet werden. ")]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(b,{subtype:"info"},{default:s(()=>[d(" Das komplette Ladeprotokoll kann automatisiert über folgende URL abgerufen werden: "),g("a",{href:a.downloadUrl},F(a.downloadUrl),9,W)]),_:1}),a.chargeLogRead?(h(),m("div",A,[o(f,{class:"charge-log-table","is-static-mode":!0,columns:i.table.columns,rows:a.chargeLogDataset,total:a.totalRecordCount,sortable:i.table.sortable,messages:i.table.messages,"page-options":i.table.pageOptions,limit:25},null,8,["columns","rows","total","sortable","messages","page-options"]),a.totalRecordCount>0?(h(),m("div",O,[g("div",P,[o(D,{class:"col-4 btn-success",onButtonClicked:t[12]||(t[12]=r=>a.downloadChargeLog())},{default:s(()=>[d(" Als CSV exportieren "),o(p,{"fixed-width":"",icon:["fas","download"]})]),_:1}),g("a",j,null,512)]),z,o(f,{class:"charge-log-totals","is-static-mode":!0,"is-hide-paging":!0,columns:i.totals.columns,rows:a.chargeLogTotals,total:1},null,8,["columns","rows"])])):y("",!0)])):(h(),V(b,{key:0,subtype:"info"},{default:s(()=>[d(" Es wurden noch keine Daten abgerufen. ")]),_:1}))])])}const $=x(I,[["render",K],["__scopeId","data-v-8607e7e7"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargeLog.vue"]]);export{$ as default}; diff --git a/web/settings/assets/ChargePointInstallation-141989e3.js b/web/settings/assets/ChargePointInstallation-4f14e501.js similarity index 94% rename from web/settings/assets/ChargePointInstallation-141989e3.js rename to web/settings/assets/ChargePointInstallation-4f14e501.js index 7da0145dd0..25d2ce3189 100644 --- a/web/settings/assets/ChargePointInstallation-141989e3.js +++ b/web/settings/assets/ChargePointInstallation-4f14e501.js @@ -1 +1 @@ -import{l as H,d as G,Z as Q,A as X,_ as Y,$ as K,K as ee,a0 as te,F as ne,I as ae}from"./vendor-fortawesome-cf9a975a.js";import{_ as T,C as oe}from"./index-bed1470e.js";import{_ as E}from"./dynamic-import-helper-be004503.js";import{_ as x,q as g,k as l,l as c,z as v,M as o,x as i,y as k,B as n,u as d,a1 as D,a2 as M,I as S,J as I,A as w,p as F,a3 as O,O as ie,R as le,S as se}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const re={name:"ChargePointConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0},chargePointType:String},methods:{updateConfiguration(e,a=void 0){this.$emit("update:configuration",{value:e,object:a})}}},ue={class:"device-fallback"},de={key:1};function pe(e,a,u,P,m,p){const C=g("openwb-base-alert"),f=g("openwb-base-textarea");return l(),c("div",ue,[Object.keys(u.configuration).length==0?(l(),v(C,{key:0,subtype:"info"},{default:o(()=>[i(' Der Ladepunkt-Typ "'+k(u.chargePointType)+'" bietet keine Einstellungen. ',1)]),_:1})):(l(),c("div",de,[n(C,{subtype:"warning"},{default:o(()=>[i(' Es wurde keine Konfigurationsseite für den Ladepunkt-Typ "'+k(u.chargePointType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(f,{title:"Konfiguration",subtype:"json","model-value":u.configuration,"onUpdate:modelValue":a[0]||(a[0]=L=>p.updateConfiguration(L,"configuration"))},{help:o(()=>[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(C,{subtype:"info"},{default:o(()=>[d("pre",null,k(JSON.stringify(u.configuration,void 0,2)),1)]),_:1})]))])}const me=x(re,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointConfigFallback.vue"]]),ce={name:"ChargePointCommandsFallback",props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0},chargePointType:String}},ge={class:"charge-point-commands-fallback"};function he(e,a,u,P,m,p){const C=g("openwb-base-alert");return l(),c("div",ge,[n(C,{subtype:"secondary"},{default:o(()=>[i(' Der Ladepunkt-Typ "'+k(u.chargePointType)+'" bietet keine Befehle an. ',1)]),_:1})])}const fe=x(ce,[["render",he],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointCommandsFallback.vue"]]),be={name:"OpenwbChargePointProxy",emits:["update:configuration"],props:{chargePointId:{required:!0},chargePointType:{type:String,required:!0},configuration:{type:Object,required:!0},moduleName:{type:String,required:!1,default:void 0}},computed:{myChargePointSettingsComponent(){return console.debug(`loading charge point settings: ${this.chargePointType}`),D({loader:()=>E(Object.assign({"./external_openwb/chargePoint.vue":()=>T(()=>import("./chargePoint-f93ecbce.js"),["assets/chargePoint-f93ecbce.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./internal_openwb/chargePoint.vue":()=>T(()=>import("./chargePoint-07bd6e84.js"),["assets/chargePoint-07bd6e84.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./mqtt/chargePoint.vue":()=>T(()=>import("./chargePoint-aad3b434.js"),["assets/chargePoint-aad3b434.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_pro/chargePoint.vue":()=>T(()=>import("./chargePoint-f3d3d9e7.js"),["assets/chargePoint-f3d3d9e7.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_series2_satellit/chargePoint.vue":()=>T(()=>import("./chargePoint-8de07428.js"),["assets/chargePoint-8de07428.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./smartwb/chargePoint.vue":()=>T(()=>import("./chargePoint-a5938a3a.js"),["assets/chargePoint-a5938a3a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"])}),`./${this.chargePointType}/chargePoint.vue`),errorComponent:me})},myChargePointCommandsComponent(){return console.debug(`loading charge point commands: ${this.chargePointType}`),D({loader:()=>E(Object.assign({"./openwb_pro/commands.vue":()=>T(()=>import("./commands-f95f5df1.js"),["assets/commands-f95f5df1.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"])}),`./${this.chargePointType}/commands.vue`),errorComponent:fe})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}},_e=d("hr",null,null,-1);function we(e,a,u,P,m,p){const C=g("openwb-base-heading");return l(),c(S,null,[n(C,null,{default:o(()=>[i(" Einstellungen für Ladepunkt "+k(u.moduleName),1)]),_:1}),(l(),v(M(p.myChargePointSettingsComponent),{configuration:u.configuration,chargePointId:u.chargePointId,chargePointType:u.chargePointType,"onUpdate:configuration":a[0]||(a[0]=f=>p.updateConfiguration(f))},null,40,["configuration","chargePointId","chargePointType"])),_e,n(C,null,{default:o(()=>[i(" Befehle für Ladepunkt "+k(u.moduleName),1)]),_:1}),(l(),v(M(p.myChargePointCommandsComponent),{configuration:u.configuration,chargePointId:u.chargePointId,chargePointType:u.chargePointType},null,8,["configuration","chargePointId","chargePointType"]))],64)}const ke=x(be,[["render",we],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointProxy.vue"]]);H.add(G,Q,X,Y,K,ee,te);const ve={name:"OpenwbChargePointInstallation",mixins:[oe],emits:["sendCommand"],components:{FontAwesomeIcon:ne,FontAwesomeLayers:ae,OpenwbChargePointProxy:ke},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/rfid/active","openWB/chargepoint/+/config","openWB/chargepoint/template/+","openWB/chargepoint/template/+/autolock/+","openWB/system/configurable/chargepoints","openWB/system/configurable/chargepoints_internal"],chargePointToAdd:void 0,showChargePointModal:!1,modalChargePointIndex:void 0,showChargePointTemplateModal:!1,modalChargePointTemplateIndex:void 0,showChargePointTemplateAutolockPlanModal:!1,modalChargePointTemplateAutolockPlanIndex:void 0}},computed:{installedChargePoints:{get(){let e=this.getWildcardTopics("openWB/chargepoint/+/config"),a={};for(const[u,P]of Object.entries(e))(P.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(a[u]=P);return a}},chargePointTemplates:{get(){return this.getWildcardTopics("openWB/chargepoint/template/+")}},chargePointTemplateList:{get(){let e=[];return Object.keys(this.chargePointTemplates).forEach(a=>{let u=parseInt(a.match(/([0-9]+)/g)[0]),P=this.$store.state.mqtt["openWB/chargepoint/template/"+u].name;e.push({value:u,text:P})}),e}}},methods:{addChargePoint(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addChargepoint",data:{type:this.chargePointToAdd}})},removeChargePointModal(e,a){a.stopPropagation(),this.modalChargePointIndex=parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1]),this.showChargePointModal=!0},removeChargePoint(e,a){this.showChargePointModal=!1,a=="confirm"&&(console.debug("request removal of charge point '"+e+"'"),this.$emit("sendCommand",{command:"removeChargepoint",data:{id:e}}))},getChargePointList(){return this.$store.state.mqtt["openWB/general/extern"]===!1?this.$store.state.mqtt["openWB/system/configurable/chargepoints"]:this.$store.state.mqtt["openWB/system/configurable/chargepoints_internal"]},getChargePointName(e){return this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"].name:"Ladepunkt "+e},getChargePointTemplateName(e){return this.$store.state.mqtt["openWB/chargepoint/template/"+e]?this.$store.state.mqtt["openWB/chargepoint/template/"+e].name:"Profil "+e},addChargePointTemplate(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addChargepointTemplate",data:{}})},getChargePointTemplateIndex(e){return parseInt(e.match(/([^/]+)$/)[0])},removeChargePointTemplateModal(e,a){a.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.showChargePointTemplateModal=!0},removeChargePointTemplate(e,a){this.showChargePointTemplateModal=!1,a=="confirm"&&(console.debug("request removal of chargePoint template '"+e+"'"),this.$emit("sendCommand",{command:"removeChargepointTemplate",data:{id:e}}))},addChargePointTemplateAutolockPlan(e,a){a.stopPropagation(),console.info("requesting new charge point template autolock plan...");let u=this.getChargePointTemplateIndex(e);this.$emit("sendCommand",{command:"addAutolockPlan",data:{template:u}})},removeChargePointTemplateAutolockPlanModal(e,a,u){u.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.modalChargePointTemplateAutolockPlanIndex=parseInt(a.match(/([^/]+)$/)[0]),this.showChargePointTemplateAutolockPlanModal=!0},removeChargePointTemplateAutolockPlan(e,a,u){this.showChargePointTemplateAutolockPlanModal=!1,u=="confirm"&&(console.debug("request removal of chargePoint template '"+e+"' autolock plan '"+a+"'"),this.$emit("sendCommand",{command:"removeAutolockPlan",data:{template:e,plan:a}}))},getChargePointTemplateAutolockPlanName(e,a){return this.$store.state.mqtt["openWB/chargepoint/template/"+e+"/autolock/"+a]?this.$store.state.mqtt["openWB/chargepoint/template/"+e+"/autolock/"+a].name:"Autolock Zeitplan "+e+"/"+a},getChargePointTemplateAutolockPlans(e){let a=this.getChargePointTemplateIndex(e);return this.getWildcardTopics("openWB/chargepoint/template/"+a+"/autolock/+")},updateConfiguration(e,a){console.debug("updateConfiguration",e,a),this.updateState(e,a.value,a.object)}}},b=e=>(le("data-v-75fe5743"),e=e(),se(),e),Ce={class:"chargePointInstallation"},ye={name:"chargePointInstallationForm"},Pe={key:0},Ve=b(()=>d("hr",null,null,-1)),Le={key:1},Te=b(()=>d("hr",null,null,-1)),Be=b(()=>d("br",null,null,-1)),We=b(()=>d("br",null,null,-1)),Se=b(()=>d("br",null,null,-1)),Ae=b(()=>d("br",null,null,-1)),Ie={key:0},xe={class:"col-1"},Ue=b(()=>d("br",null,null,-1)),qe=b(()=>d("ul",null,[d("li",null," Interne openWB - wenn diese openWB über einen verbauten Ladepunkt mit Regelcontroller verfügt (z.B. Standard(+), Custom, Duo, Buchse, NICHT Standalone); ansonsten immer anlegen, egal ob diese openWB steuert = primary oder ferngesteuert wird = secondary "),d("li",null," Externe openWB - wenn diese openWB (primary) die Fernsteuerung von externen openWB (secondary) übernimmt "),d("li",null," MQTT-Ladepunkt - nur zur Nutzung des openWB-Simulators zugelassen "),d("li",null," openWB Pro - wenn diese openWB (primary) die Fernsteuerung einer openWB Pro (secondary) übernimmt "),d("li",null," openWB series2 Satellit/Satellit Duo - wenn diese openWB (primary) die Fernsteuerung einer openWB series2 Satellit/Satellit Duo (secondary) übernimmt "),d("li",null," smartWB/EVSE-Wifi - wenn diese openWB (primary) die Fernsteuerung einer smartWB/EVSE-Wifi übernimmt ")],-1)),ze=b(()=>d("hr",{class:"border-secondary"},null,-1)),Ee={key:0},De={key:1},Me=b(()=>d("hr",null,null,-1)),Fe={key:0},Oe=b(()=>d("br",null,null,-1)),Ne=["innerHTML"],Re=b(()=>d("hr",null,null,-1)),Ze=b(()=>d("br",null,null,-1)),je=b(()=>d("br",null,null,-1)),$e=b(()=>d("a",{href:"https://github.com/openWB/core/wiki/Lastmanagement-und-kaskadierte-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"},"Wiki zum Lastmanagement",-1)),Je=b(()=>d("hr",null,null,-1)),He=["onClick"],Ge={key:0},Qe={key:1},Xe={key:2},Ye={key:2};function Ke(e,a,u,P,m,p){const C=g("openwb-base-modal-dialog"),f=g("font-awesome-icon"),L=g("openwb-base-avatar"),V=g("openwb-base-text-input"),U=g("openwb-base-select-input"),N=g("openwb-charge-point-proxy"),B=g("openwb-base-heading"),y=g("openwb-base-button-group-input"),A=g("openwb-base-card"),R=g("openwb-base-click-button"),Z=g("font-awesome-layers"),q=g("openwb-base-alert"),j=g("openwb-base-array-input"),z=g("openwb-base-range-input"),$=g("openwb-base-submit-buttons");return l(),c(S,null,[n(C,{show:m.showChargePointModal,title:"Ladepunkt löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[0]||(a[0]=s=>p.removeChargePoint(m.modalChargePointIndex,s))},{default:o(()=>[i(' Wollen Sie den Ladepunkt "'+k(p.getChargePointName(m.modalChargePointIndex))+'" (ID: '+k(m.modalChargePointIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),n(C,{show:m.showChargePointTemplateModal,title:"Ladepunkt-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[1]||(a[1]=s=>p.removeChargePointTemplate(m.modalChargePointTemplateIndex,s))},{default:o(()=>[i(' Wollen Sie das Ladepunkt-Profil "'+k(p.getChargePointTemplateName(m.modalChargePointTemplateIndex))+'" (ID: '+k(m.modalChargePointTemplateIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),n(C,{show:m.showChargePointTemplateAutolockPlanModal,title:"Autolock Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[2]||(a[2]=s=>p.removeChargePointTemplateAutolockPlan(m.modalChargePointTemplateIndex,m.modalChargePointTemplateAutolockPlanIndex,s))},{default:o(()=>[i(' Wollen Sie den Autolock Zeitplan "'+k(p.getChargePointTemplateAutolockPlanName(m.modalChargePointTemplateIndex,m.modalChargePointTemplateAutolockPlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),d("div",Ce,[d("form",ye,[n(A,{title:"Ladepunkte",subtype:"primary",collapsible:!0,collapsed:!0},{header:o(()=>[n(f,{"fixed-width":"",icon:["fas","charging-station"]}),i(" Ladepunkte ")]),default:o(()=>[(l(!0),c(S,null,I(p.installedChargePoints,(s,r)=>(l(),v(A,{key:r,title:s.name+" (ID: "+s.id+")",collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(t=>[t.collapsed?w("",!0):(l(),v(L,{key:0,class:"bg-danger clickable",onClick:_=>p.removeChargePointModal(r,_)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(V,{title:"Bezeichnung",subtype:"text","model-value":s.name,"onUpdate:modelValue":t=>e.updateState(r,t,"name")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Modul",subtype:"text",disabled:"",readonly:"","model-value":e.$store.state.mqtt[r].type},null,8,["model-value"]),s.type!=="internal_openwb"||e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),c("span",Pe,[n(U,{title:"Ladepunkt-Profil",options:p.chargePointTemplateList,"model-value":e.$store.state.mqtt[r].template,"onUpdate:modelValue":t=>e.updateState(r,t,"template")},null,8,["options","model-value","onUpdate:modelValue"])])):w("",!0),Ve,n(N,{chargePointId:s.id,chargePointType:e.$store.state.mqtt[r].type,moduleName:e.$store.state.mqtt[r].name,configuration:s.configuration,"onUpdate:configuration":t=>p.updateConfiguration(r,t)},null,8,["chargePointId","chargePointType","moduleName","configuration","onUpdate:configuration"]),s.type!=="internal_openwb"||e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),c("div",Le,[Te,n(B,null,{default:o(()=>[i("Hardware-Optionen")]),_:1}),n(y,{title:"automatische Phasenumschaltung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.auto_phase_switch_hw,"onUpdate:modelValue":t=>e.updateState(r,t,"auto_phase_switch_hw")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Control-Pilot-Unterbrechung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.control_pilot_interruption_hw,"onUpdate:modelValue":t=>e.updateState(r,t,"control_pilot_interruption_hw")},{help:o(()=>[i(' Die Control-Pilot-Leitung ist im Ladekabel integriert und dient der Steuerung der Fahrzeugladung (An/Aus/Stromvorgaben). Bei einigen Fahrzeugen können durch die Regelung erzwungene, längere Ladestopps (z.B. beim PV-Laden) zu unerwünschten "Einschlaf"-Effekten des Fahrzeuges führen. Mit diesem feature, welches hardwareseitig verbaut sein muss, kann ein Abstecken des Ladesteckers simuliert werden, um ein Aufwecken des Fahrzeuges zu ermöglichen. Die Funktion hängt immer auch vom Fahrzeugtyp ab. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(B,null,{default:o(()=>[i(" Elektrischer Anschluss ")]),_:1}),n(y,{title:"Anzahl angeschlossener Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":s.connected_phases,"onUpdate:modelValue":t=>e.updateState(r,t,"connected_phases")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Phase 1 des Ladekabels",buttons:[{buttonValue:0,text:"unbekannt",class:"btn-outline-danger"},{buttonValue:1,text:"EVU L1",class:"btn-outline-success"},{buttonValue:2,text:"EVU L2",class:"btn-outline-success"},{buttonValue:3,text:"EVU L3",class:"btn-outline-success"}],"model-value":s.phase_1,"onUpdate:modelValue":t=>e.updateState(r,t,"phase_1")},{help:o(()=>[i(" Hier ist anzugeben, an welcher Phase des Hausanschlusses (EVU-Punkt) die Phase 1 dieses Ladepunktes angeschlossen ist. Diese Information wird für das Lastmanagement benötigt, um bei einer Schieflast gezielt einzelne Ladepunkte zu drosseln."),Be,i(' Bei mehreren Ladepunkten macht es Sinn, die Phasen der LP rotierend anzuschließen, damit mehrere "nicht-dreiphasig" ladende Fahrzeuge mit optimaler Leistung laden können, bevor das Lastmanagement eingreift.'),We,i(" Es wird vorausgesetzt, dass das Drehfeld innerhalb der Installation gleich bleibt. Wenn z.B. L1 des Ladepunktes auf EVU-L2 liegt, muss L2 des Ladepunktes auf EVU-L3 aufgelegt sein (und L3 des Ladepunktes auf EVU-L1)."),Se,i(" Eine Möglichkeit, die zur Ladepunktphase L1 zugehörige EVU-Phase zu ermitteln, ist eine einphasige Ladung zu starten und die Phasenströme am EVU-Zähler zu beobachten. Mit einem zweiphasig ladenden Fahrzeug kann danach auch der Anschluss von L2 ermittelt und so das Drehfeld kontrolliert werden."),Ae,i(" Im Zweifel bitte das Drehfeld von einer Fachkraft prüfen und korrigieren lassen. ")]),_:2},1032,["model-value","onUpdate:modelValue"])])):w("",!0)]),_:2},1032,["title"]))),128)),Object.keys(p.installedChargePoints).length>0?(l(),c("hr",Ie)):w("",!0),n(U,{class:"mb-2",title:"Verfügbare Ladepunkte",notSelected:"Bitte auswählen",options:p.getChargePointList(),"model-value":m.chargePointToAdd,"onUpdate:modelValue":a[3]||(a[3]=s=>m.chargePointToAdd=s)},{append:o(()=>[d("span",xe,[n(R,{class:F(m.chargePointToAdd===void 0?"btn-outline-success":"btn-success"),disabled:m.chargePointToAdd===void 0,onButtonClicked:p.addChargePoint},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["class","disabled","onButtonClicked"])])]),help:o(()=>[i(" Bitte einen Ladepunkt auswählen, der der openWB-Regelung hinzugefügt werden soll."),Ue,qe]),_:1},8,["options","model-value"])]),_:1}),ze,n(A,{title:"Ladepunkt-Profile",collapsible:!0,collapsed:!0},{header:o(()=>[n(Z,{"fixed-width":"",class:"fa-lg"},{default:o(()=>[n(f,{"fixed-width":"",icon:["far","file"]}),n(f,{"fixed-width":"",icon:["fas","charging-station"],transform:"shrink-8"})]),_:1}),i(" Ladepunkt-Profile ")]),actions:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),v(L,{key:0,class:"bg-success clickable",onClick:p.addChargePointTemplate},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):w("",!0)]),default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),c("div",Ee,[n(q,{subtype:"info"},{default:o(()=>[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),c("div",De,[(l(!0),c(S,null,I(p.chargePointTemplates,(s,r)=>(l(),v(A,{key:r,title:s.name+" (ID: "+p.getChargePointTemplateIndex(r)+")",collapsible:!0,collapsed:!0},O({default:o(()=>[n(V,{title:"Bezeichnung",subtype:"text","model-value":s.name,"onUpdate:modelValue":t=>e.updateState(r,t,"name"),disabled:r.endsWith("/0")},O({_:2},[r.endsWith("/0")?{name:"help",fn:o(()=>[i(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),Me,e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(l(),c("div",Fe,[n(B,null,{default:o(()=>[i(" Zugangskontrolle ")]),_:1}),n(y,{title:"Freigabe durch ID-Tags",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.rfid_enabling,"onUpdate:modelValue":t=>e.updateState(r,t,"rfid_enabling")},null,8,["model-value","onUpdate:modelValue"]),n(j,{title:"Zugeordnete ID-Tags",noElementsMessage:"Keine ID-Tags zugeordnet.","model-value":s.valid_tags,"onUpdate:modelValue":t=>e.updateState(r,t,"valid_tags")},{help:o(()=>[i(" An allen Ladepunkten, denen dieses Ladepunkt-Profil zugeordnet ist, werden die hier eingetragenen ID-Tags zur Freischaltung verwendet. "),Oe,d("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,Ne)]),_:2},1032,["model-value","onUpdate:modelValue"]),Re])):w("",!0),n(B,null,{default:o(()=>[i(" Angaben zum konfigurierten Ladestrom der openWB ")]),_:1}),n(q,{subtype:"info"},{default:o(()=>[i(" Hier werden die maximalen Ladeströme entsprechend der in dem zugeordneten Ladepunkt genutzten Phasen eingestellt."),Ze,i(" Generell gilt, dass diese Werte in Übereinstimmung mit der Ausführung des Ladepunktes und des elektrischen Anschlusses bzw. der Absicherung zu wählen sind. Bei einer openWB mit 22kW Maximalleistung sind hier jeweils 32A einzustellen. Ist die openWB beispielsweise auf 11kW begrenzt (KfW-Förderung oder die Zuleitung ist mit 16A abgesichert), dann sind hier jeweils 16A einzustellen."),je,i(" Komplexere Installationen mit mehreren Ladepunkten werden im "),$e,i(" beschrieben. ")]),_:1}),n(z,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":s.max_current_single_phase,"onUpdate:modelValue":t=>e.updateState(r,t,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),n(z,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":s.max_current_multi_phases,"onUpdate:modelValue":t=>e.updateState(r,t,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),Je,n(B,null,{default:o(()=>[i("Automatische Sperre")]),_:1}),n(y,{title:"Automatische Sperre aktiv",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.autolock.active,"onUpdate:modelValue":t=>e.updateState(r,t,"autolock.active")},{help:o(()=>[i(" Wird die automatische Sperre aktiviert, können Fahrzeugladungen mittels Zeitplan auf gewünschte Zeitbereiche eingeschränkt werden. Dies kann z.B. bei Zugänglichkeiten zu Ladepunkten in öffentlichen oder halb-öffentlichen Bereichen sinnvoll sein. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(y,{title:"Erst nach Ladeende sperren",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.autolock.wait_for_charging_end,"onUpdate:modelValue":t=>e.updateState(r,t,"autolock.wait_for_charging_end")},{help:o(()=>[i(' Wenn ein Zeitplan die automatische Sperre aktiviert, werden alle Ladepunkte direkt gesperrt und laufende Ladevorgänge beendet. Wird hier "Ja" ausgewählt, dann werden laufende Ladevorgänge NICHT beendet und diese Ladepunkte erst nach abgeschlossener Ladung gesperrt. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(B,null,{actions:o(()=>[n(L,{class:"bg-success clickable",onClick:t=>p.addChargePointTemplateAutolockPlan(r,t)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),default:o(()=>[i(" Zeitpläne für die automatische Sperre ")]),_:2},1024),(l(!0),c(S,null,I(p.getChargePointTemplateAutolockPlans(r),(t,_)=>(l(),v(A,{key:_,title:t.name,collapsible:!0,collapsed:!0},{actions:o(h=>[h.collapsed==!0?(l(),c("span",{key:0,onClick:ie(W=>e.updateState(_,!t.active,"active"),["stop"]),class:F(["subheader pill clickable",t.active?"bg-success":"bg-danger"])},[n(f,{"fixed-width":"",icon:["fas","clock"]}),i(" "+k(t.time[0])+" - "+k(t.time[1])+" ",1),t.frequency.selected=="once"?(l(),c("span",Ge,[n(f,{"fixed-width":"",icon:["fas","calendar-day"]}),i(" "+k(e.formatDate(t.frequency.once[0])==e.formatDate(t.frequency.once[1])?e.formatDate(t.frequency.once[0]):e.formatDate(t.frequency.once[0])+" - "+e.formatDate(t.frequency.once[1])),1)])):w("",!0),t.frequency.selected=="daily"?(l(),c("span",Qe,[n(f,{"fixed-width":"",icon:["fas","calendar-week"]})])):w("",!0),t.frequency.selected=="weekly"?(l(),c("span",Xe,[n(f,{"fixed-width":"",icon:["fas","calendar-alt"]})])):w("",!0)],10,He)):w("",!0),h.collapsed==!1?(l(),v(L,{key:1,class:"bg-danger clickable",onClick:W=>p.removeChargePointTemplateAutolockPlanModal(r,_,W)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):w("",!0)]),default:o(()=>[n(V,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":h=>e.updateState(_,h,"name")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":h=>e.updateState(_,h,"active")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Sperren um",subtype:"time","model-value":t.time[0],"onUpdate:modelValue":h=>e.updateState(_,h,"time.0")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Freigeben um",subtype:"time","model-value":t.time[1],"onUpdate:modelValue":h=>e.updateState(_,h,"time.1")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":h=>e.updateState(_,h,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(l(),v(V,{key:0,title:"Sperren ab ...",subtype:"date","model-value":t.frequency.once[0],"onUpdate:modelValue":h=>e.updateState(_,h,"frequency.once.0")},null,8,["model-value","onUpdate:modelValue"])):w("",!0),t.frequency.selected=="once"?(l(),v(V,{key:1,title:"... bis",subtype:"date",min:t.frequency.once[0],"model-value":t.frequency.once[1],"onUpdate:modelValue":h=>e.updateState(_,h,"frequency.once.1")},null,8,["min","model-value","onUpdate:modelValue"])):w("",!0),t.frequency.selected=="weekly"?(l(),c("div",Ye,[(l(!0),c(S,null,I(e.weekdays,(h,W)=>(l(),v(y,{key:W,title:h,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[W],"onUpdate:modelValue":J=>e.updateState(_,J,"frequency.weekly."+W)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):w("",!0)]),_:2},1032,["title"]))),128))]),_:2},[r.endsWith("/0")?void 0:{name:"actions",fn:o(t=>[t.collapsed?w("",!0):(l(),v(L,{key:0,class:"bg-danger clickable",onClick:_=>p.removeChargePointTemplateModal(r,_)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}]),1032,["title"]))),128))]))]),_:1}),n($,{formName:"chargePointInstallationForm",onSave:a[4]||(a[4]=s=>e.$emit("save")),onReset:a[5]||(a[5]=s=>e.$emit("reset")),onDefaults:a[6]||(a[6]=s=>e.$emit("defaults"))})])])],64)}const rt=x(ve,[["render",Ke],["__scopeId","data-v-75fe5743"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargePointInstallation.vue"]]);export{rt as default}; +import{l as H,d as G,Z as Q,A as X,_ as Y,$ as K,K as ee,a0 as te,F as ne,I as ae}from"./vendor-fortawesome-0685c9c0.js";import{_ as T,C as oe}from"./index-e599db2d.js";import{_ as E}from"./dynamic-import-helper-be004503.js";import{_ as x,q as g,k as l,l as c,z as v,M as o,x as i,y as k,B as n,u as d,a1 as D,a2 as M,I as S,J as I,A as w,p as F,a3 as O,O as ie,R as le,S as se}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const re={name:"ChargePointConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0},chargePointType:String},methods:{updateConfiguration(e,a=void 0){this.$emit("update:configuration",{value:e,object:a})}}},ue={class:"device-fallback"},de={key:1};function pe(e,a,u,P,m,p){const C=g("openwb-base-alert"),f=g("openwb-base-textarea");return l(),c("div",ue,[Object.keys(u.configuration).length==0?(l(),v(C,{key:0,subtype:"info"},{default:o(()=>[i(' Der Ladepunkt-Typ "'+k(u.chargePointType)+'" bietet keine Einstellungen. ',1)]),_:1})):(l(),c("div",de,[n(C,{subtype:"warning"},{default:o(()=>[i(' Es wurde keine Konfigurationsseite für den Ladepunkt-Typ "'+k(u.chargePointType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(f,{title:"Konfiguration",subtype:"json","model-value":u.configuration,"onUpdate:modelValue":a[0]||(a[0]=L=>p.updateConfiguration(L,"configuration"))},{help:o(()=>[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(C,{subtype:"info"},{default:o(()=>[d("pre",null,k(JSON.stringify(u.configuration,void 0,2)),1)]),_:1})]))])}const me=x(re,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointConfigFallback.vue"]]),ce={name:"ChargePointCommandsFallback",props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0},chargePointType:String}},ge={class:"charge-point-commands-fallback"};function he(e,a,u,P,m,p){const C=g("openwb-base-alert");return l(),c("div",ge,[n(C,{subtype:"secondary"},{default:o(()=>[i(' Der Ladepunkt-Typ "'+k(u.chargePointType)+'" bietet keine Befehle an. ',1)]),_:1})])}const fe=x(ce,[["render",he],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointCommandsFallback.vue"]]),be={name:"OpenwbChargePointProxy",emits:["update:configuration"],props:{chargePointId:{required:!0},chargePointType:{type:String,required:!0},configuration:{type:Object,required:!0},moduleName:{type:String,required:!1,default:void 0}},computed:{myChargePointSettingsComponent(){return console.debug(`loading charge point settings: ${this.chargePointType}`),D({loader:()=>E(Object.assign({"./external_openwb/chargePoint.vue":()=>T(()=>import("./chargePoint-91ec85da.js"),["assets/chargePoint-91ec85da.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./internal_openwb/chargePoint.vue":()=>T(()=>import("./chargePoint-554e3f13.js"),["assets/chargePoint-554e3f13.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./mqtt/chargePoint.vue":()=>T(()=>import("./chargePoint-45e0c9d4.js"),["assets/chargePoint-45e0c9d4.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_pro/chargePoint.vue":()=>T(()=>import("./chargePoint-1a139f8b.js"),["assets/chargePoint-1a139f8b.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_series2_satellit/chargePoint.vue":()=>T(()=>import("./chargePoint-beb6e683.js"),["assets/chargePoint-beb6e683.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./smartwb/chargePoint.vue":()=>T(()=>import("./chargePoint-b34b8d34.js"),["assets/chargePoint-b34b8d34.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"])}),`./${this.chargePointType}/chargePoint.vue`),errorComponent:me})},myChargePointCommandsComponent(){return console.debug(`loading charge point commands: ${this.chargePointType}`),D({loader:()=>E(Object.assign({"./openwb_pro/commands.vue":()=>T(()=>import("./commands-dcca536b.js"),["assets/commands-dcca536b.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"])}),`./${this.chargePointType}/commands.vue`),errorComponent:fe})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}},_e=d("hr",null,null,-1);function we(e,a,u,P,m,p){const C=g("openwb-base-heading");return l(),c(S,null,[n(C,null,{default:o(()=>[i(" Einstellungen für Ladepunkt "+k(u.moduleName),1)]),_:1}),(l(),v(M(p.myChargePointSettingsComponent),{configuration:u.configuration,chargePointId:u.chargePointId,chargePointType:u.chargePointType,"onUpdate:configuration":a[0]||(a[0]=f=>p.updateConfiguration(f))},null,40,["configuration","chargePointId","chargePointType"])),_e,n(C,null,{default:o(()=>[i(" Befehle für Ladepunkt "+k(u.moduleName),1)]),_:1}),(l(),v(M(p.myChargePointCommandsComponent),{configuration:u.configuration,chargePointId:u.chargePointId,chargePointType:u.chargePointType},null,8,["configuration","chargePointId","chargePointType"]))],64)}const ke=x(be,[["render",we],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointProxy.vue"]]);H.add(G,Q,X,Y,K,ee,te);const ve={name:"OpenwbChargePointInstallation",mixins:[oe],emits:["sendCommand"],components:{FontAwesomeIcon:ne,FontAwesomeLayers:ae,OpenwbChargePointProxy:ke},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/rfid/active","openWB/chargepoint/+/config","openWB/chargepoint/template/+","openWB/chargepoint/template/+/autolock/+","openWB/system/configurable/chargepoints","openWB/system/configurable/chargepoints_internal"],chargePointToAdd:void 0,showChargePointModal:!1,modalChargePointIndex:void 0,showChargePointTemplateModal:!1,modalChargePointTemplateIndex:void 0,showChargePointTemplateAutolockPlanModal:!1,modalChargePointTemplateAutolockPlanIndex:void 0}},computed:{installedChargePoints:{get(){let e=this.getWildcardTopics("openWB/chargepoint/+/config"),a={};for(const[u,P]of Object.entries(e))(P.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(a[u]=P);return a}},chargePointTemplates:{get(){return this.getWildcardTopics("openWB/chargepoint/template/+")}},chargePointTemplateList:{get(){let e=[];return Object.keys(this.chargePointTemplates).forEach(a=>{let u=parseInt(a.match(/([0-9]+)/g)[0]),P=this.$store.state.mqtt["openWB/chargepoint/template/"+u].name;e.push({value:u,text:P})}),e}}},methods:{addChargePoint(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addChargepoint",data:{type:this.chargePointToAdd}})},removeChargePointModal(e,a){a.stopPropagation(),this.modalChargePointIndex=parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1]),this.showChargePointModal=!0},removeChargePoint(e,a){this.showChargePointModal=!1,a=="confirm"&&(console.debug("request removal of charge point '"+e+"'"),this.$emit("sendCommand",{command:"removeChargepoint",data:{id:e}}))},getChargePointList(){return this.$store.state.mqtt["openWB/general/extern"]===!1?this.$store.state.mqtt["openWB/system/configurable/chargepoints"]:this.$store.state.mqtt["openWB/system/configurable/chargepoints_internal"]},getChargePointName(e){return this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"].name:"Ladepunkt "+e},getChargePointTemplateName(e){return this.$store.state.mqtt["openWB/chargepoint/template/"+e]?this.$store.state.mqtt["openWB/chargepoint/template/"+e].name:"Profil "+e},addChargePointTemplate(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addChargepointTemplate",data:{}})},getChargePointTemplateIndex(e){return parseInt(e.match(/([^/]+)$/)[0])},removeChargePointTemplateModal(e,a){a.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.showChargePointTemplateModal=!0},removeChargePointTemplate(e,a){this.showChargePointTemplateModal=!1,a=="confirm"&&(console.debug("request removal of chargePoint template '"+e+"'"),this.$emit("sendCommand",{command:"removeChargepointTemplate",data:{id:e}}))},addChargePointTemplateAutolockPlan(e,a){a.stopPropagation(),console.info("requesting new charge point template autolock plan...");let u=this.getChargePointTemplateIndex(e);this.$emit("sendCommand",{command:"addAutolockPlan",data:{template:u}})},removeChargePointTemplateAutolockPlanModal(e,a,u){u.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.modalChargePointTemplateAutolockPlanIndex=parseInt(a.match(/([^/]+)$/)[0]),this.showChargePointTemplateAutolockPlanModal=!0},removeChargePointTemplateAutolockPlan(e,a,u){this.showChargePointTemplateAutolockPlanModal=!1,u=="confirm"&&(console.debug("request removal of chargePoint template '"+e+"' autolock plan '"+a+"'"),this.$emit("sendCommand",{command:"removeAutolockPlan",data:{template:e,plan:a}}))},getChargePointTemplateAutolockPlanName(e,a){return this.$store.state.mqtt["openWB/chargepoint/template/"+e+"/autolock/"+a]?this.$store.state.mqtt["openWB/chargepoint/template/"+e+"/autolock/"+a].name:"Autolock Zeitplan "+e+"/"+a},getChargePointTemplateAutolockPlans(e){let a=this.getChargePointTemplateIndex(e);return this.getWildcardTopics("openWB/chargepoint/template/"+a+"/autolock/+")},updateConfiguration(e,a){console.debug("updateConfiguration",e,a),this.updateState(e,a.value,a.object)}}},b=e=>(le("data-v-75fe5743"),e=e(),se(),e),Ce={class:"chargePointInstallation"},ye={name:"chargePointInstallationForm"},Pe={key:0},Ve=b(()=>d("hr",null,null,-1)),Le={key:1},Te=b(()=>d("hr",null,null,-1)),Be=b(()=>d("br",null,null,-1)),We=b(()=>d("br",null,null,-1)),Se=b(()=>d("br",null,null,-1)),Ae=b(()=>d("br",null,null,-1)),Ie={key:0},xe={class:"col-1"},Ue=b(()=>d("br",null,null,-1)),qe=b(()=>d("ul",null,[d("li",null," Interne openWB - wenn diese openWB über einen verbauten Ladepunkt mit Regelcontroller verfügt (z.B. Standard(+), Custom, Duo, Buchse, NICHT Standalone); ansonsten immer anlegen, egal ob diese openWB steuert = primary oder ferngesteuert wird = secondary "),d("li",null," Externe openWB - wenn diese openWB (primary) die Fernsteuerung von externen openWB (secondary) übernimmt "),d("li",null," MQTT-Ladepunkt - nur zur Nutzung des openWB-Simulators zugelassen "),d("li",null," openWB Pro - wenn diese openWB (primary) die Fernsteuerung einer openWB Pro (secondary) übernimmt "),d("li",null," openWB series2 Satellit/Satellit Duo - wenn diese openWB (primary) die Fernsteuerung einer openWB series2 Satellit/Satellit Duo (secondary) übernimmt "),d("li",null," smartWB/EVSE-Wifi - wenn diese openWB (primary) die Fernsteuerung einer smartWB/EVSE-Wifi übernimmt ")],-1)),ze=b(()=>d("hr",{class:"border-secondary"},null,-1)),Ee={key:0},De={key:1},Me=b(()=>d("hr",null,null,-1)),Fe={key:0},Oe=b(()=>d("br",null,null,-1)),Ne=["innerHTML"],Re=b(()=>d("hr",null,null,-1)),Ze=b(()=>d("br",null,null,-1)),je=b(()=>d("br",null,null,-1)),$e=b(()=>d("a",{href:"https://github.com/openWB/core/wiki/Lastmanagement-und-kaskadierte-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"},"Wiki zum Lastmanagement",-1)),Je=b(()=>d("hr",null,null,-1)),He=["onClick"],Ge={key:0},Qe={key:1},Xe={key:2},Ye={key:2};function Ke(e,a,u,P,m,p){const C=g("openwb-base-modal-dialog"),f=g("font-awesome-icon"),L=g("openwb-base-avatar"),V=g("openwb-base-text-input"),U=g("openwb-base-select-input"),N=g("openwb-charge-point-proxy"),B=g("openwb-base-heading"),y=g("openwb-base-button-group-input"),A=g("openwb-base-card"),R=g("openwb-base-click-button"),Z=g("font-awesome-layers"),q=g("openwb-base-alert"),j=g("openwb-base-array-input"),z=g("openwb-base-range-input"),$=g("openwb-base-submit-buttons");return l(),c(S,null,[n(C,{show:m.showChargePointModal,title:"Ladepunkt löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[0]||(a[0]=s=>p.removeChargePoint(m.modalChargePointIndex,s))},{default:o(()=>[i(' Wollen Sie den Ladepunkt "'+k(p.getChargePointName(m.modalChargePointIndex))+'" (ID: '+k(m.modalChargePointIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),n(C,{show:m.showChargePointTemplateModal,title:"Ladepunkt-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[1]||(a[1]=s=>p.removeChargePointTemplate(m.modalChargePointTemplateIndex,s))},{default:o(()=>[i(' Wollen Sie das Ladepunkt-Profil "'+k(p.getChargePointTemplateName(m.modalChargePointTemplateIndex))+'" (ID: '+k(m.modalChargePointTemplateIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),n(C,{show:m.showChargePointTemplateAutolockPlanModal,title:"Autolock Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[2]||(a[2]=s=>p.removeChargePointTemplateAutolockPlan(m.modalChargePointTemplateIndex,m.modalChargePointTemplateAutolockPlanIndex,s))},{default:o(()=>[i(' Wollen Sie den Autolock Zeitplan "'+k(p.getChargePointTemplateAutolockPlanName(m.modalChargePointTemplateIndex,m.modalChargePointTemplateAutolockPlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),d("div",Ce,[d("form",ye,[n(A,{title:"Ladepunkte",subtype:"primary",collapsible:!0,collapsed:!0},{header:o(()=>[n(f,{"fixed-width":"",icon:["fas","charging-station"]}),i(" Ladepunkte ")]),default:o(()=>[(l(!0),c(S,null,I(p.installedChargePoints,(s,r)=>(l(),v(A,{key:r,title:s.name+" (ID: "+s.id+")",collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(t=>[t.collapsed?w("",!0):(l(),v(L,{key:0,class:"bg-danger clickable",onClick:_=>p.removeChargePointModal(r,_)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(V,{title:"Bezeichnung",subtype:"text","model-value":s.name,"onUpdate:modelValue":t=>e.updateState(r,t,"name")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Modul",subtype:"text",disabled:"",readonly:"","model-value":e.$store.state.mqtt[r].type},null,8,["model-value"]),s.type!=="internal_openwb"||e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),c("span",Pe,[n(U,{title:"Ladepunkt-Profil",options:p.chargePointTemplateList,"model-value":e.$store.state.mqtt[r].template,"onUpdate:modelValue":t=>e.updateState(r,t,"template")},null,8,["options","model-value","onUpdate:modelValue"])])):w("",!0),Ve,n(N,{chargePointId:s.id,chargePointType:e.$store.state.mqtt[r].type,moduleName:e.$store.state.mqtt[r].name,configuration:s.configuration,"onUpdate:configuration":t=>p.updateConfiguration(r,t)},null,8,["chargePointId","chargePointType","moduleName","configuration","onUpdate:configuration"]),s.type!=="internal_openwb"||e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),c("div",Le,[Te,n(B,null,{default:o(()=>[i("Hardware-Optionen")]),_:1}),n(y,{title:"automatische Phasenumschaltung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.auto_phase_switch_hw,"onUpdate:modelValue":t=>e.updateState(r,t,"auto_phase_switch_hw")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Control-Pilot-Unterbrechung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.control_pilot_interruption_hw,"onUpdate:modelValue":t=>e.updateState(r,t,"control_pilot_interruption_hw")},{help:o(()=>[i(' Die Control-Pilot-Leitung ist im Ladekabel integriert und dient der Steuerung der Fahrzeugladung (An/Aus/Stromvorgaben). Bei einigen Fahrzeugen können durch die Regelung erzwungene, längere Ladestopps (z.B. beim PV-Laden) zu unerwünschten "Einschlaf"-Effekten des Fahrzeuges führen. Mit diesem feature, welches hardwareseitig verbaut sein muss, kann ein Abstecken des Ladesteckers simuliert werden, um ein Aufwecken des Fahrzeuges zu ermöglichen. Die Funktion hängt immer auch vom Fahrzeugtyp ab. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(B,null,{default:o(()=>[i(" Elektrischer Anschluss ")]),_:1}),n(y,{title:"Anzahl angeschlossener Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":s.connected_phases,"onUpdate:modelValue":t=>e.updateState(r,t,"connected_phases")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Phase 1 des Ladekabels",buttons:[{buttonValue:0,text:"unbekannt",class:"btn-outline-danger"},{buttonValue:1,text:"EVU L1",class:"btn-outline-success"},{buttonValue:2,text:"EVU L2",class:"btn-outline-success"},{buttonValue:3,text:"EVU L3",class:"btn-outline-success"}],"model-value":s.phase_1,"onUpdate:modelValue":t=>e.updateState(r,t,"phase_1")},{help:o(()=>[i(" Hier ist anzugeben, an welcher Phase des Hausanschlusses (EVU-Punkt) die Phase 1 dieses Ladepunktes angeschlossen ist. Diese Information wird für das Lastmanagement benötigt, um bei einer Schieflast gezielt einzelne Ladepunkte zu drosseln."),Be,i(' Bei mehreren Ladepunkten macht es Sinn, die Phasen der LP rotierend anzuschließen, damit mehrere "nicht-dreiphasig" ladende Fahrzeuge mit optimaler Leistung laden können, bevor das Lastmanagement eingreift.'),We,i(" Es wird vorausgesetzt, dass das Drehfeld innerhalb der Installation gleich bleibt. Wenn z.B. L1 des Ladepunktes auf EVU-L2 liegt, muss L2 des Ladepunktes auf EVU-L3 aufgelegt sein (und L3 des Ladepunktes auf EVU-L1)."),Se,i(" Eine Möglichkeit, die zur Ladepunktphase L1 zugehörige EVU-Phase zu ermitteln, ist eine einphasige Ladung zu starten und die Phasenströme am EVU-Zähler zu beobachten. Mit einem zweiphasig ladenden Fahrzeug kann danach auch der Anschluss von L2 ermittelt und so das Drehfeld kontrolliert werden."),Ae,i(" Im Zweifel bitte das Drehfeld von einer Fachkraft prüfen und korrigieren lassen. ")]),_:2},1032,["model-value","onUpdate:modelValue"])])):w("",!0)]),_:2},1032,["title"]))),128)),Object.keys(p.installedChargePoints).length>0?(l(),c("hr",Ie)):w("",!0),n(U,{class:"mb-2",title:"Verfügbare Ladepunkte",notSelected:"Bitte auswählen",options:p.getChargePointList(),"model-value":m.chargePointToAdd,"onUpdate:modelValue":a[3]||(a[3]=s=>m.chargePointToAdd=s)},{append:o(()=>[d("span",xe,[n(R,{class:F(m.chargePointToAdd===void 0?"btn-outline-success":"btn-success"),disabled:m.chargePointToAdd===void 0,onButtonClicked:p.addChargePoint},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["class","disabled","onButtonClicked"])])]),help:o(()=>[i(" Bitte einen Ladepunkt auswählen, der der openWB-Regelung hinzugefügt werden soll."),Ue,qe]),_:1},8,["options","model-value"])]),_:1}),ze,n(A,{title:"Ladepunkt-Profile",collapsible:!0,collapsed:!0},{header:o(()=>[n(Z,{"fixed-width":"",class:"fa-lg"},{default:o(()=>[n(f,{"fixed-width":"",icon:["far","file"]}),n(f,{"fixed-width":"",icon:["fas","charging-station"],transform:"shrink-8"})]),_:1}),i(" Ladepunkt-Profile ")]),actions:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),v(L,{key:0,class:"bg-success clickable",onClick:p.addChargePointTemplate},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):w("",!0)]),default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),c("div",Ee,[n(q,{subtype:"info"},{default:o(()=>[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),c("div",De,[(l(!0),c(S,null,I(p.chargePointTemplates,(s,r)=>(l(),v(A,{key:r,title:s.name+" (ID: "+p.getChargePointTemplateIndex(r)+")",collapsible:!0,collapsed:!0},O({default:o(()=>[n(V,{title:"Bezeichnung",subtype:"text","model-value":s.name,"onUpdate:modelValue":t=>e.updateState(r,t,"name"),disabled:r.endsWith("/0")},O({_:2},[r.endsWith("/0")?{name:"help",fn:o(()=>[i(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),Me,e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(l(),c("div",Fe,[n(B,null,{default:o(()=>[i(" Zugangskontrolle ")]),_:1}),n(y,{title:"Freigabe durch ID-Tags",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.rfid_enabling,"onUpdate:modelValue":t=>e.updateState(r,t,"rfid_enabling")},null,8,["model-value","onUpdate:modelValue"]),n(j,{title:"Zugeordnete ID-Tags",noElementsMessage:"Keine ID-Tags zugeordnet.","model-value":s.valid_tags,"onUpdate:modelValue":t=>e.updateState(r,t,"valid_tags")},{help:o(()=>[i(" An allen Ladepunkten, denen dieses Ladepunkt-Profil zugeordnet ist, werden die hier eingetragenen ID-Tags zur Freischaltung verwendet. "),Oe,d("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,Ne)]),_:2},1032,["model-value","onUpdate:modelValue"]),Re])):w("",!0),n(B,null,{default:o(()=>[i(" Angaben zum konfigurierten Ladestrom der openWB ")]),_:1}),n(q,{subtype:"info"},{default:o(()=>[i(" Hier werden die maximalen Ladeströme entsprechend der in dem zugeordneten Ladepunkt genutzten Phasen eingestellt."),Ze,i(" Generell gilt, dass diese Werte in Übereinstimmung mit der Ausführung des Ladepunktes und des elektrischen Anschlusses bzw. der Absicherung zu wählen sind. Bei einer openWB mit 22kW Maximalleistung sind hier jeweils 32A einzustellen. Ist die openWB beispielsweise auf 11kW begrenzt (KfW-Förderung oder die Zuleitung ist mit 16A abgesichert), dann sind hier jeweils 16A einzustellen."),je,i(" Komplexere Installationen mit mehreren Ladepunkten werden im "),$e,i(" beschrieben. ")]),_:1}),n(z,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":s.max_current_single_phase,"onUpdate:modelValue":t=>e.updateState(r,t,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),n(z,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":s.max_current_multi_phases,"onUpdate:modelValue":t=>e.updateState(r,t,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),Je,n(B,null,{default:o(()=>[i("Automatische Sperre")]),_:1}),n(y,{title:"Automatische Sperre aktiv",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.autolock.active,"onUpdate:modelValue":t=>e.updateState(r,t,"autolock.active")},{help:o(()=>[i(" Wird die automatische Sperre aktiviert, können Fahrzeugladungen mittels Zeitplan auf gewünschte Zeitbereiche eingeschränkt werden. Dies kann z.B. bei Zugänglichkeiten zu Ladepunkten in öffentlichen oder halb-öffentlichen Bereichen sinnvoll sein. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(y,{title:"Erst nach Ladeende sperren",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.autolock.wait_for_charging_end,"onUpdate:modelValue":t=>e.updateState(r,t,"autolock.wait_for_charging_end")},{help:o(()=>[i(' Wenn ein Zeitplan die automatische Sperre aktiviert, werden alle Ladepunkte direkt gesperrt und laufende Ladevorgänge beendet. Wird hier "Ja" ausgewählt, dann werden laufende Ladevorgänge NICHT beendet und diese Ladepunkte erst nach abgeschlossener Ladung gesperrt. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(B,null,{actions:o(()=>[n(L,{class:"bg-success clickable",onClick:t=>p.addChargePointTemplateAutolockPlan(r,t)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),default:o(()=>[i(" Zeitpläne für die automatische Sperre ")]),_:2},1024),(l(!0),c(S,null,I(p.getChargePointTemplateAutolockPlans(r),(t,_)=>(l(),v(A,{key:_,title:t.name,collapsible:!0,collapsed:!0},{actions:o(h=>[h.collapsed==!0?(l(),c("span",{key:0,onClick:ie(W=>e.updateState(_,!t.active,"active"),["stop"]),class:F(["subheader pill clickable",t.active?"bg-success":"bg-danger"])},[n(f,{"fixed-width":"",icon:["fas","clock"]}),i(" "+k(t.time[0])+" - "+k(t.time[1])+" ",1),t.frequency.selected=="once"?(l(),c("span",Ge,[n(f,{"fixed-width":"",icon:["fas","calendar-day"]}),i(" "+k(e.formatDate(t.frequency.once[0])==e.formatDate(t.frequency.once[1])?e.formatDate(t.frequency.once[0]):e.formatDate(t.frequency.once[0])+" - "+e.formatDate(t.frequency.once[1])),1)])):w("",!0),t.frequency.selected=="daily"?(l(),c("span",Qe,[n(f,{"fixed-width":"",icon:["fas","calendar-week"]})])):w("",!0),t.frequency.selected=="weekly"?(l(),c("span",Xe,[n(f,{"fixed-width":"",icon:["fas","calendar-alt"]})])):w("",!0)],10,He)):w("",!0),h.collapsed==!1?(l(),v(L,{key:1,class:"bg-danger clickable",onClick:W=>p.removeChargePointTemplateAutolockPlanModal(r,_,W)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):w("",!0)]),default:o(()=>[n(V,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":h=>e.updateState(_,h,"name")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":h=>e.updateState(_,h,"active")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Sperren um",subtype:"time","model-value":t.time[0],"onUpdate:modelValue":h=>e.updateState(_,h,"time.0")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Freigeben um",subtype:"time","model-value":t.time[1],"onUpdate:modelValue":h=>e.updateState(_,h,"time.1")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":h=>e.updateState(_,h,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(l(),v(V,{key:0,title:"Sperren ab ...",subtype:"date","model-value":t.frequency.once[0],"onUpdate:modelValue":h=>e.updateState(_,h,"frequency.once.0")},null,8,["model-value","onUpdate:modelValue"])):w("",!0),t.frequency.selected=="once"?(l(),v(V,{key:1,title:"... bis",subtype:"date",min:t.frequency.once[0],"model-value":t.frequency.once[1],"onUpdate:modelValue":h=>e.updateState(_,h,"frequency.once.1")},null,8,["min","model-value","onUpdate:modelValue"])):w("",!0),t.frequency.selected=="weekly"?(l(),c("div",Ye,[(l(!0),c(S,null,I(e.weekdays,(h,W)=>(l(),v(y,{key:W,title:h,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[W],"onUpdate:modelValue":J=>e.updateState(_,J,"frequency.weekly."+W)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):w("",!0)]),_:2},1032,["title"]))),128))]),_:2},[r.endsWith("/0")?void 0:{name:"actions",fn:o(t=>[t.collapsed?w("",!0):(l(),v(L,{key:0,class:"bg-danger clickable",onClick:_=>p.removeChargePointTemplateModal(r,_)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}]),1032,["title"]))),128))]))]),_:1}),n($,{formName:"chargePointInstallationForm",onSave:a[4]||(a[4]=s=>e.$emit("save")),onReset:a[5]||(a[5]=s=>e.$emit("reset")),onDefaults:a[6]||(a[6]=s=>e.$emit("defaults"))})])])],64)}const rt=x(ve,[["render",Ke],["__scopeId","data-v-75fe5743"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargePointInstallation.vue"]]);export{rt as default}; diff --git a/web/settings/assets/Chart-75c04643.js b/web/settings/assets/Chart-75c04643.js new file mode 100644 index 0000000000..516e83504f --- /dev/null +++ b/web/settings/assets/Chart-75c04643.js @@ -0,0 +1 @@ +import{l as L,K as H,P as T,O as j,N as q,U as M,V as O,F as V}from"./vendor-fortawesome-0685c9c0.js";import{C as z}from"./index-e599db2d.js";import{C as E,p as K,a as P,L as B,b as N,B as F,P as J,c as $,T as X,i as Z,d as U,e as G,g as Y}from"./vendor-chartjs-181c0e44.js";import{_ as Q,q as h,k as s,l as o,u as v,B as c,M as d,z as g,x as m,I as k,J as x,y as A,A as C}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";import"./vendor-luxon-78deadb9.js";L.add(H,T,j,q,M,O);E.register(K,P,B,N,F,J,$,X,Z,U);const ee={name:"OpenwbChart",components:{ChartjsLine:G,FontAwesomeIcon:V},mixins:[z],emits:["sendCommand"],props:{initialChartRange:{type:String,required:!1,validator:function(e){return["day","month","year"].indexOf(e)!==-1},default:"day"},initialDate:{type:String,required:!1,validator:function(e){return e.match(/^(([0-9]{4})(-[0-9]{2}(-[0-9]{2})?)?)?$/g)},default:""}},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/log/daily/#","openWB/log/monthly/#","openWB/log/yearly/#","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentDate:"",chartRange:"day",blockChartInit:!1,chartRequestDate:{day:"",month:"",year:""},datasetTemplates:{"counter-power_average":{label:"Zähler",unit:"kW",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_exported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 255, 105, 0.7)",backgroundColor:"rgba(0, 255, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-power_exported":{label:"PV",unit:"kW",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"inverter-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-energy_exported":{label:"PV",unit:"kWh",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"inverter-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-power_average":{label:"Speicher",unit:"kW",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"battery-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_imported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_exported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-soc":{label:"Speicher SoC",unit:"%",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-power_average":{label:"Ladepunkt",unit:"kW",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"charge-point-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported":{label:"Ladepunkt",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"charge-point-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_grid":{label:"Ladepunkt (Netzanteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_pv":{label:"Ladepunkt (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_bat":{label:"Ladepunkt (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"ev-soc":{label:"Fahrzeug SoC",unit:"%",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-power_average":{label:"SmartHome",unit:"kW",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_imported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_exported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-power_imported":{label:"Hausverbrauch",unit:"kW",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported":{label:"Hausverbrauch",unit:"kWh",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_grid":{label:"Hausverbrauch (Netzanteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_pv":{label:"Hausverbrauch (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_bat":{label:"Hausverbrauch (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}}},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0,callbacks:{label:e=>`${e.dataset.label}: ${e.formattedValue} ${e.dataset.unit}`}},legend:{display:!0},zoom:{pan:{enabled:!0,mode:"x",threshold:5},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"",tooltipFormat:""},display:!0,title:{display:!0,text:""},ticks:{source:"timestamp",font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Leistung [kW]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y2:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Energie [kWh]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y3:{position:"right",type:"linear",display:"auto",suggestedMin:0,suggestedMax:100,title:{font:{size:12},display:!0,text:"SoC [%]"},grid:{display:!1},ticks:{font:{size:12},stepSize:10,maxTicksLimit:11}}}},chartDatasets:{datasets:[]}}},computed:{dateInput(){var e={title:"Datum",type:"date",min:"2018-01-01"};switch(this.chartRange){case"month":e={title:"Monat",type:"month",min:"2018-01"};break;case"year":e={title:"Jahr",type:"year",min:"2018"};break}return e},chartDate:{get(){var e=this.chartRequestDate.year;return this.chartRange!="year"&&(e=e+"-"+this.chartRequestDate.month),this.chartRange=="day"&&(e=e+"-"+this.chartRequestDate.day),e},set(e){let a=e.split("-");this.chartRequestDate.year=a[0],a.length>1?this.chartRequestDate.month=a[1]:this.chartRequestDate.month="",a.length>2?this.chartRequestDate.day=a[2]:this.chartRequestDate.day=""}},chartScaleX(){var e={unit:"minute",tooltipFormat:"DD T",text:"Zeit",maxTicksLimit:24};switch(this.chartRange){case"month":e={unit:"day",tooltipFormat:"DD",text:"Tag",maxTicksLimit:31};break;case"year":e={unit:"month",tooltipFormat:"LLLL yyyy",text:"Monat",maxTicksLimit:12};break}return e},commandData(){var e={date:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day,day:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day};switch(this.chartRange){case"month":e={date:this.chartRequestDate.year+this.chartRequestDate.month,month:this.chartRequestDate.year+this.chartRequestDate.month};break;case"year":e={date:this.chartRequestDate.year,year:this.chartRequestDate.year};break}return e},baseTopic(){var e="openWB/log/";switch(this.chartRange){case"day":e=e+"daily/";break;case"month":e=e+"monthly/";break;case"year":e=e+"yearly/";break}return e},chartDataRead(){return this.chartDataObject!=null},chartDataHasEntries(){return this.chartDataObject?this.chartDataObject.length>0:!1},chartTotals(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"totals")){var e=JSON.parse(JSON.stringify(this.$store.state.mqtt[this.baseTopic+this.commandData.date].totals));return delete e.energy_source,Object.keys(e.counter).forEach(a=>{e.counter[a].hasOwnProperty("grid")&&delete e.counter[a].grid}),e}},chartDataObject(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]){var e=this.$store.state.mqtt[this.baseTopic+this.commandData.date];Object.prototype.hasOwnProperty.call(e,"entries")&&(e=e.entries);var a=JSON.parse(JSON.stringify(e)).map(r=>(r.timestamp=r.timestamp*1e3,r));return a}},chartData(){if(this.chartDataObject){var e=["pv","counter","bat","cp","sh","ev","hc"];const a=this.chartDataObject[this.chartDataObject.length-1];return a&&e.forEach(r=>{Object.prototype.hasOwnProperty.call(a,r)&&Object.entries(a[r]).forEach(([n,i])=>{Object.keys(i).forEach(t=>{this.initDataset(r,n,t)})})}),this.chartDatasets}}},methods:{handleChartClick(e){if(this.chartRange=="day")return;const a=this.$refs.myChart.chart;if(!a)return;const r=Y(a,e);if(!r.length)return;const{datasetIndex:n,index:i}=r[0],t=this.chartData.datasets[n].data[i].date;var l="",b="";switch(this.chartRange){case"month":l=t.substring(0,4)+"-"+t.substring(4,6)+"-"+t.substring(6),b="day";break;case"year":l=t.substring(0,4)+"-"+t.substring(4,6),b="month";break}this.blockChartInit=!0,this.chartDate=l,this.chartRange=b},getCardSubtype(e){switch(e){case"bat":return"warning";case"counter":return"danger";case"cp":return"primary";case"pv":return"success";case"sh":return"pink";default:return"secondary"}},getCardIcon(e){switch(e){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"pv":return["fas","solar-panel"];case"sh":return["fas","house-signal"];case"hc":return["fas","house"];default:return}},getDatasetHidden(e,a){return console.debug("getDatasetHidden",e,a),!1},getTotalsLabel(e,a=void 0,r=void 0){var n="*test*";if(!a&&!r){switch(e){case"bat":return"Speicher";case"counter":return"Zähler";case"pv":return"Wechselrichter";case"cp":return"Ladepunkte";case"sh":return"SmartHome-Geräte";case"hc":return"Hausverbrauch";default:console.warn("unknown group key:",e)}return"*"+e+"*"}if(a&&!r){if(a=="all")return"Summe";if(Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names"))return this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[a]}if(a&&r){switch(e){case"bat":case"cp":switch(r){case"imported":case"energy_imported":return"Ladung";case"exported":case"energy_exported":return"Entladung";case"energy_imported_grid":return"Ladung (Netz-Anteil)";case"energy_imported_pv":return"Ladung (PV-Anteil)";case"energy_imported_bat":return"Ladung (Speicher-Anteil)";case"energy_imported_cp":return"Ladung (Ladepunkt-Anteil)";default:console.warn("unknown measurement key:",e,r)}break;case"counter":switch(r){case"imported":case"energy_imported":return"Bezug/Verbrauch";case"exported":case"energy_exported":return"Einspeisung/Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"pv":switch(r){case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"sh":switch(r){case"imported":case"energy_imported":return"Verbrauch";case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"hc":switch(r){case"imported":case"energy_imported":return"Verbrauch";case"energy_imported_grid":return"Verbrauch (Netz-Anteil)";case"energy_imported_pv":return"Verbrauch (PV-Anteil)";case"energy_imported_bat":return"Verbrauch (Speicher-Anteil)";case"energy_imported_cp":return"Verbrauch (Ladepunkt-Anteil)";default:console.warn("unknown measurement key:",e,r)}break;default:console.warn("unknown group key:",e)}return"*"+e+"+"+a+"+"+r+"*"}return n},getDatasetLabel(e,a,r,n){var i=["*"+n],t=[];if(a=="all")switch(e!=="hc"&&t.push("Summe"),e){case"pv":i=["PV"];break;case"bat":switch(i=["Speicher"],r){case"soc":i.push("SoC");break}break;case"cp":i=["Ladepunkte"];break;case"hc":i=["Hausverbrauch"]}else Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names")&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date].names,a)&&(i=[this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[a]]);switch(e){case"bat":case"ev":case"cp":switch(r){case"soc":t.push("SoC");break;case"energy_imported":t.push("Ladung");break;case"energy_exported":t.push("Entladung");break;case"energy_imported_grid":t.push("Netz-Anteil");break;case"energy_imported_pv":t.push("PV-Anteil");break;case"energy_imported_bat":t.push("Speicher-Anteil");break;case"energy_imported_cp":t.push("Ladepunkt-Anteil");break}break;case"counter":switch(r){case"energy_imported":t.push("Bezug/Verbrauch");break;case"energy_exported":t.push("Einspeisung/Erzeugung");break}break;case"sh":switch(r){case"energy_imported":t.push("Verbrauch");break;case"energy_exported":t.push("Erzeugung");break}break;case"hc":switch(r){case"energy_imported_grid":t.push("Netz-Anteil");break;case"energy_imported_pv":t.push("PV-Anteil");break;case"energy_imported_bat":t.push("Speicher-Anteil");break;case"energy_imported_cp":t.push("Ladepunkt-Anteil");break}break}return`${i.join(" ")}${t.length?" ("+t.join(", ")+")":""}`},getDatasetIndex(e){let a=this.chartDatasets.datasets.findIndex(r=>r.jsonKey==e);if(a!=-1)return a},addDataset(e,a,r,n){var i=e+"-"+r;if(this.datasetTemplates[i]){var t=JSON.parse(JSON.stringify(this.datasetTemplates[i]));return t.parsing.yAxisKey=n,t.jsonKey=n,t.data=this.chartDataObject,t.label=this.getDatasetLabel(e,a,r,n),t.labelSuffix!=null&&(t.label=t.label+t.labelSuffix),a=="all"&&(["grid","pv","bat","cp"].includes(r.split("_").slice(-1)[0])||(t.hidden=!1,delete t.stack)),this.chartDatasets.datasets.push(t)-1}else console.warn("no matching template found for: "+n+" with template: "+i)},initDataset(e,a,r){var n=[];this.chartRange=="day"?n={counter:["power_average"],pv:["power_exported"],bat:["power_average","soc"],cp:["power_average"],sh:["power_average"],ev:["soc"],hc:["power_imported"]}:n={counter:["energy_imported","energy_exported"],pv:["energy_exported"],bat:["energy_imported","energy_exported"],cp:["energy_imported","energy_imported_grid","energy_imported_pv","energy_imported_bat"],sh:["energy_imported","energy_exported"],ev:[],hc:["energy_imported","energy_imported_grid","energy_imported_pv","energy_imported_bat"]};const i=e+"."+a+"."+r;if(n[e].includes(r)){var t=this.getDatasetIndex(i);const l=this.getDatasetHidden(e,a);t==null&&!l&&(t=this.addDataset(e,a,r,i)),t!=null&&l&&this.chartDatasets.datasets.splice(t,1)}else console.debug("skipping dataset:",i)},setupScaleX(){this.chartOptions.scales.x.time.unit=this.chartScaleX.unit,this.chartOptions.scales.x.time.tooltipFormat=this.chartScaleX.tooltipFormat,this.chartOptions.scales.x.title.text=this.chartScaleX.text,this.chartOptions.scales.x.ticks.maxTicksLimit=this.chartScaleX.maxTicksLimit},requestChart(){if(document.forms.chartForm.reportValidity()){this.setupScaleX(),this.chartDatasets.datasets=[];var a="";switch(this.chartRange){case"day":a="getDailyLog";break;case"month":a="getMonthlyLog";break;case"year":a="getYearlyLog";break}this.$emit("sendCommand",{command:a,data:this.commandData})}else{console.warn("form invalid");return}},clearChartData(){this.getWildcardIndexList(this.baseTopic+"+").forEach(e=>{this.$store.commit("removeTopic",`${this.baseTopic}${e}`)})},updateChart(){this.clearChartData(),this.requestChart()},init(){const e=new Date;this.currentDate=String(e.getFullYear()),this.chartRange!="year"&&(this.currentDate=this.currentDate+"-"+String(e.getMonth()+1).padStart(2,"0")),this.chartRange=="day"&&(this.currentDate=this.currentDate+"-"+String(e.getDate()).padStart(2,"0")),this.blockChartInit?this.blockChartInit=!1:this.initialDate==null||this.initialDate==""?this.chartDate=this.currentDate:this.chartDate=this.initialDate,this.updateChart()}},watch:{chartRange(){this.init()}},mounted(){this.init()}},te={class:"chart"},ae={name:"chartForm"},re={key:1},ie={key:1},ne={class:"openwb-chart"};function se(e,a,r,n,i,t){const l=h("openwb-base-select-input"),b=h("openwb-base-text-input"),y=h("openwb-base-card"),_=h("openwb-base-alert"),R=h("chartjs-line"),S=h("font-awesome-icon"),w=h("openwb-base-heading");return s(),o("div",te,[v("form",ae,[c(y,{title:"Filter",collapsible:!0,collapsed:!1},{default:d(()=>[c(l,{title:"Zeitraum",modelValue:i.chartRange,"onUpdate:modelValue":a[0]||(a[0]=u=>i.chartRange=u),options:[{value:"day",text:"Tag"},{value:"month",text:"Monat"},{value:"year",text:"Jahr"}]},null,8,["modelValue"]),c(b,{title:t.dateInput.title,subtype:t.dateInput.type,min:t.dateInput.min,max:i.currentDate,showQuickButtons:!0,modelValue:t.chartDate,"onUpdate:modelValue":[a[1]||(a[1]=u=>t.chartDate=u),a[2]||(a[2]=u=>t.updateChart())]},null,8,["title","subtype","min","max","modelValue"])]),_:1}),t.chartDataRead?(s(),o("div",re,[t.chartDataHasEntries?(s(),o("div",ie,[c(y,{title:"Diagramm",collapsible:!0,collapsed:!1},{default:d(()=>[v("div",ne,[c(R,{ref:"myChart",data:t.chartData,options:i.chartOptions,onClick:t.handleChartClick},null,8,["data","options","onClick"])])]),_:1}),c(y,{title:"Summen",collapsible:!0,collapsed:!0},{default:d(()=>[(s(!0),o(k,null,x(t.chartTotals,(u,p)=>(s(),o("div",{key:p},[Object.keys(u).length>0?(s(),g(y,{key:0,collapsible:!0,collapsed:!0,subtype:t.getCardSubtype(p)},{header:d(()=>[c(S,{"fixed-width":"",icon:t.getCardIcon(p)},null,8,["icon"]),m(" "+A(t.getTotalsLabel(p)),1)]),default:d(()=>[(s(!0),o(k,null,x(u,(I,f)=>(s(),o("div",{key:f},[p!=="hc"?(s(),g(w,{key:0},{default:d(()=>[m(A(t.getTotalsLabel(p,f)),1)]),_:2},1024)):C("",!0),(s(!0),o(k,null,x(I,(W,D)=>(s(),o("div",{key:D},[c(b,{title:t.getTotalsLabel(p,f,D),readonly:"",class:"text-right",unit:"kWh","model-value":e.formatNumber(W/1e3,3)},null,8,["title","model-value"])]))),128))]))),128))]),_:2},1032,["subtype"])):C("",!0)]))),128))]),_:1})])):(s(),g(_,{key:0,subtype:"info"},{default:d(()=>[m(" Es konnten keine Daten für diesen Zeitraum gefunden werden. ")]),_:1}))])):(s(),g(_,{key:0,subtype:"info"},{default:d(()=>[m(" Es wurden noch keine Daten abgerufen. ")]),_:1}))])])}const ge=Q(ee,[["render",se],["__scopeId","data-v-e00a7cd5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Chart.vue"]]);export{ge as default}; diff --git a/web/settings/assets/Chart-94685b11.js b/web/settings/assets/Chart-94685b11.js deleted file mode 100644 index 00a98d6f13..0000000000 --- a/web/settings/assets/Chart-94685b11.js +++ /dev/null @@ -1 +0,0 @@ -import{l as T,K as q,P as L,O as H,N as j,U as O,V as M,F as V}from"./vendor-fortawesome-cf9a975a.js";import{C as z}from"./index-bed1470e.js";import{C as E,p as B,a as F,L as P,b as N,P as $,c as J,T as X,i as Z,d as K,e as U,g as G}from"./vendor-chartjs-f4053bf0.js";import{_ as Y,q as p,k as n,l as o,u as v,B as c,M as d,z as g,x as y,I as x,J as k,y as C,A as R}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";import"./vendor-luxon-78deadb9.js";T.add(q,L,H,j,O,M);E.register(B,F,P,N,$,J,X,Z,K);const Q={name:"OpenwbChart",components:{ChartjsLine:U,FontAwesomeIcon:V},mixins:[z],emits:["sendCommand"],props:{initialChartRange:{type:String,required:!1,validator:function(e){return["day","month","year"].indexOf(e)!==-1},default:"day"},initialDate:{type:String,required:!1,validator:function(e){return e.match(/^(([0-9]{4})(-[0-9]{2}(-[0-9]{2})?)?)?$/g)},default:""}},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/log/daily/#","openWB/log/monthly/#","openWB/log/yearly/#","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentDate:"",chartRange:"day",blockChartInit:!1,chartRequestDate:{day:"",month:"",year:""},datasetTemplates:{"counter-power_average":{label:"Zähler",unit:"kW",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_exported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 255, 105, 0.7)",backgroundColor:"rgba(0, 255, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-power_exported":{label:"PV",unit:"kW",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"inverter-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-energy_exported":{label:"PV",unit:"kWh",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"inverter-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-power_average":{label:"Speicher",unit:"kW",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"battery-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_imported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_exported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-soc":{label:"Speicher SoC",unit:"%",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-power_average":{label:"Ladepunkt",unit:"kW",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"charge-point-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported":{label:"Ladepunkt",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"charge-point-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"ev-soc":{label:"Fahrzeug SoC",unit:"%",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-power_average":{label:"SmartHome",unit:"kW",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_imported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_exported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-power_imported":{label:"Hausverbrauch",unit:"kW",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported":{label:"Hausverbrauch",unit:"kWh",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}}},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0,callbacks:{label:e=>`${e.dataset.label}: ${e.formattedValue} ${e.dataset.unit}`}},legend:{display:!0},zoom:{pan:{enabled:!0,mode:"x",threshold:5},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"",tooltipFormat:""},display:!0,title:{display:!0,text:""},ticks:{source:"timestamp",font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Leistung [kW]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y2:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Energie [kWh]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y3:{position:"right",type:"linear",display:"auto",suggestedMin:0,suggestedMax:100,title:{font:{size:12},display:!0,text:"SoC [%]"},grid:{display:!1},ticks:{font:{size:12},stepSize:10,maxTicksLimit:11}}}},chartDatasets:{datasets:[]}}},computed:{dateInput(){var e={title:"Datum",type:"date",min:"2018-01-01"};switch(this.chartRange){case"month":e={title:"Monat",type:"month",min:"2018-01"};break;case"year":e={title:"Jahr",type:"year",min:"2018"};break}return e},chartDate:{get(){var e=this.chartRequestDate.year;return this.chartRange!="year"&&(e=e+"-"+this.chartRequestDate.month),this.chartRange=="day"&&(e=e+"-"+this.chartRequestDate.day),e},set(e){let a=e.split("-");this.chartRequestDate.year=a[0],a.length>1?this.chartRequestDate.month=a[1]:this.chartRequestDate.month="",a.length>2?this.chartRequestDate.day=a[2]:this.chartRequestDate.day=""}},chartScaleX(){var e={unit:"minute",tooltipFormat:"DD T",text:"Zeit",maxTicksLimit:24};switch(this.chartRange){case"month":e={unit:"day",tooltipFormat:"DD",text:"Tag",maxTicksLimit:31};break;case"year":e={unit:"month",tooltipFormat:"LLLL yyyy",text:"Monat",maxTicksLimit:12};break}return e},commandData(){var e={date:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day,day:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day};switch(this.chartRange){case"month":e={date:this.chartRequestDate.year+this.chartRequestDate.month,month:this.chartRequestDate.year+this.chartRequestDate.month};break;case"year":e={date:this.chartRequestDate.year,year:this.chartRequestDate.year};break}return e},baseTopic(){var e="openWB/log/";switch(this.chartRange){case"day":e=e+"daily/";break;case"month":e=e+"monthly/";break;case"year":e=e+"yearly/";break}return e},chartDataRead(){return this.chartDataObject!=null},chartDataHasEntries(){return this.chartDataObject?this.chartDataObject.length>0:!1},chartTotals(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"totals"))return this.$store.state.mqtt[this.baseTopic+this.commandData.date].totals},chartDataObject(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]){var e=this.$store.state.mqtt[this.baseTopic+this.commandData.date];Object.prototype.hasOwnProperty.call(e,"entries")&&(e=e.entries);var a=JSON.parse(JSON.stringify(e)).map(r=>(r.timestamp=r.timestamp*1e3,r));return a}},chartData(){if(this.chartDataObject){var e=["pv","counter","bat","cp","sh","ev","hc"];const a=this.chartDataObject[this.chartDataObject.length-1];return a&&e.forEach(r=>{Object.prototype.hasOwnProperty.call(a,r)&&Object.entries(a[r]).forEach(([s,i])=>{Object.keys(i).forEach(t=>{this.initDataset(r,s,t)})})}),this.chartDatasets}}},methods:{handleChartClick(e){if(this.chartRange=="day")return;const a=this.$refs.myChart.chart;if(!a)return;const r=G(a,e);if(!r.length)return;const{datasetIndex:s,index:i}=r[0],t=this.chartData.datasets[s].data[i].date;var l="",b="";switch(this.chartRange){case"month":l=t.substring(0,4)+"-"+t.substring(4,6)+"-"+t.substring(6),b="day";break;case"year":l=t.substring(0,4)+"-"+t.substring(4,6),b="month";break}this.blockChartInit=!0,this.chartDate=l,this.chartRange=b},getCardSubtype(e){switch(e){case"bat":return"warning";case"counter":return"danger";case"cp":return"primary";case"pv":return"success";case"sh":return"pink";default:return"secondary"}},getCardIcon(e){switch(e){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"pv":return["fas","solar-panel"];case"sh":return["fas","house-signal"];case"hc":return["fas","house"];default:return}},getDatasetHidden(e,a){return console.debug("getDatasetHidden",e,a),!1},getTotalsLabel(e,a=void 0,r=void 0){var s="*test*";if(!a&&!r){switch(e){case"bat":return"Speicher";case"counter":return"Zähler";case"pv":return"Wechselrichter";case"cp":return"Ladepunkte";case"sh":return"SmartHome-Geräte";case"hc":return"Hausverbrauch";default:console.warn("unknown group key:",e)}return"*"+e+"*"}if(a&&!r){if(a=="all")return"Summe";if(Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names"))return this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[a]}if(a&&r){switch(e){case"bat":case"cp":switch(r){case"imported":case"energy_imported":return"Ladung";case"exported":case"energy_exported":return"Entladung";default:console.warn("unknown measurement key:",e,r)}break;case"counter":switch(r){case"imported":case"energy_imported":return"Bezug/Verbrauch";case"exported":case"energy_exported":return"Einspeisung/Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"pv":switch(r){case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"sh":switch(r){case"imported":case"energy_imported":return"Verbrauch";case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"hc":switch(r){case"imported":case"energy_imported":return"Verbrauch";default:console.warn("unknown measurement key:",e,r)}break;default:console.warn("unknown group key:",e)}return"*"+e+"+"+a+"+"+r+"*"}return s},getDatasetLabel(e,a,r,s){var i=["*"+s],t=[];if(a=="all")switch(e!=="hc"&&t.push("Summe"),e){case"pv":i=["PV"];break;case"bat":switch(i=["Speicher"],r){case"soc":i.push("SoC");break}break;case"cp":i=["Ladepunkte"];break;case"hc":i=["Hausverbrauch"]}else Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names")&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date].names,a)&&(i=[this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[a]]);switch(e){case"bat":case"ev":case"cp":switch(r){case"soc":t.push("SoC");break;case"energy_imported":t.push("Ladung");break;case"energy_exported":t.push("Entladung");break}break;case"counter":switch(r){case"energy_imported":t.push("Bezug/Verbrauch");break;case"energy_exported":t.push("Einspeisung/Erzeugung");break}break;case"sh":switch(r){case"energy_imported":t.push("Verbrauch");break;case"energy_exported":t.push("Erzeugung");break}break}return`${i.join(" ")}${t.length?" ("+t.join(", ")+")":""}`},getDatasetIndex(e){let a=this.chartDatasets.datasets.findIndex(r=>r.jsonKey==e);if(a!=-1)return a},addDataset(e,a,r,s){var i=e+"-"+r;if(this.datasetTemplates[i]){var t=JSON.parse(JSON.stringify(this.datasetTemplates[i]));return t.parsing.yAxisKey=s,t.jsonKey=s,t.data=this.chartDataObject,t.label=this.getDatasetLabel(e,a,r,s),t.labelSuffix!=null&&(t.label=t.label+t.labelSuffix),a=="all"&&(t.hidden=!1,delete t.stack),this.chartDatasets.datasets.push(t)-1}else console.warn("no matching template found for: "+s+" with template: "+i)},initDataset(e,a,r){var s=[];this.chartRange=="day"?s={counter:["power_average"],pv:["power_exported"],bat:["power_average","soc"],cp:["power_average"],sh:["power_average"],ev:["soc"],hc:["power_imported"]}:s={counter:["energy_imported","energy_exported"],pv:["energy_exported"],bat:["energy_imported","energy_exported"],cp:["energy_imported"],sh:["energy_imported","energy_exported"],ev:[],hc:["energy_imported"]};const i=e+"."+a+"."+r;if(s[e].includes(r)){var t=this.getDatasetIndex(i);const l=this.getDatasetHidden(e,a);t==null&&!l&&(t=this.addDataset(e,a,r,i)),t!=null&&l&&this.chartDatasets.datasets.splice(t,1)}else console.debug("skipping dataset:",i)},setupScaleX(){this.chartOptions.scales.x.time.unit=this.chartScaleX.unit,this.chartOptions.scales.x.time.tooltipFormat=this.chartScaleX.tooltipFormat,this.chartOptions.scales.x.title.text=this.chartScaleX.text,this.chartOptions.scales.x.ticks.maxTicksLimit=this.chartScaleX.maxTicksLimit},requestChart(){if(document.forms.chartForm.reportValidity()){this.setupScaleX(),this.chartDatasets.datasets=[];var a="";switch(this.chartRange){case"day":a="getDailyLog";break;case"month":a="getMonthlyLog";break;case"year":a="getYearlyLog";break}this.$emit("sendCommand",{command:a,data:this.commandData})}else{console.warn("form invalid");return}},clearChartData(){this.getWildcardIndexList(this.baseTopic+"+").forEach(e=>{this.$store.commit("removeTopic",`${this.baseTopic}${e}`)})},updateChart(){this.clearChartData(),this.requestChart()},init(){const e=new Date;this.currentDate=String(e.getFullYear()),this.chartRange!="year"&&(this.currentDate=this.currentDate+"-"+String(e.getMonth()+1).padStart(2,"0")),this.chartRange=="day"&&(this.currentDate=this.currentDate+"-"+String(e.getDate()).padStart(2,"0")),this.blockChartInit?this.blockChartInit=!1:this.initialDate==null||this.initialDate==""?this.chartDate=this.currentDate:this.chartDate=this.initialDate,this.updateChart()}},watch:{chartRange(){this.init()}},mounted(){this.init()}},ee={class:"chart"},te={name:"chartForm"},ae={key:1},re={key:1},ie={class:"openwb-chart"};function se(e,a,r,s,i,t){const l=p("openwb-base-select-input"),b=p("openwb-base-text-input"),m=p("openwb-base-card"),D=p("openwb-base-alert"),w=p("chartjs-line"),S=p("font-awesome-icon"),A=p("openwb-base-heading");return n(),o("div",ee,[v("form",te,[c(m,{title:"Filter",collapsible:!0,collapsed:!1},{default:d(()=>[c(l,{title:"Zeitraum",modelValue:i.chartRange,"onUpdate:modelValue":a[0]||(a[0]=u=>i.chartRange=u),options:[{value:"day",text:"Tag"},{value:"month",text:"Monat"},{value:"year",text:"Jahr"}]},null,8,["modelValue"]),c(b,{title:t.dateInput.title,subtype:t.dateInput.type,min:t.dateInput.min,max:i.currentDate,showQuickButtons:!0,modelValue:t.chartDate,"onUpdate:modelValue":[a[1]||(a[1]=u=>t.chartDate=u),a[2]||(a[2]=u=>t.updateChart())]},null,8,["title","subtype","min","max","modelValue"])]),_:1}),t.chartDataRead?(n(),o("div",ae,[t.chartDataHasEntries?(n(),o("div",re,[c(m,{title:"Diagramm",collapsible:!0,collapsed:!1},{default:d(()=>[v("div",ie,[c(w,{ref:"myChart",data:t.chartData,options:i.chartOptions,onClick:t.handleChartClick},null,8,["data","options","onClick"])])]),_:1}),c(m,{title:"Summen",collapsible:!0,collapsed:!0},{default:d(()=>[(n(!0),o(x,null,k(t.chartTotals,(u,h)=>(n(),o("div",{key:h},[Object.keys(u).length>0?(n(),g(m,{key:0,collapsible:!0,collapsed:!0,subtype:t.getCardSubtype(h)},{header:d(()=>[c(S,{"fixed-width":"",icon:t.getCardIcon(h)},null,8,["icon"]),y(" "+C(t.getTotalsLabel(h)),1)]),default:d(()=>[(n(!0),o(x,null,k(u,(I,f)=>(n(),o("div",{key:f},[h!=="hc"?(n(),g(A,{key:0},{default:d(()=>[y(C(t.getTotalsLabel(h,f)),1)]),_:2},1024)):R("",!0),(n(!0),o(x,null,k(I,(W,_)=>(n(),o("div",{key:_},[c(b,{title:t.getTotalsLabel(h,f,_),readonly:"",class:"text-right",unit:"kWh","model-value":e.formatNumber(W/1e3,3)},null,8,["title","model-value"])]))),128))]))),128))]),_:2},1032,["subtype"])):R("",!0)]))),128))]),_:1})])):(n(),g(D,{key:0,subtype:"info"},{default:d(()=>[y(" Es konnten keine Daten für diesen Zeitraum gefunden werden. ")]),_:1}))])):(n(),g(D,{key:0,subtype:"info"},{default:d(()=>[y(" Es wurden noch keine Daten abgerufen. ")]),_:1}))])])}const me=Y(Q,[["render",se],["__scopeId","data-v-e00a7cd5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Chart.vue"]]);export{me as default}; diff --git a/web/settings/assets/CloudConfig-2f8b7404.js b/web/settings/assets/CloudConfig-dd3e132c.js similarity index 96% rename from web/settings/assets/CloudConfig-2f8b7404.js rename to web/settings/assets/CloudConfig-dd3e132c.js index 214c1b8b07..515804d142 100644 --- a/web/settings/assets/CloudConfig-2f8b7404.js +++ b/web/settings/assets/CloudConfig-dd3e132c.js @@ -1 +1 @@ -import{C as W}from"./index-bed1470e.js";import{_ as S,q as a,k as d,l as i,B as u,M as t,u as c,z as b,A as g,a3 as y,I as D,x as r,p as h}from"./vendor-b03da118.js";import"./vendor-fortawesome-cf9a975a.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const Z={name:"OpenwbCloudConfig",mixins:[W],emits:["sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged","openWB/system/mqtt/bridge/+"],enableNewCloudButton:!0,newCloudData:{email:"",username:"",partner:!1},enableCloudConnectButton:!0,connectCloudData:{username:"",password:"",partner:!1},enableRemoveCloudButton:!0,showCloudRemoveModal:!1}},computed:{cloudBridge:{get(){let o=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[e,B]of Object.entries(o))B.remote.is_openwb_cloud||delete o[e];return o}},cloudBridgeKey:{get(){for(const[o,e]of Object.entries(this.cloudBridge))if(e.remote.is_openwb_cloud)return o}},cloudSettings:{get(){return{username:this.cloudBridge[this.cloudBridgeKey].remote.username,password:this.cloudBridge[this.cloudBridgeKey].remote.password,partner:this.cloudBridge[this.cloudBridgeKey].access?this.cloudBridge[this.cloudBridgeKey].access.partner:!1}}}},methods:{getMqttBridgeIndex(o){return parseInt(o.match(/(?:\/)(\d+)$/)[1])},createCloud(){document.forms.cloudConfigCreateForm.reportValidity()&&(this.$emit("sendCommand",{command:"initCloud",data:this.newCloudData}),this.enableNewCloudButton=!1)},connectCloud(){document.forms.cloudConfigConnectForm.reportValidity()&&(this.$emit("sendCommand",{command:"connectCloud",data:this.connectCloudData}),this.enableCloudConnectButton=!1)},removeCloudModal(o){o.stopPropagation(),this.showCloudRemoveModal=!0},removeCloud(o){this.showCloudRemoveModal=!1,o=="confirm"&&(console.info("request removal of cloud"),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:this.getMqttBridgeIndex(this.cloudBridgeKey)}}),this.enableCloudConnectButton=!0)}}},q={class:"cloud-config"},z={key:1},M={key:1,name:"cloudConfigCreateForm"},x=c("a",{href:"mailto:support@openwb.de",subject:"Cloud Zugangsdaten"}," support@openwb.de ",-1),K={key:0},N={key:1},R={class:"row justify-content-center"},A={key:2,name:"cloudConfigConnectForm"},P={key:0},U={key:1},j={class:"row justify-content-center"},F={key:3,name:"cloudConfigured"},I=c("span",null,[r(" Mit diesen Zugangsdaten können Sie sich in der "),c("a",{href:"https://remote.openwb.de/",target:"_blank",rel:"noopener noreferrer"}," openWB Cloud "),r(" anmelden. ")],-1),T=c("hr",null,null,-1),L={class:"row justify-content-center"};function O(o,e,B,E,s,l){const k=a("openwb-base-modal-dialog"),_=a("router-link"),m=a("openwb-base-alert"),p=a("openwb-base-text-input"),f=a("openwb-base-button-group-input"),C=a("openwb-base-click-button"),w=a("openwb-base-card"),V=a("openwb-base-heading"),v=a("openwb-base-submit-buttons");return d(),i(D,null,[u(k,{show:s.showCloudRemoveModal,title:"Cloud Zugang löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=n=>l.removeCloud(n))},{default:t(()=>[r(" Wollen Sie den vorhandenen Cloud Zugang wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ")]),_:1},8,["show"]),c("div",q,[o.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(d(),b(m,{key:0,subtype:"danger"},{default:t(()=>[r(" Sie müssen der "),u(_,{to:"/System/LegalSettings"},{default:t(()=>[r(" Datenschutzerklärung ")]),_:1}),r(" zustimmen, um die openWB Cloud nutzen zu können. ")]),_:1})):(d(),i("div",z,[u(m,{subtype:"success"},{default:t(()=>[r(" Sie haben der "),u(_,{to:"/System/LegalSettings"},{default:t(()=>[r(" Datenschutzerklärung ")]),_:1}),r(" zugestimmt und können die openWB Cloud nutzen. ")]),_:1}),s.enableRemoveCloudButton?g("",!0):(d(),b(m,{key:0,subtype:"warning"},{default:t(()=>[r(" Der Zugang wurde entfernt. Bitte starten Sie die openWB neu, um die Änderungen anzuwenden! ")]),_:1})),l.cloudBridgeKey?g("",!0):(d(),i("form",M,[u(w,{title:"Neuen Zugang erstellen"},y({default:t(()=>[u(m,{subtype:"warning"},{default:t(()=>[r(" Derzeit können keine neuen Zugänge für die openWB Cloud angelegt werden. Bitte nutzen Sie die in/an der openWB notierten Zugangsdaten im unteren Bereich dieser Seite. Wenn bei einer gekauften openWB keine Zugangsdaten vorhanden sind, schreiben Sie bitte eine Mail unter Angabe der Bestell- und/oder Seriennummer an "),x,r(" . ")]),_:1}),o.$store.state.mqtt["openWB/general/extern"]===!0?(d(),i("div",K,[u(m,{subtype:"info"},{default:t(()=>[r(' Diese openWB befindet sich im Steuerungsmodus "secondary". Bitte richten Sie die openWB Cloud auf der übergeordneten primary openWB ein. ')]),_:1})])):(d(),i("div",N,[u(p,{title:"Benutzername",required:"",subtype:"user",pattern:"[a-zA-Z]+",modelValue:s.newCloudData.username,"onUpdate:modelValue":e[1]||(e[1]=n=>s.newCloudData.username=n),disabled:""},null,8,["modelValue"]),u(p,{title:"E-Mail",required:"",subtype:"email",modelValue:s.newCloudData.email,"onUpdate:modelValue":e[2]||(e[2]=n=>s.newCloudData.email=n),disabled:""},null,8,["modelValue"]),u(f,{disabled:"",title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],modelValue:s.newCloudData.partner,"onUpdate:modelValue":e[3]||(e[3]=n=>s.newCloudData.partner=n)},{help:t(()=>[r(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["modelValue"])]))]),_:2},[o.$store.state.mqtt["openWB/general/extern"]===!1&&o.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:t(()=>[c("div",R,[u(C,{class:"col-4 btn-outline-success",disabled:""},{default:t(()=>[r(" Zugang erstellen ")]),_:1})])]),key:"0"}:void 0]),1024),s.enableNewCloudButton?g("",!0):(d(),b(m,{key:0,subtype:"info",class:"mb-2"},{default:t(()=>[r(" Der neue Zugang wird eingerichtet. Dieser Vorgang kann bis zu einer Minute dauern. Bitte warten. ")]),_:1}))])),l.cloudBridgeKey?g("",!0):(d(),i("form",A,[u(w,{title:"Vorhandenen Zugang einrichten"},y({default:t(()=>[o.$store.state.mqtt["openWB/general/extern"]===!0?(d(),i("div",P,[u(m,{subtype:"info"},{default:t(()=>[r(' Diese openWB befindet sich im Steuerungsmodus "secondary". Bitte richten Sie die openWB Cloud auf der übergeordneten primary openWB ein. ')]),_:1})])):(d(),i("div",U,[u(p,{title:"Benutzername",required:"",subtype:"user",modelValue:s.connectCloudData.username,"onUpdate:modelValue":e[4]||(e[4]=n=>s.connectCloudData.username=n)},null,8,["modelValue"]),u(p,{title:"Passwort",required:"",subtype:"password",modelValue:s.connectCloudData.password,"onUpdate:modelValue":e[5]||(e[5]=n=>s.connectCloudData.password=n)},null,8,["modelValue"]),u(f,{title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],modelValue:s.connectCloudData.partner,"onUpdate:modelValue":e[6]||(e[6]=n=>s.connectCloudData.partner=n)},{help:t(()=>[r(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["modelValue"])]))]),_:2},[o.$store.state.mqtt["openWB/general/extern"]===!1&&o.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:t(()=>[c("div",j,[u(C,{class:h(["col-4",s.enableCloudConnectButton?"btn-success":"btn-outline-success"]),disabled:!s.enableCloudConnectButton,onButtonClicked:l.connectCloud},{default:t(()=>[r(" Mit Cloud verbinden ")]),_:1},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024)])),l.cloudBridgeKey?(d(),i("form",F,[!s.enableCloudConnectButton||!s.enableNewCloudButton?(d(),b(m,{key:0,subtype:"warning"},{default:t(()=>[r(" Der Zugang wurde eingerichtet. Bitte starten Sie die openWB neu, um die Änderungen anzuwenden! ")]),_:1})):g("",!0),u(w,{title:"Vorhandener Cloud Zugang"},{footer:t(()=>[c("div",L,[u(C,{class:h(["col-4",s.enableRemoveCloudButton?"btn-danger":"btn-outline-danger"]),disabled:!s.enableRemoveCloudButton,onButtonClicked:e[10]||(e[10]=n=>l.removeCloudModal(n))},{default:t(()=>[r(" Zugang löschen ")]),_:1},8,["class","disabled"])])]),default:t(()=>[u(V,null,{default:t(()=>[I]),_:1}),u(p,{title:"Benutzername",required:"",subtype:"user",modelValue:l.cloudSettings.username,"onUpdate:modelValue":e[7]||(e[7]=n=>l.cloudSettings.username=n),disabled:""},null,8,["modelValue"]),u(p,{title:"Passwort",required:"",subtype:"password",modelValue:l.cloudSettings.password,"onUpdate:modelValue":e[8]||(e[8]=n=>l.cloudSettings.password=n),disabled:""},null,8,["modelValue"]),T,u(f,{title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.cloudSettings.partner,"onUpdate:modelValue":e[9]||(e[9]=n=>o.updateState(l.cloudBridgeKey,n,"access.partner"))},{help:t(()=>[r(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["model-value"])]),_:1})])):g("",!0),l.cloudBridgeKey?(d(),b(v,{key:4,formName:"cloudConfigured",onSave:e[11]||(e[11]=n=>o.$emit("save")),onReset:e[12]||(e[12]=n=>o.$emit("reset")),onDefaults:e[13]||(e[13]=n=>o.$emit("defaults"))})):g("",!0)]))])],64)}const ee=S(Z,[["render",O],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/CloudConfig.vue"]]);export{ee as default}; +import{C as W}from"./index-e599db2d.js";import{_ as S,q as a,k as d,l as i,B as u,M as t,u as c,z as b,A as g,a3 as y,I as D,x as r,p as h}from"./vendor-72da2ec6.js";import"./vendor-fortawesome-0685c9c0.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const Z={name:"OpenwbCloudConfig",mixins:[W],emits:["sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged","openWB/system/mqtt/bridge/+"],enableNewCloudButton:!0,newCloudData:{email:"",username:"",partner:!1},enableCloudConnectButton:!0,connectCloudData:{username:"",password:"",partner:!1},enableRemoveCloudButton:!0,showCloudRemoveModal:!1}},computed:{cloudBridge:{get(){let o=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[e,B]of Object.entries(o))B.remote.is_openwb_cloud||delete o[e];return o}},cloudBridgeKey:{get(){for(const[o,e]of Object.entries(this.cloudBridge))if(e.remote.is_openwb_cloud)return o}},cloudSettings:{get(){return{username:this.cloudBridge[this.cloudBridgeKey].remote.username,password:this.cloudBridge[this.cloudBridgeKey].remote.password,partner:this.cloudBridge[this.cloudBridgeKey].access?this.cloudBridge[this.cloudBridgeKey].access.partner:!1}}}},methods:{getMqttBridgeIndex(o){return parseInt(o.match(/(?:\/)(\d+)$/)[1])},createCloud(){document.forms.cloudConfigCreateForm.reportValidity()&&(this.$emit("sendCommand",{command:"initCloud",data:this.newCloudData}),this.enableNewCloudButton=!1)},connectCloud(){document.forms.cloudConfigConnectForm.reportValidity()&&(this.$emit("sendCommand",{command:"connectCloud",data:this.connectCloudData}),this.enableCloudConnectButton=!1)},removeCloudModal(o){o.stopPropagation(),this.showCloudRemoveModal=!0},removeCloud(o){this.showCloudRemoveModal=!1,o=="confirm"&&(console.info("request removal of cloud"),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:this.getMqttBridgeIndex(this.cloudBridgeKey)}}),this.enableCloudConnectButton=!0)}}},q={class:"cloud-config"},z={key:1},M={key:1,name:"cloudConfigCreateForm"},x=c("a",{href:"mailto:support@openwb.de",subject:"Cloud Zugangsdaten"}," support@openwb.de ",-1),K={key:0},N={key:1},R={class:"row justify-content-center"},A={key:2,name:"cloudConfigConnectForm"},P={key:0},U={key:1},j={class:"row justify-content-center"},F={key:3,name:"cloudConfigured"},I=c("span",null,[r(" Mit diesen Zugangsdaten können Sie sich in der "),c("a",{href:"https://remote.openwb.de/",target:"_blank",rel:"noopener noreferrer"}," openWB Cloud "),r(" anmelden. ")],-1),T=c("hr",null,null,-1),L={class:"row justify-content-center"};function O(o,e,B,E,s,l){const k=a("openwb-base-modal-dialog"),_=a("router-link"),m=a("openwb-base-alert"),p=a("openwb-base-text-input"),f=a("openwb-base-button-group-input"),C=a("openwb-base-click-button"),w=a("openwb-base-card"),V=a("openwb-base-heading"),v=a("openwb-base-submit-buttons");return d(),i(D,null,[u(k,{show:s.showCloudRemoveModal,title:"Cloud Zugang löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=n=>l.removeCloud(n))},{default:t(()=>[r(" Wollen Sie den vorhandenen Cloud Zugang wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ")]),_:1},8,["show"]),c("div",q,[o.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(d(),b(m,{key:0,subtype:"danger"},{default:t(()=>[r(" Sie müssen der "),u(_,{to:"/System/LegalSettings"},{default:t(()=>[r(" Datenschutzerklärung ")]),_:1}),r(" zustimmen, um die openWB Cloud nutzen zu können. ")]),_:1})):(d(),i("div",z,[u(m,{subtype:"success"},{default:t(()=>[r(" Sie haben der "),u(_,{to:"/System/LegalSettings"},{default:t(()=>[r(" Datenschutzerklärung ")]),_:1}),r(" zugestimmt und können die openWB Cloud nutzen. ")]),_:1}),s.enableRemoveCloudButton?g("",!0):(d(),b(m,{key:0,subtype:"warning"},{default:t(()=>[r(" Der Zugang wurde entfernt. Bitte starten Sie die openWB neu, um die Änderungen anzuwenden! ")]),_:1})),l.cloudBridgeKey?g("",!0):(d(),i("form",M,[u(w,{title:"Neuen Zugang erstellen"},y({default:t(()=>[u(m,{subtype:"warning"},{default:t(()=>[r(" Derzeit können keine neuen Zugänge für die openWB Cloud angelegt werden. Bitte nutzen Sie die in/an der openWB notierten Zugangsdaten im unteren Bereich dieser Seite. Wenn bei einer gekauften openWB keine Zugangsdaten vorhanden sind, schreiben Sie bitte eine Mail unter Angabe der Bestell- und/oder Seriennummer an "),x,r(" . ")]),_:1}),o.$store.state.mqtt["openWB/general/extern"]===!0?(d(),i("div",K,[u(m,{subtype:"info"},{default:t(()=>[r(' Diese openWB befindet sich im Steuerungsmodus "secondary". Bitte richten Sie die openWB Cloud auf der übergeordneten primary openWB ein. ')]),_:1})])):(d(),i("div",N,[u(p,{title:"Benutzername",required:"",subtype:"user",pattern:"[a-zA-Z]+",modelValue:s.newCloudData.username,"onUpdate:modelValue":e[1]||(e[1]=n=>s.newCloudData.username=n),disabled:""},null,8,["modelValue"]),u(p,{title:"E-Mail",required:"",subtype:"email",modelValue:s.newCloudData.email,"onUpdate:modelValue":e[2]||(e[2]=n=>s.newCloudData.email=n),disabled:""},null,8,["modelValue"]),u(f,{disabled:"",title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],modelValue:s.newCloudData.partner,"onUpdate:modelValue":e[3]||(e[3]=n=>s.newCloudData.partner=n)},{help:t(()=>[r(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["modelValue"])]))]),_:2},[o.$store.state.mqtt["openWB/general/extern"]===!1&&o.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:t(()=>[c("div",R,[u(C,{class:"col-4 btn-outline-success",disabled:""},{default:t(()=>[r(" Zugang erstellen ")]),_:1})])]),key:"0"}:void 0]),1024),s.enableNewCloudButton?g("",!0):(d(),b(m,{key:0,subtype:"info",class:"mb-2"},{default:t(()=>[r(" Der neue Zugang wird eingerichtet. Dieser Vorgang kann bis zu einer Minute dauern. Bitte warten. ")]),_:1}))])),l.cloudBridgeKey?g("",!0):(d(),i("form",A,[u(w,{title:"Vorhandenen Zugang einrichten"},y({default:t(()=>[o.$store.state.mqtt["openWB/general/extern"]===!0?(d(),i("div",P,[u(m,{subtype:"info"},{default:t(()=>[r(' Diese openWB befindet sich im Steuerungsmodus "secondary". Bitte richten Sie die openWB Cloud auf der übergeordneten primary openWB ein. ')]),_:1})])):(d(),i("div",U,[u(p,{title:"Benutzername",required:"",subtype:"user",modelValue:s.connectCloudData.username,"onUpdate:modelValue":e[4]||(e[4]=n=>s.connectCloudData.username=n)},null,8,["modelValue"]),u(p,{title:"Passwort",required:"",subtype:"password",modelValue:s.connectCloudData.password,"onUpdate:modelValue":e[5]||(e[5]=n=>s.connectCloudData.password=n)},null,8,["modelValue"]),u(f,{title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],modelValue:s.connectCloudData.partner,"onUpdate:modelValue":e[6]||(e[6]=n=>s.connectCloudData.partner=n)},{help:t(()=>[r(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["modelValue"])]))]),_:2},[o.$store.state.mqtt["openWB/general/extern"]===!1&&o.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:t(()=>[c("div",j,[u(C,{class:h(["col-4",s.enableCloudConnectButton?"btn-success":"btn-outline-success"]),disabled:!s.enableCloudConnectButton,onButtonClicked:l.connectCloud},{default:t(()=>[r(" Mit Cloud verbinden ")]),_:1},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024)])),l.cloudBridgeKey?(d(),i("form",F,[!s.enableCloudConnectButton||!s.enableNewCloudButton?(d(),b(m,{key:0,subtype:"warning"},{default:t(()=>[r(" Der Zugang wurde eingerichtet. Bitte starten Sie die openWB neu, um die Änderungen anzuwenden! ")]),_:1})):g("",!0),u(w,{title:"Vorhandener Cloud Zugang"},{footer:t(()=>[c("div",L,[u(C,{class:h(["col-4",s.enableRemoveCloudButton?"btn-danger":"btn-outline-danger"]),disabled:!s.enableRemoveCloudButton,onButtonClicked:e[10]||(e[10]=n=>l.removeCloudModal(n))},{default:t(()=>[r(" Zugang löschen ")]),_:1},8,["class","disabled"])])]),default:t(()=>[u(V,null,{default:t(()=>[I]),_:1}),u(p,{title:"Benutzername",required:"",subtype:"user",modelValue:l.cloudSettings.username,"onUpdate:modelValue":e[7]||(e[7]=n=>l.cloudSettings.username=n),disabled:""},null,8,["modelValue"]),u(p,{title:"Passwort",required:"",subtype:"password",modelValue:l.cloudSettings.password,"onUpdate:modelValue":e[8]||(e[8]=n=>l.cloudSettings.password=n),disabled:""},null,8,["modelValue"]),T,u(f,{title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.cloudSettings.partner,"onUpdate:modelValue":e[9]||(e[9]=n=>o.updateState(l.cloudBridgeKey,n,"access.partner"))},{help:t(()=>[r(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["model-value"])]),_:1})])):g("",!0),l.cloudBridgeKey?(d(),b(v,{key:4,formName:"cloudConfigured",onSave:e[11]||(e[11]=n=>o.$emit("save")),onReset:e[12]||(e[12]=n=>o.$emit("reset")),onDefaults:e[13]||(e[13]=n=>o.$emit("defaults"))})):g("",!0)]))])],64)}const ee=S(Z,[["render",O],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/CloudConfig.vue"]]);export{ee as default}; diff --git a/web/settings/assets/DataManagement-7613727f.js b/web/settings/assets/DataManagement-ea46bf5c.js similarity index 95% rename from web/settings/assets/DataManagement-7613727f.js rename to web/settings/assets/DataManagement-ea46bf5c.js index 3abd2fc791..cff0575a57 100644 --- a/web/settings/assets/DataManagement-7613727f.js +++ b/web/settings/assets/DataManagement-ea46bf5c.js @@ -1 +1 @@ -import{l as V,a6 as z,a7 as A,a8 as R,a9 as j,aa as H,F as P}from"./vendor-fortawesome-cf9a975a.js";import{_ as v,C as E}from"./index-bed1470e.js";import{_ as N}from"./dynamic-import-helper-be004503.js";import{_ as D,q as c,k as p,l as g,z as S,M as l,x as s,y as f,B as o,u as n,a1 as U,a2 as I,I as B,A as F,p as C,J as W,a3 as q}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const G={name:"BackupCloudConfigFallback",emits:["update:configuration"],props:{backupCloud:{type:Object,required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},Z={class:"backup-cloud-fallback"},J={key:1};function K(t,e,d,h,a,i){const m=c("openwb-base-alert"),r=c("openwb-base-textarea");return p(),g("div",Z,[Object.keys(d.backupCloud.configuration).length==0?(p(),S(m,{key:0,subtype:"info"},{default:l(()=>[s(' Die Backup-Cloud "'+f(d.backupCloud.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(p(),g("div",J,[o(m,{subtype:"warning"},{default:l(()=>[s(' Es wurde keine Konfigurationsseite für die Backup-Cloud "'+f(d.backupCloud.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),o(r,{title:"Konfiguration",subtype:"json","model-value":d.backupCloud.configuration,"onUpdate:modelValue":e[0]||(e[0]=_=>i.updateConfiguration(_,"configuration"))},{help:l(()=>[s(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),o(m,{subtype:"info"},{default:l(()=>[n("pre",null,f(JSON.stringify(d.backupCloud.configuration,void 0,2)),1)]),_:1})]))])}const $=D(G,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudConfigFallback.vue"]]),Q={name:"OpenwbBackupCloudProxy",emits:["update:configuration","sendCommand"],props:{backupCloud:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading backup cloud: ${this.backupCloud.type}`),U({loader:()=>N(Object.assign({"./nextcloud/backup_cloud.vue":()=>v(()=>import("./backup_cloud-cacf246a.js"),["assets/backup_cloud-cacf246a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./nfs/backup_cloud.vue":()=>v(()=>import("./backup_cloud-db5deede.js"),["assets/backup_cloud-db5deede.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./onedrive/backup_cloud.vue":()=>v(()=>import("./backup_cloud-60db8ac4.js"),["assets/backup_cloud-60db8ac4.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./samba/backup_cloud.vue":()=>v(()=>import("./backup_cloud-49a3231f.js"),["assets/backup_cloud-49a3231f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"])}),`./${this.backupCloud.type}/backup_cloud.vue`),errorComponent:$})}},methods:{updateConfiguration(t){this.$emit("update:configuration",t)},sendCommand(t){this.$emit("sendCommand",t)}}};function X(t,e,d,h,a,i){const m=c("openwb-base-heading");return p(),g(B,null,[o(m,null,{default:l(()=>[s(' Einstellungen für Backup-Cloud Modul "'+f(d.backupCloud.name)+'" ',1)]),_:1}),(p(),S(I(i.myComponent),{backupCloud:d.backupCloud,"onUpdate:configuration":e[0]||(e[0]=r=>i.updateConfiguration(r)),onSendCommand:e[1]||(e[1]=r=>i.sendCommand(r))},null,40,["backupCloud"]))],64)}const Y=D(Q,[["render",X],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudProxy.vue"]]);V.add(z,A,R,j,H);const ee={name:"OpenwbSystem",mixins:[E],emits:["sendCommand"],components:{FontAwesomeIcon:P,OpenwbBackupCloudProxy:Y},data(){return{mqttTopicsToSubscribe:["openWB/system/configurable/backup_clouds","openWB/system/backup_cloud/config","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name","openWB/LegacySmartHome/config/get/Devices/+/device_configured","openWB/LegacySmartHome/config/get/Devices/+/device_name"],warningAcknowledged:!1,selectedRestoreFile:void 0,restoreUploadDone:!1,selectedDataMigrationFile:void 0,dataMigrationUploadDone:!1,dataMigrationConfig:[{sectionName:"Ladepunkte",sectionComponents:[{key:"cp1",label:"Ladepunkt 1",validTypes:["chargePoint"]},{key:"cp2",label:"Ladepunkt 2",validTypes:["chargePoint"]},{key:"cp3",label:"Ladepunkt 3",validTypes:["chargePoint"]},{key:"cp4",label:"Ladepunkt 4",validTypes:["chargePoint"]},{key:"cp5",label:"Ladepunkt 5",validTypes:["chargePoint"]},{key:"cp6",label:"Ladepunkt 6",validTypes:["chargePoint"]},{key:"cp7",label:"Ladepunkt 7",validTypes:["chargePoint"]},{key:"cp8",label:"Ladepunkt 8",validTypes:["chargePoint"]}]},{sectionName:"Zähler",sectionComponents:[{key:"evu",label:"EVU",validTypes:["counter"]},{key:"consumer1",label:"Verbraucher 1",validTypes:["counter"]},{key:"consumer2",label:"Verbraucher 2",validTypes:["counter"]},{key:"consumer3",label:"Verbraucher 3",validTypes:["counter"]}]},{sectionName:"Wechselrichter",sectionComponents:[{key:"pvAll",label:"Wechselrichter (Summe)",validTypes:["inverter"],help:"Die 1.9er Version von openWB speichert lediglich die Summen-Leistung aller Wechselrichter."}]},{sectionName:"Batteriespeicher",sectionComponents:[{key:"bat",label:"Speicher 1",validTypes:["battery"]}]},{sectionName:"Fahrzeuge",sectionComponents:[{key:"ev1",label:"Fahrzeug von Ladepunkt 1",validTypes:["vehicle"]},{key:"ev2",label:"Fahrzeug von Ladepunkt 2",validTypes:["vehicle"]}]},{sectionName:"SmartHome 2.0",sectionComponents:[{key:"sh1",label:"Gerät 1",validTypes:["smartHome"]},{key:"sh2",label:"Gerät 2",validTypes:["smartHome"]},{key:"sh3",label:"Gerät 3",validTypes:["smartHome"]},{key:"sh4",label:"Gerät 4",validTypes:["smartHome"]},{key:"sh5",label:"Gerät 5",validTypes:["smartHome"]},{key:"sh6",label:"Gerät 6",validTypes:["smartHome"]},{key:"sh7",label:"Gerät 7",validTypes:["smartHome"]},{key:"sh8",label:"Gerät 8",validTypes:["smartHome"]},{key:"sh9",label:"Gerät 9",validTypes:["smartHome"]},{key:"sh10",label:"Gerät 10",validTypes:["smartHome"]}]}],dataMigrationMapping:{cp1:void 0,cp2:void 0,cp3:void 0,cp4:void 0,cp5:void 0,cp6:void 0,cp7:void 0,cp8:void 0,evu:void 0,pvAll:void 0,bat:void 0,consumer1:void 0,consumer2:void 0,consumer3:void 0,sh1:void 0,sh2:void 0,sh3:void 0,sh4:void 0,sh5:void 0,sh6:void 0,sh7:void 0,sh8:void 0,sh9:void 0,sh10:void 0,ev1:void 0,ev2:void 0}}},computed:{backupCloudList(){return this.$store.state.mqtt["openWB/system/configurable/backup_clouds"]},componentConfigurations(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")},chargePointOptions(){let t=this.getWildcardTopics("openWB/chargepoint/+/config");var e=[];for(const d of Object.values(t))e.push({value:d.id,text:d.name});return e},counterOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"counter")&&t.push({value:e.id,text:e.name});return t},inverterOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"inverter")&&t.push({value:e.id,text:e.name});return t},batteryOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"bat")&&t.push({value:e.id,text:e.name});return t},vehicleOptions(){let t=this.getWildcardTopics("openWB/vehicle/+/name");var e=[];for(const[d,h]of Object.entries(t)){let a=parseInt(d.match(/\/(\d\d?)\//)[1]);e.push({value:a,text:h})}return e},smartHomeOptions(){let t=this.getWildcardTopics("openWB/LegacySmartHome/config/get/Devices/+/device_configured");var e=[];for(const[d,h]of Object.entries(t))if(h==1){let a=parseInt(d.match(/\/(\d\d?)\//)[1]);e.push({value:a,text:this.$store.state.mqtt[`openWB/LegacySmartHome/config/get/Devices/${a}/device_name`]})}return e}},methods:{isComponentType(t,e){return t.split("_").includes(e)},getBackupCloudDefaultConfiguration(t){const e=this.backupCloudList.find(d=>d.value==t);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...JSON.parse(JSON.stringify(e.defaults))}:(console.warn("no default configuration found for backup cloud type!",t),{})},sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})},getMigrationOptions(t){var e=[{value:void 0,text:"-- nicht übernehmen --"}];return t.includes("chargePoint")&&e.push(...this.chargePointOptions),t.includes("counter")&&e.push(...this.counterOptions),t.includes("inverter")&&e.push(...this.inverterOptions),t.includes("battery")&&e.push(...this.batteryOptions),t.includes("vehicle")&&e.push(...this.vehicleOptions),t.includes("smartHome")&&e.push(...this.smartHomeOptions),e},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)},updateSelectedBackupCloud(t){this.updateState("openWB/system/backup_cloud/config",t,"type"),this.updateState("openWB/system/backup_cloud/config",this.getBackupCloudDefaultConfiguration(t))},updateSelectedRestoreFile(t){this.selectedRestoreFile=t.target.files[0]},updateSelectedDataMigrationFile(t){this.selectedDataMigrationFile=t.target.files[0]},uploadFile(t,e,d){return new Promise(h=>{if(e!==void 0){let a=new FormData;a.append("file",e),a.append("target",t),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/uploadFile.php",a,{headers:{"Content-Type":"multipart/form-data"}}).then(()=>{this.$root.postClientMessage(d,"success"),h(!0)}).catch(i=>{if(i.response){console.error(i.response.status,i.response.data);var m="Hochladen der Datei fehlgeschlagen!
"+i.response.status+": "+i.response.data}else i.request?(console.error(i.request),m+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",i.message),m+="Es ist ein unbekannter Fehler aufgetreten.");this.$root.postClientMessage(m,"danger"),h(!1)})}else console.error("no file selected for upload"),h(!1)})},async uploadRestoreFile(){const t="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können die Wiederherstellung jetzt starten.";this.restoreUploadDone=await this.uploadFile("restore",this.selectedRestoreFile,t)},async uploadDataMigrationFile(){const t="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können den Import jetzt starten.";this.dataMigrationUploadDone=await this.uploadFile("migrate",this.selectedDataMigrationFile,t)},restoreBackup(){this.sendSystemCommand("restoreBackup"),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})},dataMigration(){this.sendSystemCommand("dataMigration",this.dataMigrationMapping)},factoryReset(){this.sendSystemCommand("factoryReset",{}),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})}}},te={class:"system"},ne=n("h2",null,"Achtung!",-1),oe=n("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1),ie={key:0},se={name:"backupForm"},ae=n("a",{href:"/openWB/data/backup/",target:"_blank"},"hier",-1),le={class:"row justify-content-center"},ue={class:"col-md-4 d-flex py-1 justify-content-center"},de=n("hr",null,null,-1),re={name:"restoreForm"},ce=n("br",null,null,-1),pe={class:"input-group"},me={class:"input-group-prepend"},he={class:"input-group-text"},be={class:"custom-file"},ge={id:"input-file-label",class:"custom-file-label",for:"input-file","data-browse":"Suchen"},fe={class:"input-group-append"},_e=["disabled"],ke={class:"row justify-content-center"},ye={class:"col-md-4 d-flex py-1 justify-content-center"},ve=n("hr",null,null,-1),Ce={name:"cloudBackupForm"},we=n("br",null,null,-1),Be=n("a",{href:"https://github.com/openWB/core/wiki/Cloud-Sicherung",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),De={key:0},Se={name:"dataMigrationForm"},Oe=n("br",null,null,-1),Fe=n("br",null,null,-1),We={class:"input-group"},Me={class:"input-group-prepend"},xe={class:"input-group-text"},Te={class:"custom-file"},Le={id:"data-migration-file-label",class:"custom-file-label",for:"data-migration-file","data-browse":"Suchen"},Ve={class:"input-group-append"},ze=["disabled"],Ae={class:"row justify-content-center"},Re={class:"col-md-4 d-flex py-1 justify-content-center"},je={name:"resetForm"},He={class:"row justify-content-center"},Pe={class:"col-md-4 d-flex py-1 justify-content-center"};function Ee(t,e,d,h,a,i){const m=c("openwb-base-button-group-input"),r=c("openwb-base-alert"),_=c("openwb-base-heading"),b=c("font-awesome-icon"),y=c("openwb-base-click-button"),O=c("openwb-base-select-input"),M=c("openwb-base-button-input"),x=c("openwb-backup-cloud-proxy"),T=c("openwb-base-submit-buttons"),w=c("openwb-base-card");return p(),g("div",te,[o(r,{subtype:"danger"},{default:l(()=>[ne,oe,o(m,{title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:this.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=u=>this.warningAcknowledged=u)},null,8,["modelValue"])]),_:1}),a.warningAcknowledged?(p(),g("div",ie,[o(w,{title:"Sicherung / Wiederherstellung",subtype:"success",collapsible:!0,collapsed:!0},{default:l(()=>[n("form",se,[o(_,null,{default:l(()=>[s("Sicherung")]),_:1}),o(r,{subtype:"danger"},{default:l(()=>[s(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ')]),_:1}),o(r,{subtype:"info"},{default:l(()=>[s(" Nachdem die Sicherung abgeschlossen ist, kann die erstellte Datei über den Link in der Benachrichtigung oder "),ae,s(" heruntergeladen werden. ")]),_:1}),n("div",le,[n("div",ue,[o(y,{class:"btn-success clickable",onButtonClicked:e[1]||(e[1]=u=>i.sendSystemCommand("createBackup",{use_extended_filename:!0}))},{default:l(()=>[s(" Sicherung erstellen "),o(b,{"fixed-width":"",icon:["fas","archive"]})]),_:1})])])]),de,n("form",re,[o(_,null,{default:l(()=>[s("Wiederherstellung")]),_:1}),o(r,{subtype:"danger"},{default:l(()=>[s(" Für die Wiederherstellung wird eine aktive Internetverbindung benötigt."),ce,s(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ')]),_:1}),n("div",pe,[n("div",me,[n("div",he,[o(b,{"fixed-width":"",icon:["fas","file-archive"]})])]),n("div",be,[n("input",{id:"input-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[2]||(e[2]=u=>i.updateSelectedRestoreFile(u))},null,32),n("label",ge,f(a.selectedRestoreFile?a.selectedRestoreFile.name:"Bitte eine Datei auswählen"),1)]),n("div",fe,[n("button",{class:C(["btn",a.selectedRestoreFile?"btn-success clickable":"btn-outline-success"]),disabled:!a.selectedRestoreFile,type:"button",onClick:e[3]||(e[3]=u=>i.uploadRestoreFile())},[s(" Hochladen "),o(b,{"fixed-width":"",icon:["fas","upload"]})],10,_e)])]),n("div",ke,[n("div",ye,[o(y,{class:C(a.restoreUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!a.restoreUploadDone,onButtonClicked:e[4]||(e[4]=u=>i.restoreBackup())},{default:l(()=>[s(" Wiederherstellung starten "),o(b,{"fixed-width":"",icon:["fas","box-open"]})]),_:1},8,["class","disabled"])])])]),ve,n("form",Ce,[o(_,null,{default:l(()=>[s(" Automatische Sicherung in einen Cloud-Dienst ")]),_:1}),o(r,{subtype:"info"},{default:l(()=>[s(" Zwischen Mitternacht und 5:00 Uhr wird automatisch eine Sicherung erstellt und in den angegebenen Cloud-Dienst (nicht openWB Cloud!) hochgeladen. Ist kein Cloud-Dienst konfiguriert, wird keine automatische Sicherung erstellt. Die automatische Sicherung kann unabhängig von der openWB Cloud genutzt werden."),we,s(" Die Anleitung zur Konfiguration des Cloud-Dienstes findest Du "),Be,s(" . ")]),_:1}),o(O,{class:"mb-2",title:"Backup-Cloud",options:i.backupCloudList,"model-value":t.$store.state.mqtt["openWB/system/backup_cloud/config"].type,"onUpdate:modelValue":e[5]||(e[5]=u=>i.updateSelectedBackupCloud(u))},null,8,["options","model-value"]),t.$store.state.mqtt["openWB/system/backup_cloud/config"].type?(p(),g("div",De,[o(M,{title:"Manuelle Cloud-Sicherung",buttonText:"Sicherung erstellen und hochladen",subtype:"success",onButtonClicked:e[6]||(e[6]=u=>i.sendSystemCommand("createCloudBackup",{}))}),o(x,{backupCloud:t.$store.state.mqtt["openWB/system/backup_cloud/config"],"onUpdate:configuration":e[7]||(e[7]=u=>i.updateConfiguration("openWB/system/backup_cloud/config",u)),onSendCommand:e[8]||(e[8]=u=>i.sendSystemCommand(u.command,u.args))},null,8,["backupCloud"])])):F("",!0),o(T,{formName:"cloudBackupForm",hideReset:!0,hideDefaults:!0,onSave:e[9]||(e[9]=u=>t.$emit("save")),onReset:e[10]||(e[10]=u=>t.$emit("reset")),onDefaults:e[11]||(e[11]=u=>t.$emit("defaults"))})])]),_:1}),o(w,{title:"Datenübernahme",subtype:"success",collapsible:!0,collapsed:!0},{default:l(()=>[n("form",Se,[o(r,{subtype:"info"},{default:l(()=>[s(" Hier kann die Sicherung einer älteren 1.9er Version hochgeladen werden, um vorhandene historische Daten (Diagramme und Ladeprotokolle) sowie Cloud-Daten und Seriennummer in diese Installation zu importieren. Die Zuordnung zwischen den alten und neuen Komponenten muss manuell durchgeführt werden."),Oe,s(" Die Portierung kann einige Minuten dauern. Du erhältst eine Meldung, wenn die Datenübernahme abgeschlossen ist. ")]),_:1}),o(r,{subtype:"danger"},{default:l(()=>[s(" Vor der Datenübernahme unbedingt eine Sicherung erstellen."),Fe,s(" Die Datenübernahme kann nur durch Einspielen einer Sicherung rückgängig gemacht werden! ")]),_:1}),n("div",We,[n("div",Me,[n("div",xe,[o(b,{"fixed-width":"",icon:["fas","file-archive"]})])]),n("div",Te,[n("input",{id:"data-migration-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[12]||(e[12]=u=>i.updateSelectedDataMigrationFile(u))},null,32),n("label",Le,f(a.selectedDataMigrationFile?a.selectedDataMigrationFile.name:"Bitte eine Datei auswählen"),1)]),n("div",Ve,[n("button",{class:C(["btn",a.selectedDataMigrationFile?"btn-success clickable":"btn-outline-success"]),disabled:!a.selectedDataMigrationFile,type:"button",onClick:e[13]||(e[13]=u=>i.uploadDataMigrationFile())},[s(" Hochladen "),o(b,{"fixed-width":"",icon:["fas","upload"]})],10,ze)])]),o(_,null,{default:l(()=>[s("Zuordnung der Komponenten")]),_:1}),(p(!0),g(B,null,W(a.dataMigrationConfig,u=>(p(),g("div",{key:u.sectionName},[o(_,null,{default:l(()=>[s(f(u.sectionName),1)]),_:2},1024),(p(!0),g(B,null,W(u.sectionComponents,k=>(p(),S(O,{key:k.key,title:k.label,options:i.getMigrationOptions(k.validTypes),modelValue:a.dataMigrationMapping[k.key],"onUpdate:modelValue":L=>a.dataMigrationMapping[k.key]=L},q({_:2},[k.help?{name:"help",fn:l(()=>[s(f(k.help),1)]),key:"0"}:void 0]),1032,["title","options","modelValue","onUpdate:modelValue"]))),128))]))),128)),n("div",Ae,[n("div",Re,[o(y,{class:C(a.dataMigrationUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!a.dataMigrationUploadDone,onButtonClicked:e[14]||(e[14]=u=>i.dataMigration())},{default:l(()=>[s(" Datenübernahme starten "),o(b,{"fixed-width":"",icon:["fas","box-open"]})]),_:1},8,["class","disabled"])])])])]),_:1}),n("form",je,[o(w,{title:"Zurücksetzen",subtype:"danger",collapsible:!0,collapsed:!0},{footer:l(()=>[n("div",He,[n("div",Pe,[o(y,{class:"btn-danger clickable",onButtonClicked:e[15]||(e[15]=u=>i.factoryReset())},{default:l(()=>[o(b,{"fixed-width":"",icon:["fas","skull-crossbones"]}),s(" Zurücksetzen "),o(b,{"fixed-width":"",icon:["fas","skull-crossbones"]})]),_:1})])])]),default:l(()=>[o(r,{subtype:"danger"},{default:l(()=>[s(" Alle Einstellungen, angelegte Geräte/Komponenten, Ladepunkte und Fahrzeuge, etc, Tages-, Monats- und Jahresauswertungen sowie das Ladeprotokoll werden unwiederbringlich gelöscht. Auch die Vorkonfiguration im Auslieferungszustand wird gelöscht. Die openWB muss danach komplett neu eingerichtet werden. Die openWB wird hierfür automatisch neu gestartet. Bitte erstelle vor dem Zurücksetzen eine Sicherung! ")]),_:1})]),_:1})])])):F("",!0)])}const $e=D(ee,[["render",Ee],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/DataManagement.vue"]]);export{$e as default}; +import{l as V,a6 as z,a7 as A,a8 as R,a9 as j,aa as H,F as P}from"./vendor-fortawesome-0685c9c0.js";import{_ as v,C as E}from"./index-e599db2d.js";import{_ as N}from"./dynamic-import-helper-be004503.js";import{_ as D,q as c,k as p,l as g,z as S,M as l,x as s,y as f,B as o,u as n,a1 as U,a2 as I,I as B,A as F,p as C,J as W,a3 as q}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const G={name:"BackupCloudConfigFallback",emits:["update:configuration"],props:{backupCloud:{type:Object,required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},Z={class:"backup-cloud-fallback"},J={key:1};function K(t,e,d,h,a,i){const m=c("openwb-base-alert"),r=c("openwb-base-textarea");return p(),g("div",Z,[Object.keys(d.backupCloud.configuration).length==0?(p(),S(m,{key:0,subtype:"info"},{default:l(()=>[s(' Die Backup-Cloud "'+f(d.backupCloud.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(p(),g("div",J,[o(m,{subtype:"warning"},{default:l(()=>[s(' Es wurde keine Konfigurationsseite für die Backup-Cloud "'+f(d.backupCloud.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),o(r,{title:"Konfiguration",subtype:"json","model-value":d.backupCloud.configuration,"onUpdate:modelValue":e[0]||(e[0]=_=>i.updateConfiguration(_,"configuration"))},{help:l(()=>[s(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),o(m,{subtype:"info"},{default:l(()=>[n("pre",null,f(JSON.stringify(d.backupCloud.configuration,void 0,2)),1)]),_:1})]))])}const $=D(G,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudConfigFallback.vue"]]),Q={name:"OpenwbBackupCloudProxy",emits:["update:configuration","sendCommand"],props:{backupCloud:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading backup cloud: ${this.backupCloud.type}`),U({loader:()=>N(Object.assign({"./nextcloud/backup_cloud.vue":()=>v(()=>import("./backup_cloud-e3cd26f1.js"),["assets/backup_cloud-e3cd26f1.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./nfs/backup_cloud.vue":()=>v(()=>import("./backup_cloud-1813a7df.js"),["assets/backup_cloud-1813a7df.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./onedrive/backup_cloud.vue":()=>v(()=>import("./backup_cloud-34a457f6.js"),["assets/backup_cloud-34a457f6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./samba/backup_cloud.vue":()=>v(()=>import("./backup_cloud-9751a369.js"),["assets/backup_cloud-9751a369.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"])}),`./${this.backupCloud.type}/backup_cloud.vue`),errorComponent:$})}},methods:{updateConfiguration(t){this.$emit("update:configuration",t)},sendCommand(t){this.$emit("sendCommand",t)}}};function X(t,e,d,h,a,i){const m=c("openwb-base-heading");return p(),g(B,null,[o(m,null,{default:l(()=>[s(' Einstellungen für Backup-Cloud Modul "'+f(d.backupCloud.name)+'" ',1)]),_:1}),(p(),S(I(i.myComponent),{backupCloud:d.backupCloud,"onUpdate:configuration":e[0]||(e[0]=r=>i.updateConfiguration(r)),onSendCommand:e[1]||(e[1]=r=>i.sendCommand(r))},null,40,["backupCloud"]))],64)}const Y=D(Q,[["render",X],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudProxy.vue"]]);V.add(z,A,R,j,H);const ee={name:"OpenwbSystem",mixins:[E],emits:["sendCommand"],components:{FontAwesomeIcon:P,OpenwbBackupCloudProxy:Y},data(){return{mqttTopicsToSubscribe:["openWB/system/configurable/backup_clouds","openWB/system/backup_cloud/config","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name","openWB/LegacySmartHome/config/get/Devices/+/device_configured","openWB/LegacySmartHome/config/get/Devices/+/device_name"],warningAcknowledged:!1,selectedRestoreFile:void 0,restoreUploadDone:!1,selectedDataMigrationFile:void 0,dataMigrationUploadDone:!1,dataMigrationConfig:[{sectionName:"Ladepunkte",sectionComponents:[{key:"cp1",label:"Ladepunkt 1",validTypes:["chargePoint"]},{key:"cp2",label:"Ladepunkt 2",validTypes:["chargePoint"]},{key:"cp3",label:"Ladepunkt 3",validTypes:["chargePoint"]},{key:"cp4",label:"Ladepunkt 4",validTypes:["chargePoint"]},{key:"cp5",label:"Ladepunkt 5",validTypes:["chargePoint"]},{key:"cp6",label:"Ladepunkt 6",validTypes:["chargePoint"]},{key:"cp7",label:"Ladepunkt 7",validTypes:["chargePoint"]},{key:"cp8",label:"Ladepunkt 8",validTypes:["chargePoint"]}]},{sectionName:"Zähler",sectionComponents:[{key:"evu",label:"EVU",validTypes:["counter"]},{key:"consumer1",label:"Verbraucher 1",validTypes:["counter"]},{key:"consumer2",label:"Verbraucher 2",validTypes:["counter"]},{key:"consumer3",label:"Verbraucher 3",validTypes:["counter"]}]},{sectionName:"Wechselrichter",sectionComponents:[{key:"pvAll",label:"Wechselrichter (Summe)",validTypes:["inverter"],help:"Die 1.9er Version von openWB speichert lediglich die Summen-Leistung aller Wechselrichter."}]},{sectionName:"Batteriespeicher",sectionComponents:[{key:"bat",label:"Speicher 1",validTypes:["battery"]}]},{sectionName:"Fahrzeuge",sectionComponents:[{key:"ev1",label:"Fahrzeug von Ladepunkt 1",validTypes:["vehicle"]},{key:"ev2",label:"Fahrzeug von Ladepunkt 2",validTypes:["vehicle"]}]},{sectionName:"SmartHome 2.0",sectionComponents:[{key:"sh1",label:"Gerät 1",validTypes:["smartHome"]},{key:"sh2",label:"Gerät 2",validTypes:["smartHome"]},{key:"sh3",label:"Gerät 3",validTypes:["smartHome"]},{key:"sh4",label:"Gerät 4",validTypes:["smartHome"]},{key:"sh5",label:"Gerät 5",validTypes:["smartHome"]},{key:"sh6",label:"Gerät 6",validTypes:["smartHome"]},{key:"sh7",label:"Gerät 7",validTypes:["smartHome"]},{key:"sh8",label:"Gerät 8",validTypes:["smartHome"]},{key:"sh9",label:"Gerät 9",validTypes:["smartHome"]},{key:"sh10",label:"Gerät 10",validTypes:["smartHome"]}]}],dataMigrationMapping:{cp1:void 0,cp2:void 0,cp3:void 0,cp4:void 0,cp5:void 0,cp6:void 0,cp7:void 0,cp8:void 0,evu:void 0,pvAll:void 0,bat:void 0,consumer1:void 0,consumer2:void 0,consumer3:void 0,sh1:void 0,sh2:void 0,sh3:void 0,sh4:void 0,sh5:void 0,sh6:void 0,sh7:void 0,sh8:void 0,sh9:void 0,sh10:void 0,ev1:void 0,ev2:void 0}}},computed:{backupCloudList(){return this.$store.state.mqtt["openWB/system/configurable/backup_clouds"]},componentConfigurations(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")},chargePointOptions(){let t=this.getWildcardTopics("openWB/chargepoint/+/config");var e=[];for(const d of Object.values(t))e.push({value:d.id,text:d.name});return e},counterOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"counter")&&t.push({value:e.id,text:e.name});return t},inverterOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"inverter")&&t.push({value:e.id,text:e.name});return t},batteryOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"bat")&&t.push({value:e.id,text:e.name});return t},vehicleOptions(){let t=this.getWildcardTopics("openWB/vehicle/+/name");var e=[];for(const[d,h]of Object.entries(t)){let a=parseInt(d.match(/\/(\d\d?)\//)[1]);e.push({value:a,text:h})}return e},smartHomeOptions(){let t=this.getWildcardTopics("openWB/LegacySmartHome/config/get/Devices/+/device_configured");var e=[];for(const[d,h]of Object.entries(t))if(h==1){let a=parseInt(d.match(/\/(\d\d?)\//)[1]);e.push({value:a,text:this.$store.state.mqtt[`openWB/LegacySmartHome/config/get/Devices/${a}/device_name`]})}return e}},methods:{isComponentType(t,e){return t.split("_").includes(e)},getBackupCloudDefaultConfiguration(t){const e=this.backupCloudList.find(d=>d.value==t);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...JSON.parse(JSON.stringify(e.defaults))}:(console.warn("no default configuration found for backup cloud type!",t),{})},sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})},getMigrationOptions(t){var e=[{value:void 0,text:"-- nicht übernehmen --"}];return t.includes("chargePoint")&&e.push(...this.chargePointOptions),t.includes("counter")&&e.push(...this.counterOptions),t.includes("inverter")&&e.push(...this.inverterOptions),t.includes("battery")&&e.push(...this.batteryOptions),t.includes("vehicle")&&e.push(...this.vehicleOptions),t.includes("smartHome")&&e.push(...this.smartHomeOptions),e},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)},updateSelectedBackupCloud(t){this.updateState("openWB/system/backup_cloud/config",t,"type"),this.updateState("openWB/system/backup_cloud/config",this.getBackupCloudDefaultConfiguration(t))},updateSelectedRestoreFile(t){this.selectedRestoreFile=t.target.files[0]},updateSelectedDataMigrationFile(t){this.selectedDataMigrationFile=t.target.files[0]},uploadFile(t,e,d){return new Promise(h=>{if(e!==void 0){let a=new FormData;a.append("file",e),a.append("target",t),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/uploadFile.php",a,{headers:{"Content-Type":"multipart/form-data"}}).then(()=>{this.$root.postClientMessage(d,"success"),h(!0)}).catch(i=>{if(i.response){console.error(i.response.status,i.response.data);var m="Hochladen der Datei fehlgeschlagen!
"+i.response.status+": "+i.response.data}else i.request?(console.error(i.request),m+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",i.message),m+="Es ist ein unbekannter Fehler aufgetreten.");this.$root.postClientMessage(m,"danger"),h(!1)})}else console.error("no file selected for upload"),h(!1)})},async uploadRestoreFile(){const t="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können die Wiederherstellung jetzt starten.";this.restoreUploadDone=await this.uploadFile("restore",this.selectedRestoreFile,t)},async uploadDataMigrationFile(){const t="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können den Import jetzt starten.";this.dataMigrationUploadDone=await this.uploadFile("migrate",this.selectedDataMigrationFile,t)},restoreBackup(){this.sendSystemCommand("restoreBackup"),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})},dataMigration(){this.sendSystemCommand("dataMigration",this.dataMigrationMapping)},factoryReset(){this.sendSystemCommand("factoryReset",{}),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})}}},te={class:"system"},ne=n("h2",null,"Achtung!",-1),oe=n("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1),ie={key:0},se={name:"backupForm"},ae=n("a",{href:"/openWB/data/backup/",target:"_blank"},"hier",-1),le={class:"row justify-content-center"},ue={class:"col-md-4 d-flex py-1 justify-content-center"},de=n("hr",null,null,-1),re={name:"restoreForm"},ce=n("br",null,null,-1),pe={class:"input-group"},me={class:"input-group-prepend"},he={class:"input-group-text"},be={class:"custom-file"},ge={id:"input-file-label",class:"custom-file-label",for:"input-file","data-browse":"Suchen"},fe={class:"input-group-append"},_e=["disabled"],ke={class:"row justify-content-center"},ye={class:"col-md-4 d-flex py-1 justify-content-center"},ve=n("hr",null,null,-1),Ce={name:"cloudBackupForm"},we=n("br",null,null,-1),Be=n("a",{href:"https://github.com/openWB/core/wiki/Cloud-Sicherung",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),De={key:0},Se={name:"dataMigrationForm"},Oe=n("br",null,null,-1),Fe=n("br",null,null,-1),We={class:"input-group"},Me={class:"input-group-prepend"},xe={class:"input-group-text"},Te={class:"custom-file"},Le={id:"data-migration-file-label",class:"custom-file-label",for:"data-migration-file","data-browse":"Suchen"},Ve={class:"input-group-append"},ze=["disabled"],Ae={class:"row justify-content-center"},Re={class:"col-md-4 d-flex py-1 justify-content-center"},je={name:"resetForm"},He={class:"row justify-content-center"},Pe={class:"col-md-4 d-flex py-1 justify-content-center"};function Ee(t,e,d,h,a,i){const m=c("openwb-base-button-group-input"),r=c("openwb-base-alert"),_=c("openwb-base-heading"),b=c("font-awesome-icon"),y=c("openwb-base-click-button"),O=c("openwb-base-select-input"),M=c("openwb-base-button-input"),x=c("openwb-backup-cloud-proxy"),T=c("openwb-base-submit-buttons"),w=c("openwb-base-card");return p(),g("div",te,[o(r,{subtype:"danger"},{default:l(()=>[ne,oe,o(m,{title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:this.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=u=>this.warningAcknowledged=u)},null,8,["modelValue"])]),_:1}),a.warningAcknowledged?(p(),g("div",ie,[o(w,{title:"Sicherung / Wiederherstellung",subtype:"success",collapsible:!0,collapsed:!0},{default:l(()=>[n("form",se,[o(_,null,{default:l(()=>[s("Sicherung")]),_:1}),o(r,{subtype:"danger"},{default:l(()=>[s(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ')]),_:1}),o(r,{subtype:"info"},{default:l(()=>[s(" Nachdem die Sicherung abgeschlossen ist, kann die erstellte Datei über den Link in der Benachrichtigung oder "),ae,s(" heruntergeladen werden. ")]),_:1}),n("div",le,[n("div",ue,[o(y,{class:"btn-success clickable",onButtonClicked:e[1]||(e[1]=u=>i.sendSystemCommand("createBackup",{use_extended_filename:!0}))},{default:l(()=>[s(" Sicherung erstellen "),o(b,{"fixed-width":"",icon:["fas","archive"]})]),_:1})])])]),de,n("form",re,[o(_,null,{default:l(()=>[s("Wiederherstellung")]),_:1}),o(r,{subtype:"danger"},{default:l(()=>[s(" Für die Wiederherstellung wird eine aktive Internetverbindung benötigt."),ce,s(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ')]),_:1}),n("div",pe,[n("div",me,[n("div",he,[o(b,{"fixed-width":"",icon:["fas","file-archive"]})])]),n("div",be,[n("input",{id:"input-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[2]||(e[2]=u=>i.updateSelectedRestoreFile(u))},null,32),n("label",ge,f(a.selectedRestoreFile?a.selectedRestoreFile.name:"Bitte eine Datei auswählen"),1)]),n("div",fe,[n("button",{class:C(["btn",a.selectedRestoreFile?"btn-success clickable":"btn-outline-success"]),disabled:!a.selectedRestoreFile,type:"button",onClick:e[3]||(e[3]=u=>i.uploadRestoreFile())},[s(" Hochladen "),o(b,{"fixed-width":"",icon:["fas","upload"]})],10,_e)])]),n("div",ke,[n("div",ye,[o(y,{class:C(a.restoreUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!a.restoreUploadDone,onButtonClicked:e[4]||(e[4]=u=>i.restoreBackup())},{default:l(()=>[s(" Wiederherstellung starten "),o(b,{"fixed-width":"",icon:["fas","box-open"]})]),_:1},8,["class","disabled"])])])]),ve,n("form",Ce,[o(_,null,{default:l(()=>[s(" Automatische Sicherung in einen Cloud-Dienst ")]),_:1}),o(r,{subtype:"info"},{default:l(()=>[s(" Zwischen Mitternacht und 5:00 Uhr wird automatisch eine Sicherung erstellt und in den angegebenen Cloud-Dienst (nicht openWB Cloud!) hochgeladen. Ist kein Cloud-Dienst konfiguriert, wird keine automatische Sicherung erstellt. Die automatische Sicherung kann unabhängig von der openWB Cloud genutzt werden."),we,s(" Die Anleitung zur Konfiguration des Cloud-Dienstes findest Du "),Be,s(" . ")]),_:1}),o(O,{class:"mb-2",title:"Backup-Cloud",options:i.backupCloudList,"model-value":t.$store.state.mqtt["openWB/system/backup_cloud/config"].type,"onUpdate:modelValue":e[5]||(e[5]=u=>i.updateSelectedBackupCloud(u))},null,8,["options","model-value"]),t.$store.state.mqtt["openWB/system/backup_cloud/config"].type?(p(),g("div",De,[o(M,{title:"Manuelle Cloud-Sicherung",buttonText:"Sicherung erstellen und hochladen",subtype:"success",onButtonClicked:e[6]||(e[6]=u=>i.sendSystemCommand("createCloudBackup",{}))}),o(x,{backupCloud:t.$store.state.mqtt["openWB/system/backup_cloud/config"],"onUpdate:configuration":e[7]||(e[7]=u=>i.updateConfiguration("openWB/system/backup_cloud/config",u)),onSendCommand:e[8]||(e[8]=u=>i.sendSystemCommand(u.command,u.args))},null,8,["backupCloud"])])):F("",!0),o(T,{formName:"cloudBackupForm",hideReset:!0,hideDefaults:!0,onSave:e[9]||(e[9]=u=>t.$emit("save")),onReset:e[10]||(e[10]=u=>t.$emit("reset")),onDefaults:e[11]||(e[11]=u=>t.$emit("defaults"))})])]),_:1}),o(w,{title:"Datenübernahme",subtype:"success",collapsible:!0,collapsed:!0},{default:l(()=>[n("form",Se,[o(r,{subtype:"info"},{default:l(()=>[s(" Hier kann die Sicherung einer älteren 1.9er Version hochgeladen werden, um vorhandene historische Daten (Diagramme und Ladeprotokolle) sowie Cloud-Daten und Seriennummer in diese Installation zu importieren. Die Zuordnung zwischen den alten und neuen Komponenten muss manuell durchgeführt werden."),Oe,s(" Die Portierung kann einige Minuten dauern. Du erhältst eine Meldung, wenn die Datenübernahme abgeschlossen ist. ")]),_:1}),o(r,{subtype:"danger"},{default:l(()=>[s(" Vor der Datenübernahme unbedingt eine Sicherung erstellen."),Fe,s(" Die Datenübernahme kann nur durch Einspielen einer Sicherung rückgängig gemacht werden! ")]),_:1}),n("div",We,[n("div",Me,[n("div",xe,[o(b,{"fixed-width":"",icon:["fas","file-archive"]})])]),n("div",Te,[n("input",{id:"data-migration-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[12]||(e[12]=u=>i.updateSelectedDataMigrationFile(u))},null,32),n("label",Le,f(a.selectedDataMigrationFile?a.selectedDataMigrationFile.name:"Bitte eine Datei auswählen"),1)]),n("div",Ve,[n("button",{class:C(["btn",a.selectedDataMigrationFile?"btn-success clickable":"btn-outline-success"]),disabled:!a.selectedDataMigrationFile,type:"button",onClick:e[13]||(e[13]=u=>i.uploadDataMigrationFile())},[s(" Hochladen "),o(b,{"fixed-width":"",icon:["fas","upload"]})],10,ze)])]),o(_,null,{default:l(()=>[s("Zuordnung der Komponenten")]),_:1}),(p(!0),g(B,null,W(a.dataMigrationConfig,u=>(p(),g("div",{key:u.sectionName},[o(_,null,{default:l(()=>[s(f(u.sectionName),1)]),_:2},1024),(p(!0),g(B,null,W(u.sectionComponents,k=>(p(),S(O,{key:k.key,title:k.label,options:i.getMigrationOptions(k.validTypes),modelValue:a.dataMigrationMapping[k.key],"onUpdate:modelValue":L=>a.dataMigrationMapping[k.key]=L},q({_:2},[k.help?{name:"help",fn:l(()=>[s(f(k.help),1)]),key:"0"}:void 0]),1032,["title","options","modelValue","onUpdate:modelValue"]))),128))]))),128)),n("div",Ae,[n("div",Re,[o(y,{class:C(a.dataMigrationUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!a.dataMigrationUploadDone,onButtonClicked:e[14]||(e[14]=u=>i.dataMigration())},{default:l(()=>[s(" Datenübernahme starten "),o(b,{"fixed-width":"",icon:["fas","box-open"]})]),_:1},8,["class","disabled"])])])])]),_:1}),n("form",je,[o(w,{title:"Zurücksetzen",subtype:"danger",collapsible:!0,collapsed:!0},{footer:l(()=>[n("div",He,[n("div",Pe,[o(y,{class:"btn-danger clickable",onButtonClicked:e[15]||(e[15]=u=>i.factoryReset())},{default:l(()=>[o(b,{"fixed-width":"",icon:["fas","skull-crossbones"]}),s(" Zurücksetzen "),o(b,{"fixed-width":"",icon:["fas","skull-crossbones"]})]),_:1})])])]),default:l(()=>[o(r,{subtype:"danger"},{default:l(()=>[s(" Alle Einstellungen, angelegte Geräte/Komponenten, Ladepunkte und Fahrzeuge, etc, Tages-, Monats- und Jahresauswertungen sowie das Ladeprotokoll werden unwiederbringlich gelöscht. Auch die Vorkonfiguration im Auslieferungszustand wird gelöscht. Die openWB muss danach komplett neu eingerichtet werden. Die openWB wird hierfür automatisch neu gestartet. Bitte erstelle vor dem Zurücksetzen eine Sicherung! ")]),_:1})]),_:1})])])):F("",!0)])}const $e=D(ee,[["render",Ee],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/DataManagement.vue"]]);export{$e as default}; diff --git a/web/settings/assets/DebugConfig-cb4ae028.js b/web/settings/assets/DebugConfig-cbc48303.js similarity index 95% rename from web/settings/assets/DebugConfig-cb4ae028.js rename to web/settings/assets/DebugConfig-cbc48303.js index 4affebb933..20e3954cca 100644 --- a/web/settings/assets/DebugConfig-cb4ae028.js +++ b/web/settings/assets/DebugConfig-cbc48303.js @@ -1,2 +1,2 @@ -import{l as L,a3 as w,F as k}from"./vendor-fortawesome-cf9a975a.js";import{C as _}from"./index-bed1470e.js";import{_ as P,q as p,k as B,l as v,u as a,B as t,M as o,x as c,y as m}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";L.add(w);const C={name:"OpenwbDebugging",mixins:[_],components:{FontAwesomeIcon:k},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/debug_level"],mainLog:"-- noch nicht geladen --",internalChargepointLog:"-- noch nicht geladen --",mqttLog:"-- noch nicht geladen --",socLog:"-- noch nicht geladen --",updateLog:"-- noch nicht geladen --",remoteSupportLog:"--noch nicht geladen --",smartHomeLog:"--noch nicht geladen --"}},methods:{async getFilePromise(n,e=!1){return this.axios.get(location.protocol+"//"+location.host+n).then(i=>i.data).catch(i=>i.response?i.response.status==404&&e?"":`A 404 is expected if running node.js dev server! +import{l as L,a3 as w,F as k}from"./vendor-fortawesome-0685c9c0.js";import{C as _}from"./index-e599db2d.js";import{_ as P,q as p,k as B,l as v,u as a,B as t,M as o,x as c,y as m}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";L.add(w);const C={name:"OpenwbDebugging",mixins:[_],components:{FontAwesomeIcon:k},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/debug_level"],mainLog:"-- noch nicht geladen --",internalChargepointLog:"-- noch nicht geladen --",mqttLog:"-- noch nicht geladen --",socLog:"-- noch nicht geladen --",updateLog:"-- noch nicht geladen --",remoteSupportLog:"--noch nicht geladen --",smartHomeLog:"--noch nicht geladen --"}},methods:{async getFilePromise(n,e=!1){return this.axios.get(location.protocol+"//"+location.host+n).then(i=>i.data).catch(i=>i.response?i.response.status==404&&e?"":`A 404 is expected if running node.js dev server! `+i.response.status+" "+i.response.statusText+": "+i.response.request.responseURL:i.request?i.request:i.message)},loadMainLog(n){n.stopPropagation(),this.mainLog="wird aktualisiert...",this.getFilePromise("/openWB/ramdisk/main.log").then(e=>{this.mainLog=e}),this.getFilePromise("/openWB/ramdisk/main.log.1",!0).then(e=>{this.mainLog+=e})},loadInternalChargepointLog(n){n.stopPropagation(),this.internalChargepointLog="wird aktualisiert...",this.getFilePromise("/openWB/ramdisk/internal_chargepoint.log").then(e=>{this.internalChargepointLog=e}),this.getFilePromise("/openWB/ramdisk/internal_chargepoint.log.1",!0).then(e=>{this.internalChargepointLog+=e})},loadMqttLog(n){n.stopPropagation(),this.mqttLog="wird aktualisiert...",this.getFilePromise("/openWB/ramdisk/mqtt.log").then(e=>{this.mqttLog=e}),this.getFilePromise("/openWB/ramdisk/mqtt.log.1",!0).then(e=>{this.mqttLog+=e})},loadSocLog(n){n.stopPropagation(),this.socLog="wird aktualisiert...",this.getFilePromise("/openWB/ramdisk/soc.log").then(e=>{this.socLog=e}),this.getFilePromise("/openWB/ramdisk/soc.log.1",!0).then(e=>{this.socLog+=e})},loadUpdateLog(n){n.stopPropagation(),this.updateLog="wird aktualisiert...",this.getFilePromise("/openWB/data/log/update.log").then(e=>{this.updateLog=e}),this.getFilePromise("/openWB/data/log/update.log.1",!0).then(e=>{this.updateLog+=e})},loadRemoteSupportLog(n){n.stopPropagation(),this.remoteSupportLog="wird aktualisiert...",this.getFilePromise("/openWB/ramdisk/remote_support.log").then(e=>{this.remoteSupportLog=e}),this.getFilePromise("/openWB/ramdisk/remote_support.log.1",!0).then(e=>{this.remoteSupportLog+=e})},loadSmartHomeLog(n){n.stopPropagation(),this.smartHomeLog="wird aktualisiert...",this.getFilePromise("/openWB/ramdisk/smarthome.log").then(e=>{this.smartHomeLog=e}),this.getFilePromise("/openWB/ramdisk/smarthome.log.1").then(e=>{this.smartHomeLog+=e})}}},F={class:"debugging"},W={name:"debugConfigForm"};function S(n,e,i,x,r,d){const h=p("openwb-base-button-group-input"),b=p("openwb-base-alert"),l=p("openwb-base-card"),f=p("openwb-base-submit-buttons"),g=p("font-awesome-icon"),u=p("openwb-base-avatar");return B(),v("div",F,[a("form",W,[t(l,{title:"Protokollierung"},{default:o(()=>[t(h,{title:"Debug Level",buttons:[{buttonValue:30,text:"Warnungen und Fehler"},{buttonValue:20,text:"Info"},{buttonValue:10,text:"Details"}],"model-value":n.$store.state.mqtt["openWB/system/debug_level"],"onUpdate:modelValue":e[0]||(e[0]=s=>n.updateState("openWB/system/debug_level",s))},{help:o(()=>[c(' Wenn der Debug Level auf "Info" oder "Details" gesetzt wird, werden mehr Informationen in die Logdateien geschrieben. Im normalen Betrieb sollte immer "Warnungen und Fehler" gewählt werden, um die Schreibvorgänge auf der SD-Karte zu reduzieren. ')]),_:1},8,["model-value"]),t(b,{subtype:"warning"},{default:o(()=>[c(' Achtung! In den Einstellungen "Info" und "Details" können in den Logdateien sensible Daten wie Benutzernamen und Kennwörter enthalten sein. Diese sollten vor dem Veröffentlichen z.B. im Forum unkenntlich gemacht werden. Private IP-Adressen (z.B. 192.168.x.x) müssen nicht maskiert werden, da diese nicht über das Internet erreichbar sind. ')]),_:1})]),_:1}),t(f,{formName:"debugConfigForm",onSave:e[1]||(e[1]=s=>n.$emit("save")),onReset:e[2]||(e[2]=s=>n.$emit("reset")),onDefaults:e[3]||(e[3]=s=>n.$emit("defaults"))})]),t(l,{title:"Main-Log",class:"mt-3",collapsible:!0,collapsed:!0},{actions:o(()=>[t(u,{class:"bg-success clickable",onClick:e[4]||(e[4]=s=>d.loadMainLog(s))},{default:o(()=>[t(g,{"fixed-width":"",icon:["fas","file-download"]})]),_:1})]),default:o(()=>[a("pre",null,m(r.mainLog),1)]),_:1}),t(l,{title:"Log des internen Ladepunktes",class:"mt-3",collapsible:!0,collapsed:!0},{actions:o(()=>[t(u,{class:"bg-success clickable",onClick:e[5]||(e[5]=s=>d.loadInternalChargepointLog(s))},{default:o(()=>[t(g,{"fixed-width":"",icon:["fas","file-download"]})]),_:1})]),default:o(()=>[a("pre",null,m(r.internalChargepointLog),1)]),_:1}),t(l,{title:"MQTT-Log",class:"mt-3",collapsible:!0,collapsed:!0},{actions:o(()=>[t(u,{class:"bg-success clickable",onClick:e[6]||(e[6]=s=>d.loadMqttLog(s))},{default:o(()=>[t(g,{"fixed-width":"",icon:["fas","file-download"]})]),_:1})]),default:o(()=>[a("pre",null,m(r.mqttLog),1)]),_:1}),t(l,{title:"SoC-Log",class:"mt-3",collapsible:!0,collapsed:!0},{actions:o(()=>[t(u,{class:"bg-success clickable",onClick:e[7]||(e[7]=s=>d.loadSocLog(s))},{default:o(()=>[t(g,{"fixed-width":"",icon:["fas","file-download"]})]),_:1})]),default:o(()=>[a("pre",null,m(r.socLog),1)]),_:1}),t(l,{title:"Protokoll des letzten Updates",class:"mt-3",collapsible:!0,collapsed:!0},{actions:o(()=>[t(u,{class:"bg-success clickable",onClick:e[8]||(e[8]=s=>d.loadUpdateLog(s))},{default:o(()=>[t(g,{"fixed-width":"",icon:["fas","file-download"]})]),_:1})]),default:o(()=>[a("pre",null,m(r.updateLog),1)]),_:1}),t(l,{title:"Protokoll des Remote-Dienstes",class:"mt-3",collapsible:!0,collapsed:!0},{actions:o(()=>[t(u,{class:"bg-success clickable",onClick:e[9]||(e[9]=s=>d.loadRemoteSupportLog(s))},{default:o(()=>[t(g,{"fixed-width":"",icon:["fas","file-download"]})]),_:1})]),default:o(()=>[a("pre",null,m(r.remoteSupportLog),1)]),_:1}),t(l,{title:"Protokoll des SmartHome Dienstes",class:"mt-3",collapsible:!0,collapsed:!0},{actions:o(()=>[t(u,{class:"bg-success clickable",onClick:e[10]||(e[10]=s=>d.loadSmartHomeLog(s))},{default:o(()=>[t(g,{"fixed-width":"",icon:["fas","file-download"]})]),_:1})]),default:o(()=>[a("pre",null,m(r.smartHomeLog),1)]),_:1})])}const M=P(C,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/DebugConfig.vue"]]);export{M as default}; diff --git a/web/settings/assets/GeneralChargeConfig-ab52c68b.js b/web/settings/assets/GeneralChargeConfig-ef9019d1.js similarity index 91% rename from web/settings/assets/GeneralChargeConfig-ab52c68b.js rename to web/settings/assets/GeneralChargeConfig-ef9019d1.js index 7250fb9b52..db7303e985 100644 --- a/web/settings/assets/GeneralChargeConfig-ab52c68b.js +++ b/web/settings/assets/GeneralChargeConfig-ef9019d1.js @@ -1 +1 @@ -import{_ as b,C as T}from"./index-bed1470e.js";import{_ as $}from"./dynamic-import-helper-be004503.js";import{_ as h,q as a,k as s,l as p,B as n,M as o,x as r,y as _,u as c,a1 as E,z as k,a2 as V,I as P,A as W}from"./vendor-b03da118.js";import"./vendor-fortawesome-cf9a975a.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const q={name:"ElectricityTariffConfigFallback",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},A={class:"backup-cloud-fallback"};function O(e,t,l,y,v,d){const u=a("openwb-base-alert"),f=a("openwb-base-textarea");return s(),p("div",A,[n(u,{subtype:"warning"},{default:o(()=>[r(' Es wurde keine Konfigurationsseite für den Anbieter "'+_(l.electricityTariff.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(f,{title:"Konfiguration",subtype:"json","model-value":l.electricityTariff.configuration,"onUpdate:modelValue":t[0]||(t[0]=g=>d.updateConfiguration(g,"configuration"))},{help:o(()=>[r(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(u,{subtype:"info"},{default:o(()=>[c("pre",null,_(JSON.stringify(l.electricityTariff.configuration,void 0,2)),1)]),_:1})])}const F=h(q,[["render",O],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/OpenwbElectricityTariffConfigFallback.vue"]]),L={name:"OpenwbElectricityTariffProxy",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading electricity tariff cloud: ${this.electricityTariff.type}`),E({loader:()=>$(Object.assign({"./awattar/electricity_tariff.vue":()=>b(()=>import("./electricity_tariff-4397bc3d.js"),["assets/electricity_tariff-4397bc3d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./tibber/electricity_tariff.vue":()=>b(()=>import("./electricity_tariff-e0822aff.js"),["assets/electricity_tariff-e0822aff.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./voltego/electricity_tariff.vue":()=>b(()=>import("./electricity_tariff-da77f6bf.js"),["assets/electricity_tariff-da77f6bf.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"])}),`./${this.electricityTariff.type}/electricity_tariff.vue`),errorComponent:F})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function N(e,t,l,y,v,d){const u=a("openwb-base-heading");return s(),p(P,null,[n(u,null,{default:o(()=>[r(' Einstellungen für Modul "'+_(l.electricityTariff.name)+'" ',1)]),_:1}),(s(),k(V(d.myComponent),{electricityTariff:l.electricityTariff,"onUpdate:configuration":t[0]||(t[0]=f=>d.updateConfiguration(f))},null,40,["electricityTariff"]))],64)}const D=h(L,[["render",N],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/OpenwbElectricityTariffProxy.vue"]]),U={name:"OpenwbGeneralChargeConfig",mixins:[T],components:{OpenwbElectricityTariffProxy:D},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/retry_failed_phase_switches","openWB/general/chargemode_config/unbalanced_load","openWB/general/chargemode_config/unbalanced_load_limit","openWB/general/prices/bat","openWB/general/prices/grid","openWB/general/prices/pv","openWB/optional/et/provider","openWB/system/configurable/electricity_tariffs"]}},computed:{electricityTariffList(){return this.$store.state.mqtt["openWB/system/configurable/electricity_tariffs"]}},methods:{getElectricityTariffDefaultConfiguration(e){const t=this.electricityTariffList.find(l=>l.value==e);return Object.prototype.hasOwnProperty.call(t,"defaults")?{...t.defaults}:(console.warn("no default configuration found for electricity tariff type!",e),{})},updateSelectedElectricityTariff(e){this.updateState("openWB/optional/et/provider",e,"type"),this.updateState("openWB/optional/et/provider",this.getElectricityTariffDefaultConfiguration(e))},updateConfiguration(e,t){console.debug("updateConfiguration",e,t),this.updateState(e,t.value,t.object)}}},Z={class:"generalChargeConfig"},j={name:"generalChargeConfigForm"},I={key:0},R={key:1},x=c("br",null,null,-1),G=c("br",null,null,-1),J=c("hr",null,null,-1),K=c("br",null,null,-1),H={key:0},M={key:1},Q=c("br",null,null,-1),X={key:0};function Y(e,t,l,y,v,d){const u=a("openwb-base-alert"),f=a("openwb-base-button-group-input"),g=a("openwb-base-range-input"),w=a("openwb-base-heading"),m=a("openwb-base-number-input"),B=a("openwb-base-card"),S=a("openwb-base-select-input"),z=a("openwb-electricity-tariff-proxy"),C=a("openwb-base-submit-buttons");return s(),p("div",Z,[c("form",j,[n(B,{title:"Allgemein"},{default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),p("div",I,[n(u,{subtype:"info"},{default:o(()=>[r(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(s(),p("div",R,[n(f,{title:"Begrenzung der Schieflast",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"],"onUpdate:modelValue":t[0]||(t[0]=i=>e.updateState("openWB/general/chargemode_config/unbalanced_load",i))},{help:o(()=>[r(" Wenn diese Option aktiviert ist, werden nicht-dreiphasige Ladevorgänge so geregelt, dass am Netzanschlusspunkt (EVU-Zähler) die eingestellte Grenze für die Schieflast nicht überschritten wird. Hierfür muss der EVU-Zähler einzelne Phasenströme bereitstellen!"),x,r(' Weiterhin müssen bei den Ladepunkten sowie Fahrzeugen sämtliche Angaben zur Anzahl angeschlossener/unterstützter Phasen und der Phasenrotation hinterlegt werden, damit der Regelung bekannt ist, welcher Ladevorgang welche Phase am Netzanschluss beeinflusst. siehe "Konfiguration - Ladepunkte -> elektrischer Anschluss - Phase 1" und "Konfiguration - Fahrzeuge -> Fahrzeug-Profile" ')]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"]?(s(),k(g,{key:0,title:"Erlaubte Schieflast",min:10,max:32,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load_limit"],"onUpdate:modelValue":t[1]||(t[1]=i=>e.updateState("openWB/general/chargemode_config/unbalanced_load_limit",i))},{help:o(()=>[r(" Hiermit wird festgelegt, welche Schieflast am Netzanschlusspunkt erlaubt ist. Bei Überschreitung werden gezielt einzelne Ladevorgänge in der Leistung begrenzt. ")]),_:1},8,["model-value"])):W("",!0),n(f,{title:"Phasenumschaltung wiederholt anstoßen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/retry_failed_phase_switches"],"onUpdate:modelValue":t[2]||(t[2]=i=>e.updateState("openWB/general/chargemode_config/retry_failed_phase_switches",i))},{help:o(()=>[r(" Wenn diese Option aktiviert ist, werden bis zu drei Umschaltversuche vorgenommen, wenn die vorgegebene und genutzte Phasenzahl nicht übereinstimmen. Wird die Option deaktiviert, wird nur eine Umschaltung durchgeführt."),G,r(" Die gezählten Fehlversuche werden mit dem Abstecken zurückgesetzt. ")]),_:1},8,["model-value"]),J,n(w,null,{help:o(()=>[r(" Zur Berechnung der Ladekosten im Lade-Log werden stundenweise die Anteile der Stromquellen (Speicher, Netz, PV) berechnet und mit den hier angegebenen Preisen multipliziert."),K,r(" Ist die Abrechnung über das Ladeprotokoll, z.B. mit dem Arbeitgeber, vereinbart, ist bei allen drei Feldern der vereinbarte Preis einzutragen. ")]),default:o(()=>[r(" Berechnung der Ladekosten ")]),_:1}),n(m,{title:"Preis für Netzbezug",step:.001,precision:3,unit:"ct/kWh","model-value":e.$store.state.mqtt["openWB/general/prices/grid"]*1e5,"onUpdate:modelValue":t[3]||(t[3]=i=>e.updateState("openWB/general/prices/grid",parseFloat((i/1e5).toFixed(7))))},{help:o(()=>[r(" Ist ein Anbieter für variable Stromtarife konfiguriert, wird statt des hier angegebenen Netzpreises der dynamische Strompreis des Anbieters verwendet (stündliche Aktualisierung durch den Anbieter). ")]),_:1},8,["model-value"]),n(m,{title:"Preis für Speicherentladung",step:.001,precision:3,unit:"ct/kWh","model-value":e.$store.state.mqtt["openWB/general/prices/bat"]*1e5,"onUpdate:modelValue":t[4]||(t[4]=i=>e.updateState("openWB/general/prices/bat",parseFloat((i/1e5).toFixed(7))))},null,8,["model-value"]),n(m,{title:"Preis für PV-Strom",step:.001,precision:3,unit:"ct/kWh","model-value":e.$store.state.mqtt["openWB/general/prices/pv"]*1e5,"onUpdate:modelValue":t[5]||(t[5]=i=>e.updateState("openWB/general/prices/pv",parseFloat((i/1e5).toFixed(7))))},null,8,["model-value"])]))]),_:1}),n(B,{title:"Optional"},{default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),p("div",H,[n(u,{subtype:"info"},{default:o(()=>[r(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(s(),p("div",M,[n(w,null,{default:o(()=>[r(" Variable Stromtarife ")]),_:1}),n(u,{subtype:"info"},{default:o(()=>[r(" Bei Sofort- und Zeitladen wird nur geladen, wenn der Strompreis unter dem maximalen angegeben Strompreis liegt. Für Zielladen wird die Ladedauer ermittelt und dann zu den günstigsten Stunden geladen."),Q,r(" Wenn keine Preise abgefragt werden können, wird bei Sofort- und Zeitladen immer geladen und bei Zielladen zunächst mit PV-Überschuss und zum Erreichen des Zieltermins mit Netzstrom. ")]),_:1}),n(S,{class:"mb-2",title:"Anbieter",options:d.electricityTariffList,"model-value":e.$store.state.mqtt["openWB/optional/et/provider"]?e.$store.state.mqtt["openWB/optional/et/provider"].type:"","onUpdate:modelValue":t[6]||(t[6]=i=>d.updateSelectedElectricityTariff(i))},null,8,["options","model-value"]),e.$store.state.mqtt["openWB/optional/et/provider"]&&e.$store.state.mqtt["openWB/optional/et/provider"].type?(s(),p("div",X,[n(z,{electricityTariff:e.$store.state.mqtt["openWB/optional/et/provider"],"onUpdate:configuration":t[7]||(t[7]=i=>d.updateConfiguration("openWB/optional/et/provider",i))},null,8,["electricityTariff"])])):W("",!0)]))]),_:1}),n(C,{formName:"generalChargeConfigForm",onSave:t[8]||(t[8]=i=>e.$emit("save")),onReset:t[9]||(t[9]=i=>e.$emit("reset")),onDefaults:t[10]||(t[10]=i=>e.$emit("defaults"))})])])}const le=h(U,[["render",Y],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralChargeConfig.vue"]]);export{le as default}; +import{_ as b,C as T}from"./index-e599db2d.js";import{_ as $}from"./dynamic-import-helper-be004503.js";import{_ as h,q as a,k as s,l as p,B as n,M as o,x as r,y as _,u as c,a1 as E,z as k,a2 as V,I as P,A as W}from"./vendor-72da2ec6.js";import"./vendor-fortawesome-0685c9c0.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const q={name:"ElectricityTariffConfigFallback",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},A={class:"backup-cloud-fallback"};function O(e,t,l,y,v,d){const u=a("openwb-base-alert"),f=a("openwb-base-textarea");return s(),p("div",A,[n(u,{subtype:"warning"},{default:o(()=>[r(' Es wurde keine Konfigurationsseite für den Anbieter "'+_(l.electricityTariff.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(f,{title:"Konfiguration",subtype:"json","model-value":l.electricityTariff.configuration,"onUpdate:modelValue":t[0]||(t[0]=g=>d.updateConfiguration(g,"configuration"))},{help:o(()=>[r(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(u,{subtype:"info"},{default:o(()=>[c("pre",null,_(JSON.stringify(l.electricityTariff.configuration,void 0,2)),1)]),_:1})])}const F=h(q,[["render",O],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/OpenwbElectricityTariffConfigFallback.vue"]]),L={name:"OpenwbElectricityTariffProxy",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading electricity tariff cloud: ${this.electricityTariff.type}`),E({loader:()=>$(Object.assign({"./awattar/electricity_tariff.vue":()=>b(()=>import("./electricity_tariff-889c07b8.js"),["assets/electricity_tariff-889c07b8.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./tibber/electricity_tariff.vue":()=>b(()=>import("./electricity_tariff-1414badc.js"),["assets/electricity_tariff-1414badc.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./voltego/electricity_tariff.vue":()=>b(()=>import("./electricity_tariff-3cf75323.js"),["assets/electricity_tariff-3cf75323.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"])}),`./${this.electricityTariff.type}/electricity_tariff.vue`),errorComponent:F})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function N(e,t,l,y,v,d){const u=a("openwb-base-heading");return s(),p(P,null,[n(u,null,{default:o(()=>[r(' Einstellungen für Modul "'+_(l.electricityTariff.name)+'" ',1)]),_:1}),(s(),k(V(d.myComponent),{electricityTariff:l.electricityTariff,"onUpdate:configuration":t[0]||(t[0]=f=>d.updateConfiguration(f))},null,40,["electricityTariff"]))],64)}const D=h(L,[["render",N],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/OpenwbElectricityTariffProxy.vue"]]),U={name:"OpenwbGeneralChargeConfig",mixins:[T],components:{OpenwbElectricityTariffProxy:D},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/retry_failed_phase_switches","openWB/general/chargemode_config/unbalanced_load","openWB/general/chargemode_config/unbalanced_load_limit","openWB/general/prices/bat","openWB/general/prices/grid","openWB/general/prices/pv","openWB/optional/et/provider","openWB/system/configurable/electricity_tariffs"]}},computed:{electricityTariffList(){return this.$store.state.mqtt["openWB/system/configurable/electricity_tariffs"]}},methods:{getElectricityTariffDefaultConfiguration(e){const t=this.electricityTariffList.find(l=>l.value==e);return Object.prototype.hasOwnProperty.call(t,"defaults")?{...t.defaults}:(console.warn("no default configuration found for electricity tariff type!",e),{})},updateSelectedElectricityTariff(e){this.updateState("openWB/optional/et/provider",e,"type"),this.updateState("openWB/optional/et/provider",this.getElectricityTariffDefaultConfiguration(e))},updateConfiguration(e,t){console.debug("updateConfiguration",e,t),this.updateState(e,t.value,t.object)}}},Z={class:"generalChargeConfig"},j={name:"generalChargeConfigForm"},I={key:0},R={key:1},x=c("br",null,null,-1),G=c("br",null,null,-1),J=c("hr",null,null,-1),K=c("br",null,null,-1),H={key:0},M={key:1},Q=c("br",null,null,-1),X={key:0};function Y(e,t,l,y,v,d){const u=a("openwb-base-alert"),f=a("openwb-base-button-group-input"),g=a("openwb-base-range-input"),w=a("openwb-base-heading"),m=a("openwb-base-number-input"),B=a("openwb-base-card"),S=a("openwb-base-select-input"),z=a("openwb-electricity-tariff-proxy"),C=a("openwb-base-submit-buttons");return s(),p("div",Z,[c("form",j,[n(B,{title:"Allgemein"},{default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),p("div",I,[n(u,{subtype:"info"},{default:o(()=>[r(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(s(),p("div",R,[n(f,{title:"Begrenzung der Schieflast",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"],"onUpdate:modelValue":t[0]||(t[0]=i=>e.updateState("openWB/general/chargemode_config/unbalanced_load",i))},{help:o(()=>[r(" Wenn diese Option aktiviert ist, werden nicht-dreiphasige Ladevorgänge so geregelt, dass am Netzanschlusspunkt (EVU-Zähler) die eingestellte Grenze für die Schieflast nicht überschritten wird. Hierfür muss der EVU-Zähler einzelne Phasenströme bereitstellen!"),x,r(' Weiterhin müssen bei den Ladepunkten sowie Fahrzeugen sämtliche Angaben zur Anzahl angeschlossener/unterstützter Phasen und der Phasenrotation hinterlegt werden, damit der Regelung bekannt ist, welcher Ladevorgang welche Phase am Netzanschluss beeinflusst. siehe "Konfiguration - Ladepunkte -> elektrischer Anschluss - Phase 1" und "Konfiguration - Fahrzeuge -> Fahrzeug-Profile" ')]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"]?(s(),k(g,{key:0,title:"Erlaubte Schieflast",min:10,max:32,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load_limit"],"onUpdate:modelValue":t[1]||(t[1]=i=>e.updateState("openWB/general/chargemode_config/unbalanced_load_limit",i))},{help:o(()=>[r(" Hiermit wird festgelegt, welche Schieflast am Netzanschlusspunkt erlaubt ist. Bei Überschreitung werden gezielt einzelne Ladevorgänge in der Leistung begrenzt. ")]),_:1},8,["model-value"])):W("",!0),n(f,{title:"Phasenumschaltung wiederholt anstoßen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/retry_failed_phase_switches"],"onUpdate:modelValue":t[2]||(t[2]=i=>e.updateState("openWB/general/chargemode_config/retry_failed_phase_switches",i))},{help:o(()=>[r(" Wenn diese Option aktiviert ist, werden bis zu drei Umschaltversuche vorgenommen, wenn die vorgegebene und genutzte Phasenzahl nicht übereinstimmen. Wird die Option deaktiviert, wird nur eine Umschaltung durchgeführt."),G,r(" Die gezählten Fehlversuche werden mit dem Abstecken zurückgesetzt. ")]),_:1},8,["model-value"]),J,n(w,null,{help:o(()=>[r(" Zur Berechnung der Ladekosten im Lade-Log werden stundenweise die Anteile der Stromquellen (Speicher, Netz, PV) berechnet und mit den hier angegebenen Preisen multipliziert."),K,r(" Ist die Abrechnung über das Ladeprotokoll, z.B. mit dem Arbeitgeber, vereinbart, ist bei allen drei Feldern der vereinbarte Preis einzutragen. ")]),default:o(()=>[r(" Berechnung der Ladekosten ")]),_:1}),n(m,{title:"Preis für Netzbezug",step:.001,precision:3,unit:"ct/kWh","model-value":e.$store.state.mqtt["openWB/general/prices/grid"]*1e5,"onUpdate:modelValue":t[3]||(t[3]=i=>e.updateState("openWB/general/prices/grid",parseFloat((i/1e5).toFixed(7))))},{help:o(()=>[r(" Ist ein Anbieter für variable Stromtarife konfiguriert, wird statt des hier angegebenen Netzpreises der dynamische Strompreis des Anbieters verwendet (stündliche Aktualisierung durch den Anbieter). ")]),_:1},8,["model-value"]),n(m,{title:"Preis für Speicherentladung",step:.001,precision:3,unit:"ct/kWh","model-value":e.$store.state.mqtt["openWB/general/prices/bat"]*1e5,"onUpdate:modelValue":t[4]||(t[4]=i=>e.updateState("openWB/general/prices/bat",parseFloat((i/1e5).toFixed(7))))},null,8,["model-value"]),n(m,{title:"Preis für PV-Strom",step:.001,precision:3,unit:"ct/kWh","model-value":e.$store.state.mqtt["openWB/general/prices/pv"]*1e5,"onUpdate:modelValue":t[5]||(t[5]=i=>e.updateState("openWB/general/prices/pv",parseFloat((i/1e5).toFixed(7))))},null,8,["model-value"])]))]),_:1}),n(B,{title:"Optional"},{default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),p("div",H,[n(u,{subtype:"info"},{default:o(()=>[r(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(s(),p("div",M,[n(w,null,{default:o(()=>[r(" Variable Stromtarife ")]),_:1}),n(u,{subtype:"info"},{default:o(()=>[r(" Bei Sofort- und Zeitladen wird nur geladen, wenn der Strompreis unter dem maximalen angegeben Strompreis liegt. Für Zielladen wird die Ladedauer ermittelt und dann zu den günstigsten Stunden geladen."),Q,r(" Wenn keine Preise abgefragt werden können, wird bei Sofort- und Zeitladen immer geladen und bei Zielladen zunächst mit PV-Überschuss und zum Erreichen des Zieltermins mit Netzstrom. ")]),_:1}),n(S,{class:"mb-2",title:"Anbieter",options:d.electricityTariffList,"model-value":e.$store.state.mqtt["openWB/optional/et/provider"]?e.$store.state.mqtt["openWB/optional/et/provider"].type:"","onUpdate:modelValue":t[6]||(t[6]=i=>d.updateSelectedElectricityTariff(i))},null,8,["options","model-value"]),e.$store.state.mqtt["openWB/optional/et/provider"]&&e.$store.state.mqtt["openWB/optional/et/provider"].type?(s(),p("div",X,[n(z,{electricityTariff:e.$store.state.mqtt["openWB/optional/et/provider"],"onUpdate:configuration":t[7]||(t[7]=i=>d.updateConfiguration("openWB/optional/et/provider",i))},null,8,["electricityTariff"])])):W("",!0)]))]),_:1}),n(C,{formName:"generalChargeConfigForm",onSave:t[8]||(t[8]=i=>e.$emit("save")),onReset:t[9]||(t[9]=i=>e.$emit("reset")),onDefaults:t[10]||(t[10]=i=>e.$emit("defaults"))})])])}const le=h(U,[["render",Y],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralChargeConfig.vue"]]);export{le as default}; diff --git a/web/settings/assets/GeneralConfig-698ad319.js b/web/settings/assets/GeneralConfig-e93f78e1.js similarity index 96% rename from web/settings/assets/GeneralConfig-698ad319.js rename to web/settings/assets/GeneralConfig-e93f78e1.js index 39fb894dde..eac5766d4b 100644 --- a/web/settings/assets/GeneralConfig-698ad319.js +++ b/web/settings/assets/GeneralConfig-e93f78e1.js @@ -1 +1 @@ -import{C as S}from"./index-bed1470e.js";import{_ as T}from"./dynamic-import-helper-be004503.js";import{l as z,W as $,X as C,F as V}from"./vendor-fortawesome-cf9a975a.js";import{_ as w,q as u,k as s,l as p,z as f,M as r,x as o,y as c,B as t,u as l,a1 as D,a2 as q,I as L,A as _}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const E={name:"WebThemeFallback",emits:["update:configuration"],props:{webTheme:{type:Object,required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},O={class:"web-theme-fallback"},x={key:1};function N(e,n,i,W,B,b){const d=u("openwb-base-alert"),m=u("openwb-base-textarea");return s(),p("div",O,[Object.keys(i.webTheme.configuration).length==0?(s(),f(d,{key:0,subtype:"info"},{default:r(()=>[o(' Das Web Theme "'+c(i.webTheme.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(s(),p("div",x,[t(d,{subtype:"warning"},{default:r(()=>[o(' Es wurde keine Konfigurationsseite für das Web Theme "'+c(i.webTheme.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),t(m,{title:"Theme Konfiguration",subtype:"json","model-value":i.webTheme.configuration,"onUpdate:modelValue":n[0]||(n[0]=g=>b.updateConfiguration(g,"configuration"))},{help:r(()=>[o(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),t(d,{subtype:"info"},{default:r(()=>[l("pre",null,c(JSON.stringify(i.webTheme.configuration,void 0,2)),1)]),_:1})]))])}const F=w(E,[["render",N],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/OpenwbWebThemeFallback.vue"]]);z.add($,C);const P={name:"OpenwbWebThemeProxy",emits:["update:configuration"],props:{webTheme:{type:Object,required:!0}},components:{FontAwesomeIcon:V},computed:{myComponent(){return console.debug(`loading web theme: ${this.webTheme.name}`),D({loader:()=>T(Object.assign({}),`./${this.webTheme.type}/webTheme.vue`),errorComponent:F})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function R(e,n,i,W,B,b){const d=u("font-awesome-icon"),m=u("openwb-base-alert"),g=u("openwb-base-heading");return s(),p(L,null,[i.webTheme.official?(s(),f(m,{key:0,subtype:"success"},{default:r(()=>[t(d,{"fixed-width":"",icon:["fas","certificate"]}),o(' Das ausgewählte Web Theme "'+c(i.webTheme.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(s(),f(m,{key:1,subtype:"info"},{default:r(()=>[t(d,{"fixed-width":"",icon:["fas","people-group"]}),o(" Das ausgewählte Theme wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ")]),_:1})),t(g,null,{default:r(()=>[o(' Einstellungen für Web Theme "'+c(i.webTheme.name)+'" ',1)]),_:1}),(s(),f(q(b.myComponent),{webTheme:i.webTheme,"onUpdate:configuration":n[0]||(n[0]=h=>b.updateConfiguration(h))},null,40,["webTheme"]))],64)}const A=w(P,[["render",R],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/OpenwbWebThemeProxy.vue"]]),U={name:"OpenwbGeneralConfig",mixins:[S],components:{OpenwbWebThemeProxy:A},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/control_interval","openWB/general/grid_protection_configured","openWB/general/external_buttons_hw","openWB/general/modbus_control","openWB/general/notifications/selected","openWB/general/notifications/configuration","openWB/general/notifications/start_charging","openWB/general/notifications/stop_charging","openWB/general/notifications/plug","openWB/general/notifications/smart_home","openWB/general/price_kwh","openWB/general/range_unit","openWB/general/web_theme","openWB/system/configurable/web_themes"]}},computed:{webThemeList:{get(){return this.$store.state.mqtt["openWB/system/configurable/web_themes"]}},webThemeGroupList:{get(){let e=[{label:"openWB",options:[]},{label:"Community",options:[]}];return this.webThemeList.forEach(n=>{n.official===!0?e[0].options.push(n):e[1].options.push(n)}),e}}},methods:{getWebThemeDefaults(e){const n=this.webThemeList.find(i=>i.value==e);return Object.prototype.hasOwnProperty.call(n,"defaults")?{...JSON.parse(JSON.stringify(n.defaults))}:(console.warn("no default configuration found for web theme type!",e),{})},updateSelectedWebTheme(e){this.updateState("openWB/general/web_theme",this.getWebThemeDefaults(e))},updateConfiguration(e,n){console.debug("updateConfiguration",e,n),this.updateState(e,n.value,n.object)}}},M={class:"generalConfig"},G={name:"generalConfigForm"},j=l("br",null,null,-1),I=l("br",null,null,-1),H=l("br",null,null,-1),J=l("a",{href:"https://openwb.de/main/?page_id=1025",target:"_blank",rel:"noopener noreferrer"}," Homepage ",-1),K=l("a",{href:"https://openwb.de/main/wp-content/uploads/2023/10/ModbusTCP-openWB-series2-Pro-1.pdf",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),Z={key:1},X={key:0},Q={key:1},Y=l("br",null,null,-1),ee=l("span",{class:"text-danger"},' Nicht nur die Regelung der PV geführten Ladung, sondern auch die Ladestromänderung, beispielsweise “Stop“ etc., werden dann nur noch in diesem Intervall ausgeführt. Die Regelung wird insgesamt träger. Solange es keinen triftigen Grund gibt, sollte "Normal" gewählt werden. ',-1),ne=l("br",null,null,-1),te=l("span",{class:"text-danger"}," Die Option ist nur aktiv, wenn der EVU-Zähler die Frequenz übermittelt. ",-1),oe={key:0},re={key:1},ae={key:0},se=l("hr",null,null,-1);function ie(e,n,i,W,B,b){const d=u("openwb-base-alert"),m=u("openwb-base-button-group-input"),g=u("openwb-base-card"),h=u("openwb-base-heading"),v=u("openwb-base-select-input"),y=u("openwb-web-theme-proxy"),k=u("openwb-base-submit-buttons");return s(),p("div",M,[l("form",G,[t(g,{title:"Steuerungsmodus"},{default:r(()=>[t(d,{subtype:"info"},{default:r(()=>[o(' Wird für den Steuerungsmodus "primary" gewählt, übernimmt diese openWB die alleinige Regelung und steuert ggf. vorhandene weitere openWB (z.B. externe openWB im Steuermodus secondary, openWB Pro, Satellit u.a.) fern. Sie werden in den Ladepunkt-Einstellungen der primary-openWB hinzugefügt. '),j,I,o(' Wird für den Steuerungsmodus "secondary" gewählt, übernimmt diese openWB keine Regelung und muss von einer anderen primary openWB ferngesteuert werden. Wichtig ist, dass in der secondary-openWB eine "interne openWB" mit der korrekten Bauart (= openWB-Hardwarevariante z.B. "Custom, Standard, Standard+, Duo, Buchse") konfiguriert ist. Bei einer Duo sind zwei "interne openWB" zu konfigurieren. Im "secondary"-Modus bleiben alle ausgeblendeten Einstellungen unbeachtet.'),H,o(" Eine bebilderte Anleitung zur Konfiguration der Ladepunkte findest Du auf der "),J,o(". ")]),_:1}),t(m,{title:"Steuerungsmodus",buttons:[{buttonValue:!1,text:"primary",class:"btn-outline-danger"},{buttonValue:!0,text:"secondary",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/extern"],"onUpdate:modelValue":n[0]||(n[0]=a=>e.updateState("openWB/general/extern",a))},null,8,["model-value"]),e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),f(m,{key:0,title:"Steuerung über Modbus als secondary",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/modbus_control"],"onUpdate:modelValue":n[1]||(n[1]=a=>e.updateState("openWB/general/modbus_control",a))},{help:r(()=>[o(" Im secondary-Modus kann die openWB über die Modbus-Schnittstelle gesteuert werden. Die Register sind "),K,o(" dokumentiert. Bei aktivierter Modbus-Schnittstelle darf die openWB nicht von einer primary-openWB gesteuert werden. ")]),_:1},8,["model-value"])):_("",!0),e.$store.state.mqtt["openWB/general/extern"]===!0&&e.$store.state.mqtt["openWB/general/modbus_control"]!==!0?(s(),p("div",Z,[t(d,{subtype:"info"},{default:r(()=>[o(' Wenn die Steuerung über Modbus auf "Aus" geändert wird, muss danach ein Neustart durchgeführt werden! ')]),_:1})])):_("",!0)]),_:1}),t(g,{title:"Hardware"},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),p("div",X,[t(d,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(s(),p("div",Q,[t(m,{title:"Geschwindigkeit Regelintervall",buttons:[{buttonValue:10,text:"Normal",class:"btn-outline-success"},{buttonValue:20,text:"Langsam",class:"btn-outline-warning"},{buttonValue:60,text:"Sehr Langsam",class:"btn-outline-danger"}],"model-value":e.$store.state.mqtt["openWB/general/control_interval"],"onUpdate:modelValue":n[2]||(n[2]=a=>e.updateState("openWB/general/control_interval",a))},{help:r(()=>[o(' Sollten Probleme oder Fehlermeldungen auftauchen, stelle bitte zunächst das Regelintervall auf "Normal". Werden Module genutzt, welche z.B. eine Online-API zur Abfrage nutzen (höhere Latenzzeiten) oder möchte man weniger Regeleingriffe, so kann man das Regelintervall auf "Langsam" (20 Sekunden) herabsetzen. Die Einstellung „Sehr Langsam“ führt zu einer Regelzeit von 60 Sekunden.'),Y,ee]),_:1},8,["model-value"]),t(m,{title:"Netzschutz",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/grid_protection_configured"],"onUpdate:modelValue":n[3]||(n[3]=a=>e.updateState("openWB/general/grid_protection_configured",a))},{help:r(()=>[o(' Diese Option ist standardmäßig aktiviert und sollte so belassen werden. Bei Unterschreitung einer kritischen Frequenz des Stromnetzes wird die Ladung nach einer zufälligen Zeit zwischen 1 und 90 Sekunden pausiert. Der Lademodus wechselt auf "Stop". Sobald die Frequenz wieder in einem normalen Bereich ist wird automatisch der zuletzt gewählte Lademodus wieder aktiviert. Ebenso wird die Ladung bei Überschreiten von 51,8 Hz unterbrochen. Dies ist dann der Fall, wenn der Energieversorger Wartungsarbeiten am (Teil-)Netz durchführt und auf einen vorübergehenden Generator-Betrieb umschaltet. Die Erhöhung der Frequenz wird durchgeführt, um die PV Anlagen abzuschalten.'),ne,te]),_:1},8,["model-value"])]))]),_:1}),t(g,{title:"Darstellung"},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),p("div",oe,[t(d,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(s(),p("div",re,[t(h,{class:"mt-0"},{default:r(()=>[o(" Hauptseite ")]),_:1}),e.$store.state.mqtt["openWB/general/web_theme"]!==void 0?(s(),p("div",ae,[t(v,{class:"mb-2",title:"Theme",groups:b.webThemeGroupList,"model-value":e.$store.state.mqtt["openWB/general/web_theme"].type,"onUpdate:modelValue":n[4]||(n[4]=a=>b.updateSelectedWebTheme(a))},null,8,["groups","model-value"]),e.$store.state.mqtt["openWB/general/web_theme"].type?(s(),f(y,{key:0,webTheme:e.$store.state.mqtt["openWB/general/web_theme"],"onUpdate:configuration":n[5]||(n[5]=a=>b.updateConfiguration("openWB/general/web_theme",a))},null,8,["webTheme"])):_("",!0)])):_("",!0),se,t(h,null,{default:r(()=>[o(" Lade-Log ")]),_:1}),t(m,{title:"Einheit für Entfernungen","model-value":e.$store.state.mqtt["openWB/general/range_unit"],"onUpdate:modelValue":n[6]||(n[6]=a=>e.updateState("openWB/general/range_unit",a)),buttons:[{buttonValue:"km",text:"Kilometer"},{buttonValue:"mi",text:"Meilen"}]},null,8,["model-value"])]))]),_:1}),t(k,{formName:"generalConfigForm",onSave:n[7]||(n[7]=a=>e.$emit("save")),onReset:n[8]||(n[8]=a=>e.$emit("reset")),onDefaults:n[9]||(n[9]=a=>e.$emit("defaults"))})])])}const ce=w(U,[["render",ie],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralConfig.vue"]]);export{ce as default}; +import{C as S}from"./index-e599db2d.js";import{_ as T}from"./dynamic-import-helper-be004503.js";import{l as z,W as $,X as C,F as V}from"./vendor-fortawesome-0685c9c0.js";import{_ as w,q as u,k as s,l as p,z as f,M as r,x as o,y as c,B as t,u as l,a1 as D,a2 as q,I as L,A as _}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const E={name:"WebThemeFallback",emits:["update:configuration"],props:{webTheme:{type:Object,required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},O={class:"web-theme-fallback"},x={key:1};function N(e,n,i,W,B,b){const d=u("openwb-base-alert"),m=u("openwb-base-textarea");return s(),p("div",O,[Object.keys(i.webTheme.configuration).length==0?(s(),f(d,{key:0,subtype:"info"},{default:r(()=>[o(' Das Web Theme "'+c(i.webTheme.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(s(),p("div",x,[t(d,{subtype:"warning"},{default:r(()=>[o(' Es wurde keine Konfigurationsseite für das Web Theme "'+c(i.webTheme.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),t(m,{title:"Theme Konfiguration",subtype:"json","model-value":i.webTheme.configuration,"onUpdate:modelValue":n[0]||(n[0]=g=>b.updateConfiguration(g,"configuration"))},{help:r(()=>[o(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),t(d,{subtype:"info"},{default:r(()=>[l("pre",null,c(JSON.stringify(i.webTheme.configuration,void 0,2)),1)]),_:1})]))])}const F=w(E,[["render",N],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/OpenwbWebThemeFallback.vue"]]);z.add($,C);const P={name:"OpenwbWebThemeProxy",emits:["update:configuration"],props:{webTheme:{type:Object,required:!0}},components:{FontAwesomeIcon:V},computed:{myComponent(){return console.debug(`loading web theme: ${this.webTheme.name}`),D({loader:()=>T(Object.assign({}),`./${this.webTheme.type}/webTheme.vue`),errorComponent:F})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function R(e,n,i,W,B,b){const d=u("font-awesome-icon"),m=u("openwb-base-alert"),g=u("openwb-base-heading");return s(),p(L,null,[i.webTheme.official?(s(),f(m,{key:0,subtype:"success"},{default:r(()=>[t(d,{"fixed-width":"",icon:["fas","certificate"]}),o(' Das ausgewählte Web Theme "'+c(i.webTheme.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(s(),f(m,{key:1,subtype:"info"},{default:r(()=>[t(d,{"fixed-width":"",icon:["fas","people-group"]}),o(" Das ausgewählte Theme wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ")]),_:1})),t(g,null,{default:r(()=>[o(' Einstellungen für Web Theme "'+c(i.webTheme.name)+'" ',1)]),_:1}),(s(),f(q(b.myComponent),{webTheme:i.webTheme,"onUpdate:configuration":n[0]||(n[0]=h=>b.updateConfiguration(h))},null,40,["webTheme"]))],64)}const A=w(P,[["render",R],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/OpenwbWebThemeProxy.vue"]]),U={name:"OpenwbGeneralConfig",mixins:[S],components:{OpenwbWebThemeProxy:A},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/control_interval","openWB/general/grid_protection_configured","openWB/general/external_buttons_hw","openWB/general/modbus_control","openWB/general/notifications/selected","openWB/general/notifications/configuration","openWB/general/notifications/start_charging","openWB/general/notifications/stop_charging","openWB/general/notifications/plug","openWB/general/notifications/smart_home","openWB/general/price_kwh","openWB/general/range_unit","openWB/general/web_theme","openWB/system/configurable/web_themes"]}},computed:{webThemeList:{get(){return this.$store.state.mqtt["openWB/system/configurable/web_themes"]}},webThemeGroupList:{get(){let e=[{label:"openWB",options:[]},{label:"Community",options:[]}];return this.webThemeList.forEach(n=>{n.official===!0?e[0].options.push(n):e[1].options.push(n)}),e}}},methods:{getWebThemeDefaults(e){const n=this.webThemeList.find(i=>i.value==e);return Object.prototype.hasOwnProperty.call(n,"defaults")?{...JSON.parse(JSON.stringify(n.defaults))}:(console.warn("no default configuration found for web theme type!",e),{})},updateSelectedWebTheme(e){this.updateState("openWB/general/web_theme",this.getWebThemeDefaults(e))},updateConfiguration(e,n){console.debug("updateConfiguration",e,n),this.updateState(e,n.value,n.object)}}},M={class:"generalConfig"},G={name:"generalConfigForm"},j=l("br",null,null,-1),I=l("br",null,null,-1),H=l("br",null,null,-1),J=l("a",{href:"https://openwb.de/main/?page_id=1025",target:"_blank",rel:"noopener noreferrer"}," Homepage ",-1),K=l("a",{href:"https://openwb.de/main/wp-content/uploads/2023/10/ModbusTCP-openWB-series2-Pro-1.pdf",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),Z={key:1},X={key:0},Q={key:1},Y=l("br",null,null,-1),ee=l("span",{class:"text-danger"},' Nicht nur die Regelung der PV geführten Ladung, sondern auch die Ladestromänderung, beispielsweise “Stop“ etc., werden dann nur noch in diesem Intervall ausgeführt. Die Regelung wird insgesamt träger. Solange es keinen triftigen Grund gibt, sollte "Normal" gewählt werden. ',-1),ne=l("br",null,null,-1),te=l("span",{class:"text-danger"}," Die Option ist nur aktiv, wenn der EVU-Zähler die Frequenz übermittelt. ",-1),oe={key:0},re={key:1},ae={key:0},se=l("hr",null,null,-1);function ie(e,n,i,W,B,b){const d=u("openwb-base-alert"),m=u("openwb-base-button-group-input"),g=u("openwb-base-card"),h=u("openwb-base-heading"),v=u("openwb-base-select-input"),y=u("openwb-web-theme-proxy"),k=u("openwb-base-submit-buttons");return s(),p("div",M,[l("form",G,[t(g,{title:"Steuerungsmodus"},{default:r(()=>[t(d,{subtype:"info"},{default:r(()=>[o(' Wird für den Steuerungsmodus "primary" gewählt, übernimmt diese openWB die alleinige Regelung und steuert ggf. vorhandene weitere openWB (z.B. externe openWB im Steuermodus secondary, openWB Pro, Satellit u.a.) fern. Sie werden in den Ladepunkt-Einstellungen der primary-openWB hinzugefügt. '),j,I,o(' Wird für den Steuerungsmodus "secondary" gewählt, übernimmt diese openWB keine Regelung und muss von einer anderen primary openWB ferngesteuert werden. Wichtig ist, dass in der secondary-openWB eine "interne openWB" mit der korrekten Bauart (= openWB-Hardwarevariante z.B. "Custom, Standard, Standard+, Duo, Buchse") konfiguriert ist. Bei einer Duo sind zwei "interne openWB" zu konfigurieren. Im "secondary"-Modus bleiben alle ausgeblendeten Einstellungen unbeachtet.'),H,o(" Eine bebilderte Anleitung zur Konfiguration der Ladepunkte findest Du auf der "),J,o(". ")]),_:1}),t(m,{title:"Steuerungsmodus",buttons:[{buttonValue:!1,text:"primary",class:"btn-outline-danger"},{buttonValue:!0,text:"secondary",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/extern"],"onUpdate:modelValue":n[0]||(n[0]=a=>e.updateState("openWB/general/extern",a))},null,8,["model-value"]),e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),f(m,{key:0,title:"Steuerung über Modbus als secondary",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/modbus_control"],"onUpdate:modelValue":n[1]||(n[1]=a=>e.updateState("openWB/general/modbus_control",a))},{help:r(()=>[o(" Im secondary-Modus kann die openWB über die Modbus-Schnittstelle gesteuert werden. Die Register sind "),K,o(" dokumentiert. Bei aktivierter Modbus-Schnittstelle darf die openWB nicht von einer primary-openWB gesteuert werden. ")]),_:1},8,["model-value"])):_("",!0),e.$store.state.mqtt["openWB/general/extern"]===!0&&e.$store.state.mqtt["openWB/general/modbus_control"]!==!0?(s(),p("div",Z,[t(d,{subtype:"info"},{default:r(()=>[o(' Wenn die Steuerung über Modbus auf "Aus" geändert wird, muss danach ein Neustart durchgeführt werden! ')]),_:1})])):_("",!0)]),_:1}),t(g,{title:"Hardware"},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),p("div",X,[t(d,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(s(),p("div",Q,[t(m,{title:"Geschwindigkeit Regelintervall",buttons:[{buttonValue:10,text:"Normal",class:"btn-outline-success"},{buttonValue:20,text:"Langsam",class:"btn-outline-warning"},{buttonValue:60,text:"Sehr Langsam",class:"btn-outline-danger"}],"model-value":e.$store.state.mqtt["openWB/general/control_interval"],"onUpdate:modelValue":n[2]||(n[2]=a=>e.updateState("openWB/general/control_interval",a))},{help:r(()=>[o(' Sollten Probleme oder Fehlermeldungen auftauchen, stelle bitte zunächst das Regelintervall auf "Normal". Werden Module genutzt, welche z.B. eine Online-API zur Abfrage nutzen (höhere Latenzzeiten) oder möchte man weniger Regeleingriffe, so kann man das Regelintervall auf "Langsam" (20 Sekunden) herabsetzen. Die Einstellung „Sehr Langsam“ führt zu einer Regelzeit von 60 Sekunden.'),Y,ee]),_:1},8,["model-value"]),t(m,{title:"Netzschutz",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/grid_protection_configured"],"onUpdate:modelValue":n[3]||(n[3]=a=>e.updateState("openWB/general/grid_protection_configured",a))},{help:r(()=>[o(' Diese Option ist standardmäßig aktiviert und sollte so belassen werden. Bei Unterschreitung einer kritischen Frequenz des Stromnetzes wird die Ladung nach einer zufälligen Zeit zwischen 1 und 90 Sekunden pausiert. Der Lademodus wechselt auf "Stop". Sobald die Frequenz wieder in einem normalen Bereich ist wird automatisch der zuletzt gewählte Lademodus wieder aktiviert. Ebenso wird die Ladung bei Überschreiten von 51,8 Hz unterbrochen. Dies ist dann der Fall, wenn der Energieversorger Wartungsarbeiten am (Teil-)Netz durchführt und auf einen vorübergehenden Generator-Betrieb umschaltet. Die Erhöhung der Frequenz wird durchgeführt, um die PV Anlagen abzuschalten.'),ne,te]),_:1},8,["model-value"])]))]),_:1}),t(g,{title:"Darstellung"},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),p("div",oe,[t(d,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(s(),p("div",re,[t(h,{class:"mt-0"},{default:r(()=>[o(" Hauptseite ")]),_:1}),e.$store.state.mqtt["openWB/general/web_theme"]!==void 0?(s(),p("div",ae,[t(v,{class:"mb-2",title:"Theme",groups:b.webThemeGroupList,"model-value":e.$store.state.mqtt["openWB/general/web_theme"].type,"onUpdate:modelValue":n[4]||(n[4]=a=>b.updateSelectedWebTheme(a))},null,8,["groups","model-value"]),e.$store.state.mqtt["openWB/general/web_theme"].type?(s(),f(y,{key:0,webTheme:e.$store.state.mqtt["openWB/general/web_theme"],"onUpdate:configuration":n[5]||(n[5]=a=>b.updateConfiguration("openWB/general/web_theme",a))},null,8,["webTheme"])):_("",!0)])):_("",!0),se,t(h,null,{default:r(()=>[o(" Lade-Log ")]),_:1}),t(m,{title:"Einheit für Entfernungen","model-value":e.$store.state.mqtt["openWB/general/range_unit"],"onUpdate:modelValue":n[6]||(n[6]=a=>e.updateState("openWB/general/range_unit",a)),buttons:[{buttonValue:"km",text:"Kilometer"},{buttonValue:"mi",text:"Meilen"}]},null,8,["model-value"])]))]),_:1}),t(k,{formName:"generalConfigForm",onSave:n[7]||(n[7]=a=>e.$emit("save")),onReset:n[8]||(n[8]=a=>e.$emit("reset")),onDefaults:n[9]||(n[9]=a=>e.$emit("defaults"))})])])}const ce=w(U,[["render",ie],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralConfig.vue"]]);export{ce as default}; diff --git a/web/settings/assets/HardwareInstallation-1809f433.js b/web/settings/assets/HardwareInstallation-1809f433.js new file mode 100644 index 0000000000..ea31432e34 --- /dev/null +++ b/web/settings/assets/HardwareInstallation-1809f433.js @@ -0,0 +1 @@ +import{l as N,d as U,t as G,Y as F,Z as H,P as J,O as Z,N as Y,F as Q}from"./vendor-fortawesome-0685c9c0.js";import{_ as e,C as X}from"./index-e599db2d.js";import{_ as M}from"./dynamic-import-helper-be004503.js";import{_ as y,q as p,k as d,l as c,z as E,M as o,y as T,x as v,B as n,u as m,a1 as W,a2 as $,I as O,J as f,p as h,A as w,R as ee,S as _e}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const te={name:"DeviceFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},deviceType:String,componentId:{default:void 0},componentType:String},methods:{updateConfiguration(_,i=void 0){this.$emit("update:configuration",{value:_,object:i})}}},oe={class:"device-fallback"},ie={key:0},re={key:1},ne={key:1},ue={key:0},de={key:1};function ve(_,i,u,P,s,r){const I=p("openwb-base-alert"),L=p("openwb-base-textarea");return d(),c("div",oe,[Object.keys(u.configuration).length==0?(d(),E(I,{key:0,subtype:"info"},{default:o(()=>[u.componentType?(d(),c("span",ie,' Der Komponenten-Typ "'+T(u.componentType)+'" ',1)):(d(),c("span",re,'Der Gerät-Typ "'+T(u.deviceType)+'"',1)),v(" bietet keine Einstellungen. ")]),_:1})):(d(),c("div",ne,[n(I,{subtype:"warning"},{default:o(()=>[v(" Es wurde keine Konfigurationsseite für den "),u.componentType?(d(),c("span",ue,' Komponenten-Typ "'+T(u.componentType)+'" ',1)):(d(),c("span",de,'Geräte-Typ "'+T(u.deviceType)+'"',1)),v(" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ")]),_:1}),n(L,{title:"Konfiguration",subtype:"json","model-value":u.configuration,"onUpdate:modelValue":i[0]||(i[0]=A=>r.updateConfiguration(A,"configuration"))},{help:o(()=>[v(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(I,{subtype:"info"},{default:o(()=>[m("pre",null,T(JSON.stringify(u.configuration,void 0,2)),1)]),_:1})]))])}const S=y(te,[["render",ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbDeviceConfigFallback.vue"]]),ae={name:"OpenwbConfigProxy",emits:["update:configuration"],props:{deviceId:{required:!0},deviceType:{type:String,required:!0},componentId:{default:void 0},componentType:{type:String,default:void 0},configuration:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading component: ${this.deviceType} / ${this.componentType}`),this.componentType!==void 0?W({loader:()=>M(Object.assign({"./alpha_ess/bat.vue":()=>e(()=>import("./bat-61ae3b44.js"),["assets/bat-61ae3b44.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./alpha_ess/counter.vue":()=>e(()=>import("./counter-f5aa5536.js"),["assets/counter-f5aa5536.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./alpha_ess/device.vue":()=>e(()=>import("./device-9bf0f664.js"),["assets/device-9bf0f664.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./alpha_ess/inverter.vue":()=>e(()=>import("./inverter-7427efd6.js"),["assets/inverter-7427efd6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./batterx/bat.vue":()=>e(()=>import("./bat-f5c5005f.js"),["assets/bat-f5c5005f.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./batterx/counter.vue":()=>e(()=>import("./counter-c9de23b7.js"),["assets/counter-c9de23b7.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./batterx/device.vue":()=>e(()=>import("./device-7554d3ae.js"),["assets/device-7554d3ae.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./batterx/external_inverter.vue":()=>e(()=>import("./external_inverter-7839d657.js"),["assets/external_inverter-7839d657.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./batterx/inverter.vue":()=>e(()=>import("./inverter-c1925bfa.js"),["assets/inverter-c1925bfa.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./byd/bat.vue":()=>e(()=>import("./bat-6c8a8668.js"),["assets/bat-6c8a8668.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./byd/device.vue":()=>e(()=>import("./device-303998e6.js"),["assets/device-303998e6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./carlo_gavazzi/counter.vue":()=>e(()=>import("./counter-d7bf0d90.js"),["assets/counter-d7bf0d90.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./carlo_gavazzi/device.vue":()=>e(()=>import("./device-18e5e6a0.js"),["assets/device-18e5e6a0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./deye/bat.vue":()=>e(()=>import("./bat-33cba17a.js"),["assets/bat-33cba17a.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./deye/counter.vue":()=>e(()=>import("./counter-ffc70f4e.js"),["assets/counter-ffc70f4e.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./deye/device.vue":()=>e(()=>import("./device-c79bc1c0.js"),["assets/device-c79bc1c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./deye/inverter.vue":()=>e(()=>import("./inverter-2d337983.js"),["assets/inverter-2d337983.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./discovergy/counter.vue":()=>e(()=>import("./counter-3adcde7c.js"),["assets/counter-3adcde7c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./discovergy/device.vue":()=>e(()=>import("./device-c3561f59.js"),["assets/device-c3561f59.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./discovergy/inverter.vue":()=>e(()=>import("./inverter-bad1c2bc.js"),["assets/inverter-bad1c2bc.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./e3dc/bat.vue":()=>e(()=>import("./bat-7ab1c5e7.js"),["assets/bat-7ab1c5e7.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./e3dc/counter.vue":()=>e(()=>import("./counter-c9f07f90.js"),["assets/counter-c9f07f90.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./e3dc/device.vue":()=>e(()=>import("./device-938e7996.js"),["assets/device-938e7996.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./e3dc/external_inverter.vue":()=>e(()=>import("./external_inverter-1d50d371.js"),["assets/external_inverter-1d50d371.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./e3dc/inverter.vue":()=>e(()=>import("./inverter-c8396ce9.js"),["assets/inverter-c8396ce9.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./enphase/counter.vue":()=>e(()=>import("./counter-125d4517.js"),["assets/counter-125d4517.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./enphase/device.vue":()=>e(()=>import("./device-330cc021.js"),["assets/device-330cc021.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./enphase/inverter.vue":()=>e(()=>import("./inverter-bf8c35b9.js"),["assets/inverter-bf8c35b9.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./fems/bat.vue":()=>e(()=>import("./bat-0c742817.js"),["assets/bat-0c742817.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./fems/counter.vue":()=>e(()=>import("./counter-d097ef09.js"),["assets/counter-d097ef09.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./fems/device.vue":()=>e(()=>import("./device-ad4448a6.js"),["assets/device-ad4448a6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./fems/inverter.vue":()=>e(()=>import("./inverter-9bedc919.js"),["assets/inverter-9bedc919.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./fronius/bat.vue":()=>e(()=>import("./bat-13a367f1.js"),["assets/bat-13a367f1.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./fronius/counter_s0.vue":()=>e(()=>import("./counter_s0-5fd1354e.js"),["assets/counter_s0-5fd1354e.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./fronius/counter_sm.vue":()=>e(()=>import("./counter_sm-94145d92.js"),["assets/counter_sm-94145d92.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./fronius/device.vue":()=>e(()=>import("./device-a38cf0ab.js"),["assets/device-a38cf0ab.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./fronius/inverter.vue":()=>e(()=>import("./inverter-f57cf39b.js"),["assets/inverter-f57cf39b.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./fronius/inverter_secondary.vue":()=>e(()=>import("./inverter_secondary-e04ca018.js"),["assets/inverter_secondary-e04ca018.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./good_we/bat.vue":()=>e(()=>import("./bat-60a320a7.js"),["assets/bat-60a320a7.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./good_we/counter.vue":()=>e(()=>import("./counter-74cf3abb.js"),["assets/counter-74cf3abb.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./good_we/device.vue":()=>e(()=>import("./device-e0d7ec07.js"),["assets/device-e0d7ec07.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./good_we/inverter.vue":()=>e(()=>import("./inverter-7512a76a.js"),["assets/inverter-7512a76a.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./http/bat.vue":()=>e(()=>import("./bat-8b526727.js"),["assets/bat-8b526727.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./http/counter.vue":()=>e(()=>import("./counter-55e31718.js"),["assets/counter-55e31718.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./http/device.vue":()=>e(()=>import("./device-81b28430.js"),["assets/device-81b28430.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./http/inverter.vue":()=>e(()=>import("./inverter-654fd8a8.js"),["assets/inverter-654fd8a8.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./huawei/bat.vue":()=>e(()=>import("./bat-29944a82.js"),["assets/bat-29944a82.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./huawei/counter.vue":()=>e(()=>import("./counter-4be7364f.js"),["assets/counter-4be7364f.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./huawei/device.vue":()=>e(()=>import("./device-177c532a.js"),["assets/device-177c532a.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./huawei/inverter.vue":()=>e(()=>import("./inverter-f5e3ac96.js"),["assets/inverter-f5e3ac96.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./huawei_smartlogger/bat.vue":()=>e(()=>import("./bat-b39e4f19.js"),["assets/bat-b39e4f19.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./huawei_smartlogger/counter.vue":()=>e(()=>import("./counter-fbfd1073.js"),["assets/counter-fbfd1073.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./huawei_smartlogger/device.vue":()=>e(()=>import("./device-3a37f7bd.js"),["assets/device-3a37f7bd.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./huawei_smartlogger/inverter.vue":()=>e(()=>import("./inverter-c83755ed.js"),["assets/inverter-c83755ed.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./janitza/counter.vue":()=>e(()=>import("./counter-ac6e14af.js"),["assets/counter-ac6e14af.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./janitza/device.vue":()=>e(()=>import("./device-0578cae4.js"),["assets/device-0578cae4.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./json/bat.vue":()=>e(()=>import("./bat-d341f445.js"),["assets/bat-d341f445.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./json/counter.vue":()=>e(()=>import("./counter-ccf7acd7.js"),["assets/counter-ccf7acd7.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./json/device.vue":()=>e(()=>import("./device-fb8cd3ef.js"),["assets/device-fb8cd3ef.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./json/inverter.vue":()=>e(()=>import("./inverter-cfccace6.js"),["assets/inverter-cfccace6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_piko/counter.vue":()=>e(()=>import("./counter-17eb014c.js"),["assets/counter-17eb014c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_piko/device.vue":()=>e(()=>import("./device-2bedae67.js"),["assets/device-2bedae67.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_piko/inverter.vue":()=>e(()=>import("./inverter-8b791a36.js"),["assets/inverter-8b791a36.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_piko_old/device.vue":()=>e(()=>import("./device-9f2d29fa.js"),["assets/device-9f2d29fa.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_piko_old/inverter.vue":()=>e(()=>import("./inverter-00420369.js"),["assets/inverter-00420369.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_plenticore/bat.vue":()=>e(()=>import("./bat-003c9ec2.js"),["assets/bat-003c9ec2.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_plenticore/counter.vue":()=>e(()=>import("./counter-502ba4ea.js"),["assets/counter-502ba4ea.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_plenticore/device.vue":()=>e(()=>import("./device-ab0fc13e.js"),["assets/device-ab0fc13e.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_plenticore/inverter.vue":()=>e(()=>import("./inverter-ad5b0fde.js"),["assets/inverter-ad5b0fde.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_sem/counter.vue":()=>e(()=>import("./counter-bfa14197.js"),["assets/counter-bfa14197.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_sem/device.vue":()=>e(()=>import("./device-6191c124.js"),["assets/device-6191c124.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_steca/device.vue":()=>e(()=>import("./device-a9f1f1c1.js"),["assets/device-a9f1f1c1.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_steca/inverter.vue":()=>e(()=>import("./inverter-da82c753.js"),["assets/inverter-da82c753.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./lg/bat.vue":()=>e(()=>import("./bat-488bfce7.js"),["assets/bat-488bfce7.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./lg/counter.vue":()=>e(()=>import("./counter-8a255937.js"),["assets/counter-8a255937.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./lg/device.vue":()=>e(()=>import("./device-fc7d3de9.js"),["assets/device-fc7d3de9.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./lg/inverter.vue":()=>e(()=>import("./inverter-efeb3461.js"),["assets/inverter-efeb3461.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./mqtt/bat.vue":()=>e(()=>import("./bat-e320a176.js"),["assets/bat-e320a176.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./mqtt/counter.vue":()=>e(()=>import("./counter-34f1b64f.js"),["assets/counter-34f1b64f.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./mqtt/device.vue":()=>e(()=>import("./device-de25db23.js"),["assets/device-de25db23.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./mqtt/inverter.vue":()=>e(()=>import("./inverter-86fe5ee3.js"),["assets/inverter-86fe5ee3.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_bat_kit/bat.vue":()=>e(()=>import("./bat-f409ca38.js"),["assets/bat-f409ca38.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_bat_kit/device.vue":()=>e(()=>import("./device-a7eca9a0.js"),["assets/device-a7eca9a0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_evu_kit/bat.vue":()=>e(()=>import("./bat-4d911d20.js"),["assets/bat-4d911d20.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_evu_kit/counter.vue":()=>e(()=>import("./counter-7ac73056.js"),["assets/counter-7ac73056.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_evu_kit/device.vue":()=>e(()=>import("./device-8106933c.js"),["assets/device-8106933c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_evu_kit/inverter.vue":()=>e(()=>import("./inverter-50115261.js"),["assets/inverter-50115261.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_flex/bat.vue":()=>e(()=>import("./bat-ae70d5ff.js"),["assets/bat-ae70d5ff.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_flex/counter.vue":()=>e(()=>import("./counter-5e0adaad.js"),["assets/counter-5e0adaad.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_flex/device.vue":()=>e(()=>import("./device-2b003c1c.js"),["assets/device-2b003c1c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_flex/inverter.vue":()=>e(()=>import("./inverter-469a3dc4.js"),["assets/inverter-469a3dc4.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_pv_kit/device.vue":()=>e(()=>import("./device-bb1dd2b5.js"),["assets/device-bb1dd2b5.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_pv_kit/inverter.vue":()=>e(()=>import("./inverter-04ea3529.js"),["assets/inverter-04ea3529.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./powerdog/counter.vue":()=>e(()=>import("./counter-15097af0.js"),["assets/counter-15097af0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./powerdog/device.vue":()=>e(()=>import("./device-6bb1e8bb.js"),["assets/device-6bb1e8bb.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./powerdog/inverter.vue":()=>e(()=>import("./inverter-aa581ced.js"),["assets/inverter-aa581ced.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./powerfox/counter.vue":()=>e(()=>import("./counter-b066d1b9.js"),["assets/counter-b066d1b9.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./powerfox/device.vue":()=>e(()=>import("./device-6270186c.js"),["assets/device-6270186c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./powerfox/inverter.vue":()=>e(()=>import("./inverter-eb3d559c.js"),["assets/inverter-eb3d559c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./qcells/bat.vue":()=>e(()=>import("./bat-d24c0bd6.js"),["assets/bat-d24c0bd6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./qcells/counter.vue":()=>e(()=>import("./counter-9537d105.js"),["assets/counter-9537d105.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./qcells/device.vue":()=>e(()=>import("./device-07a50ea9.js"),["assets/device-07a50ea9.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./qcells/inverter.vue":()=>e(()=>import("./inverter-e38481bd.js"),["assets/inverter-e38481bd.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./rct/bat.vue":()=>e(()=>import("./bat-71e53e98.js"),["assets/bat-71e53e98.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./rct/counter.vue":()=>e(()=>import("./counter-06c26104.js"),["assets/counter-06c26104.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./rct/device.vue":()=>e(()=>import("./device-6f028d56.js"),["assets/device-6f028d56.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./rct/inverter.vue":()=>e(()=>import("./inverter-74209556.js"),["assets/inverter-74209556.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./saxpower/bat.vue":()=>e(()=>import("./bat-9e5d4526.js"),["assets/bat-9e5d4526.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./saxpower/device.vue":()=>e(()=>import("./device-7a13076f.js"),["assets/device-7a13076f.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./shelly/device.vue":()=>e(()=>import("./device-8c110926.js"),["assets/device-8c110926.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./shelly/inverter.vue":()=>e(()=>import("./inverter-cde319bd.js"),["assets/inverter-cde319bd.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./siemens/bat.vue":()=>e(()=>import("./bat-d7f4793e.js"),["assets/bat-d7f4793e.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./siemens/counter.vue":()=>e(()=>import("./counter-0939463a.js"),["assets/counter-0939463a.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./siemens/device.vue":()=>e(()=>import("./device-ed482a11.js"),["assets/device-ed482a11.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./siemens/inverter.vue":()=>e(()=>import("./inverter-16362c01.js"),["assets/inverter-16362c01.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./siemens_sentron/counter.vue":()=>e(()=>import("./counter-4ed52ce3.js"),["assets/counter-4ed52ce3.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./siemens_sentron/device.vue":()=>e(()=>import("./device-83a90199.js"),["assets/device-83a90199.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_shm/counter.vue":()=>e(()=>import("./counter-2d0bb50e.js"),["assets/counter-2d0bb50e.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_shm/device.vue":()=>e(()=>import("./device-f2f2ce7c.js"),["assets/device-f2f2ce7c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_shm/inverter.vue":()=>e(()=>import("./inverter-55abb9a1.js"),["assets/inverter-55abb9a1.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_sunny_boy/bat.vue":()=>e(()=>import("./bat-de9f8571.js"),["assets/bat-de9f8571.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_sunny_boy/bat_smart_energy.vue":()=>e(()=>import("./bat_smart_energy-e504f90d.js"),["assets/bat_smart_energy-e504f90d.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_sunny_boy/counter.vue":()=>e(()=>import("./counter-a1f36698.js"),["assets/counter-a1f36698.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_sunny_boy/device.vue":()=>e(()=>import("./device-edb62875.js"),["assets/device-edb62875.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_sunny_boy/inverter.vue":()=>e(()=>import("./inverter-188e1ec1.js"),["assets/inverter-188e1ec1.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_sunny_island/bat.vue":()=>e(()=>import("./bat-04d6743b.js"),["assets/bat-04d6743b.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_sunny_island/device.vue":()=>e(()=>import("./device-f9ca754c.js"),["assets/device-f9ca754c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_webbox/device.vue":()=>e(()=>import("./device-29da1454.js"),["assets/device-29da1454.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_webbox/inverter.vue":()=>e(()=>import("./inverter-a261c598.js"),["assets/inverter-a261c598.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./smart_me/counter.vue":()=>e(()=>import("./counter-c6900dd2.js"),["assets/counter-c6900dd2.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./smart_me/device.vue":()=>e(()=>import("./device-f5665908.js"),["assets/device-f5665908.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./smart_me/inverter.vue":()=>e(()=>import("./inverter-2c9728e1.js"),["assets/inverter-2c9728e1.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./smartfox/counter.vue":()=>e(()=>import("./counter-0767c5af.js"),["assets/counter-0767c5af.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./smartfox/device.vue":()=>e(()=>import("./device-a645f400.js"),["assets/device-a645f400.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_log/counter.vue":()=>e(()=>import("./counter-6715e651.js"),["assets/counter-6715e651.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_log/device.vue":()=>e(()=>import("./device-8f87ae55.js"),["assets/device-8f87ae55.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_log/inverter.vue":()=>e(()=>import("./inverter-4538e239.js"),["assets/inverter-4538e239.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_view/counter.vue":()=>e(()=>import("./counter-22cdd087.js"),["assets/counter-22cdd087.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_view/device.vue":()=>e(()=>import("./device-9e105631.js"),["assets/device-9e105631.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_view/inverter.vue":()=>e(()=>import("./inverter-e1644fe1.js"),["assets/inverter-e1644fe1.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_watt/bat.vue":()=>e(()=>import("./bat-b124a484.js"),["assets/bat-b124a484.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_watt/counter.vue":()=>e(()=>import("./counter-5dd3b2bc.js"),["assets/counter-5dd3b2bc.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_watt/device.vue":()=>e(()=>import("./device-8d4d93c6.js"),["assets/device-8d4d93c6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_watt/inverter.vue":()=>e(()=>import("./inverter-3aeac733.js"),["assets/inverter-3aeac733.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_world/counter.vue":()=>e(()=>import("./counter-d2113024.js"),["assets/counter-d2113024.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_world/device.vue":()=>e(()=>import("./device-9ec78fc6.js"),["assets/device-9ec78fc6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_world/inverter.vue":()=>e(()=>import("./inverter-7f68ae47.js"),["assets/inverter-7f68ae47.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solaredge/bat.vue":()=>e(()=>import("./bat-fdbcca07.js"),["assets/bat-fdbcca07.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solaredge/counter.vue":()=>e(()=>import("./counter-22aa0b64.js"),["assets/counter-22aa0b64.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solaredge/device.vue":()=>e(()=>import("./device-5951186e.js"),["assets/device-5951186e.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solaredge/external_inverter.vue":()=>e(()=>import("./external_inverter-2d7b8e72.js"),["assets/external_inverter-2d7b8e72.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solaredge/inverter.vue":()=>e(()=>import("./inverter-9ab8fe39.js"),["assets/inverter-9ab8fe39.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solarmax/bat.vue":()=>e(()=>import("./bat-42a7473f.js"),["assets/bat-42a7473f.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solarmax/device.vue":()=>e(()=>import("./device-553acdbd.js"),["assets/device-553acdbd.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solarmax/inverter.vue":()=>e(()=>import("./inverter-b7f85103.js"),["assets/inverter-b7f85103.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solax/bat.vue":()=>e(()=>import("./bat-c28324a3.js"),["assets/bat-c28324a3.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solax/counter.vue":()=>e(()=>import("./counter-c92cc706.js"),["assets/counter-c92cc706.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solax/device.vue":()=>e(()=>import("./device-f0a88111.js"),["assets/device-f0a88111.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solax/inverter.vue":()=>e(()=>import("./inverter-29e69ffd.js"),["assets/inverter-29e69ffd.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sonnenbatterie/bat.vue":()=>e(()=>import("./bat-7edf509e.js"),["assets/bat-7edf509e.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sonnenbatterie/counter.vue":()=>e(()=>import("./counter-eeaa830b.js"),["assets/counter-eeaa830b.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sonnenbatterie/device.vue":()=>e(()=>import("./device-7ee1c66d.js"),["assets/device-7ee1c66d.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sonnenbatterie/inverter.vue":()=>e(()=>import("./inverter-dd6b4286.js"),["assets/inverter-dd6b4286.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./studer/bat.vue":()=>e(()=>import("./bat-922195e1.js"),["assets/bat-922195e1.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./studer/device.vue":()=>e(()=>import("./device-2766d18c.js"),["assets/device-2766d18c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./studer/inverter.vue":()=>e(()=>import("./inverter-0aae8d01.js"),["assets/inverter-0aae8d01.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sungrow/bat.vue":()=>e(()=>import("./bat-74882a7c.js"),["assets/bat-74882a7c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sungrow/counter.vue":()=>e(()=>import("./counter-41510a72.js"),["assets/counter-41510a72.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sungrow/device.vue":()=>e(()=>import("./device-d364ade4.js"),["assets/device-d364ade4.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sungrow/inverter.vue":()=>e(()=>import("./inverter-4ac1cf30.js"),["assets/inverter-4ac1cf30.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sunways/device.vue":()=>e(()=>import("./device-02db7f9c.js"),["assets/device-02db7f9c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sunways/inverter.vue":()=>e(()=>import("./inverter-92598d9b.js"),["assets/inverter-92598d9b.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./tesla/bat.vue":()=>e(()=>import("./bat-cb56f27d.js"),["assets/bat-cb56f27d.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./tesla/counter.vue":()=>e(()=>import("./counter-c672bc05.js"),["assets/counter-c672bc05.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./tesla/device.vue":()=>e(()=>import("./device-916ccb12.js"),["assets/device-916ccb12.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./tesla/inverter.vue":()=>e(()=>import("./inverter-ef0ca8f4.js"),["assets/inverter-ef0ca8f4.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./varta/bat_api.vue":()=>e(()=>import("./bat_api-628d475c.js"),["assets/bat_api-628d475c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./varta/bat_modbus.vue":()=>e(()=>import("./bat_modbus-191bc394.js"),["assets/bat_modbus-191bc394.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./varta/counter.vue":()=>e(()=>import("./counter-3a478d3f.js"),["assets/counter-3a478d3f.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./varta/device.vue":()=>e(()=>import("./device-9a846fcc.js"),["assets/device-9a846fcc.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./victron/bat.vue":()=>e(()=>import("./bat-e0f34558.js"),["assets/bat-e0f34558.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./victron/counter.vue":()=>e(()=>import("./counter-435e72ec.js"),["assets/counter-435e72ec.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./victron/device.vue":()=>e(()=>import("./device-0983a48e.js"),["assets/device-0983a48e.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./victron/inverter.vue":()=>e(()=>import("./inverter-24b26b24.js"),["assets/inverter-24b26b24.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./virtual/counter.vue":()=>e(()=>import("./counter-2539a836.js"),["assets/counter-2539a836.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./virtual/device.vue":()=>e(()=>import("./device-4a073ec7.js"),["assets/device-4a073ec7.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./vzlogger/counter.vue":()=>e(()=>import("./counter-0c01a4c5.js"),["assets/counter-0c01a4c5.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./vzlogger/device.vue":()=>e(()=>import("./device-e4abce5b.js"),["assets/device-e4abce5b.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./vzlogger/inverter.vue":()=>e(()=>import("./inverter-513066b0.js"),["assets/inverter-513066b0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./youless/device.vue":()=>e(()=>import("./device-9f842a27.js"),["assets/device-9f842a27.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./youless/inverter.vue":()=>e(()=>import("./inverter-bb103ee5.js"),["assets/inverter-bb103ee5.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"])}),`./${this.deviceType}/${this.componentType}.vue`),errorComponent:S}):W({loader:()=>M(Object.assign({"./alpha_ess/device.vue":()=>e(()=>import("./device-9bf0f664.js"),["assets/device-9bf0f664.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./batterx/device.vue":()=>e(()=>import("./device-7554d3ae.js"),["assets/device-7554d3ae.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./byd/device.vue":()=>e(()=>import("./device-303998e6.js"),["assets/device-303998e6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./carlo_gavazzi/device.vue":()=>e(()=>import("./device-18e5e6a0.js"),["assets/device-18e5e6a0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./deye/device.vue":()=>e(()=>import("./device-c79bc1c0.js"),["assets/device-c79bc1c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./discovergy/device.vue":()=>e(()=>import("./device-c3561f59.js"),["assets/device-c3561f59.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./e3dc/device.vue":()=>e(()=>import("./device-938e7996.js"),["assets/device-938e7996.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./enphase/device.vue":()=>e(()=>import("./device-330cc021.js"),["assets/device-330cc021.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./fems/device.vue":()=>e(()=>import("./device-ad4448a6.js"),["assets/device-ad4448a6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./fronius/device.vue":()=>e(()=>import("./device-a38cf0ab.js"),["assets/device-a38cf0ab.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./good_we/device.vue":()=>e(()=>import("./device-e0d7ec07.js"),["assets/device-e0d7ec07.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./http/device.vue":()=>e(()=>import("./device-81b28430.js"),["assets/device-81b28430.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./huawei/device.vue":()=>e(()=>import("./device-177c532a.js"),["assets/device-177c532a.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./huawei_smartlogger/device.vue":()=>e(()=>import("./device-3a37f7bd.js"),["assets/device-3a37f7bd.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./janitza/device.vue":()=>e(()=>import("./device-0578cae4.js"),["assets/device-0578cae4.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./json/device.vue":()=>e(()=>import("./device-fb8cd3ef.js"),["assets/device-fb8cd3ef.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_piko/device.vue":()=>e(()=>import("./device-2bedae67.js"),["assets/device-2bedae67.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_piko_old/device.vue":()=>e(()=>import("./device-9f2d29fa.js"),["assets/device-9f2d29fa.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_plenticore/device.vue":()=>e(()=>import("./device-ab0fc13e.js"),["assets/device-ab0fc13e.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_sem/device.vue":()=>e(()=>import("./device-6191c124.js"),["assets/device-6191c124.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kostal_steca/device.vue":()=>e(()=>import("./device-a9f1f1c1.js"),["assets/device-a9f1f1c1.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./lg/device.vue":()=>e(()=>import("./device-fc7d3de9.js"),["assets/device-fc7d3de9.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./mqtt/device.vue":()=>e(()=>import("./device-de25db23.js"),["assets/device-de25db23.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_bat_kit/device.vue":()=>e(()=>import("./device-a7eca9a0.js"),["assets/device-a7eca9a0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_evu_kit/device.vue":()=>e(()=>import("./device-8106933c.js"),["assets/device-8106933c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_flex/device.vue":()=>e(()=>import("./device-2b003c1c.js"),["assets/device-2b003c1c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./openwb_pv_kit/device.vue":()=>e(()=>import("./device-bb1dd2b5.js"),["assets/device-bb1dd2b5.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./powerdog/device.vue":()=>e(()=>import("./device-6bb1e8bb.js"),["assets/device-6bb1e8bb.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./powerfox/device.vue":()=>e(()=>import("./device-6270186c.js"),["assets/device-6270186c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./qcells/device.vue":()=>e(()=>import("./device-07a50ea9.js"),["assets/device-07a50ea9.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./rct/device.vue":()=>e(()=>import("./device-6f028d56.js"),["assets/device-6f028d56.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./saxpower/device.vue":()=>e(()=>import("./device-7a13076f.js"),["assets/device-7a13076f.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./shelly/device.vue":()=>e(()=>import("./device-8c110926.js"),["assets/device-8c110926.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./siemens/device.vue":()=>e(()=>import("./device-ed482a11.js"),["assets/device-ed482a11.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./siemens_sentron/device.vue":()=>e(()=>import("./device-83a90199.js"),["assets/device-83a90199.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_shm/device.vue":()=>e(()=>import("./device-f2f2ce7c.js"),["assets/device-f2f2ce7c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_sunny_boy/device.vue":()=>e(()=>import("./device-edb62875.js"),["assets/device-edb62875.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_sunny_island/device.vue":()=>e(()=>import("./device-f9ca754c.js"),["assets/device-f9ca754c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sma_webbox/device.vue":()=>e(()=>import("./device-29da1454.js"),["assets/device-29da1454.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./smart_me/device.vue":()=>e(()=>import("./device-f5665908.js"),["assets/device-f5665908.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./smartfox/device.vue":()=>e(()=>import("./device-a645f400.js"),["assets/device-a645f400.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_log/device.vue":()=>e(()=>import("./device-8f87ae55.js"),["assets/device-8f87ae55.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_view/device.vue":()=>e(()=>import("./device-9e105631.js"),["assets/device-9e105631.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_watt/device.vue":()=>e(()=>import("./device-8d4d93c6.js"),["assets/device-8d4d93c6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solar_world/device.vue":()=>e(()=>import("./device-9ec78fc6.js"),["assets/device-9ec78fc6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solaredge/device.vue":()=>e(()=>import("./device-5951186e.js"),["assets/device-5951186e.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solarmax/device.vue":()=>e(()=>import("./device-553acdbd.js"),["assets/device-553acdbd.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./solax/device.vue":()=>e(()=>import("./device-f0a88111.js"),["assets/device-f0a88111.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sonnenbatterie/device.vue":()=>e(()=>import("./device-7ee1c66d.js"),["assets/device-7ee1c66d.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./studer/device.vue":()=>e(()=>import("./device-2766d18c.js"),["assets/device-2766d18c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sungrow/device.vue":()=>e(()=>import("./device-d364ade4.js"),["assets/device-d364ade4.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./sunways/device.vue":()=>e(()=>import("./device-02db7f9c.js"),["assets/device-02db7f9c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./tesla/device.vue":()=>e(()=>import("./device-916ccb12.js"),["assets/device-916ccb12.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./varta/device.vue":()=>e(()=>import("./device-9a846fcc.js"),["assets/device-9a846fcc.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./victron/device.vue":()=>e(()=>import("./device-0983a48e.js"),["assets/device-0983a48e.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./virtual/device.vue":()=>e(()=>import("./device-4a073ec7.js"),["assets/device-4a073ec7.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./vzlogger/device.vue":()=>e(()=>import("./device-e4abce5b.js"),["assets/device-e4abce5b.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./youless/device.vue":()=>e(()=>import("./device-9f842a27.js"),["assets/device-9f842a27.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"])}),`./${this.deviceType}/device.vue`),errorComponent:S})}},methods:{updateConfiguration(_){this.$emit("update:configuration",_)}}};function se(_,i,u,P,s,r){return d(),E($(r.myComponent),{configuration:u.configuration,deviceId:u.deviceId,deviceType:u.deviceType,componentId:u.componentId,componentType:u.componentType,"onUpdate:configuration":i[0]||(i[0]=I=>r.updateConfiguration(I))},null,40,["configuration","deviceId","deviceType","componentId","componentType"])}const me=y(ae,[["render",se],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbConfigProxy.vue"]]);N.add(U,G,F,H,J,Z,Y);const pe={name:"OpenwbHardwareInstallation",mixins:[X],emits:["sendCommand"],components:{FontAwesomeIcon:Q,OpenwbConfigProxy:me},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/get/hierarchy","openWB/system/device/+/config","openWB/system/device/+/component/+/config","openWB/system/configurable/devices_components"],deviceToAdd:void 0,showDeviceRemoveModal:!1,modalDevice:void 0,modalDeviceName:"",componentToAdd:[],showComponentRemoveModal:!1,modalComponent:void 0,modalComponentName:""}},computed:{installedDevices:{get(){return this.getWildcardTopics("openWB/system/device/+/config")}},installedComponents:{get(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")}}},methods:{getComponentTypeClass(_){return _.match(/^(.+_)?counter(_.+)?$/)?"danger":_.match(/^(.+_)?inverter(_.+)?$/)?"success":_.match(/^(.+_)?bat(_.+)?$/)?"warning":"dark"},getComponentTypeIcon(_){return _.match(/^(.+_)?counter(_.+)?$/)?["fas","fa-gauge-high"]:_.match(/^(.+_)?inverter(_.+)?$/)?["fas","fa-solar-panel"]:_.match(/^(.+_)?bat(_.+)?$/)?["fas","fa-car-battery"]:["fas","fa-microchip"]},getMyInstalledComponents(_){return this.getWildcardTopics("openWB/system/device/"+_+"/component/+/config")},deviceHasConfiguredComponents(_){return Object.keys(this.getMyInstalledComponents(_)).length>0},addDevice(){this.$emit("sendCommand",{command:"addDevice",data:{type:this.deviceToAdd}})},removeDeviceModal(_,i,u){u.stopPropagation(),this.modalDevice=_,this.modalDeviceName=i,this.showDeviceRemoveModal=!0},removeDevice(_){this.showDeviceRemoveModal=!1,_=="confirm"&&(console.info("request removal of device '"+this.modalDevice+"'"),this.$emit("sendCommand",{command:"removeDevice",data:{id:this.modalDevice}}))},getDeviceList(){return this.$store.state.mqtt["openWB/system/configurable/devices_components"]},addComponent(_,i,u){this.$emit("sendCommand",{command:"addComponent",data:{deviceId:_,deviceType:i,type:u}})},removeComponentModal(_,i,u,P,s){s.stopPropagation(),this.modalComponent={deviceId:_,id:i,type:u},this.modalComponentName=P,this.showComponentRemoveModal=!0},removeComponent(_){this.showComponentRemoveModal=!1,_=="confirm"&&(console.info("request removal of component '"+this.modalComponent.id+"' from device '"+this.modalComponent.deviceId+"' type '"+this.modalComponent.type+"'"),this.$emit("sendCommand",{command:"removeComponent",data:this.modalComponent}))},getComponentList(_){return _===void 0?[]:(console.debug("finding components for '"+_+"'"),this.$store.state.mqtt["openWB/system/configurable/devices_components"].find(u=>u.value===_).component)},updateConfiguration(_,i){console.debug("updateConfiguration",_,i),this.updateState(_,i.value,i.object)}}},l=_=>(ee("data-v-8595d6ae"),_=_(),_e(),_),ce={class:"hardwareInstallation"},Ee={name:"hardwareInstallationForm"},le={key:0},Te={key:1},Ie={key:1},Ve=l(()=>m("hr",null,null,-1)),De=l(()=>m("hr",null,null,-1)),Ae=l(()=>m("hr",null,null,-1)),Re=l(()=>m("hr",null,null,-1)),Pe={class:"col-1"},Oe={key:0},Le={class:"col-1"},ge=l(()=>m("br",null,null,-1)),be=l(()=>m("br",null,null,-1)),fe=l(()=>m("br",null,null,-1)),he=l(()=>m("br",null,null,-1)),we=l(()=>m("br",null,null,-1)),ye=l(()=>m("br",null,null,-1));function ke(_,i,u,P,s,r){const I=p("openwb-base-modal-dialog"),L=p("router-link"),A=p("openwb-base-alert"),D=p("font-awesome-icon"),g=p("openwb-base-avatar"),k=p("openwb-base-text-input"),C=p("openwb-config-proxy"),j=p("openwb-base-heading"),b=p("openwb-base-card"),x=p("openwb-base-click-button"),B=p("openwb-base-select-input"),q=p("openwb-base-submit-buttons");return d(),c(O,null,[n(I,{show:s.showDeviceRemoveModal,title:"Gerät löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:r.removeDevice},{default:o(()=>[v(' Wollen Sie das Gerät "'+T(s.modalDeviceName)+'" inklusive aller Komponenten wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),n(I,{show:s.showComponentRemoveModal,title:"Komponente löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:r.removeComponent},{default:o(()=>[v(' Wollen Sie die Komponente "'+T(s.modalComponentName)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),m("div",ce,[m("form",Ee,[n(A,{subtype:"info"},{default:o(()=>[v(" Wenn neue Komponenten - insbesondere Zähler - konfiguriert wurden, ist auch das "),n(L,{to:"/LoadManagementConfiguration"},{default:o(()=>[v(" Lastmanagement ")]),_:1}),v(" zu prüfen! ")]),_:1}),n(b,{title:"Geräte und Komponenten"},{default:o(()=>[_.$store.state.mqtt["openWB/general/extern"]===!0?(d(),c("div",le,[n(A,{subtype:"info"},{default:o(()=>[v(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),c("div",Te,[(d(!0),c(O,null,f(r.installedDevices,(t,z)=>(d(),E(b,{key:t.id,collapsible:!0,collapsed:!0,subtype:"dark"},{header:o(()=>[n(D,{"fixed-width":"",icon:["fas","network-wired"]}),v(" "+T(t.name),1)]),actions:o(a=>[a.collapsed?(d(),c("div",Ie,[(d(!0),c(O,null,f(r.getMyInstalledComponents(t.id),V=>(d(),E(g,{key:V.id,class:h("ml-1 bg-"+r.getComponentTypeClass(V.type))},{default:o(()=>[n(D,{"fixed-width":"",icon:r.getComponentTypeIcon(V.type)},null,8,["icon"])]),_:2},1032,["class"]))),128))])):(d(),E(g,{key:0,class:"bg-danger clickable",onClick:V=>r.removeDeviceModal(t.id,t.name,V)},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(k,{title:"Bezeichnung",subtype:"text","model-value":t.name,"onUpdate:modelValue":a=>_.updateState(z,a,"name")},null,8,["model-value","onUpdate:modelValue"]),Ve,n(C,{deviceId:t.id,deviceType:t.type,configuration:t.configuration,"onUpdate:configuration":a=>r.updateConfiguration(z,a)},null,8,["deviceId","deviceType","configuration","onUpdate:configuration"]),De,n(j,null,{default:o(()=>[v("Komponenten")]),_:1}),r.deviceHasConfiguredComponents(t.id)?w("",!0):(d(),E(A,{key:0,subtype:"warning"},{default:o(()=>[v(" Es wurden noch keine Komponenten zu diesem Gerät angelegt. ")]),_:1})),(d(!0),c(O,null,f(r.getMyInstalledComponents(t.id),(a,V)=>(d(),E(b,{key:a.id,collapsible:!0,collapsed:!0,subtype:r.getComponentTypeClass(a.type)},{header:o(()=>[n(D,{"fixed-width":"",icon:r.getComponentTypeIcon(a.type)},null,8,["icon"]),v(" "+T(a.name),1)]),actions:o(R=>[R.collapsed?w("",!0):(d(),E(g,{key:0,class:"bg-danger clickable",onClick:K=>r.removeComponentModal(t.id,a.id,a.type,a.name,K)},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(k,{title:"Bezeichnung",subtype:"text","model-value":a.name,"onUpdate:modelValue":R=>_.updateState(V,R,"name")},null,8,["model-value","onUpdate:modelValue"]),Ae,n(C,{deviceId:t.id,deviceType:t.type,componentId:a.id,componentType:a.type,configuration:a.configuration,"onUpdate:configuration":R=>r.updateConfiguration(V,R)},null,8,["deviceId","deviceType","componentId","componentType","configuration","onUpdate:configuration"])]),_:2},1032,["subtype"]))),128)),Re,r.getComponentList(t.type).length?(d(),E(B,{key:1,class:"mb-2",title:"Verfügbare Komponenten",notSelected:"Bitte auswählen",options:r.getComponentList(t.type),"model-value":s.componentToAdd[t.id],"onUpdate:modelValue":a=>s.componentToAdd[t.id]=a},{append:o(()=>[m("span",Pe,[n(x,{class:h(s.componentToAdd[t.id]===void 0?"btn-outline-success":"btn-success clickable"),disabled:s.componentToAdd[t.id]===void 0,onButtonClicked:a=>r.addComponent(t.id,t.type,s.componentToAdd[t.id])},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["class","disabled","onButtonClicked"])])]),help:o(()=>[v(" Bitte eine Komponente auswählen, die hinzugefügt werden soll. Für jeden Datensatz, z.B. Wechselrichter- und Batteriedaten, muss eine Wechselrichter- und eine Batteriekomponente hinzugefügt werden. ")]),_:2},1032,["options","model-value","onUpdate:modelValue"])):(d(),E(A,{key:2,subtype:"info"},{default:o(()=>[v(" Dieses System bietet keine Komponenten zur Installation an. ")]),_:1}))]),_:2},1024))),128)),Object.keys(r.installedDevices).length>0?(d(),c("hr",Oe)):w("",!0),n(B,{class:"mb-2",title:"Verfügbare Geräte",notSelected:"Bitte auswählen",options:r.getDeviceList(),"model-value":s.deviceToAdd,"onUpdate:modelValue":i[0]||(i[0]=t=>s.deviceToAdd=t)},{append:o(()=>[m("span",Le,[n(x,{class:h(s.deviceToAdd===void 0?"btn-outline-success":"btn-success clickable"),disabled:s.deviceToAdd===void 0,onButtonClicked:r.addDevice},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["class","disabled","onButtonClicked"])])]),help:o(()=>[v(' Die openWB-Regelung ist auf Werte von MESSPUNKTEN (Zähler, Energy Meter usw.) angewiesen. Hierfür werden "Geräte" und "Komponenten" verwendet.'),ge,v(' Ein "Gerät" wird hierbei durch seine IP-Adresse spezifiziert (häufig durch manuelle Eingabe oder manchmal automatisch ermittelt) und kann über mehrere untergeordnete "Komponenten" verfügen, z.B. einen Messpunkt für PV-Erzeugung, einen Messpunkt für Netzeinspeisung/-bezug am EVU-Punkt usw.. Ein "Gerät" bedingt somit immer mindestens eine zugehörige "Komponente".'),be,fe,v(' Bsp: Werden die Werte von verschiedenen Messpunkten (z.B. PV und EVU) über die gleiche IP-Adresse abgefragt, wird dafür ein "Gerät" mit zwei "Komponenten" für PV- und EVU- Messpunkt angelegt.'),he,v(' Verfügt dagegen jeder Messpunkt über eine eigene IP-Adresse, wird jeder Messpunkt als eigenes "Gerät" mit nur einer "Komponente" angelegt.'),we,ye,v(' Das "Gerät" wird in der dropdown-Liste ausgewählt und mit "+" der Regelung hinzugefügt. Im Anschluss erfolgt die Konfiguration des "Gerätes" innerhalb des schwarzen "Geräte"-Reiters. ')]),_:1},8,["options","model-value"])]))]),_:1}),n(q,{formName:"hardwareInstallationForm",onSave:i[1]||(i[1]=t=>_.$emit("save")),onReset:i[2]||(i[2]=t=>_.$emit("reset")),onDefaults:i[3]||(i[3]=t=>_.$emit("defaults"))})])])],64)}const qe=y(pe,[["render",ke],["__scopeId","data-v-8595d6ae"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/HardwareInstallation.vue"]]);export{qe as default}; diff --git a/web/settings/assets/HardwareInstallation-c47cb1ac.js b/web/settings/assets/HardwareInstallation-c47cb1ac.js deleted file mode 100644 index 0d9c4b6891..0000000000 --- a/web/settings/assets/HardwareInstallation-c47cb1ac.js +++ /dev/null @@ -1 +0,0 @@ -import{l as N,d as U,t as G,Y as F,Z as H,P as J,O as Z,N as Y,F as Q}from"./vendor-fortawesome-cf9a975a.js";import{_ as e,C as X}from"./index-bed1470e.js";import{_ as M}from"./dynamic-import-helper-be004503.js";import{_ as y,q as p,k as d,l as c,z as E,M as o,y as T,x as v,B as n,u as m,a1 as W,a2 as $,I as O,J as f,p as h,A as w,R as ee,S as _e}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const te={name:"DeviceFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},deviceType:String,componentId:{default:void 0},componentType:String},methods:{updateConfiguration(_,i=void 0){this.$emit("update:configuration",{value:_,object:i})}}},oe={class:"device-fallback"},ie={key:0},re={key:1},ne={key:1},ue={key:0},de={key:1};function ve(_,i,u,P,s,r){const I=p("openwb-base-alert"),L=p("openwb-base-textarea");return d(),c("div",oe,[Object.keys(u.configuration).length==0?(d(),E(I,{key:0,subtype:"info"},{default:o(()=>[u.componentType?(d(),c("span",ie,' Der Komponenten-Typ "'+T(u.componentType)+'" ',1)):(d(),c("span",re,'Der Gerät-Typ "'+T(u.deviceType)+'"',1)),v(" bietet keine Einstellungen. ")]),_:1})):(d(),c("div",ne,[n(I,{subtype:"warning"},{default:o(()=>[v(" Es wurde keine Konfigurationsseite für den "),u.componentType?(d(),c("span",ue,' Komponenten-Typ "'+T(u.componentType)+'" ',1)):(d(),c("span",de,'Geräte-Typ "'+T(u.deviceType)+'"',1)),v(" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ")]),_:1}),n(L,{title:"Konfiguration",subtype:"json","model-value":u.configuration,"onUpdate:modelValue":i[0]||(i[0]=A=>r.updateConfiguration(A,"configuration"))},{help:o(()=>[v(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(I,{subtype:"info"},{default:o(()=>[m("pre",null,T(JSON.stringify(u.configuration,void 0,2)),1)]),_:1})]))])}const S=y(te,[["render",ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbDeviceConfigFallback.vue"]]),ae={name:"OpenwbConfigProxy",emits:["update:configuration"],props:{deviceId:{required:!0},deviceType:{type:String,required:!0},componentId:{default:void 0},componentType:{type:String,default:void 0},configuration:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading component: ${this.deviceType} / ${this.componentType}`),this.componentType!==void 0?W({loader:()=>M(Object.assign({"./alpha_ess/bat.vue":()=>e(()=>import("./bat-8154ced9.js"),["assets/bat-8154ced9.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./alpha_ess/counter.vue":()=>e(()=>import("./counter-11298763.js"),["assets/counter-11298763.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./alpha_ess/device.vue":()=>e(()=>import("./device-fd6b8a54.js"),["assets/device-fd6b8a54.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./alpha_ess/inverter.vue":()=>e(()=>import("./inverter-37fe91f0.js"),["assets/inverter-37fe91f0.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./batterx/bat.vue":()=>e(()=>import("./bat-f260a30b.js"),["assets/bat-f260a30b.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./batterx/counter.vue":()=>e(()=>import("./counter-973bc4bb.js"),["assets/counter-973bc4bb.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./batterx/device.vue":()=>e(()=>import("./device-29380d8c.js"),["assets/device-29380d8c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./batterx/external_inverter.vue":()=>e(()=>import("./external_inverter-1f5e49f5.js"),["assets/external_inverter-1f5e49f5.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./batterx/inverter.vue":()=>e(()=>import("./inverter-2d1fa8ff.js"),["assets/inverter-2d1fa8ff.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./byd/bat.vue":()=>e(()=>import("./bat-a43b1ef5.js"),["assets/bat-a43b1ef5.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./byd/device.vue":()=>e(()=>import("./device-589ff411.js"),["assets/device-589ff411.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./carlo_gavazzi/counter.vue":()=>e(()=>import("./counter-12371945.js"),["assets/counter-12371945.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./carlo_gavazzi/device.vue":()=>e(()=>import("./device-be0069c5.js"),["assets/device-be0069c5.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./deye/bat.vue":()=>e(()=>import("./bat-085a5a22.js"),["assets/bat-085a5a22.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./deye/counter.vue":()=>e(()=>import("./counter-fd379a0c.js"),["assets/counter-fd379a0c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./deye/device.vue":()=>e(()=>import("./device-ddeaf6f7.js"),["assets/device-ddeaf6f7.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./deye/inverter.vue":()=>e(()=>import("./inverter-ce926548.js"),["assets/inverter-ce926548.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./discovergy/counter.vue":()=>e(()=>import("./counter-f297e0d8.js"),["assets/counter-f297e0d8.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./discovergy/device.vue":()=>e(()=>import("./device-68b1cbc0.js"),["assets/device-68b1cbc0.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./discovergy/inverter.vue":()=>e(()=>import("./inverter-484e99a3.js"),["assets/inverter-484e99a3.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./e3dc/bat.vue":()=>e(()=>import("./bat-3ba49769.js"),["assets/bat-3ba49769.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./e3dc/counter.vue":()=>e(()=>import("./counter-e8b2caff.js"),["assets/counter-e8b2caff.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./e3dc/device.vue":()=>e(()=>import("./device-5d5c7300.js"),["assets/device-5d5c7300.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./e3dc/external_inverter.vue":()=>e(()=>import("./external_inverter-b910463d.js"),["assets/external_inverter-b910463d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./e3dc/inverter.vue":()=>e(()=>import("./inverter-9fbef86f.js"),["assets/inverter-9fbef86f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./enphase/counter.vue":()=>e(()=>import("./counter-88acb637.js"),["assets/counter-88acb637.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./enphase/device.vue":()=>e(()=>import("./device-2aa63639.js"),["assets/device-2aa63639.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./enphase/inverter.vue":()=>e(()=>import("./inverter-dde61b61.js"),["assets/inverter-dde61b61.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./fems/bat.vue":()=>e(()=>import("./bat-cc31b792.js"),["assets/bat-cc31b792.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./fems/counter.vue":()=>e(()=>import("./counter-2f64ee09.js"),["assets/counter-2f64ee09.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./fems/device.vue":()=>e(()=>import("./device-5d68a6d5.js"),["assets/device-5d68a6d5.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./fems/inverter.vue":()=>e(()=>import("./inverter-c6d11928.js"),["assets/inverter-c6d11928.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./fronius/bat.vue":()=>e(()=>import("./bat-942848c5.js"),["assets/bat-942848c5.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./fronius/counter_s0.vue":()=>e(()=>import("./counter_s0-4ae58f93.js"),["assets/counter_s0-4ae58f93.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./fronius/counter_sm.vue":()=>e(()=>import("./counter_sm-210294ef.js"),["assets/counter_sm-210294ef.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./fronius/device.vue":()=>e(()=>import("./device-cd327ae2.js"),["assets/device-cd327ae2.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./fronius/inverter.vue":()=>e(()=>import("./inverter-0b4d964e.js"),["assets/inverter-0b4d964e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./fronius/inverter_secondary.vue":()=>e(()=>import("./inverter_secondary-2a8b0172.js"),["assets/inverter_secondary-2a8b0172.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./good_we/bat.vue":()=>e(()=>import("./bat-25ad94e5.js"),["assets/bat-25ad94e5.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./good_we/counter.vue":()=>e(()=>import("./counter-00f93543.js"),["assets/counter-00f93543.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./good_we/device.vue":()=>e(()=>import("./device-e012caeb.js"),["assets/device-e012caeb.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./good_we/inverter.vue":()=>e(()=>import("./inverter-9a70308e.js"),["assets/inverter-9a70308e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./http/bat.vue":()=>e(()=>import("./bat-cb55ee49.js"),["assets/bat-cb55ee49.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./http/counter.vue":()=>e(()=>import("./counter-b1adda4a.js"),["assets/counter-b1adda4a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./http/device.vue":()=>e(()=>import("./device-d47ecb4c.js"),["assets/device-d47ecb4c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./http/inverter.vue":()=>e(()=>import("./inverter-d66f1e10.js"),["assets/inverter-d66f1e10.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./huawei/bat.vue":()=>e(()=>import("./bat-cce72fb8.js"),["assets/bat-cce72fb8.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./huawei/counter.vue":()=>e(()=>import("./counter-43df20c3.js"),["assets/counter-43df20c3.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./huawei/device.vue":()=>e(()=>import("./device-dc1669d7.js"),["assets/device-dc1669d7.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./huawei/inverter.vue":()=>e(()=>import("./inverter-98bd7e3f.js"),["assets/inverter-98bd7e3f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./huawei_smartlogger/bat.vue":()=>e(()=>import("./bat-b867b312.js"),["assets/bat-b867b312.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./huawei_smartlogger/counter.vue":()=>e(()=>import("./counter-b2006d03.js"),["assets/counter-b2006d03.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./huawei_smartlogger/device.vue":()=>e(()=>import("./device-cf590f01.js"),["assets/device-cf590f01.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./huawei_smartlogger/inverter.vue":()=>e(()=>import("./inverter-5919785e.js"),["assets/inverter-5919785e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./janitza/counter.vue":()=>e(()=>import("./counter-c82b5fcd.js"),["assets/counter-c82b5fcd.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./janitza/device.vue":()=>e(()=>import("./device-2314e42d.js"),["assets/device-2314e42d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./json/bat.vue":()=>e(()=>import("./bat-22a5ada0.js"),["assets/bat-22a5ada0.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./json/counter.vue":()=>e(()=>import("./counter-99a20711.js"),["assets/counter-99a20711.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./json/device.vue":()=>e(()=>import("./device-fa25520b.js"),["assets/device-fa25520b.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./json/inverter.vue":()=>e(()=>import("./inverter-52c73615.js"),["assets/inverter-52c73615.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_piko/counter.vue":()=>e(()=>import("./counter-eea9237a.js"),["assets/counter-eea9237a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_piko/device.vue":()=>e(()=>import("./device-bc1d9fef.js"),["assets/device-bc1d9fef.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_piko/inverter.vue":()=>e(()=>import("./inverter-aad4e4cb.js"),["assets/inverter-aad4e4cb.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_piko_old/device.vue":()=>e(()=>import("./device-501632ef.js"),["assets/device-501632ef.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_piko_old/inverter.vue":()=>e(()=>import("./inverter-d1fb30fb.js"),["assets/inverter-d1fb30fb.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_plenticore/bat.vue":()=>e(()=>import("./bat-1619dcb7.js"),["assets/bat-1619dcb7.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_plenticore/counter.vue":()=>e(()=>import("./counter-212856fb.js"),["assets/counter-212856fb.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_plenticore/device.vue":()=>e(()=>import("./device-99d0a385.js"),["assets/device-99d0a385.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_plenticore/inverter.vue":()=>e(()=>import("./inverter-e4b7a1ff.js"),["assets/inverter-e4b7a1ff.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_sem/counter.vue":()=>e(()=>import("./counter-b724f8ad.js"),["assets/counter-b724f8ad.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_sem/device.vue":()=>e(()=>import("./device-9830320e.js"),["assets/device-9830320e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_steca/device.vue":()=>e(()=>import("./device-bff93d5a.js"),["assets/device-bff93d5a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_steca/inverter.vue":()=>e(()=>import("./inverter-f385d2a9.js"),["assets/inverter-f385d2a9.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./lg/bat.vue":()=>e(()=>import("./bat-b866cc15.js"),["assets/bat-b866cc15.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./lg/counter.vue":()=>e(()=>import("./counter-9b130dde.js"),["assets/counter-9b130dde.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./lg/device.vue":()=>e(()=>import("./device-e20f82e0.js"),["assets/device-e20f82e0.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./lg/inverter.vue":()=>e(()=>import("./inverter-16cb3358.js"),["assets/inverter-16cb3358.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./mqtt/bat.vue":()=>e(()=>import("./bat-65fb855c.js"),["assets/bat-65fb855c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./mqtt/counter.vue":()=>e(()=>import("./counter-e7425fea.js"),["assets/counter-e7425fea.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./mqtt/device.vue":()=>e(()=>import("./device-b6164308.js"),["assets/device-b6164308.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./mqtt/inverter.vue":()=>e(()=>import("./inverter-be6894d5.js"),["assets/inverter-be6894d5.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_bat_kit/bat.vue":()=>e(()=>import("./bat-a96acd17.js"),["assets/bat-a96acd17.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_bat_kit/device.vue":()=>e(()=>import("./device-848b159b.js"),["assets/device-848b159b.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_evu_kit/bat.vue":()=>e(()=>import("./bat-08e1822f.js"),["assets/bat-08e1822f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_evu_kit/counter.vue":()=>e(()=>import("./counter-67c9f193.js"),["assets/counter-67c9f193.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_evu_kit/device.vue":()=>e(()=>import("./device-349196ec.js"),["assets/device-349196ec.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_evu_kit/inverter.vue":()=>e(()=>import("./inverter-1a73d92c.js"),["assets/inverter-1a73d92c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_flex/bat.vue":()=>e(()=>import("./bat-ec8aebd6.js"),["assets/bat-ec8aebd6.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_flex/counter.vue":()=>e(()=>import("./counter-06f0f51f.js"),["assets/counter-06f0f51f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_flex/device.vue":()=>e(()=>import("./device-d443d481.js"),["assets/device-d443d481.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_flex/inverter.vue":()=>e(()=>import("./inverter-47bdd702.js"),["assets/inverter-47bdd702.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_pv_kit/device.vue":()=>e(()=>import("./device-cdf1c8af.js"),["assets/device-cdf1c8af.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_pv_kit/inverter.vue":()=>e(()=>import("./inverter-4f3bbe22.js"),["assets/inverter-4f3bbe22.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./powerdog/counter.vue":()=>e(()=>import("./counter-d5ec2e1e.js"),["assets/counter-d5ec2e1e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./powerdog/device.vue":()=>e(()=>import("./device-35723e49.js"),["assets/device-35723e49.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./powerdog/inverter.vue":()=>e(()=>import("./inverter-e24bc29c.js"),["assets/inverter-e24bc29c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./powerfox/counter.vue":()=>e(()=>import("./counter-6f5d816d.js"),["assets/counter-6f5d816d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./powerfox/device.vue":()=>e(()=>import("./device-180aca42.js"),["assets/device-180aca42.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./powerfox/inverter.vue":()=>e(()=>import("./inverter-dc2aff6c.js"),["assets/inverter-dc2aff6c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./qcells/bat.vue":()=>e(()=>import("./bat-c38a98fa.js"),["assets/bat-c38a98fa.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./qcells/counter.vue":()=>e(()=>import("./counter-e0c57375.js"),["assets/counter-e0c57375.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./qcells/device.vue":()=>e(()=>import("./device-7cf62c11.js"),["assets/device-7cf62c11.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./qcells/inverter.vue":()=>e(()=>import("./inverter-abecfa92.js"),["assets/inverter-abecfa92.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./rct/bat.vue":()=>e(()=>import("./bat-6cd7597a.js"),["assets/bat-6cd7597a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./rct/counter.vue":()=>e(()=>import("./counter-99f5924e.js"),["assets/counter-99f5924e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./rct/device.vue":()=>e(()=>import("./device-594e24e2.js"),["assets/device-594e24e2.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./rct/inverter.vue":()=>e(()=>import("./inverter-f8197224.js"),["assets/inverter-f8197224.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./saxpower/bat.vue":()=>e(()=>import("./bat-2bb1b47a.js"),["assets/bat-2bb1b47a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./saxpower/device.vue":()=>e(()=>import("./device-047cfd82.js"),["assets/device-047cfd82.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./shelly/device.vue":()=>e(()=>import("./device-ee846804.js"),["assets/device-ee846804.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./shelly/inverter.vue":()=>e(()=>import("./inverter-512d5fe6.js"),["assets/inverter-512d5fe6.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./siemens/bat.vue":()=>e(()=>import("./bat-7cd1f25f.js"),["assets/bat-7cd1f25f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./siemens/counter.vue":()=>e(()=>import("./counter-03425fdc.js"),["assets/counter-03425fdc.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./siemens/device.vue":()=>e(()=>import("./device-416f1bdf.js"),["assets/device-416f1bdf.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./siemens/inverter.vue":()=>e(()=>import("./inverter-6547365c.js"),["assets/inverter-6547365c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./siemens_sentron/counter.vue":()=>e(()=>import("./counter-2a8037d9.js"),["assets/counter-2a8037d9.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./siemens_sentron/device.vue":()=>e(()=>import("./device-f42fac63.js"),["assets/device-f42fac63.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_shm/counter.vue":()=>e(()=>import("./counter-269eaeb4.js"),["assets/counter-269eaeb4.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_shm/device.vue":()=>e(()=>import("./device-eaf5a639.js"),["assets/device-eaf5a639.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_shm/inverter.vue":()=>e(()=>import("./inverter-e1654178.js"),["assets/inverter-e1654178.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_sunny_boy/bat.vue":()=>e(()=>import("./bat-bd24894e.js"),["assets/bat-bd24894e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_sunny_boy/bat_smart_energy.vue":()=>e(()=>import("./bat_smart_energy-dd1c7e67.js"),["assets/bat_smart_energy-dd1c7e67.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_sunny_boy/counter.vue":()=>e(()=>import("./counter-aa7dd269.js"),["assets/counter-aa7dd269.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_sunny_boy/device.vue":()=>e(()=>import("./device-be6d2347.js"),["assets/device-be6d2347.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_sunny_boy/inverter.vue":()=>e(()=>import("./inverter-6ad52a85.js"),["assets/inverter-6ad52a85.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_sunny_island/bat.vue":()=>e(()=>import("./bat-bb5f37f1.js"),["assets/bat-bb5f37f1.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_sunny_island/device.vue":()=>e(()=>import("./device-76495c7e.js"),["assets/device-76495c7e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_webbox/device.vue":()=>e(()=>import("./device-03a9dd5f.js"),["assets/device-03a9dd5f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_webbox/inverter.vue":()=>e(()=>import("./inverter-6e20d272.js"),["assets/inverter-6e20d272.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./smart_me/counter.vue":()=>e(()=>import("./counter-c174e25c.js"),["assets/counter-c174e25c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./smart_me/device.vue":()=>e(()=>import("./device-8cebad75.js"),["assets/device-8cebad75.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./smart_me/inverter.vue":()=>e(()=>import("./inverter-e2c9751e.js"),["assets/inverter-e2c9751e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./smartfox/counter.vue":()=>e(()=>import("./counter-19537b8c.js"),["assets/counter-19537b8c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./smartfox/device.vue":()=>e(()=>import("./device-8baafb3f.js"),["assets/device-8baafb3f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_log/counter.vue":()=>e(()=>import("./counter-4a2dd614.js"),["assets/counter-4a2dd614.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_log/device.vue":()=>e(()=>import("./device-1505dace.js"),["assets/device-1505dace.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_log/inverter.vue":()=>e(()=>import("./inverter-02f1a349.js"),["assets/inverter-02f1a349.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_view/counter.vue":()=>e(()=>import("./counter-62bc3b79.js"),["assets/counter-62bc3b79.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_view/device.vue":()=>e(()=>import("./device-eda37dcc.js"),["assets/device-eda37dcc.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_view/inverter.vue":()=>e(()=>import("./inverter-6f1e2eeb.js"),["assets/inverter-6f1e2eeb.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_watt/bat.vue":()=>e(()=>import("./bat-3a8a0fa9.js"),["assets/bat-3a8a0fa9.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_watt/counter.vue":()=>e(()=>import("./counter-8da7044d.js"),["assets/counter-8da7044d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_watt/device.vue":()=>e(()=>import("./device-f876c5f1.js"),["assets/device-f876c5f1.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_watt/inverter.vue":()=>e(()=>import("./inverter-713d7962.js"),["assets/inverter-713d7962.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_world/counter.vue":()=>e(()=>import("./counter-925e7cf7.js"),["assets/counter-925e7cf7.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_world/device.vue":()=>e(()=>import("./device-e9b6c7e4.js"),["assets/device-e9b6c7e4.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_world/inverter.vue":()=>e(()=>import("./inverter-aa380c55.js"),["assets/inverter-aa380c55.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solaredge/bat.vue":()=>e(()=>import("./bat-17332646.js"),["assets/bat-17332646.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solaredge/counter.vue":()=>e(()=>import("./counter-6e3c2d16.js"),["assets/counter-6e3c2d16.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solaredge/device.vue":()=>e(()=>import("./device-169f0a4f.js"),["assets/device-169f0a4f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solaredge/external_inverter.vue":()=>e(()=>import("./external_inverter-3a8cee19.js"),["assets/external_inverter-3a8cee19.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solaredge/inverter.vue":()=>e(()=>import("./inverter-e1e9f4fe.js"),["assets/inverter-e1e9f4fe.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solarmax/bat.vue":()=>e(()=>import("./bat-b54aa729.js"),["assets/bat-b54aa729.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solarmax/device.vue":()=>e(()=>import("./device-4a505cab.js"),["assets/device-4a505cab.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solarmax/inverter.vue":()=>e(()=>import("./inverter-21574d2a.js"),["assets/inverter-21574d2a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solax/bat.vue":()=>e(()=>import("./bat-8df9fe41.js"),["assets/bat-8df9fe41.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solax/counter.vue":()=>e(()=>import("./counter-41cd3727.js"),["assets/counter-41cd3727.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solax/device.vue":()=>e(()=>import("./device-749c6814.js"),["assets/device-749c6814.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solax/inverter.vue":()=>e(()=>import("./inverter-ef7aca41.js"),["assets/inverter-ef7aca41.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sonnenbatterie/bat.vue":()=>e(()=>import("./bat-924093e2.js"),["assets/bat-924093e2.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sonnenbatterie/counter.vue":()=>e(()=>import("./counter-fa702554.js"),["assets/counter-fa702554.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sonnenbatterie/device.vue":()=>e(()=>import("./device-5881bcf2.js"),["assets/device-5881bcf2.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sonnenbatterie/inverter.vue":()=>e(()=>import("./inverter-7a5c177b.js"),["assets/inverter-7a5c177b.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./studer/bat.vue":()=>e(()=>import("./bat-42234350.js"),["assets/bat-42234350.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./studer/device.vue":()=>e(()=>import("./device-41cad4e2.js"),["assets/device-41cad4e2.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./studer/inverter.vue":()=>e(()=>import("./inverter-6203ae41.js"),["assets/inverter-6203ae41.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sungrow/bat.vue":()=>e(()=>import("./bat-8a82cd9d.js"),["assets/bat-8a82cd9d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sungrow/counter.vue":()=>e(()=>import("./counter-9983166e.js"),["assets/counter-9983166e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sungrow/device.vue":()=>e(()=>import("./device-3c4260e6.js"),["assets/device-3c4260e6.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sungrow/inverter.vue":()=>e(()=>import("./inverter-afc0ebb2.js"),["assets/inverter-afc0ebb2.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sunways/device.vue":()=>e(()=>import("./device-a817311d.js"),["assets/device-a817311d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sunways/inverter.vue":()=>e(()=>import("./inverter-7b979942.js"),["assets/inverter-7b979942.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./tesla/bat.vue":()=>e(()=>import("./bat-2e6df830.js"),["assets/bat-2e6df830.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./tesla/counter.vue":()=>e(()=>import("./counter-3e996b67.js"),["assets/counter-3e996b67.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./tesla/device.vue":()=>e(()=>import("./device-fb7bbbe8.js"),["assets/device-fb7bbbe8.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./tesla/inverter.vue":()=>e(()=>import("./inverter-b1b0e3c7.js"),["assets/inverter-b1b0e3c7.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./varta/bat_api.vue":()=>e(()=>import("./bat_api-9676fc68.js"),["assets/bat_api-9676fc68.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./varta/bat_modbus.vue":()=>e(()=>import("./bat_modbus-06361a6d.js"),["assets/bat_modbus-06361a6d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./varta/counter.vue":()=>e(()=>import("./counter-a7be89d0.js"),["assets/counter-a7be89d0.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./varta/device.vue":()=>e(()=>import("./device-27fe5065.js"),["assets/device-27fe5065.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./victron/bat.vue":()=>e(()=>import("./bat-19e5d4a2.js"),["assets/bat-19e5d4a2.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./victron/counter.vue":()=>e(()=>import("./counter-9eee8339.js"),["assets/counter-9eee8339.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./victron/device.vue":()=>e(()=>import("./device-e0fdc9ea.js"),["assets/device-e0fdc9ea.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./victron/inverter.vue":()=>e(()=>import("./inverter-38ff630d.js"),["assets/inverter-38ff630d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./virtual/counter.vue":()=>e(()=>import("./counter-9b10ae70.js"),["assets/counter-9b10ae70.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./virtual/device.vue":()=>e(()=>import("./device-a558d98d.js"),["assets/device-a558d98d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./vzlogger/counter.vue":()=>e(()=>import("./counter-2265b8df.js"),["assets/counter-2265b8df.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./vzlogger/device.vue":()=>e(()=>import("./device-6282b1ba.js"),["assets/device-6282b1ba.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./vzlogger/inverter.vue":()=>e(()=>import("./inverter-169484de.js"),["assets/inverter-169484de.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./youless/device.vue":()=>e(()=>import("./device-d1f26139.js"),["assets/device-d1f26139.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./youless/inverter.vue":()=>e(()=>import("./inverter-4db3ad1c.js"),["assets/inverter-4db3ad1c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"])}),`./${this.deviceType}/${this.componentType}.vue`),errorComponent:S}):W({loader:()=>M(Object.assign({"./alpha_ess/device.vue":()=>e(()=>import("./device-fd6b8a54.js"),["assets/device-fd6b8a54.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./batterx/device.vue":()=>e(()=>import("./device-29380d8c.js"),["assets/device-29380d8c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./byd/device.vue":()=>e(()=>import("./device-589ff411.js"),["assets/device-589ff411.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./carlo_gavazzi/device.vue":()=>e(()=>import("./device-be0069c5.js"),["assets/device-be0069c5.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./deye/device.vue":()=>e(()=>import("./device-ddeaf6f7.js"),["assets/device-ddeaf6f7.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./discovergy/device.vue":()=>e(()=>import("./device-68b1cbc0.js"),["assets/device-68b1cbc0.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./e3dc/device.vue":()=>e(()=>import("./device-5d5c7300.js"),["assets/device-5d5c7300.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./enphase/device.vue":()=>e(()=>import("./device-2aa63639.js"),["assets/device-2aa63639.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./fems/device.vue":()=>e(()=>import("./device-5d68a6d5.js"),["assets/device-5d68a6d5.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./fronius/device.vue":()=>e(()=>import("./device-cd327ae2.js"),["assets/device-cd327ae2.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./good_we/device.vue":()=>e(()=>import("./device-e012caeb.js"),["assets/device-e012caeb.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./http/device.vue":()=>e(()=>import("./device-d47ecb4c.js"),["assets/device-d47ecb4c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./huawei/device.vue":()=>e(()=>import("./device-dc1669d7.js"),["assets/device-dc1669d7.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./huawei_smartlogger/device.vue":()=>e(()=>import("./device-cf590f01.js"),["assets/device-cf590f01.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./janitza/device.vue":()=>e(()=>import("./device-2314e42d.js"),["assets/device-2314e42d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./json/device.vue":()=>e(()=>import("./device-fa25520b.js"),["assets/device-fa25520b.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_piko/device.vue":()=>e(()=>import("./device-bc1d9fef.js"),["assets/device-bc1d9fef.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_piko_old/device.vue":()=>e(()=>import("./device-501632ef.js"),["assets/device-501632ef.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_plenticore/device.vue":()=>e(()=>import("./device-99d0a385.js"),["assets/device-99d0a385.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_sem/device.vue":()=>e(()=>import("./device-9830320e.js"),["assets/device-9830320e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kostal_steca/device.vue":()=>e(()=>import("./device-bff93d5a.js"),["assets/device-bff93d5a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./lg/device.vue":()=>e(()=>import("./device-e20f82e0.js"),["assets/device-e20f82e0.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./mqtt/device.vue":()=>e(()=>import("./device-b6164308.js"),["assets/device-b6164308.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_bat_kit/device.vue":()=>e(()=>import("./device-848b159b.js"),["assets/device-848b159b.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_evu_kit/device.vue":()=>e(()=>import("./device-349196ec.js"),["assets/device-349196ec.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_flex/device.vue":()=>e(()=>import("./device-d443d481.js"),["assets/device-d443d481.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./openwb_pv_kit/device.vue":()=>e(()=>import("./device-cdf1c8af.js"),["assets/device-cdf1c8af.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./powerdog/device.vue":()=>e(()=>import("./device-35723e49.js"),["assets/device-35723e49.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./powerfox/device.vue":()=>e(()=>import("./device-180aca42.js"),["assets/device-180aca42.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./qcells/device.vue":()=>e(()=>import("./device-7cf62c11.js"),["assets/device-7cf62c11.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./rct/device.vue":()=>e(()=>import("./device-594e24e2.js"),["assets/device-594e24e2.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./saxpower/device.vue":()=>e(()=>import("./device-047cfd82.js"),["assets/device-047cfd82.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./shelly/device.vue":()=>e(()=>import("./device-ee846804.js"),["assets/device-ee846804.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./siemens/device.vue":()=>e(()=>import("./device-416f1bdf.js"),["assets/device-416f1bdf.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./siemens_sentron/device.vue":()=>e(()=>import("./device-f42fac63.js"),["assets/device-f42fac63.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_shm/device.vue":()=>e(()=>import("./device-eaf5a639.js"),["assets/device-eaf5a639.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_sunny_boy/device.vue":()=>e(()=>import("./device-be6d2347.js"),["assets/device-be6d2347.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_sunny_island/device.vue":()=>e(()=>import("./device-76495c7e.js"),["assets/device-76495c7e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sma_webbox/device.vue":()=>e(()=>import("./device-03a9dd5f.js"),["assets/device-03a9dd5f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./smart_me/device.vue":()=>e(()=>import("./device-8cebad75.js"),["assets/device-8cebad75.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./smartfox/device.vue":()=>e(()=>import("./device-8baafb3f.js"),["assets/device-8baafb3f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_log/device.vue":()=>e(()=>import("./device-1505dace.js"),["assets/device-1505dace.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_view/device.vue":()=>e(()=>import("./device-eda37dcc.js"),["assets/device-eda37dcc.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_watt/device.vue":()=>e(()=>import("./device-f876c5f1.js"),["assets/device-f876c5f1.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solar_world/device.vue":()=>e(()=>import("./device-e9b6c7e4.js"),["assets/device-e9b6c7e4.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solaredge/device.vue":()=>e(()=>import("./device-169f0a4f.js"),["assets/device-169f0a4f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solarmax/device.vue":()=>e(()=>import("./device-4a505cab.js"),["assets/device-4a505cab.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./solax/device.vue":()=>e(()=>import("./device-749c6814.js"),["assets/device-749c6814.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sonnenbatterie/device.vue":()=>e(()=>import("./device-5881bcf2.js"),["assets/device-5881bcf2.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./studer/device.vue":()=>e(()=>import("./device-41cad4e2.js"),["assets/device-41cad4e2.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sungrow/device.vue":()=>e(()=>import("./device-3c4260e6.js"),["assets/device-3c4260e6.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./sunways/device.vue":()=>e(()=>import("./device-a817311d.js"),["assets/device-a817311d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./tesla/device.vue":()=>e(()=>import("./device-fb7bbbe8.js"),["assets/device-fb7bbbe8.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./varta/device.vue":()=>e(()=>import("./device-27fe5065.js"),["assets/device-27fe5065.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./victron/device.vue":()=>e(()=>import("./device-e0fdc9ea.js"),["assets/device-e0fdc9ea.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./virtual/device.vue":()=>e(()=>import("./device-a558d98d.js"),["assets/device-a558d98d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./vzlogger/device.vue":()=>e(()=>import("./device-6282b1ba.js"),["assets/device-6282b1ba.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./youless/device.vue":()=>e(()=>import("./device-d1f26139.js"),["assets/device-d1f26139.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"])}),`./${this.deviceType}/device.vue`),errorComponent:S})}},methods:{updateConfiguration(_){this.$emit("update:configuration",_)}}};function se(_,i,u,P,s,r){return d(),E($(r.myComponent),{configuration:u.configuration,deviceId:u.deviceId,deviceType:u.deviceType,componentId:u.componentId,componentType:u.componentType,"onUpdate:configuration":i[0]||(i[0]=I=>r.updateConfiguration(I))},null,40,["configuration","deviceId","deviceType","componentId","componentType"])}const me=y(ae,[["render",se],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbConfigProxy.vue"]]);N.add(U,G,F,H,J,Z,Y);const pe={name:"OpenwbHardwareInstallation",mixins:[X],emits:["sendCommand"],components:{FontAwesomeIcon:Q,OpenwbConfigProxy:me},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/get/hierarchy","openWB/system/device/+/config","openWB/system/device/+/component/+/config","openWB/system/configurable/devices_components"],deviceToAdd:void 0,showDeviceRemoveModal:!1,modalDevice:void 0,modalDeviceName:"",componentToAdd:[],showComponentRemoveModal:!1,modalComponent:void 0,modalComponentName:""}},computed:{installedDevices:{get(){return this.getWildcardTopics("openWB/system/device/+/config")}},installedComponents:{get(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")}}},methods:{getComponentTypeClass(_){return _.match(/^(.+_)?counter(_.+)?$/)?"danger":_.match(/^(.+_)?inverter(_.+)?$/)?"success":_.match(/^(.+_)?bat(_.+)?$/)?"warning":"dark"},getComponentTypeIcon(_){return _.match(/^(.+_)?counter(_.+)?$/)?["fas","fa-gauge-high"]:_.match(/^(.+_)?inverter(_.+)?$/)?["fas","fa-solar-panel"]:_.match(/^(.+_)?bat(_.+)?$/)?["fas","fa-car-battery"]:["fas","fa-microchip"]},getMyInstalledComponents(_){return this.getWildcardTopics("openWB/system/device/"+_+"/component/+/config")},deviceHasConfiguredComponents(_){return Object.keys(this.getMyInstalledComponents(_)).length>0},addDevice(){this.$emit("sendCommand",{command:"addDevice",data:{type:this.deviceToAdd}})},removeDeviceModal(_,i,u){u.stopPropagation(),this.modalDevice=_,this.modalDeviceName=i,this.showDeviceRemoveModal=!0},removeDevice(_){this.showDeviceRemoveModal=!1,_=="confirm"&&(console.info("request removal of device '"+this.modalDevice+"'"),this.$emit("sendCommand",{command:"removeDevice",data:{id:this.modalDevice}}))},getDeviceList(){return this.$store.state.mqtt["openWB/system/configurable/devices_components"]},addComponent(_,i,u){this.$emit("sendCommand",{command:"addComponent",data:{deviceId:_,deviceType:i,type:u}})},removeComponentModal(_,i,u,P,s){s.stopPropagation(),this.modalComponent={deviceId:_,id:i,type:u},this.modalComponentName=P,this.showComponentRemoveModal=!0},removeComponent(_){this.showComponentRemoveModal=!1,_=="confirm"&&(console.info("request removal of component '"+this.modalComponent.id+"' from device '"+this.modalComponent.deviceId+"' type '"+this.modalComponent.type+"'"),this.$emit("sendCommand",{command:"removeComponent",data:this.modalComponent}))},getComponentList(_){return _===void 0?[]:(console.debug("finding components for '"+_+"'"),this.$store.state.mqtt["openWB/system/configurable/devices_components"].find(u=>u.value===_).component)},updateConfiguration(_,i){console.debug("updateConfiguration",_,i),this.updateState(_,i.value,i.object)}}},l=_=>(ee("data-v-8595d6ae"),_=_(),_e(),_),ce={class:"hardwareInstallation"},Ee={name:"hardwareInstallationForm"},le={key:0},Te={key:1},Ie={key:1},Ve=l(()=>m("hr",null,null,-1)),De=l(()=>m("hr",null,null,-1)),Ae=l(()=>m("hr",null,null,-1)),Re=l(()=>m("hr",null,null,-1)),Pe={class:"col-1"},Oe={key:0},Le={class:"col-1"},ge=l(()=>m("br",null,null,-1)),be=l(()=>m("br",null,null,-1)),fe=l(()=>m("br",null,null,-1)),he=l(()=>m("br",null,null,-1)),we=l(()=>m("br",null,null,-1)),ye=l(()=>m("br",null,null,-1));function ke(_,i,u,P,s,r){const I=p("openwb-base-modal-dialog"),L=p("router-link"),A=p("openwb-base-alert"),D=p("font-awesome-icon"),g=p("openwb-base-avatar"),k=p("openwb-base-text-input"),C=p("openwb-config-proxy"),j=p("openwb-base-heading"),b=p("openwb-base-card"),x=p("openwb-base-click-button"),B=p("openwb-base-select-input"),q=p("openwb-base-submit-buttons");return d(),c(O,null,[n(I,{show:s.showDeviceRemoveModal,title:"Gerät löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:r.removeDevice},{default:o(()=>[v(' Wollen Sie das Gerät "'+T(s.modalDeviceName)+'" inklusive aller Komponenten wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),n(I,{show:s.showComponentRemoveModal,title:"Komponente löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:r.removeComponent},{default:o(()=>[v(' Wollen Sie die Komponente "'+T(s.modalComponentName)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),m("div",ce,[m("form",Ee,[n(A,{subtype:"info"},{default:o(()=>[v(" Wenn neue Komponenten - insbesondere Zähler - konfiguriert wurden, ist auch das "),n(L,{to:"/LoadManagementConfiguration"},{default:o(()=>[v(" Lastmanagement ")]),_:1}),v(" zu prüfen! ")]),_:1}),n(b,{title:"Geräte und Komponenten"},{default:o(()=>[_.$store.state.mqtt["openWB/general/extern"]===!0?(d(),c("div",le,[n(A,{subtype:"info"},{default:o(()=>[v(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),c("div",Te,[(d(!0),c(O,null,f(r.installedDevices,(t,z)=>(d(),E(b,{key:t.id,collapsible:!0,collapsed:!0,subtype:"dark"},{header:o(()=>[n(D,{"fixed-width":"",icon:["fas","network-wired"]}),v(" "+T(t.name),1)]),actions:o(a=>[a.collapsed?(d(),c("div",Ie,[(d(!0),c(O,null,f(r.getMyInstalledComponents(t.id),V=>(d(),E(g,{key:V.id,class:h("ml-1 bg-"+r.getComponentTypeClass(V.type))},{default:o(()=>[n(D,{"fixed-width":"",icon:r.getComponentTypeIcon(V.type)},null,8,["icon"])]),_:2},1032,["class"]))),128))])):(d(),E(g,{key:0,class:"bg-danger clickable",onClick:V=>r.removeDeviceModal(t.id,t.name,V)},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(k,{title:"Bezeichnung",subtype:"text","model-value":t.name,"onUpdate:modelValue":a=>_.updateState(z,a,"name")},null,8,["model-value","onUpdate:modelValue"]),Ve,n(C,{deviceId:t.id,deviceType:t.type,configuration:t.configuration,"onUpdate:configuration":a=>r.updateConfiguration(z,a)},null,8,["deviceId","deviceType","configuration","onUpdate:configuration"]),De,n(j,null,{default:o(()=>[v("Komponenten")]),_:1}),r.deviceHasConfiguredComponents(t.id)?w("",!0):(d(),E(A,{key:0,subtype:"warning"},{default:o(()=>[v(" Es wurden noch keine Komponenten zu diesem Gerät angelegt. ")]),_:1})),(d(!0),c(O,null,f(r.getMyInstalledComponents(t.id),(a,V)=>(d(),E(b,{key:a.id,collapsible:!0,collapsed:!0,subtype:r.getComponentTypeClass(a.type)},{header:o(()=>[n(D,{"fixed-width":"",icon:r.getComponentTypeIcon(a.type)},null,8,["icon"]),v(" "+T(a.name),1)]),actions:o(R=>[R.collapsed?w("",!0):(d(),E(g,{key:0,class:"bg-danger clickable",onClick:K=>r.removeComponentModal(t.id,a.id,a.type,a.name,K)},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(k,{title:"Bezeichnung",subtype:"text","model-value":a.name,"onUpdate:modelValue":R=>_.updateState(V,R,"name")},null,8,["model-value","onUpdate:modelValue"]),Ae,n(C,{deviceId:t.id,deviceType:t.type,componentId:a.id,componentType:a.type,configuration:a.configuration,"onUpdate:configuration":R=>r.updateConfiguration(V,R)},null,8,["deviceId","deviceType","componentId","componentType","configuration","onUpdate:configuration"])]),_:2},1032,["subtype"]))),128)),Re,r.getComponentList(t.type).length?(d(),E(B,{key:1,class:"mb-2",title:"Verfügbare Komponenten",notSelected:"Bitte auswählen",options:r.getComponentList(t.type),"model-value":s.componentToAdd[t.id],"onUpdate:modelValue":a=>s.componentToAdd[t.id]=a},{append:o(()=>[m("span",Pe,[n(x,{class:h(s.componentToAdd[t.id]===void 0?"btn-outline-success":"btn-success clickable"),disabled:s.componentToAdd[t.id]===void 0,onButtonClicked:a=>r.addComponent(t.id,t.type,s.componentToAdd[t.id])},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["class","disabled","onButtonClicked"])])]),help:o(()=>[v(" Bitte eine Komponente auswählen, die hinzugefügt werden soll. Für jeden Datensatz, z.B. Wechselrichter- und Batteriedaten, muss eine Wechselrichter- und eine Batteriekomponente hinzugefügt werden. ")]),_:2},1032,["options","model-value","onUpdate:modelValue"])):(d(),E(A,{key:2,subtype:"info"},{default:o(()=>[v(" Dieses System bietet keine Komponenten zur Installation an. ")]),_:1}))]),_:2},1024))),128)),Object.keys(r.installedDevices).length>0?(d(),c("hr",Oe)):w("",!0),n(B,{class:"mb-2",title:"Verfügbare Geräte",notSelected:"Bitte auswählen",options:r.getDeviceList(),"model-value":s.deviceToAdd,"onUpdate:modelValue":i[0]||(i[0]=t=>s.deviceToAdd=t)},{append:o(()=>[m("span",Le,[n(x,{class:h(s.deviceToAdd===void 0?"btn-outline-success":"btn-success clickable"),disabled:s.deviceToAdd===void 0,onButtonClicked:r.addDevice},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["class","disabled","onButtonClicked"])])]),help:o(()=>[v(' Die openWB-Regelung ist auf Werte von MESSPUNKTEN (Zähler, Energy Meter usw.) angewiesen. Hierfür werden "Geräte" und "Komponenten" verwendet.'),ge,v(' Ein "Gerät" wird hierbei durch seine IP-Adresse spezifiziert (häufig durch manuelle Eingabe oder manchmal automatisch ermittelt) und kann über mehrere untergeordnete "Komponenten" verfügen, z.B. einen Messpunkt für PV-Erzeugung, einen Messpunkt für Netzeinspeisung/-bezug am EVU-Punkt usw.. Ein "Gerät" bedingt somit immer mindestens eine zugehörige "Komponente".'),be,fe,v(' Bsp: Werden die Werte von verschiedenen Messpunkten (z.B. PV und EVU) über die gleiche IP-Adresse abgefragt, wird dafür ein "Gerät" mit zwei "Komponenten" für PV- und EVU- Messpunkt angelegt.'),he,v(' Verfügt dagegen jeder Messpunkt über eine eigene IP-Adresse, wird jeder Messpunkt als eigenes "Gerät" mit nur einer "Komponente" angelegt.'),we,ye,v(' Das "Gerät" wird in der dropdown-Liste ausgewählt und mit "+" der Regelung hinzugefügt. Im Anschluss erfolgt die Konfiguration des "Gerätes" innerhalb des schwarzen "Geräte"-Reiters. ')]),_:1},8,["options","model-value"])]))]),_:1}),n(q,{formName:"hardwareInstallationForm",onSave:i[1]||(i[1]=t=>_.$emit("save")),onReset:i[2]||(i[2]=t=>_.$emit("reset")),onDefaults:i[3]||(i[3]=t=>_.$emit("defaults"))})])])],64)}const qe=y(pe,[["render",ke],["__scopeId","data-v-8595d6ae"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/HardwareInstallation.vue"]]);export{qe as default}; diff --git a/web/settings/assets/InstantChargeConfig-13d5dc31.js b/web/settings/assets/InstantChargeConfig-14fcae69.js similarity index 84% rename from web/settings/assets/InstantChargeConfig-13d5dc31.js rename to web/settings/assets/InstantChargeConfig-14fcae69.js index e6f736e599..648cc34e8d 100644 --- a/web/settings/assets/InstantChargeConfig-13d5dc31.js +++ b/web/settings/assets/InstantChargeConfig-14fcae69.js @@ -1 +1 @@ -import{C as l}from"./index-bed1470e.js";import{_,q as o,k as a,l as i,u as b,B as s,M as r,x as u}from"./vendor-b03da118.js";import"./vendor-fortawesome-cf9a975a.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"OpenwbInstantChargeConfig",mixins:[l],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/instant_charging/phases_to_use"]}}},c={class:"instantChargeConfig"},f={name:"instantChargeConfigForm"},v={key:0},C={key:1};function w(t,e,$,B,k,V){const p=o("openwb-base-alert"),m=o("openwb-base-button-group-input"),g=o("openwb-base-card"),d=o("openwb-base-submit-buttons");return a(),i("div",c,[b("form",f,[s(g,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(p,{subtype:"info"},{default:r(()=>[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",C,[s(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/instant_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/instant_charging/phases_to_use",n))},{help:r(()=>[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Sofortladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(d,{formName:"instantChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const N=_(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/InstantChargeConfig.vue"]]);export{N as default}; +import{C as l}from"./index-e599db2d.js";import{_,q as o,k as a,l as i,u as b,B as s,M as r,x as u}from"./vendor-72da2ec6.js";import"./vendor-fortawesome-0685c9c0.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"OpenwbInstantChargeConfig",mixins:[l],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/instant_charging/phases_to_use"]}}},c={class:"instantChargeConfig"},f={name:"instantChargeConfigForm"},v={key:0},C={key:1};function w(t,e,$,B,k,V){const p=o("openwb-base-alert"),m=o("openwb-base-button-group-input"),g=o("openwb-base-card"),d=o("openwb-base-submit-buttons");return a(),i("div",c,[b("form",f,[s(g,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(p,{subtype:"info"},{default:r(()=>[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",C,[s(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/instant_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/instant_charging/phases_to_use",n))},{help:r(()=>[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Sofortladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(d,{formName:"instantChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const N=_(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/InstantChargeConfig.vue"]]);export{N as default}; diff --git a/web/settings/assets/LegalSettings-4590b97e.js b/web/settings/assets/LegalSettings-1baa74af.js similarity index 89% rename from web/settings/assets/LegalSettings-4590b97e.js rename to web/settings/assets/LegalSettings-1baa74af.js index 2dbe33811c..e800b41b55 100644 --- a/web/settings/assets/LegalSettings-4590b97e.js +++ b/web/settings/assets/LegalSettings-1baa74af.js @@ -1 +1 @@ -import{l as f,a4 as k,F as h}from"./vendor-fortawesome-cf9a975a.js";import{C as y}from"./index-bed1470e.js";import{_ as v,q as n,k as r,l as B,u as i,B as o,M as a,z as m,x as d,A as c}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";f.add(k);const z={name:"OpenwbDataProtection",components:{FontAwesomeIcon:h},mixins:[y],emits:["sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/system/dataprotection_acknowledged"]}},methods:{sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})}}},S={class:"dataProtection"},$={name:"dataProtectionForm"},C=i("iframe",{src:"dataProtection-usageTerms.html",width:"100%",height:"400px",class:"bg-light"},null,-1),V=i("hr",null,null,-1),W={class:"row justify-content-center"},N={class:"col-md-4 d-flex justify-content-center"};function x(t,e,A,q,P,p){const u=n("openwb-base-button-group-input"),b=n("font-awesome-icon"),_=n("openwb-base-click-button"),l=n("openwb-base-alert"),g=n("openwb-base-submit-buttons"),w=n("openwb-base-card");return r(),B("div",S,[i("form",$,[o(w,{title:"Nutzungsbedingungen & Datenschutzerklärung"},{footer:a(()=>[o(g,{formName:"dataProtectionForm",hideReset:!0,hideDefaults:!0,onSave:e[3]||(e[3]=s=>t.$emit("save"))})]),default:a(()=>[C,V,o(u,{title:"Nutzungsbedingungen",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/usage_terms_acknowledged"],"onUpdate:modelValue":e[0]||(e[0]=s=>t.updateState("openWB/system/usage_terms_acknowledged",s))},null,8,["model-value"]),t.$store.state.mqtt["openWB/system/usage_terms_acknowledged"]?c("",!0):(r(),m(l,{key:0,subtype:"danger",class:"mb-1"},{default:a(()=>[d(" Sie müssen die Nutzungsbedingungen akzeptieren, bevor openWB eingesetzt werden kann. "),i("div",W,[i("div",N,[o(_,{class:"btn-danger",onButtonClicked:e[1]||(e[1]=s=>p.sendSystemCommand("systemShutdown"))},{default:a(()=>[d(" Nicht akzeptieren und ausschalten "),o(b,{"fixed-width":"",icon:["fas","power-off"]})]),_:1})])])]),_:1})),o(u,{title:"Datenschutzerklärung",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/dataprotection_acknowledged"],"onUpdate:modelValue":e[2]||(e[2]=s=>t.updateState("openWB/system/dataprotection_acknowledged",s))},null,8,["model-value"]),t.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]?c("",!0):(r(),m(l,{key:1,subtype:"warning"},{default:a(()=>[d(" Wenn sie nicht einwilligen, wird eine ggf. konfigurierte Cloud Anbindung gelöscht. Die openWB arbeitet autark wie gewohnt weiter. Fernzugriff und Remote Support sind dann nicht mehr möglich! ")]),_:1}))]),_:1})])])}const U=v(z,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LegalSettings.vue"]]);export{U as default}; +import{l as f,a4 as k,F as h}from"./vendor-fortawesome-0685c9c0.js";import{C as y}from"./index-e599db2d.js";import{_ as v,q as n,k as r,l as B,u as i,B as o,M as a,z as m,x as d,A as c}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";f.add(k);const z={name:"OpenwbDataProtection",components:{FontAwesomeIcon:h},mixins:[y],emits:["sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/system/dataprotection_acknowledged"]}},methods:{sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})}}},S={class:"dataProtection"},$={name:"dataProtectionForm"},C=i("iframe",{src:"dataProtection-usageTerms.html",width:"100%",height:"400px",class:"bg-light"},null,-1),V=i("hr",null,null,-1),W={class:"row justify-content-center"},N={class:"col-md-4 d-flex justify-content-center"};function x(t,e,A,q,P,p){const u=n("openwb-base-button-group-input"),b=n("font-awesome-icon"),_=n("openwb-base-click-button"),l=n("openwb-base-alert"),g=n("openwb-base-submit-buttons"),w=n("openwb-base-card");return r(),B("div",S,[i("form",$,[o(w,{title:"Nutzungsbedingungen & Datenschutzerklärung"},{footer:a(()=>[o(g,{formName:"dataProtectionForm",hideReset:!0,hideDefaults:!0,onSave:e[3]||(e[3]=s=>t.$emit("save"))})]),default:a(()=>[C,V,o(u,{title:"Nutzungsbedingungen",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/usage_terms_acknowledged"],"onUpdate:modelValue":e[0]||(e[0]=s=>t.updateState("openWB/system/usage_terms_acknowledged",s))},null,8,["model-value"]),t.$store.state.mqtt["openWB/system/usage_terms_acknowledged"]?c("",!0):(r(),m(l,{key:0,subtype:"danger",class:"mb-1"},{default:a(()=>[d(" Sie müssen die Nutzungsbedingungen akzeptieren, bevor openWB eingesetzt werden kann. "),i("div",W,[i("div",N,[o(_,{class:"btn-danger",onButtonClicked:e[1]||(e[1]=s=>p.sendSystemCommand("systemShutdown"))},{default:a(()=>[d(" Nicht akzeptieren und ausschalten "),o(b,{"fixed-width":"",icon:["fas","power-off"]})]),_:1})])])]),_:1})),o(u,{title:"Datenschutzerklärung",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/dataprotection_acknowledged"],"onUpdate:modelValue":e[2]||(e[2]=s=>t.updateState("openWB/system/dataprotection_acknowledged",s))},null,8,["model-value"]),t.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]?c("",!0):(r(),m(l,{key:1,subtype:"warning"},{default:a(()=>[d(" Wenn sie nicht einwilligen, wird eine ggf. konfigurierte Cloud Anbindung gelöscht. Die openWB arbeitet autark wie gewohnt weiter. Fernzugriff und Remote Support sind dann nicht mehr möglich! ")]),_:1}))]),_:1})])])}const U=v(z,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LegalSettings.vue"]]);export{U as default}; diff --git a/web/settings/assets/LoadManagementConfig-90ace50d.js b/web/settings/assets/LoadManagementConfig-ca5dc1e1.js similarity index 95% rename from web/settings/assets/LoadManagementConfig-90ace50d.js rename to web/settings/assets/LoadManagementConfig-ca5dc1e1.js index 16d3bc7080..b47615fdc1 100644 --- a/web/settings/assets/LoadManagementConfig-90ace50d.js +++ b/web/settings/assets/LoadManagementConfig-ca5dc1e1.js @@ -1 +1 @@ -import{l as z,O as S,N as C,F as L}from"./vendor-fortawesome-cf9a975a.js";import{C as $}from"./index-bed1470e.js";import{S as x}from"./OpenwbSortableList-947b5132.js";import{_ as V,q as u,k as l,l as m,u as d,B as s,M as r,x as o,I as _,J as v,z as w,y as k}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";z.add(S,C);const M={name:"OpenwbLoadManagementConfig",mixins:[$],emits:["sendCommand"],components:{SortableList:x,FontAwesomeIcon:L},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/config/reserve_for_not_charging","openWB/counter/get/hierarchy","openWB/system/device/+/component/+/config","openWB/counter/+/config/max_currents","openWB/counter/+/config/max_total_power","openWB/pv/+/config/max_ac_out","openWB/chargepoint/+/config"]}},computed:{counterConfigs:{get(){let e=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(e).filter(t=>e[t].type.includes("counter")).reduce((t,i)=>({...t,[i]:e[i]}),{})}},inverterConfigs:{get(){let e=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(e).filter(t=>e[t].type.includes("inverter")).reduce((t,i)=>({...t,[i]:e[i]}),{})}},hierarchyLabels:{get(){let e={};for(const t of Object.values(this.$store.state.mqtt["openWB/counter/get/hierarchy"]))e={...e,...this.getElementTreeNames(t)};return e}}},methods:{getElementTreeNames(e){let t={};if(e.type=="cp"){let i=this.getChargePoint(e.id);i&&(t[e.id]=i.name)}else{let i=this.getComponent(e.id);i&&(t[e.id]=i.name)}return e.children.forEach(i=>{t={...t,...this.getElementTreeNames(i)}}),t},getComponent(e){let t;return Object.keys(this.$store.state.mqtt).forEach(i=>{i.match("^openWB/system/device/[0-9]+/component/"+e+"/config$")&&(t=this.$store.state.mqtt[i])}),t},getChargePoint(e){let t;return Object.keys(this.$store.state.mqtt).forEach(i=>{i.match("^openWB/chargepoint/"+e+"/config$")&&(t=this.$store.state.mqtt[i])}),t}}},q={class:"loadManagementConfig"},Z={name:"loadManagementConfigForm"},E={key:0},F={key:1},U=d("br",null,null,-1),A=d("br",null,null,-1),D=d("br",null,null,-1),N=d("br",null,null,-1),P=d("br",null,null,-1),T={key:0},O={key:1},j=d("br",null,null,-1),R=d("br",null,null,-1),G=d("br",null,null,-1);function K(e,t,i,H,I,g){const h=u("openwb-base-alert"),W=u("openwb-base-button-group-input"),f=u("openwb-base-heading"),b=u("font-awesome-icon"),c=u("openwb-base-number-input"),p=u("openwb-base-card"),B=u("sortable-list"),y=u("openwb-base-submit-buttons");return l(),m("div",q,[d("form",Z,[s(p,{title:"Einstellungen",collapsible:!0,collapsed:!1},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),m("div",E,[s(h,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),m("div",F,[s(W,{title:"Nicht-ladende Fahrzeuge",buttons:[{buttonValue:!1,text:"nicht berücksichtigen",class:"btn-outline-danger"},{buttonValue:!0,text:"berücksichtigen",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/counter/config/reserve_for_not_charging"],"onUpdate:modelValue":t[0]||(t[0]=n=>e.updateState("openWB/counter/config/reserve_for_not_charging",n))},{help:r(()=>[o(" Wenn angesteckte Fahrzeuge, die nicht laden, im Lastmanagement berücksichtigt werden, wird für diese der Fahrzeug-Mindeststrom bei vorliegender Ladefreigabe reserviert. Dadurch können bei Eingreifen des Lastmanagements andere Fahrzeuge möglicherweise nur mit reduzierter Stromstärke laden und der reservierte Strom wird nicht genutzt."),U,o(" Wenn die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, nutzen sie den für sie reservierten Strom."),A,D,o(" Wenn angesteckte Fahrzeuge, die nicht laden, nicht im Lastmanagement berücksichtigt werden, wird für diese auch kein Strom bei vorliegender Ladefreigabe reserviert. Andere Fahrzeuge können dadurch mit höherer Stromstärke laden."),N,o(" Wenn die maximalen Lastmanagement-Grenzen fast erreicht sind und die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, kann es zu einer kurzzeitigen Überschreitung der Lastmanagement-Grenzen kommen, bis im nächsten Zyklus die Stromstärken ALLER Ladepunkte an die neue Situation angepasst wurden."),P,o(" Das kurzzeitige Überschreiten der Maximal-Werte stellt für die Sicherungen in der Regel kein Problem dar. ")]),_:1},8,["model-value"]),s(f,null,{default:r(()=>[o(" Vorhandene Zählermodule ")]),_:1}),s(h,{subtype:"info"},{default:r(()=>[o(" Die maximale Leistung wird nur für den EVU-Zähler berücksichtigt. Bei Zwischenzählern begrenzt das Lastmanagement rein anhand der maximalen Phasenströme. ")]),_:1}),(l(!0),m(_,null,v(g.counterConfigs,n=>(l(),w(p,{key:n.id,collapsible:!0,collapsed:!0,subtype:"danger"},{header:r(()=>[s(b,{"fixed-width":"",icon:["fas","gauge-high"]}),o(" "+k(n.name),1)]),default:r(()=>[s(c,{title:"Maximale Leistung",min:1,step:1,unit:"kW","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_total_power"]/1e3,"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_total_power",a*1e3)},{help:r(()=>[o(" Maximal zulässige Leistung für diesen (Zwischen-)Zähler. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L1",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][0],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"0")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 1 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L2",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][1],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"1")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 2 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L3",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][2],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"2")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 3 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128)),s(f,null,{default:r(()=>[o(" Vorhandene Wechselrichtermodule ")]),_:1}),(l(!0),m(_,null,v(g.inverterConfigs,n=>(l(),w(p,{key:n.id,collapsible:!0,collapsed:!0,subtype:"success"},{header:r(()=>[s(b,{"fixed-width":"",icon:["fas","solar-panel"]}),o(" "+k(n.name),1)]),default:r(()=>[s(c,{title:"Maximale Ausgangsleistung des Wechselrichters",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/pv/"+n.id+"/config/max_ac_out"]/1e3,"onUpdate:modelValue":a=>e.updateState("openWB/pv/"+n.id+"/config/max_ac_out",a*1e3)},{help:r(()=>[o(" Relevant bei Hybrid-Systemen mit DC-Speicher. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128))]))]),_:1}),s(p,{title:"Struktur",collapsible:!0,collapsed:!0},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),m("div",T,[s(h,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),m("div",O,[s(B,{title:"Anordnung der Komponenten","model-value":e.$store.state.mqtt["openWB/counter/get/hierarchy"],"onUpdate:modelValue":t[1]||(t[1]=n=>e.updateState("openWB/counter/get/hierarchy",n)),labels:g.hierarchyLabels},{help:r(()=>[o(" Durch die Anordnung der Komponenten werden Abhängigkeiten abgebildet."),j,o(" An erster Stelle muss eine Zählerkomponente stehen, die den Netzanschlusspunkt erfasst. Dafür kann auch ein virtueller Zähler genutzt werden."),R,o(" Die weiteren Komponenten müssen hierarchisch so angeordnet werden, wie sie auch physisch im Stromnetz angeschlossen werden."),G,o(" Bei DC-gekoppelten Speichern sind diese hinter dem zugehörigen Wechselrichter zu platzieren, damit die Abhängigkeit in der Regelung berücksichtigt werden kann. ")]),_:1},8,["model-value","labels"])]))]),_:1}),s(y,{formName:"loadManagementConfigForm",onSave:t[2]||(t[2]=n=>e.$emit("save")),onReset:t[3]||(t[3]=n=>e.$emit("reset")),onDefaults:t[4]||(t[4]=n=>e.$emit("defaults"))})])])}const ie=V(M,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LoadManagementConfig.vue"]]);export{ie as default}; +import{l as z,O as S,N as C,F as L}from"./vendor-fortawesome-0685c9c0.js";import{C as $}from"./index-e599db2d.js";import{S as x}from"./OpenwbSortableList-2c36b1d6.js";import{_ as V,q as u,k as l,l as m,u as d,B as s,M as r,x as o,I as _,J as v,z as w,y as k}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";z.add(S,C);const M={name:"OpenwbLoadManagementConfig",mixins:[$],emits:["sendCommand"],components:{SortableList:x,FontAwesomeIcon:L},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/config/reserve_for_not_charging","openWB/counter/get/hierarchy","openWB/system/device/+/component/+/config","openWB/counter/+/config/max_currents","openWB/counter/+/config/max_total_power","openWB/pv/+/config/max_ac_out","openWB/chargepoint/+/config"]}},computed:{counterConfigs:{get(){let e=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(e).filter(t=>e[t].type.includes("counter")).reduce((t,i)=>({...t,[i]:e[i]}),{})}},inverterConfigs:{get(){let e=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(e).filter(t=>e[t].type.includes("inverter")).reduce((t,i)=>({...t,[i]:e[i]}),{})}},hierarchyLabels:{get(){let e={};for(const t of Object.values(this.$store.state.mqtt["openWB/counter/get/hierarchy"]))e={...e,...this.getElementTreeNames(t)};return e}}},methods:{getElementTreeNames(e){let t={};if(e.type=="cp"){let i=this.getChargePoint(e.id);i&&(t[e.id]=i.name)}else{let i=this.getComponent(e.id);i&&(t[e.id]=i.name)}return e.children.forEach(i=>{t={...t,...this.getElementTreeNames(i)}}),t},getComponent(e){let t;return Object.keys(this.$store.state.mqtt).forEach(i=>{i.match("^openWB/system/device/[0-9]+/component/"+e+"/config$")&&(t=this.$store.state.mqtt[i])}),t},getChargePoint(e){let t;return Object.keys(this.$store.state.mqtt).forEach(i=>{i.match("^openWB/chargepoint/"+e+"/config$")&&(t=this.$store.state.mqtt[i])}),t}}},q={class:"loadManagementConfig"},Z={name:"loadManagementConfigForm"},E={key:0},F={key:1},U=d("br",null,null,-1),A=d("br",null,null,-1),D=d("br",null,null,-1),N=d("br",null,null,-1),P=d("br",null,null,-1),T={key:0},O={key:1},j=d("br",null,null,-1),R=d("br",null,null,-1),G=d("br",null,null,-1);function K(e,t,i,H,I,g){const h=u("openwb-base-alert"),W=u("openwb-base-button-group-input"),f=u("openwb-base-heading"),b=u("font-awesome-icon"),c=u("openwb-base-number-input"),p=u("openwb-base-card"),B=u("sortable-list"),y=u("openwb-base-submit-buttons");return l(),m("div",q,[d("form",Z,[s(p,{title:"Einstellungen",collapsible:!0,collapsed:!1},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),m("div",E,[s(h,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),m("div",F,[s(W,{title:"Nicht-ladende Fahrzeuge",buttons:[{buttonValue:!1,text:"nicht berücksichtigen",class:"btn-outline-danger"},{buttonValue:!0,text:"berücksichtigen",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/counter/config/reserve_for_not_charging"],"onUpdate:modelValue":t[0]||(t[0]=n=>e.updateState("openWB/counter/config/reserve_for_not_charging",n))},{help:r(()=>[o(" Wenn angesteckte Fahrzeuge, die nicht laden, im Lastmanagement berücksichtigt werden, wird für diese der Fahrzeug-Mindeststrom bei vorliegender Ladefreigabe reserviert. Dadurch können bei Eingreifen des Lastmanagements andere Fahrzeuge möglicherweise nur mit reduzierter Stromstärke laden und der reservierte Strom wird nicht genutzt."),U,o(" Wenn die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, nutzen sie den für sie reservierten Strom."),A,D,o(" Wenn angesteckte Fahrzeuge, die nicht laden, nicht im Lastmanagement berücksichtigt werden, wird für diese auch kein Strom bei vorliegender Ladefreigabe reserviert. Andere Fahrzeuge können dadurch mit höherer Stromstärke laden."),N,o(" Wenn die maximalen Lastmanagement-Grenzen fast erreicht sind und die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, kann es zu einer kurzzeitigen Überschreitung der Lastmanagement-Grenzen kommen, bis im nächsten Zyklus die Stromstärken ALLER Ladepunkte an die neue Situation angepasst wurden."),P,o(" Das kurzzeitige Überschreiten der Maximal-Werte stellt für die Sicherungen in der Regel kein Problem dar. ")]),_:1},8,["model-value"]),s(f,null,{default:r(()=>[o(" Vorhandene Zählermodule ")]),_:1}),s(h,{subtype:"info"},{default:r(()=>[o(" Die maximale Leistung wird nur für den EVU-Zähler berücksichtigt. Bei Zwischenzählern begrenzt das Lastmanagement rein anhand der maximalen Phasenströme. ")]),_:1}),(l(!0),m(_,null,v(g.counterConfigs,n=>(l(),w(p,{key:n.id,collapsible:!0,collapsed:!0,subtype:"danger"},{header:r(()=>[s(b,{"fixed-width":"",icon:["fas","gauge-high"]}),o(" "+k(n.name),1)]),default:r(()=>[s(c,{title:"Maximale Leistung",min:1,step:1,unit:"kW","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_total_power"]/1e3,"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_total_power",a*1e3)},{help:r(()=>[o(" Maximal zulässige Leistung für diesen (Zwischen-)Zähler. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L1",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][0],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"0")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 1 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L2",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][1],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"1")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 2 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L3",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][2],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"2")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 3 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128)),s(f,null,{default:r(()=>[o(" Vorhandene Wechselrichtermodule ")]),_:1}),(l(!0),m(_,null,v(g.inverterConfigs,n=>(l(),w(p,{key:n.id,collapsible:!0,collapsed:!0,subtype:"success"},{header:r(()=>[s(b,{"fixed-width":"",icon:["fas","solar-panel"]}),o(" "+k(n.name),1)]),default:r(()=>[s(c,{title:"Maximale Ausgangsleistung des Wechselrichters",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/pv/"+n.id+"/config/max_ac_out"]/1e3,"onUpdate:modelValue":a=>e.updateState("openWB/pv/"+n.id+"/config/max_ac_out",a*1e3)},{help:r(()=>[o(" Relevant bei Hybrid-Systemen mit DC-Speicher. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128))]))]),_:1}),s(p,{title:"Struktur",collapsible:!0,collapsed:!0},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),m("div",T,[s(h,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),m("div",O,[s(B,{title:"Anordnung der Komponenten","model-value":e.$store.state.mqtt["openWB/counter/get/hierarchy"],"onUpdate:modelValue":t[1]||(t[1]=n=>e.updateState("openWB/counter/get/hierarchy",n)),labels:g.hierarchyLabels},{help:r(()=>[o(" Durch die Anordnung der Komponenten werden Abhängigkeiten abgebildet."),j,o(" An erster Stelle muss eine Zählerkomponente stehen, die den Netzanschlusspunkt erfasst. Dafür kann auch ein virtueller Zähler genutzt werden."),R,o(" Die weiteren Komponenten müssen hierarchisch so angeordnet werden, wie sie auch physisch im Stromnetz angeschlossen werden."),G,o(" Bei DC-gekoppelten Speichern sind diese hinter dem zugehörigen Wechselrichter zu platzieren, damit die Abhängigkeit in der Regelung berücksichtigt werden kann. ")]),_:1},8,["model-value","labels"])]))]),_:1}),s(y,{formName:"loadManagementConfigForm",onSave:t[2]||(t[2]=n=>e.$emit("save")),onReset:t[3]||(t[3]=n=>e.$emit("reset")),onDefaults:t[4]||(t[4]=n=>e.$emit("defaults"))})])])}const ie=V(M,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LoadManagementConfig.vue"]]);export{ie as default}; diff --git a/web/settings/assets/MqttBridgeConfig-65ad8973.js b/web/settings/assets/MqttBridgeConfig-175315b3.js similarity index 95% rename from web/settings/assets/MqttBridgeConfig-65ad8973.js rename to web/settings/assets/MqttBridgeConfig-175315b3.js index dd063c798d..25b5bb7720 100644 --- a/web/settings/assets/MqttBridgeConfig-65ad8973.js +++ b/web/settings/assets/MqttBridgeConfig-175315b3.js @@ -1 +1 @@ -import{l as C,d as q,Z as A,F as z}from"./vendor-fortawesome-cf9a975a.js";import{C as D}from"./index-bed1470e.js";import{_ as I,q as r,k as m,l as c,B as n,M as o,u as b,I as k,x as s,y,z as T,A as S,J as W,R as E,S as Z}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";C.add(q,A);const N={name:"OpenwbMqttBridgeConfiguration",mixins:[D],emits:["sendCommand"],components:{FontAwesomeIcon:z},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/mqtt/bridge/+"],showMqttBridgeModal:!1,modalMqttBridgeIndex:void 0}},computed:{configuredMqttBridges:{get(){let e=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[u,g]of Object.entries(e))g.remote.is_openwb_cloud&&delete e[u];return e}}},methods:{addMqttBridge(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addMqttBridge",data:{}})},getMqttBridgeIndex(e){return parseInt(e.match(/(?:\/)(\d+)$/)[1])},removeMqttBridgeModal(e,u){u.stopPropagation(),this.modalMqttBridgeIndex=this.getMqttBridgeIndex(e),this.showMqttBridgeModal=!0},removeMqttBridge(e,u){this.showMqttBridgeModal=!1,u=="confirm"&&(console.info("request removal of mqtt bridge '"+e+"'"),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:e}}))},getMqttBridgeName(e){return this.$store.state.mqtt["openWB/system/mqtt/bridge/"+e]?this.$store.state.mqtt["openWB/system/mqtt/bridge/"+e].name:e}}},_=e=>(E("data-v-1ec2f2f5"),e=e(),Z(),e),P={class:"mqttBridgeConfiguration"},Q=_(()=>b("br",null,null,-1)),F={key:0},L={key:1},$=["name"],O=_(()=>b("hr",null,null,-1)),R=_(()=>b("hr",null,null,-1));function j(e,u,g,J,f,i){const U=r("openwb-base-modal-dialog"),h=r("openwb-base-alert"),v=r("font-awesome-icon"),w=r("openwb-base-avatar"),p=r("openwb-base-text-input"),d=r("openwb-base-button-group-input"),V=r("openwb-base-heading"),B=r("openwb-base-number-input"),x=r("openwb-base-submit-buttons"),M=r("openwb-base-card");return m(),c(k,null,[n(U,{show:f.showMqttBridgeModal,title:"MQTT-Brücke löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:u[0]||(u[0]=l=>i.removeMqttBridge(f.modalMqttBridgeIndex,l))},{default:o(()=>[s(' Wollen Sie die MQTT-Brücke "'+y(i.getMqttBridgeName(f.modalMqttBridgeIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),b("div",P,[n(h,{subtype:"danger"},{default:o(()=>[s(" ACHTUNG: Die Konfiguration einer MQTT-Brücke erlaubt allen Nutzern mit Zugang zum entfernten MQTT-Server alle weitergeleiteten Daten dieser openWB einzusehen!"),Q,s(' Es wird dringend empfohlen, dies nur für nicht-öffentliche MQTT-Server unter Verwendung starker Transport-Verschlüsselung (TLS) mit persönlichem Login und strenger Zugriffskontrolle (zumindest für die MQTT-Thema unterhalb von "Entfernter Präfix") zu aktivieren! ')]),_:1}),n(M,{title:"Konfigurierte MQTT-Brücken"},{actions:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(m(),T(w,{key:0,class:"bg-success clickable",onClick:i.addMqttBridge},{default:o(()=>[n(v,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):S("",!0)]),default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(m(),c("div",F,[n(h,{subtype:"info"},{default:o(()=>[s(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(m(),c("div",L,[Object.keys(i.configuredMqttBridges).length===0?(m(),T(h,{key:0,subtype:"info"},{default:o(()=>[s(" Es wurde noch keine MQTT Brücke konfiguriert. ")]),_:1})):S("",!0),(m(!0),c(k,null,W(i.configuredMqttBridges,(l,a)=>(m(),c("form",{key:a,name:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(a)},[n(M,{title:l.name,collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(()=>[n(w,{class:"bg-danger clickable",onClick:t=>i.removeMqttBridgeModal(a,t)},{default:o(()=>[n(v,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])]),footer:o(()=>[n(x,{formName:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(a),hideDefaults:!0,onSave:t=>e.$emit("save",[a]),onReset:t=>e.$emit("reset",[a])},null,8,["formName","onSave","onReset"])]),default:o(()=>[n(p,{title:"Bezeichnung",subtype:"text",required:"",pattern:"[A-Za-z0-9]+","model-value":l.name,"onUpdate:modelValue":t=>e.updateState(a,t,"name")},{help:o(()=>[s(" Die Bezeichnung darf nur aus Buchstaben ohne Umlaute und Zahlen bestehen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Brücke aktivieren",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":l.active,"onUpdate:modelValue":t=>e.updateState(a,t,"active")},null,8,["model-value","onUpdate:modelValue"]),O,n(V,null,{default:o(()=>[s(" Einstellungen zur Verbindung ")]),_:1}),n(p,{title:"Entfernter Server",subtype:"host",required:"","model-value":l.remote.host,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.host")},null,8,["model-value","onUpdate:modelValue"]),n(B,{title:"Entfernter Port",required:"",min:1,max:65535,"model-value":l.remote.port,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.port")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Benutzername",subtype:"user",required:"",pattern:"[a-zA-Z0-9_\\-+.]+","model-value":l.remote.username,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.username")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Passwort",subtype:"password",required:"","model-value":l.remote.password,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.password")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Präfix",subtype:"text",pattern:"[A-Za-z0-9_\\-]+(\\/[A-Za-z0-9_\\-]+)?\\/","model-value":l.remote.prefix,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.prefix")},{help:o(()=>[s(' Das Präfix darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. Optional kann mit einem Schrägstrich "/" eine Topic-Struktur abgebildet werden. Am Ende des Präfix muss ein Schrägstrich "/" stehen. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(p,{title:"Client ID",subtype:"text",required:"",pattern:"[A-Za-z0-9_\\-]+","model-value":l.remote.client_id,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.client_id")},{help:o(()=>[s(" Die Client ID darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"MQTT Protokoll",required:"required",buttons:[{buttonValue:"mqttv31",text:"v3.1"},{buttonValue:"mqttv311",text:"v3.1.1"}],"model-value":l.remote.protocol,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.protocol")},null,8,["model-value","onUpdate:modelValue"]),n(d,{title:"TLS Version",buttons:[{buttonValue:"auto",text:"Automatisch",class:"btn-outline-success"},{buttonValue:"tlsv1.0",text:"v1.0",class:"btn-outline-warning"},{buttonValue:"tlsv1.1",text:"v1.1",class:"btn-outline-warning"},{buttonValue:"tlsv1.2",text:"v1.2"}],"model-value":l.remote.tls_version,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.tls_version")},{help:o(()=>[s(' In der Einstellung "Automatisch" wird die Version zwischen Client und Server ausgehandelt. Wenn erforderlich, kann eine spezielle Version erzwungen werden. Versionen kleiner 1.2 gelten als veraltet und sollten nicht mehr verwendet werden. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Brücke signalisieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.remote.try_private,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.try_private")},{help:o(()=>[s(" Aktiviert eine proprietäre Protokoll-Erweiterung des Mosquitto Brokers, welche dem entfernten Broker signalisiert dass es sich um eine MQTT Brücke handelt. Ergibt bessere Leistung mit Mosquitto-Brokern, ist jedoch inkompatibel mit vielen anderen MQTT-Brokern. Daher bitte nur aktivieren, wenn der Ziel-Broker sicher ein Mosquitto-Broker ist. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),R,n(V,null,{default:o(()=>[s("Datenübertragung")]),_:1}),n(d,{title:"Alle Statusdaten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.status,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.status")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Datenserien für Diagramme",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.graph,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.graph")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Fernkonfiguration ermöglichen",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.configuration,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.configuration")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1032,["title"])],8,$))),128))]))]),_:1})])],64)}const ne=I(N,[["render",j],["__scopeId","data-v-1ec2f2f5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/MqttBridgeConfig.vue"]]);export{ne as default}; +import{l as C,d as q,Z as A,F as z}from"./vendor-fortawesome-0685c9c0.js";import{C as D}from"./index-e599db2d.js";import{_ as I,q as r,k as m,l as c,B as n,M as o,u as b,I as k,x as s,y,z as T,A as S,J as W,R as E,S as Z}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";C.add(q,A);const N={name:"OpenwbMqttBridgeConfiguration",mixins:[D],emits:["sendCommand"],components:{FontAwesomeIcon:z},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/mqtt/bridge/+"],showMqttBridgeModal:!1,modalMqttBridgeIndex:void 0}},computed:{configuredMqttBridges:{get(){let e=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[u,g]of Object.entries(e))g.remote.is_openwb_cloud&&delete e[u];return e}}},methods:{addMqttBridge(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addMqttBridge",data:{}})},getMqttBridgeIndex(e){return parseInt(e.match(/(?:\/)(\d+)$/)[1])},removeMqttBridgeModal(e,u){u.stopPropagation(),this.modalMqttBridgeIndex=this.getMqttBridgeIndex(e),this.showMqttBridgeModal=!0},removeMqttBridge(e,u){this.showMqttBridgeModal=!1,u=="confirm"&&(console.info("request removal of mqtt bridge '"+e+"'"),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:e}}))},getMqttBridgeName(e){return this.$store.state.mqtt["openWB/system/mqtt/bridge/"+e]?this.$store.state.mqtt["openWB/system/mqtt/bridge/"+e].name:e}}},_=e=>(E("data-v-1ec2f2f5"),e=e(),Z(),e),P={class:"mqttBridgeConfiguration"},Q=_(()=>b("br",null,null,-1)),F={key:0},L={key:1},$=["name"],O=_(()=>b("hr",null,null,-1)),R=_(()=>b("hr",null,null,-1));function j(e,u,g,J,f,i){const U=r("openwb-base-modal-dialog"),h=r("openwb-base-alert"),v=r("font-awesome-icon"),w=r("openwb-base-avatar"),p=r("openwb-base-text-input"),d=r("openwb-base-button-group-input"),V=r("openwb-base-heading"),B=r("openwb-base-number-input"),x=r("openwb-base-submit-buttons"),M=r("openwb-base-card");return m(),c(k,null,[n(U,{show:f.showMqttBridgeModal,title:"MQTT-Brücke löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:u[0]||(u[0]=l=>i.removeMqttBridge(f.modalMqttBridgeIndex,l))},{default:o(()=>[s(' Wollen Sie die MQTT-Brücke "'+y(i.getMqttBridgeName(f.modalMqttBridgeIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),b("div",P,[n(h,{subtype:"danger"},{default:o(()=>[s(" ACHTUNG: Die Konfiguration einer MQTT-Brücke erlaubt allen Nutzern mit Zugang zum entfernten MQTT-Server alle weitergeleiteten Daten dieser openWB einzusehen!"),Q,s(' Es wird dringend empfohlen, dies nur für nicht-öffentliche MQTT-Server unter Verwendung starker Transport-Verschlüsselung (TLS) mit persönlichem Login und strenger Zugriffskontrolle (zumindest für die MQTT-Thema unterhalb von "Entfernter Präfix") zu aktivieren! ')]),_:1}),n(M,{title:"Konfigurierte MQTT-Brücken"},{actions:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(m(),T(w,{key:0,class:"bg-success clickable",onClick:i.addMqttBridge},{default:o(()=>[n(v,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):S("",!0)]),default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(m(),c("div",F,[n(h,{subtype:"info"},{default:o(()=>[s(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(m(),c("div",L,[Object.keys(i.configuredMqttBridges).length===0?(m(),T(h,{key:0,subtype:"info"},{default:o(()=>[s(" Es wurde noch keine MQTT Brücke konfiguriert. ")]),_:1})):S("",!0),(m(!0),c(k,null,W(i.configuredMqttBridges,(l,a)=>(m(),c("form",{key:a,name:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(a)},[n(M,{title:l.name,collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(()=>[n(w,{class:"bg-danger clickable",onClick:t=>i.removeMqttBridgeModal(a,t)},{default:o(()=>[n(v,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])]),footer:o(()=>[n(x,{formName:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(a),hideDefaults:!0,onSave:t=>e.$emit("save",[a]),onReset:t=>e.$emit("reset",[a])},null,8,["formName","onSave","onReset"])]),default:o(()=>[n(p,{title:"Bezeichnung",subtype:"text",required:"",pattern:"[A-Za-z0-9]+","model-value":l.name,"onUpdate:modelValue":t=>e.updateState(a,t,"name")},{help:o(()=>[s(" Die Bezeichnung darf nur aus Buchstaben ohne Umlaute und Zahlen bestehen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Brücke aktivieren",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":l.active,"onUpdate:modelValue":t=>e.updateState(a,t,"active")},null,8,["model-value","onUpdate:modelValue"]),O,n(V,null,{default:o(()=>[s(" Einstellungen zur Verbindung ")]),_:1}),n(p,{title:"Entfernter Server",subtype:"host",required:"","model-value":l.remote.host,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.host")},null,8,["model-value","onUpdate:modelValue"]),n(B,{title:"Entfernter Port",required:"",min:1,max:65535,"model-value":l.remote.port,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.port")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Benutzername",subtype:"user",required:"",pattern:"[a-zA-Z0-9_\\-+.]+","model-value":l.remote.username,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.username")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Passwort",subtype:"password",required:"","model-value":l.remote.password,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.password")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Präfix",subtype:"text",pattern:"[A-Za-z0-9_\\-]+(\\/[A-Za-z0-9_\\-]+)?\\/","model-value":l.remote.prefix,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.prefix")},{help:o(()=>[s(' Das Präfix darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. Optional kann mit einem Schrägstrich "/" eine Topic-Struktur abgebildet werden. Am Ende des Präfix muss ein Schrägstrich "/" stehen. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(p,{title:"Client ID",subtype:"text",required:"",pattern:"[A-Za-z0-9_\\-]+","model-value":l.remote.client_id,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.client_id")},{help:o(()=>[s(" Die Client ID darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"MQTT Protokoll",required:"required",buttons:[{buttonValue:"mqttv31",text:"v3.1"},{buttonValue:"mqttv311",text:"v3.1.1"}],"model-value":l.remote.protocol,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.protocol")},null,8,["model-value","onUpdate:modelValue"]),n(d,{title:"TLS Version",buttons:[{buttonValue:"auto",text:"Automatisch",class:"btn-outline-success"},{buttonValue:"tlsv1.0",text:"v1.0",class:"btn-outline-warning"},{buttonValue:"tlsv1.1",text:"v1.1",class:"btn-outline-warning"},{buttonValue:"tlsv1.2",text:"v1.2"}],"model-value":l.remote.tls_version,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.tls_version")},{help:o(()=>[s(' In der Einstellung "Automatisch" wird die Version zwischen Client und Server ausgehandelt. Wenn erforderlich, kann eine spezielle Version erzwungen werden. Versionen kleiner 1.2 gelten als veraltet und sollten nicht mehr verwendet werden. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Brücke signalisieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.remote.try_private,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.try_private")},{help:o(()=>[s(" Aktiviert eine proprietäre Protokoll-Erweiterung des Mosquitto Brokers, welche dem entfernten Broker signalisiert dass es sich um eine MQTT Brücke handelt. Ergibt bessere Leistung mit Mosquitto-Brokern, ist jedoch inkompatibel mit vielen anderen MQTT-Brokern. Daher bitte nur aktivieren, wenn der Ziel-Broker sicher ein Mosquitto-Broker ist. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),R,n(V,null,{default:o(()=>[s("Datenübertragung")]),_:1}),n(d,{title:"Alle Statusdaten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.status,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.status")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Datenserien für Diagramme",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.graph,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.graph")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Fernkonfiguration ermöglichen",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.configuration,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.configuration")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1032,["title"])],8,$))),128))]))]),_:1})])],64)}const ne=I(N,[["render",j],["__scopeId","data-v-1ec2f2f5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/MqttBridgeConfig.vue"]]);export{ne as default}; diff --git a/web/settings/assets/OpenwbSortableList-947b5132.js b/web/settings/assets/OpenwbSortableList-2c36b1d6.js similarity index 95% rename from web/settings/assets/OpenwbSortableList-947b5132.js rename to web/settings/assets/OpenwbSortableList-2c36b1d6.js index cb758c7644..497ed747cd 100644 --- a/web/settings/assets/OpenwbSortableList-947b5132.js +++ b/web/settings/assets/OpenwbSortableList-2c36b1d6.js @@ -1 +1 @@ -import{_ as f,a4 as O,q as i,k as a,z as u,M as C,u as o,p as g,B as b,A as _,x as h,y as w,l as m,m as H}from"./vendor-b03da118.js";import{l as y,ab as L,K as S,P as x,O as N,N as B,F as v,f as E,a as A}from"./vendor-fortawesome-cf9a975a.js";y.add(L,S,x,N,B);const j={name:"OpenwbNestedList",props:{list:{type:Object},labels:{type:Object}},components:{draggable:O,FontAwesomeIcon:v},methods:{classes(e){var t="";switch(e.type){case"bat":t+="battery";break;case"cp":t+="charge-point";break;default:t+=e.type;break}return t},getElementLabel(e){return this.labels&&e in this.labels?this.labels[e]:e},getElementIcon(e){switch(e.type){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"inverter":return["fas","solar-panel"];default:return}}}};function q(e,t,n,k,c,s){const d=i("font-awesome-icon"),p=i("openwb-nested-list",!0),r=i("draggable");return a(),u(r,{class:"dragArea w-100 mb-0",tag:"ul",list:n.list,group:{name:"g1"},"item-key":"id",handle:".handle"},{item:C(({element:l})=>[o("li",null,[o("div",{class:g(["element-titel",s.classes(l)])},[o("span",null,[b(d,{class:"handle","fixed-width":"",icon:["fas","arrows-alt"]}),s.getElementIcon(l)?(a(),u(d,{key:0,"fixed-width":"",icon:s.getElementIcon(l)},null,8,["icon"])):_("",!0),h(" "+w(s.getElementLabel(l.id)),1)])],2),b(p,{modelValue:l.children,"onUpdate:modelValue":V=>l.children=V,labels:n.labels},null,8,["modelValue","onUpdate:modelValue","labels"])])]),_:1},8,["list"])}const I=f(j,[["render",q],["__scopeId","data-v-82c9421a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbNestedList.vue"]]);y.add(E,A);const U={name:"OpenwbSortableList",props:{id:String,title:String,modelValue:Object,labels:{type:Object,default:void 0}},emits:["update:modelValue"],components:{FontAwesomeIcon:v,OpenwbNestedList:I},data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){console.debug("update in sortableList",e),this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},W={class:"form-row mb-1"},z={class:"col-md-8"},D={class:"form-row"},F={key:1},P={key:0,class:"form-row alert alert-info my-1 small"};function Q(e,t,n,k,c,s){const d=i("font-awesome-icon"),p=i("openwb-nested-list");return a(),m("div",W,[o("label",{onClick:t[0]||(t[0]=(...r)=>s.toggleHelp&&s.toggleHelp(...r)),class:"col-md-4 col-form-label"},[h(w(n.title)+" ",1),e.$slots.help?(a(),u(d,{key:0,icon:c.showHelp?["fas","question-circle"]:["far","question-circle"],class:g(c.showHelp?"text-info":"")},null,8,["icon","class"])):_("",!0)]),o("div",z,[o("div",D,[s.value!==void 0?(a(),u(p,{key:0,modelValue:s.value,"onUpdate:modelValue":t[1]||(t[1]=r=>s.value=r),labels:n.labels},null,8,["modelValue","labels"])):(a(),m("div",F,"Warte auf Daten..."))]),c.showHelp?(a(),m("span",P,[H(e.$slots,"help")])):_("",!0)])])}const M=f(U,[["render",Q],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbSortableList.vue"]]);export{M as S}; +import{_ as f,a4 as O,q as i,k as a,z as u,M as C,u as o,p as g,B as b,A as _,x as h,y as w,l as m,m as H}from"./vendor-72da2ec6.js";import{l as y,ab as L,K as S,P as x,O as N,N as B,F as v,f as E,a as A}from"./vendor-fortawesome-0685c9c0.js";y.add(L,S,x,N,B);const j={name:"OpenwbNestedList",props:{list:{type:Object},labels:{type:Object}},components:{draggable:O,FontAwesomeIcon:v},methods:{classes(e){var t="";switch(e.type){case"bat":t+="battery";break;case"cp":t+="charge-point";break;default:t+=e.type;break}return t},getElementLabel(e){return this.labels&&e in this.labels?this.labels[e]:e},getElementIcon(e){switch(e.type){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"inverter":return["fas","solar-panel"];default:return}}}};function q(e,t,n,k,c,s){const d=i("font-awesome-icon"),p=i("openwb-nested-list",!0),r=i("draggable");return a(),u(r,{class:"dragArea w-100 mb-0",tag:"ul",list:n.list,group:{name:"g1"},"item-key":"id",handle:".handle"},{item:C(({element:l})=>[o("li",null,[o("div",{class:g(["element-titel",s.classes(l)])},[o("span",null,[b(d,{class:"handle","fixed-width":"",icon:["fas","arrows-alt"]}),s.getElementIcon(l)?(a(),u(d,{key:0,"fixed-width":"",icon:s.getElementIcon(l)},null,8,["icon"])):_("",!0),h(" "+w(s.getElementLabel(l.id)),1)])],2),b(p,{modelValue:l.children,"onUpdate:modelValue":V=>l.children=V,labels:n.labels},null,8,["modelValue","onUpdate:modelValue","labels"])])]),_:1},8,["list"])}const I=f(j,[["render",q],["__scopeId","data-v-82c9421a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbNestedList.vue"]]);y.add(E,A);const U={name:"OpenwbSortableList",props:{id:String,title:String,modelValue:Object,labels:{type:Object,default:void 0}},emits:["update:modelValue"],components:{FontAwesomeIcon:v,OpenwbNestedList:I},data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){console.debug("update in sortableList",e),this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},W={class:"form-row mb-1"},z={class:"col-md-8"},D={class:"form-row"},F={key:1},P={key:0,class:"form-row alert alert-info my-1 small"};function Q(e,t,n,k,c,s){const d=i("font-awesome-icon"),p=i("openwb-nested-list");return a(),m("div",W,[o("label",{onClick:t[0]||(t[0]=(...r)=>s.toggleHelp&&s.toggleHelp(...r)),class:"col-md-4 col-form-label"},[h(w(n.title)+" ",1),e.$slots.help?(a(),u(d,{key:0,icon:c.showHelp?["fas","question-circle"]:["far","question-circle"],class:g(c.showHelp?"text-info":"")},null,8,["icon","class"])):_("",!0)]),o("div",z,[o("div",D,[s.value!==void 0?(a(),u(p,{key:0,modelValue:s.value,"onUpdate:modelValue":t[1]||(t[1]=r=>s.value=r),labels:n.labels},null,8,["modelValue","labels"])):(a(),m("div",F,"Warte auf Daten..."))]),c.showHelp?(a(),m("span",P,[H(e.$slots,"help")])):_("",!0)])])}const M=f(U,[["render",Q],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbSortableList.vue"]]);export{M as S}; diff --git a/web/settings/assets/OptionalComponents-c2ad0b5a.js b/web/settings/assets/OptionalComponents-bf1ba816.js similarity index 95% rename from web/settings/assets/OptionalComponents-c2ad0b5a.js rename to web/settings/assets/OptionalComponents-bf1ba816.js index 24a0c284f9..9d6e4db943 100644 --- a/web/settings/assets/OptionalComponents-c2ad0b5a.js +++ b/web/settings/assets/OptionalComponents-bf1ba816.js @@ -1,2 +1,2 @@ -import{_ as $,C}from"./index-bed1470e.js";import{_ as I}from"./dynamic-import-helper-be004503.js";import{l as L,W as O,X as S,F as V}from"./vendor-fortawesome-cf9a975a.js";import{_ as y,q as l,k as p,l as m,z as h,M as o,x as a,y as c,B as n,u as r,a1 as z,a2 as q,I as E,A as f}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const F={name:"DisplayThemeFallback",emits:["update:configuration"],props:{displayTheme:{type:Object,required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},x={class:"display-theme-fallback"},N={key:1};function j(e,t,s,v,w,u){const d=l("openwb-base-alert"),b=l("openwb-base-textarea");return p(),m("div",x,[Object.keys(s.displayTheme.configuration).length==0?(p(),h(d,{key:0,subtype:"info"},{default:o(()=>[a(' Das Display-Theme "'+c(s.displayTheme.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(p(),m("div",N,[n(d,{subtype:"warning"},{default:o(()=>[a(' Es wurde keine Konfigurationsseite für das Display-Theme "'+c(s.displayTheme.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(b,{title:"Konfiguration",subtype:"json","model-value":s.displayTheme.configuration,"onUpdate:modelValue":t[0]||(t[0]=g=>u.updateConfiguration(g,"configuration"))},{help:o(()=>[a(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(d,{subtype:"info"},{default:o(()=>[r("pre",null,c(JSON.stringify(s.displayTheme.configuration,void 0,2)),1)]),_:1})]))])}const A=y(F,[["render",j],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeFallback.vue"]]);L.add(O,S);const M={name:"OpenwbDisplayThemeProxy",emits:["update:configuration"],props:{displayTheme:{type:Object,required:!0}},components:{FontAwesomeIcon:V},computed:{myComponent(){return console.debug(`loading display theme: ${this.displayTheme.type}`),z({loader:()=>I(Object.assign({"./cards/displayTheme.vue":()=>$(()=>import("./displayTheme-f03291b1.js"),["assets/displayTheme-f03291b1.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"])}),`./${this.displayTheme.type}/displayTheme.vue`),errorComponent:A})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function P(e,t,s,v,w,u){const d=l("font-awesome-icon"),b=l("openwb-base-alert"),g=l("openwb-base-heading");return p(),m(E,null,[s.displayTheme.official?(p(),h(b,{key:0,subtype:"success"},{default:o(()=>[n(d,{"fixed-width":"",icon:["fas","certificate"]}),a(' Das ausgewählte Display Theme "'+c(s.displayTheme.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(p(),h(b,{key:1,subtype:"info"},{default:o(()=>[n(d,{"fixed-width":"",icon:["fas","people-group"]}),a(' Das ausgewählte Display Theme "'+c(s.displayTheme.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),n(g,null,{default:o(()=>[a(' Einstellungen für Display Theme "'+c(s.displayTheme.name)+'" ',1)]),_:1}),(p(),h(q(u.myComponent),{displayTheme:s.displayTheme,"onUpdate:configuration":t[0]||(t[0]=_=>u.updateConfiguration(_))},null,40,["displayTheme"]))],64)}const U=y(M,[["render",P],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeProxy.vue"]]),H={name:"OpenwbOptionalComponents",mixins:[C],components:{OpenwbDisplayThemeProxy:U},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/+/config","openWB/chargepoint/+/get/rfid","openWB/chargepoint/+/get/rfid_timestamp","openWB/chargepoint/+/set/rfid","openWB/optional/rfid/active","openWB/optional/led/active","ToDo/optional/led/instant_blocked","ToDo/optional/led/pv_blocked","ToDo/optional/led/scheduled_blocked","ToDo/optional/led/standby_blocked","ToDo/optional/led/stop_blocked","ToDo/optional/led/instant","ToDo/optional/led/pv","ToDo/optional/led/scheduled","ToDo/optional/led/standby","ToDo/optional/led/stop","openWB/optional/int_display/active","openWB/optional/int_display/standby","openWB/optional/int_display/rotation","openWB/optional/int_display/on_if_plugged_in","openWB/optional/int_display/pin_active","openWB/optional/int_display/pin_code","openWB/optional/int_display/theme","openWB/optional/int_display/only_local_charge_points","openWB/system/configurable/display_themes","openWB/optional/et/active","openWB/optional/et/config/provider","openWB/optional/et/config/max_price"],tempIdTagList:{}}},computed:{idTagList(){return Object.values(this.updateIdTagList())},displayThemeList(){return this.$store.state.mqtt["openWB/system/configurable/display_themes"]},displayThemeGroupList(){let e=[{label:"openWB",options:[]},{label:"Community",options:[]}];return this.displayThemeList.forEach(t=>{t.official===!0?e[0].options.push(t):e[1].options.push(t)}),e}},methods:{getIdFromTopic(e){return e.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,"")},updateIdTagList(){return Object.entries(this.getWildcardTopics("^openWB/chargepoint/[^+/]+/[gs]et/rfid$",!0)).forEach(e=>{e[1]!==null&&(this.tempIdTagList[e[1]]=`${e[1]} (${e[0].includes("/set/")?"zugewiesen":"erfasst"} an ${this.getChargePointName(this.getIdFromTopic(e[0]))})`)}),this.tempIdTagList},getChargePointName(e){return this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"].name:"Ladepunkt "+e},getDisplayThemeDefaults(e){const t=this.displayThemeList.find(s=>s.value==e);return Object.prototype.hasOwnProperty.call(t,"defaults")?{...JSON.parse(JSON.stringify(t.defaults))}:(console.warn("no default configuration found for display theme type!",e),{})},updateSelectedDisplayTheme(e){this.updateState("openWB/optional/int_display/theme",this.getDisplayThemeDefaults(e))},updateConfiguration(e,t){console.debug("updateConfiguration",e,t),this.updateState(e,t.value,t.object)}}},R={class:"optionalComponents"},J={name:"optionalComponentsForm"},G=r("ul",null,[r("li",null," Über einen in der openWB verbauten RFID-Reader (optional, z.B. anhand des Lieferscheins prüfen). "),r("li",null," Durch die automatische Erkennung an einer openWB Pro (muss in den Einstellungen aktiviert werden). "),r("li",null," Durch manuelle Eingabe einer ID am Display einer openWB. ")],-1),K={key:0},X=r("br",null,null,-1),Z=r("br",null,null,-1),Q=["innerHTML"],Y={key:0},ee=r("br",null,null,-1),te=r("hr",null,null,-1),ne={key:1},oe=r("hr",null,null,-1),ae={key:2},ie=r("hr",null,null,-1),se=r("hr",null,null,-1),le={key:0};function pe(e,t,s,v,w,u){const d=l("openwb-base-button-group-input"),b=l("openwb-base-alert"),g=l("openwb-base-textarea"),_=l("openwb-base-card"),T=l("openwb-base-heading"),B=l("openwb-base-range-input"),D=l("openwb-base-select-input"),W=l("openwb-display-theme-proxy"),k=l("openwb-base-submit-buttons");return p(),m("div",R,[r("form",J,[n(_,{title:"Identifikation von Fahrzeugen"},{default:o(()=>[n(d,{title:"Identifikation aktivieren","model-value":e.$store.state.mqtt["openWB/optional/rfid/active"],"onUpdate:modelValue":t[0]||(t[0]=i=>e.updateState("openWB/optional/rfid/active",i)),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},{help:o(()=>[a(" Die Identifikation von Fahrzeugen kann auf mehreren Wegen erfolgen: "),G]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(p(),m("div",K,[n(b,{subtype:"info",class:"mb-1"},{default:o(()=>[a(" Die ID-Tags, die an dem jeweiligen Ladepunkt gültig sind, müssen in dem Ladepunkt-Profil hinterlegt werden. Die ID-Tags müssen auch in den Einstellungen der Fahrzeuge diesen zugeordnet werden."),X,a(" Es kann zuerst das Fahrzeug angesteckt und dann der ID-Tag erfasst werden oder anders herum. Im letzten Fall muss innerhalb von 5 Minuten ein Fahrzeug angesteckt werden, sonst wird der ID-Tag verworfen. Das Fahrzeug wird erst nach dem Anstecken zugeordnet."),Z,r("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,Q)]),_:1}),n(g,{title:"Erkannte ID-Tags",readonly:"",disabled:"","model-value":u.idTagList.join(` +import{_ as $,C}from"./index-e599db2d.js";import{_ as I}from"./dynamic-import-helper-be004503.js";import{l as L,W as O,X as S,F as V}from"./vendor-fortawesome-0685c9c0.js";import{_ as y,q as l,k as p,l as m,z as h,M as o,x as a,y as c,B as n,u as r,a1 as z,a2 as q,I as E,A as f}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const F={name:"DisplayThemeFallback",emits:["update:configuration"],props:{displayTheme:{type:Object,required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},x={class:"display-theme-fallback"},N={key:1};function j(e,t,s,v,w,u){const d=l("openwb-base-alert"),b=l("openwb-base-textarea");return p(),m("div",x,[Object.keys(s.displayTheme.configuration).length==0?(p(),h(d,{key:0,subtype:"info"},{default:o(()=>[a(' Das Display-Theme "'+c(s.displayTheme.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(p(),m("div",N,[n(d,{subtype:"warning"},{default:o(()=>[a(' Es wurde keine Konfigurationsseite für das Display-Theme "'+c(s.displayTheme.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(b,{title:"Konfiguration",subtype:"json","model-value":s.displayTheme.configuration,"onUpdate:modelValue":t[0]||(t[0]=g=>u.updateConfiguration(g,"configuration"))},{help:o(()=>[a(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(d,{subtype:"info"},{default:o(()=>[r("pre",null,c(JSON.stringify(s.displayTheme.configuration,void 0,2)),1)]),_:1})]))])}const A=y(F,[["render",j],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeFallback.vue"]]);L.add(O,S);const M={name:"OpenwbDisplayThemeProxy",emits:["update:configuration"],props:{displayTheme:{type:Object,required:!0}},components:{FontAwesomeIcon:V},computed:{myComponent(){return console.debug(`loading display theme: ${this.displayTheme.type}`),z({loader:()=>I(Object.assign({"./cards/displayTheme.vue":()=>$(()=>import("./displayTheme-c9fd7a00.js"),["assets/displayTheme-c9fd7a00.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"])}),`./${this.displayTheme.type}/displayTheme.vue`),errorComponent:A})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function P(e,t,s,v,w,u){const d=l("font-awesome-icon"),b=l("openwb-base-alert"),g=l("openwb-base-heading");return p(),m(E,null,[s.displayTheme.official?(p(),h(b,{key:0,subtype:"success"},{default:o(()=>[n(d,{"fixed-width":"",icon:["fas","certificate"]}),a(' Das ausgewählte Display Theme "'+c(s.displayTheme.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(p(),h(b,{key:1,subtype:"info"},{default:o(()=>[n(d,{"fixed-width":"",icon:["fas","people-group"]}),a(' Das ausgewählte Display Theme "'+c(s.displayTheme.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),n(g,null,{default:o(()=>[a(' Einstellungen für Display Theme "'+c(s.displayTheme.name)+'" ',1)]),_:1}),(p(),h(q(u.myComponent),{displayTheme:s.displayTheme,"onUpdate:configuration":t[0]||(t[0]=_=>u.updateConfiguration(_))},null,40,["displayTheme"]))],64)}const U=y(M,[["render",P],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeProxy.vue"]]),H={name:"OpenwbOptionalComponents",mixins:[C],components:{OpenwbDisplayThemeProxy:U},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/+/config","openWB/chargepoint/+/get/rfid","openWB/chargepoint/+/get/rfid_timestamp","openWB/chargepoint/+/set/rfid","openWB/optional/rfid/active","openWB/optional/led/active","ToDo/optional/led/instant_blocked","ToDo/optional/led/pv_blocked","ToDo/optional/led/scheduled_blocked","ToDo/optional/led/standby_blocked","ToDo/optional/led/stop_blocked","ToDo/optional/led/instant","ToDo/optional/led/pv","ToDo/optional/led/scheduled","ToDo/optional/led/standby","ToDo/optional/led/stop","openWB/optional/int_display/active","openWB/optional/int_display/standby","openWB/optional/int_display/rotation","openWB/optional/int_display/on_if_plugged_in","openWB/optional/int_display/pin_active","openWB/optional/int_display/pin_code","openWB/optional/int_display/theme","openWB/optional/int_display/only_local_charge_points","openWB/system/configurable/display_themes","openWB/optional/et/active","openWB/optional/et/config/provider","openWB/optional/et/config/max_price"],tempIdTagList:{}}},computed:{idTagList(){return Object.values(this.updateIdTagList())},displayThemeList(){return this.$store.state.mqtt["openWB/system/configurable/display_themes"]},displayThemeGroupList(){let e=[{label:"openWB",options:[]},{label:"Community",options:[]}];return this.displayThemeList.forEach(t=>{t.official===!0?e[0].options.push(t):e[1].options.push(t)}),e}},methods:{getIdFromTopic(e){return e.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,"")},updateIdTagList(){return Object.entries(this.getWildcardTopics("^openWB/chargepoint/[^+/]+/[gs]et/rfid$",!0)).forEach(e=>{e[1]!==null&&(this.tempIdTagList[e[1]]=`${e[1]} (${e[0].includes("/set/")?"zugewiesen":"erfasst"} an ${this.getChargePointName(this.getIdFromTopic(e[0]))})`)}),this.tempIdTagList},getChargePointName(e){return this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"].name:"Ladepunkt "+e},getDisplayThemeDefaults(e){const t=this.displayThemeList.find(s=>s.value==e);return Object.prototype.hasOwnProperty.call(t,"defaults")?{...JSON.parse(JSON.stringify(t.defaults))}:(console.warn("no default configuration found for display theme type!",e),{})},updateSelectedDisplayTheme(e){this.updateState("openWB/optional/int_display/theme",this.getDisplayThemeDefaults(e))},updateConfiguration(e,t){console.debug("updateConfiguration",e,t),this.updateState(e,t.value,t.object)}}},R={class:"optionalComponents"},J={name:"optionalComponentsForm"},G=r("ul",null,[r("li",null," Über einen in der openWB verbauten RFID-Reader (optional, z.B. anhand des Lieferscheins prüfen). "),r("li",null," Durch die automatische Erkennung an einer openWB Pro (muss in den Einstellungen aktiviert werden). "),r("li",null," Durch manuelle Eingabe einer ID am Display einer openWB. ")],-1),K={key:0},X=r("br",null,null,-1),Z=r("br",null,null,-1),Q=["innerHTML"],Y={key:0},ee=r("br",null,null,-1),te=r("hr",null,null,-1),ne={key:1},oe=r("hr",null,null,-1),ae={key:2},ie=r("hr",null,null,-1),se=r("hr",null,null,-1),le={key:0};function pe(e,t,s,v,w,u){const d=l("openwb-base-button-group-input"),b=l("openwb-base-alert"),g=l("openwb-base-textarea"),_=l("openwb-base-card"),T=l("openwb-base-heading"),B=l("openwb-base-range-input"),D=l("openwb-base-select-input"),W=l("openwb-display-theme-proxy"),k=l("openwb-base-submit-buttons");return p(),m("div",R,[r("form",J,[n(_,{title:"Identifikation von Fahrzeugen"},{default:o(()=>[n(d,{title:"Identifikation aktivieren","model-value":e.$store.state.mqtt["openWB/optional/rfid/active"],"onUpdate:modelValue":t[0]||(t[0]=i=>e.updateState("openWB/optional/rfid/active",i)),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},{help:o(()=>[a(" Die Identifikation von Fahrzeugen kann auf mehreren Wegen erfolgen: "),G]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(p(),m("div",K,[n(b,{subtype:"info",class:"mb-1"},{default:o(()=>[a(" Die ID-Tags, die an dem jeweiligen Ladepunkt gültig sind, müssen in dem Ladepunkt-Profil hinterlegt werden. Die ID-Tags müssen auch in den Einstellungen der Fahrzeuge diesen zugeordnet werden."),X,a(" Es kann zuerst das Fahrzeug angesteckt und dann der ID-Tag erfasst werden oder anders herum. Im letzten Fall muss innerhalb von 5 Minuten ein Fahrzeug angesteckt werden, sonst wird der ID-Tag verworfen. Das Fahrzeug wird erst nach dem Anstecken zugeordnet."),Z,r("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,Q)]),_:1}),n(g,{title:"Erkannte ID-Tags",readonly:"",disabled:"","model-value":u.idTagList.join(` `)},{help:o(()=>[a(" Solange diese Seite geöffnet ist, werden alle erfassten ID-Tags in dieser Liste aufgeführt. ")]),_:1},8,["model-value"])])):f("",!0)]),_:1}),n(_,{title:"Display (intern oder extern)"},{default:o(()=>[n(d,{title:"Integriertes Display","model-value":e.$store.state.mqtt["openWB/optional/int_display/active"],"onUpdate:modelValue":t[1]||(t[1]=i=>e.updateState("openWB/optional/int_display/active",i)),buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},{help:o(()=>[a(' Je nach Bestellung kann die openWB mit oder ohne Display geliefert worden sein. Auch die Variante "Standalone" bietet beide Optionen. Bitte prüfe zuerst die Hardwareausstattung deiner openWB (z.B. Lieferschein). ')]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/optional/int_display/active"]==!0?(p(),m("div",Y,[n(d,{title:"Orientierung","model-value":e.$store.state.mqtt["openWB/optional/int_display/rotation"],"onUpdate:modelValue":t[2]||(t[2]=i=>e.updateState("openWB/optional/int_display/rotation",i)),buttons:[{buttonValue:0,text:"0°"},{buttonValue:90,text:"90°"},{buttonValue:180,text:"180°"},{buttonValue:270,text:"270°"}]},{help:o(()=>[a(" Mit dieser Einstellung kann das Display im Uhrzeigersinn gedreht werden, falls erforderlich. Nach einer Änderung ist ein Neustart erforderlich!"),ee,a(" Diese Einstellung erfordert ein Raspberry Pi Display. Anzeigen, welche über HDMI angeschlossen sind, werden nicht unterstützt. ")]),_:1},8,["model-value"]),te,n(T,null,{default:o(()=>[a(" Display Standby ")]),_:1}),n(B,{title:"Ausschaltzeit",min:0,max:12,step:1,"model-value":e.$store.state.mqtt["openWB/optional/int_display/standby"],"onUpdate:modelValue":t[3]||(t[3]=i=>e.updateState("openWB/optional/int_display/standby",i)),unit:"Sek",labels:[{label:"Immer an",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:30,value:30},{label:45,value:45},{label:"1 Min",value:60},{label:"1,5 Min",value:90},{label:"2 Min",value:120},{label:"3 Min",value:180},{label:"4 Min",value:240},{label:"5 Min",value:300},{label:"10 Min",value:600}]},{help:o(()=>[a(" Hier kann eine Zeitspanne angegeben werden, nach der das Display ausgeschaltet wird. ")]),_:1},8,["model-value"])])):f("",!0),e.$store.state.mqtt["openWB/general/extern"]===!0?(p(),m("div",ne,[oe,n(b,{subtype:"info"},{default:o(()=>[a(' Weitere Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(p(),m("div",ae,[ie,n(d,{title:"Ladepunkte auf externen openWB","model-value":e.$store.state.mqtt["openWB/optional/int_display/only_local_charge_points"],"onUpdate:modelValue":t[4]||(t[4]=i=>e.updateState("openWB/optional/int_display/only_local_charge_points",i)),buttons:[{buttonValue:!1,text:"Alle",class:"btn-outline-danger"},{buttonValue:!0,text:"Nur Lokale",class:"btn-outline-success"}]},{help:o(()=>[a(" Hiermit kann festgelegt werden, ob an angebundenen externen openWB alle oder nur die jeweils lokalen Ladepunkte angezeigt werden sollen. ")]),_:1},8,["model-value"]),se,e.$store.state.mqtt["openWB/optional/int_display/theme"]!==void 0?(p(),m("div",le,[n(D,{class:"mb-2",title:"Theme des Displays",groups:u.displayThemeGroupList,"model-value":e.$store.state.mqtt["openWB/optional/int_display/theme"].type,"onUpdate:modelValue":t[5]||(t[5]=i=>u.updateSelectedDisplayTheme(i))},{help:o(()=>[a(" Hier können unterschiedliche Display-Anzeigen, s.g. Themes, ausgewählt werden. Die Anzahl der Themes wird sich mit zukünftigen Releases erhöhen. ")]),_:1},8,["groups","model-value"]),e.$store.state.mqtt["openWB/optional/int_display/theme"].type?(p(),h(W,{key:0,displayTheme:e.$store.state.mqtt["openWB/optional/int_display/theme"],"onUpdate:configuration":t[6]||(t[6]=i=>u.updateConfiguration("openWB/optional/int_display/theme",i))},null,8,["displayTheme"])):f("",!0)])):f("",!0)]))]),_:1}),n(k,{formName:"optionalComponentsForm",onSave:t[7]||(t[7]=i=>e.$emit("save")),onReset:t[8]||(t[8]=i=>e.$emit("reset")),onDefaults:t[9]||(t[9]=i=>e.$emit("defaults"))})])])}const _e=y(H,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/OptionalComponents.vue"]]);export{_e as default}; diff --git a/web/settings/assets/PVChargeConfig-6a57d3e5.js b/web/settings/assets/PVChargeConfig-c306ea3a.js similarity index 98% rename from web/settings/assets/PVChargeConfig-6a57d3e5.js rename to web/settings/assets/PVChargeConfig-c306ea3a.js index d4e260aede..5eae1da3f4 100644 --- a/web/settings/assets/PVChargeConfig-6a57d3e5.js +++ b/web/settings/assets/PVChargeConfig-c306ea3a.js @@ -1 +1 @@ -import{C as f}from"./index-bed1470e.js";import{_ as w,q as g,k as d,l as u,u as r,B as l,M as i,x as a,z as W,A as B}from"./vendor-b03da118.js";import"./vendor-fortawesome-cf9a975a.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const S={name:"OpenwbPVChargeConfig",mixins:[f],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/pv_charging/control_range","openWB/general/chargemode_config/pv_charging/feed_in_yield","openWB/general/chargemode_config/pv_charging/switch_on_threshold","openWB/general/chargemode_config/pv_charging/switch_on_delay","openWB/general/chargemode_config/pv_charging/switch_off_threshold","openWB/general/chargemode_config/pv_charging/switch_off_delay","openWB/general/chargemode_config/pv_charging/phases_to_use","openWB/general/chargemode_config/pv_charging/phase_switch_delay","openWB/general/chargemode_config/pv_charging/bat_prio","openWB/general/chargemode_config/pv_charging/switch_on_soc","openWB/general/chargemode_config/pv_charging/switch_off_soc","openWB/general/chargemode_config/pv_charging/charging_power_reserve","openWB/general/chargemode_config/pv_charging/rundown_power","openWB/general/chargemode_config/pv_charging/rundown_soc"],calculatedControlMode:void 0}},computed:{controlMode:{get(){if(this.calculatedControlMode!==void 0)return this.calculatedControlMode;const e="openWB/general/chargemode_config/pv_charging/control_range";let n=this.$store.state.mqtt[e];var h="individual";return typeof n<"u"&&(n[0]===-230&&n[1]===0?h="export":n[0]===0&&n[1]===230?h="import":n[0]===-115&&n[1]===115?h="balanced":h="individual"),h},set(e){const n="openWB/general/chargemode_config/pv_charging/control_range";switch(this.calculatedControlMode=e,e){case"export":this.updateState(n,[-230,0]);break;case"import":this.updateState(n,[0,230]);break;case"balanced":this.updateState(n,[-115,115]);break}}}},methods:{updateBatterySwitchOnSoc(e){this.updateState("openWB/general/chargemode_config/pv_charging/switch_on_soc",e),e<=this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_soc"]&&this.updateState("openWB/general/chargemode_config/pv_charging/switch_off_soc",Math.max(0,e-5))},updateBatterySwitchOffSoc(e){this.updateState("openWB/general/chargemode_config/pv_charging/switch_off_soc",e),e>=this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_soc"]&&this.updateState("openWB/general/chargemode_config/pv_charging/switch_on_soc",e+5)}},watch:{controlMode(e){this.calculatedControlMode=e}}},V={class:"pvChargeConfig"},z={name:"pvChargeConfigForm"},E={key:0},k={key:1},C=r("br",null,null,-1),y=r("br",null,null,-1),M=r("hr",null,null,-1),L=r("br",null,null,-1),R=r("hr",null,null,-1),A=r("br",null,null,-1),P=r("hr",null,null,-1),U=r("br",null,null,-1),q=r("br",null,null,-1),$=r("br",null,null,-1),I={key:0},F={key:1},D={key:0},N={key:1},O=r("br",null,null,-1),Z=r("br",null,null,-1),T=r("br",null,null,-1),H=r("br",null,null,-1),G=r("br",null,null,-1),K=r("br",null,null,-1),j=r("hr",null,null,-1);function J(e,n,h,Q,X,s){const p=g("openwb-base-alert"),m=g("openwb-base-button-group-input"),o=g("openwb-base-number-input"),b=g("openwb-base-card"),c=g("openwb-base-range-input"),_=g("openwb-base-heading"),v=g("openwb-base-submit-buttons");return d(),u("div",V,[r("form",z,[l(b,{title:"Regelparameter"},{default:i(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",E,[l(p,{subtype:"info"},{default:i(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",k,[l(m,{title:"Regelmodus",buttons:[{buttonValue:"export",text:"Einspeisung"},{buttonValue:"import",text:"Bezug"},{buttonValue:"balanced",text:"Ausgewogen"},{buttonValue:"individual",text:"Individuell"}],modelValue:s.controlMode,"onUpdate:modelValue":n[0]||(n[0]=t=>s.controlMode=t)},{help:i(()=>[a(" Der Regelbereich wird auf den gesamten Überschuss angewendet, bevor die PV-Regelung durchgeführt wird. D.h. der Regelbereich wird auf alle Einstellungen für das PV-Laden angewendet und nur einmal unabhängig von der Anzahl der angesteckten Fahrzeuge. Liegt der Überschuss im vorgegebenen Regelbereich, wird nicht nachgeregelt. Liegt der Überschuss außerhalb des Regelbereichs, wird in die Mitte des Regelbereichs nachgeregelt."),C,a(' "Einspeisung" definiert einen Bereich mit minimaler Einspeisung (-230W, 0W), "Bezug" mit minimalem Netzbezug (0W, 230W), "Ausgewogen" mit ausgewogenem Netzbezug (-115W, 115W). Mit der Auswahl "individuell" kann ein eigener Regelbereich definiert werden.'),y,a(" Bei Speichervorrang erzeugt die Regelung bei Bedarf unabhängig vom eingestellten Regelmodus Einspeisung, damit der Speicher seine Ladeleistung erhöht. ")]),_:1},8,["modelValue"]),l(o,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Minimum",step:.005,unit:"kW","model-value":Array.isArray(e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][0]/1e3:void 0,"onUpdate:modelValue":n[1]||(n[1]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/control_range",t*1e3,"0"))},{help:i(()=>[a(" Untere Grenze des Regelbereichs. ")]),_:1},8,["disabled","readonly","model-value"]),l(o,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Maximum",step:.005,unit:"kW","model-value":Array.isArray(e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][1]/1e3:void 0,"onUpdate:modelValue":n[2]||(n[2]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/control_range",t*1e3,"1"))},{help:i(()=>[a("Obere Grenze des Regelbereichs.")]),_:1},8,["disabled","readonly","model-value"]),M,l(o,{title:"Einschaltschwelle",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_threshold"]/1e3,"onUpdate:modelValue":n[3]||(n[3]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_on_threshold",t*1e3))},{help:i(()=>[a(" Wird der Regelbereich in Richtung Einspeisung um diese Leistung überschritten, so wird der Ladevorgang gestartet. ")]),_:1},8,["model-value"]),l(o,{title:"Einschaltverzögerung",min:0,step:1,unit:"s","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_delay"],"onUpdate:modelValue":n[4]||(n[4]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_on_delay",t))},{help:i(()=>[a(" Die Einschaltschwelle muss für die hier angegebene Zeit dauerhaft überschritten werden, bevor ein Ladevorgang gestartet wird."),L,a(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird weiter geladen, wenn die Abschaltschwelle nicht unterschritten wird. ")]),_:1},8,["model-value"]),R,l(o,{title:"Abschaltschwelle",step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_threshold"]/1e3,"onUpdate:modelValue":n[5]||(n[5]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_off_threshold",t*1e3))},{help:i(()=>[a(" Wird der Regelbereich in Richtung Netzbezug um diese Leistung überschritten, so wird der Ladevorgang beendet. ")]),_:1},8,["model-value"]),l(o,{title:"Abschaltverzögerung",min:0,step:1,unit:"s","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_delay"],"onUpdate:modelValue":n[6]||(n[6]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_off_delay",t))},{help:i(()=>[a(" Die Abschaltschwelle muss für die hier angegebene Zeit dauerhaft unterschritten werden, bevor ein Ladevorgang beendet wird."),A,a(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird die Ladung sofort beendet, wenn die Abschaltschwelle unterschritten wird. ")]),_:1},8,["model-value"]),P,l(o,{title:"Regelpunkt Einspeisegrenze",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/feed_in_yield"]/1e3,"onUpdate:modelValue":n[7]||(n[7]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/feed_in_yield",t*1e3))},{help:i(()=>[a(" Die Nutzung dieser Option ergibt nur Sinn, wenn ein Wechselrichter mit separatem Smart-Meter am EVU-Punkt verbaut ist (nicht der originale Zähler des Versorgers!), welches eine dynamische Begrenzung der Einspeiseleistung am EVU-Punkt durch den PV-Wechselrichter bietet (bitte bei ev. Problemen immer vorab prüfen lassen)."),U,a(' Ist eine Einspeiseleistungsreduzierung verbaut (in vielen älteren, privaten Einspeiseverträgen z.B. als 70% Regelung bekannt), wird mit Eingabe des Wertes "Regelpunkt Einspeisegrenze" ein eigenverbrauchsoptimiertes Fahrzeugladen mit PV-Überschussenergie möglich, die sonst abgeregelt werden würde (Nutzung der PV-Peaks).'),q,a(' Wird in einem "Ladeprofil" die Option "Einspeisegrenze beachten" eingeschaltet, so wird der Regelpunkt auf diesen Wert verschoben und die Ladung startet erst, wenn der hinterlegte Wert "Regelpunkt Einspeisegrenze" überschritten wird.'),$,a(" Zur optimalen Eigenverbrauchssteuerung sollte der Wert einige hundert Watt UNTER der im Wechselrichter hinterlegten EVU-Einspeiseleistungsgrenze liegen, damit openWB die Ladung freigibt, BEVOR der Wechselrichter begrenzt wird. ")]),_:1},8,["model-value"])]))]),_:1}),l(b,{title:"Phasenumschaltung"},{default:i(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",I,[l(p,{subtype:"info"},{default:i(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",F,[l(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phases_to_use"],"onUpdate:modelValue":n[8]||(n[8]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/phases_to_use",t))},{help:i(()=>[a(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "PV-Laden" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um den verfügbaren Überschuss in die Fahrzeuge zu laden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phases_to_use"]==0?(d(),W(c,{key:0,title:"Verzögerung automat. Phasenumschaltung",min:1,max:15,step:1,unit:"Min.","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phase_switch_delay"],"onUpdate:modelValue":n[9]||(n[9]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/phase_switch_delay",t))},{help:i(()=>[a(" Um zu viele Umschaltungen zu vermeiden, wird Anhand dieses Wertes definiert, wann die Umschaltung erfolgen soll. Ist für durchgehend x Minuten die Maximalstromstärke erreicht, wird auf mehrphasige Ladung umgestellt. Ist die Ladung nur für ein Intervall unterhalb der Maximalstromstärke, beginnt das Intervall für die Umschaltung erneut. Ist die Ladung im mehrphasigen Modus für 16 - x Minuten auf der Minimalstromstärke, wird wieder auf einphasige Ladung gewechselt. ")]),_:1},8,["model-value"])):B("",!0)]))]),_:1}),l(b,{title:"Speicher-Beachtung"},{default:i(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",D,[l(p,{subtype:"info"},{default:i(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",N,[l(m,{title:"Priorisierung",buttons:[{buttonValue:!1,text:"Fahrzeuge"},{buttonValue:!0,text:"Speicher"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_prio"],"onUpdate:modelValue":n[10]||(n[10]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/bat_prio",t))},{help:i(()=>[a(' Sofern ein Hausstromspeicher (im Folgenden "Speicher" genannt) im Energiesystem verbaut ist, kann dieser beim Fahrzeugladen mit berücksichtigt werden. Dies erfolgt passiv über die Berücksichtigung der Speicherleistungswerte und des Speicher-SoC. Eine aktive Speichersteuerung durch openWB ist aktuell mangels Speicherschnittstelle nicht möglich.'),O,Z,a(' Bei Priorisierung "Fahrzeuge" wird die gesamte PV-Leistung ABZÜGLICH der "reservierten Ladeleistung" des Speichers zum Fahrzeugladen verwendet.'),T,H,a(' Bei Priorisierung "Speicher" wird die gesamte PV-Leistung und ZUSÄTZLICH die "erlaubte Entladeleistung" des Speichers (bis zum Erreichen des "minimalen Entlade-SoC" des Speichers) zum Fahrzeugladen verwendet.'),G,K,a(" Beide Modi lassen sich mit den zusätzlichen Einstellungen an die eigenen Bedürfnisse anpassen, so dass auch ein Mischbetrieb möglich ist. ")]),_:1},8,["model-value"]),l(o,{title:"Reservierte Ladeleistung",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/charging_power_reserve"]/1e3,"onUpdate:modelValue":n[11]||(n[11]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/charging_power_reserve",t*1e3))},{help:i(()=>[a(' Die "reservierte Ladeleistung" des Speichers wird von der Regelung auch bei "Fahrzeuge"-Vorrang NICHT für das Fahrzeugladen verwendet und bleibt immer dem Speicher vorbehalten. ')]),_:1},8,["model-value"]),l(o,{title:"Erlaubte Entladeleistung",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/rundown_power"]/1e3,"onUpdate:modelValue":n[12]||(n[12]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/rundown_power",t*1e3))},{help:i(()=>[a(' Die "erlaubte Entladeleistung" des Speichers wird von der Regelung bei "Speicher"-Vorrang ZUSÄTZLICH zur PV-Leistung für das Fahrzeugladen verwendet, solange der Speicher-SoC über dem "minimalen Entlade-SoC" liegt. ')]),_:1},8,["model-value"]),l(c,{title:"Minimaler Entlade-SoC",min:0,max:20,step:1,unit:"%",labels:[{label:0,value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:"Aus",value:100}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/rundown_soc"],"onUpdate:modelValue":n[13]||(n[13]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/rundown_soc",t))},{help:i(()=>[a(" Ein vorhandener Speicher wird im Modus PV-Laden mit der erlaubten Entladeleistung höchstens bis zu dem hier eingestellten Ladestand entladen. ")]),_:1},8,["model-value"]),j,l(_,null,{default:i(()=>[a(" Laden mit Mindeststrom ")]),_:1}),l(c,{title:"Einschalt-SoC",min:0,max:18,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_soc"],"onUpdate:modelValue":n[14]||(n[14]=t=>s.updateBatterySwitchOnSoc(t))},{help:i(()=>[a('Ist der Speicher-SoC größer oder gleich dem "Einschalt-SoC", wird der Speicher im Modus "PV-Laden" bei aktiviertem Mindeststrom bis zum "Ausschalt-SoC" entladen, auch wenn KEIN Überschuss vorhanden ist. Der "Einschalt-SoC" muss größer oder gleich dem "Ausschalt-SoC" sein.')]),_:1},8,["model-value"]),l(c,{title:"Ausschalt-SoC",min:0,max:18,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_soc"],"onUpdate:modelValue":n[15]||(n[15]=t=>s.updateBatterySwitchOffSoc(t))},{help:i(()=>[a('Ist der Speicher-SoC größer oder gleich dem "Einschalt-SoC", wird der Speicher im Modus "PV-Laden" bei aktiviertem Mindeststrom bis zum "Ausschalt-SoC" entladen, auch wenn KEIN Überschuss vorhanden ist. Der "Einschalt-SoC" muss größer oder gleich dem "Ausschalt-SoC" sein.')]),_:1},8,["model-value"])]))]),_:1}),l(v,{formName:"pvChargeConfigForm",onSave:n[16]||(n[16]=t=>e.$emit("save")),onReset:n[17]||(n[17]=t=>e.$emit("reset")),onDefaults:n[18]||(n[18]=t=>e.$emit("defaults"))})])])}const ie=w(S,[["render",J],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/PVChargeConfig.vue"]]);export{ie as default}; +import{C as f}from"./index-e599db2d.js";import{_ as w,q as g,k as d,l as u,u as r,B as l,M as i,x as a,z as W,A as B}from"./vendor-72da2ec6.js";import"./vendor-fortawesome-0685c9c0.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const S={name:"OpenwbPVChargeConfig",mixins:[f],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/pv_charging/control_range","openWB/general/chargemode_config/pv_charging/feed_in_yield","openWB/general/chargemode_config/pv_charging/switch_on_threshold","openWB/general/chargemode_config/pv_charging/switch_on_delay","openWB/general/chargemode_config/pv_charging/switch_off_threshold","openWB/general/chargemode_config/pv_charging/switch_off_delay","openWB/general/chargemode_config/pv_charging/phases_to_use","openWB/general/chargemode_config/pv_charging/phase_switch_delay","openWB/general/chargemode_config/pv_charging/bat_prio","openWB/general/chargemode_config/pv_charging/switch_on_soc","openWB/general/chargemode_config/pv_charging/switch_off_soc","openWB/general/chargemode_config/pv_charging/charging_power_reserve","openWB/general/chargemode_config/pv_charging/rundown_power","openWB/general/chargemode_config/pv_charging/rundown_soc"],calculatedControlMode:void 0}},computed:{controlMode:{get(){if(this.calculatedControlMode!==void 0)return this.calculatedControlMode;const e="openWB/general/chargemode_config/pv_charging/control_range";let n=this.$store.state.mqtt[e];var h="individual";return typeof n<"u"&&(n[0]===-230&&n[1]===0?h="export":n[0]===0&&n[1]===230?h="import":n[0]===-115&&n[1]===115?h="balanced":h="individual"),h},set(e){const n="openWB/general/chargemode_config/pv_charging/control_range";switch(this.calculatedControlMode=e,e){case"export":this.updateState(n,[-230,0]);break;case"import":this.updateState(n,[0,230]);break;case"balanced":this.updateState(n,[-115,115]);break}}}},methods:{updateBatterySwitchOnSoc(e){this.updateState("openWB/general/chargemode_config/pv_charging/switch_on_soc",e),e<=this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_soc"]&&this.updateState("openWB/general/chargemode_config/pv_charging/switch_off_soc",Math.max(0,e-5))},updateBatterySwitchOffSoc(e){this.updateState("openWB/general/chargemode_config/pv_charging/switch_off_soc",e),e>=this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_soc"]&&this.updateState("openWB/general/chargemode_config/pv_charging/switch_on_soc",e+5)}},watch:{controlMode(e){this.calculatedControlMode=e}}},V={class:"pvChargeConfig"},z={name:"pvChargeConfigForm"},E={key:0},k={key:1},C=r("br",null,null,-1),y=r("br",null,null,-1),M=r("hr",null,null,-1),L=r("br",null,null,-1),R=r("hr",null,null,-1),A=r("br",null,null,-1),P=r("hr",null,null,-1),U=r("br",null,null,-1),q=r("br",null,null,-1),$=r("br",null,null,-1),I={key:0},F={key:1},D={key:0},N={key:1},O=r("br",null,null,-1),Z=r("br",null,null,-1),T=r("br",null,null,-1),H=r("br",null,null,-1),G=r("br",null,null,-1),K=r("br",null,null,-1),j=r("hr",null,null,-1);function J(e,n,h,Q,X,s){const p=g("openwb-base-alert"),m=g("openwb-base-button-group-input"),o=g("openwb-base-number-input"),b=g("openwb-base-card"),c=g("openwb-base-range-input"),_=g("openwb-base-heading"),v=g("openwb-base-submit-buttons");return d(),u("div",V,[r("form",z,[l(b,{title:"Regelparameter"},{default:i(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",E,[l(p,{subtype:"info"},{default:i(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",k,[l(m,{title:"Regelmodus",buttons:[{buttonValue:"export",text:"Einspeisung"},{buttonValue:"import",text:"Bezug"},{buttonValue:"balanced",text:"Ausgewogen"},{buttonValue:"individual",text:"Individuell"}],modelValue:s.controlMode,"onUpdate:modelValue":n[0]||(n[0]=t=>s.controlMode=t)},{help:i(()=>[a(" Der Regelbereich wird auf den gesamten Überschuss angewendet, bevor die PV-Regelung durchgeführt wird. D.h. der Regelbereich wird auf alle Einstellungen für das PV-Laden angewendet und nur einmal unabhängig von der Anzahl der angesteckten Fahrzeuge. Liegt der Überschuss im vorgegebenen Regelbereich, wird nicht nachgeregelt. Liegt der Überschuss außerhalb des Regelbereichs, wird in die Mitte des Regelbereichs nachgeregelt."),C,a(' "Einspeisung" definiert einen Bereich mit minimaler Einspeisung (-230W, 0W), "Bezug" mit minimalem Netzbezug (0W, 230W), "Ausgewogen" mit ausgewogenem Netzbezug (-115W, 115W). Mit der Auswahl "individuell" kann ein eigener Regelbereich definiert werden.'),y,a(" Bei Speichervorrang erzeugt die Regelung bei Bedarf unabhängig vom eingestellten Regelmodus Einspeisung, damit der Speicher seine Ladeleistung erhöht. ")]),_:1},8,["modelValue"]),l(o,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Minimum",step:.005,unit:"kW","model-value":Array.isArray(e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][0]/1e3:void 0,"onUpdate:modelValue":n[1]||(n[1]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/control_range",t*1e3,"0"))},{help:i(()=>[a(" Untere Grenze des Regelbereichs. ")]),_:1},8,["disabled","readonly","model-value"]),l(o,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Maximum",step:.005,unit:"kW","model-value":Array.isArray(e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][1]/1e3:void 0,"onUpdate:modelValue":n[2]||(n[2]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/control_range",t*1e3,"1"))},{help:i(()=>[a("Obere Grenze des Regelbereichs.")]),_:1},8,["disabled","readonly","model-value"]),M,l(o,{title:"Einschaltschwelle",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_threshold"]/1e3,"onUpdate:modelValue":n[3]||(n[3]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_on_threshold",t*1e3))},{help:i(()=>[a(" Wird der Regelbereich in Richtung Einspeisung um diese Leistung überschritten, so wird der Ladevorgang gestartet. ")]),_:1},8,["model-value"]),l(o,{title:"Einschaltverzögerung",min:0,step:1,unit:"s","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_delay"],"onUpdate:modelValue":n[4]||(n[4]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_on_delay",t))},{help:i(()=>[a(" Die Einschaltschwelle muss für die hier angegebene Zeit dauerhaft überschritten werden, bevor ein Ladevorgang gestartet wird."),L,a(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird weiter geladen, wenn die Abschaltschwelle nicht unterschritten wird. ")]),_:1},8,["model-value"]),R,l(o,{title:"Abschaltschwelle",step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_threshold"]/1e3,"onUpdate:modelValue":n[5]||(n[5]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_off_threshold",t*1e3))},{help:i(()=>[a(" Wird der Regelbereich in Richtung Netzbezug um diese Leistung überschritten, so wird der Ladevorgang beendet. ")]),_:1},8,["model-value"]),l(o,{title:"Abschaltverzögerung",min:0,step:1,unit:"s","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_delay"],"onUpdate:modelValue":n[6]||(n[6]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_off_delay",t))},{help:i(()=>[a(" Die Abschaltschwelle muss für die hier angegebene Zeit dauerhaft unterschritten werden, bevor ein Ladevorgang beendet wird."),A,a(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird die Ladung sofort beendet, wenn die Abschaltschwelle unterschritten wird. ")]),_:1},8,["model-value"]),P,l(o,{title:"Regelpunkt Einspeisegrenze",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/feed_in_yield"]/1e3,"onUpdate:modelValue":n[7]||(n[7]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/feed_in_yield",t*1e3))},{help:i(()=>[a(" Die Nutzung dieser Option ergibt nur Sinn, wenn ein Wechselrichter mit separatem Smart-Meter am EVU-Punkt verbaut ist (nicht der originale Zähler des Versorgers!), welches eine dynamische Begrenzung der Einspeiseleistung am EVU-Punkt durch den PV-Wechselrichter bietet (bitte bei ev. Problemen immer vorab prüfen lassen)."),U,a(' Ist eine Einspeiseleistungsreduzierung verbaut (in vielen älteren, privaten Einspeiseverträgen z.B. als 70% Regelung bekannt), wird mit Eingabe des Wertes "Regelpunkt Einspeisegrenze" ein eigenverbrauchsoptimiertes Fahrzeugladen mit PV-Überschussenergie möglich, die sonst abgeregelt werden würde (Nutzung der PV-Peaks).'),q,a(' Wird in einem "Ladeprofil" die Option "Einspeisegrenze beachten" eingeschaltet, so wird der Regelpunkt auf diesen Wert verschoben und die Ladung startet erst, wenn der hinterlegte Wert "Regelpunkt Einspeisegrenze" überschritten wird.'),$,a(" Zur optimalen Eigenverbrauchssteuerung sollte der Wert einige hundert Watt UNTER der im Wechselrichter hinterlegten EVU-Einspeiseleistungsgrenze liegen, damit openWB die Ladung freigibt, BEVOR der Wechselrichter begrenzt wird. ")]),_:1},8,["model-value"])]))]),_:1}),l(b,{title:"Phasenumschaltung"},{default:i(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",I,[l(p,{subtype:"info"},{default:i(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",F,[l(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phases_to_use"],"onUpdate:modelValue":n[8]||(n[8]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/phases_to_use",t))},{help:i(()=>[a(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "PV-Laden" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um den verfügbaren Überschuss in die Fahrzeuge zu laden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phases_to_use"]==0?(d(),W(c,{key:0,title:"Verzögerung automat. Phasenumschaltung",min:1,max:15,step:1,unit:"Min.","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phase_switch_delay"],"onUpdate:modelValue":n[9]||(n[9]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/phase_switch_delay",t))},{help:i(()=>[a(" Um zu viele Umschaltungen zu vermeiden, wird Anhand dieses Wertes definiert, wann die Umschaltung erfolgen soll. Ist für durchgehend x Minuten die Maximalstromstärke erreicht, wird auf mehrphasige Ladung umgestellt. Ist die Ladung nur für ein Intervall unterhalb der Maximalstromstärke, beginnt das Intervall für die Umschaltung erneut. Ist die Ladung im mehrphasigen Modus für 16 - x Minuten auf der Minimalstromstärke, wird wieder auf einphasige Ladung gewechselt. ")]),_:1},8,["model-value"])):B("",!0)]))]),_:1}),l(b,{title:"Speicher-Beachtung"},{default:i(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",D,[l(p,{subtype:"info"},{default:i(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",N,[l(m,{title:"Priorisierung",buttons:[{buttonValue:!1,text:"Fahrzeuge"},{buttonValue:!0,text:"Speicher"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_prio"],"onUpdate:modelValue":n[10]||(n[10]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/bat_prio",t))},{help:i(()=>[a(' Sofern ein Hausstromspeicher (im Folgenden "Speicher" genannt) im Energiesystem verbaut ist, kann dieser beim Fahrzeugladen mit berücksichtigt werden. Dies erfolgt passiv über die Berücksichtigung der Speicherleistungswerte und des Speicher-SoC. Eine aktive Speichersteuerung durch openWB ist aktuell mangels Speicherschnittstelle nicht möglich.'),O,Z,a(' Bei Priorisierung "Fahrzeuge" wird die gesamte PV-Leistung ABZÜGLICH der "reservierten Ladeleistung" des Speichers zum Fahrzeugladen verwendet.'),T,H,a(' Bei Priorisierung "Speicher" wird die gesamte PV-Leistung und ZUSÄTZLICH die "erlaubte Entladeleistung" des Speichers (bis zum Erreichen des "minimalen Entlade-SoC" des Speichers) zum Fahrzeugladen verwendet.'),G,K,a(" Beide Modi lassen sich mit den zusätzlichen Einstellungen an die eigenen Bedürfnisse anpassen, so dass auch ein Mischbetrieb möglich ist. ")]),_:1},8,["model-value"]),l(o,{title:"Reservierte Ladeleistung",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/charging_power_reserve"]/1e3,"onUpdate:modelValue":n[11]||(n[11]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/charging_power_reserve",t*1e3))},{help:i(()=>[a(' Die "reservierte Ladeleistung" des Speichers wird von der Regelung auch bei "Fahrzeuge"-Vorrang NICHT für das Fahrzeugladen verwendet und bleibt immer dem Speicher vorbehalten. ')]),_:1},8,["model-value"]),l(o,{title:"Erlaubte Entladeleistung",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/rundown_power"]/1e3,"onUpdate:modelValue":n[12]||(n[12]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/rundown_power",t*1e3))},{help:i(()=>[a(' Die "erlaubte Entladeleistung" des Speichers wird von der Regelung bei "Speicher"-Vorrang ZUSÄTZLICH zur PV-Leistung für das Fahrzeugladen verwendet, solange der Speicher-SoC über dem "minimalen Entlade-SoC" liegt. ')]),_:1},8,["model-value"]),l(c,{title:"Minimaler Entlade-SoC",min:0,max:20,step:1,unit:"%",labels:[{label:0,value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:"Aus",value:100}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/rundown_soc"],"onUpdate:modelValue":n[13]||(n[13]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/rundown_soc",t))},{help:i(()=>[a(" Ein vorhandener Speicher wird im Modus PV-Laden mit der erlaubten Entladeleistung höchstens bis zu dem hier eingestellten Ladestand entladen. ")]),_:1},8,["model-value"]),j,l(_,null,{default:i(()=>[a(" Laden mit Mindeststrom ")]),_:1}),l(c,{title:"Einschalt-SoC",min:0,max:18,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_soc"],"onUpdate:modelValue":n[14]||(n[14]=t=>s.updateBatterySwitchOnSoc(t))},{help:i(()=>[a('Ist der Speicher-SoC größer oder gleich dem "Einschalt-SoC", wird der Speicher im Modus "PV-Laden" bei aktiviertem Mindeststrom bis zum "Ausschalt-SoC" entladen, auch wenn KEIN Überschuss vorhanden ist. Der "Einschalt-SoC" muss größer oder gleich dem "Ausschalt-SoC" sein.')]),_:1},8,["model-value"]),l(c,{title:"Ausschalt-SoC",min:0,max:18,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_soc"],"onUpdate:modelValue":n[15]||(n[15]=t=>s.updateBatterySwitchOffSoc(t))},{help:i(()=>[a('Ist der Speicher-SoC größer oder gleich dem "Einschalt-SoC", wird der Speicher im Modus "PV-Laden" bei aktiviertem Mindeststrom bis zum "Ausschalt-SoC" entladen, auch wenn KEIN Überschuss vorhanden ist. Der "Einschalt-SoC" muss größer oder gleich dem "Ausschalt-SoC" sein.')]),_:1},8,["model-value"])]))]),_:1}),l(v,{formName:"pvChargeConfigForm",onSave:n[16]||(n[16]=t=>e.$emit("save")),onReset:n[17]||(n[17]=t=>e.$emit("reset")),onDefaults:n[18]||(n[18]=t=>e.$emit("defaults"))})])])}const ie=w(S,[["render",J],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/PVChargeConfig.vue"]]);export{ie as default}; diff --git a/web/settings/assets/ScheduledChargeConfig-972842ce.js b/web/settings/assets/ScheduledChargeConfig-ea419a87.js similarity index 85% rename from web/settings/assets/ScheduledChargeConfig-972842ce.js rename to web/settings/assets/ScheduledChargeConfig-ea419a87.js index bd396d5e66..148de9c07b 100644 --- a/web/settings/assets/ScheduledChargeConfig-972842ce.js +++ b/web/settings/assets/ScheduledChargeConfig-ea419a87.js @@ -1 +1 @@ -import{C as p}from"./index-bed1470e.js";import{_ as h,q as o,k as a,l as i,u as c,B as s,M as r,x as u}from"./vendor-b03da118.js";import"./vendor-fortawesome-cf9a975a.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"OpenwbScheduledChargeConfig",mixins:[p],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/scheduled_charging/phases_to_use"]}}},b={class:"scheduledChargeConfig"},f={name:"scheduledChargeConfigForm"},v={key:0},w={key:1};function C(t,e,$,k,B,V){const d=o("openwb-base-alert"),l=o("openwb-base-button-group-input"),m=o("openwb-base-card"),g=o("openwb-base-submit-buttons");return a(),i("div",b,[c("form",f,[s(m,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(d,{subtype:"info"},{default:r(()=>[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",w,[s(l,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/scheduled_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/scheduled_charging/phases_to_use",n))},{help:r(()=>[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zielladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um das Ziel zu erreichen. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(g,{formName:"scheduledChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const A=h(_,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ScheduledChargeConfig.vue"]]);export{A as default}; +import{C as p}from"./index-e599db2d.js";import{_ as h,q as o,k as a,l as i,u as c,B as s,M as r,x as u}from"./vendor-72da2ec6.js";import"./vendor-fortawesome-0685c9c0.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"OpenwbScheduledChargeConfig",mixins:[p],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/scheduled_charging/phases_to_use"]}}},b={class:"scheduledChargeConfig"},f={name:"scheduledChargeConfigForm"},v={key:0},w={key:1};function C(t,e,$,k,B,V){const d=o("openwb-base-alert"),l=o("openwb-base-button-group-input"),m=o("openwb-base-card"),g=o("openwb-base-submit-buttons");return a(),i("div",b,[c("form",f,[s(m,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(d,{subtype:"info"},{default:r(()=>[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",w,[s(l,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/scheduled_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/scheduled_charging/phases_to_use",n))},{help:r(()=>[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zielladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um das Ziel zu erreichen. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(g,{formName:"scheduledChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const A=h(_,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ScheduledChargeConfig.vue"]]);export{A as default}; diff --git a/web/settings/assets/Status-daa90944.js b/web/settings/assets/Status-98bf3042.js similarity index 98% rename from web/settings/assets/Status-daa90944.js rename to web/settings/assets/Status-98bf3042.js index b2a15e2170..f19c442b56 100644 --- a/web/settings/assets/Status-daa90944.js +++ b/web/settings/assets/Status-98bf3042.js @@ -1 +1 @@ -import{C as v}from"./index-bed1470e.js";import{l as w,K as L,F as B,L as k,M as C,c as T,N as D,O as $,P as A,Q as E,R as M}from"./vendor-fortawesome-cf9a975a.js";import{_ as y,q as n,k as r,z as l,M as u,B as t,x as c,y as g,u as W,A as I,R as V,S as R,l as q,I as N,J as S}from"./vendor-b03da118.js";import{C as Z,p as H,a as K,L as F,b as J,P as G,c as Q,T as U,i as X,d as Y,e as ee}from"./vendor-chartjs-f4053bf0.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";import"./vendor-luxon-78deadb9.js";w.add(L);const te={name:"ChargePointSumCard",mixins:[v],components:{FontAwesomeIcon:B}};function ne(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-text-input"),p=n("openwb-base-heading"),s=n("openwb-base-card");return r(),l(s,{subtype:"primary",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","charging-station"]}),c(" Alle Ladepunkte ")]),default:u(()=>[t(d,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/chargepoint/get/power",3,3,.001)},null,8,["model-value"]),t(d,{title:"Zählerstand laden",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/imported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Zählerstand entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/exported",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Historie")]),_:1}),t(d,{title:"Heute geladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Heute entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/daily_exported",3,3,.001)},null,8,["model-value"])]),_:1})}const ae=y(te,[["render",ne],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ChargePointSumCard.vue"]]);w.add(k,C,T,L);const oe={name:"ChargePointCard",mixins:[v],components:{FontAwesomeIcon:B},props:{installedChargePointKey:String,installedChargePoint:Object},data(){return{statusLevel:["success","warning","danger"]}},computed:{chargePointIndex:{get(){return parseInt(this.installedChargePointKey.match(/(?:\/)(\d+)(?=\/)/)[1])}}}},re=W("br",null,null,-1),se=W("br",null,null,-1);function le(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-checkbox-input"),s=n("openwb-base-text-input"),f=n("openwb-base-heading"),x=n("openwb-base-card");return r(),l(x,{subtype:"primary",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","charging-station"]}),c(" "+g(a.installedChargePoint.name)+" (ID: "+g(o.chargePointIndex)+") ",1)]),default:u(()=>[t(d,{subtype:_.statusLevel[e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),re,c(" "+g(e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/fault_str"]),1)]),_:1},8,["subtype"]),t(d,{subtype:"info"},{default:u(()=>[c(" Statusmeldung:"),se,c(" "+g(e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/state_str"]),1)]),_:1}),t(p,{title:"Fahrzeug angesteckt",disabled:"","model-value":e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/plug_state"]==1},null,8,["model-value"]),t(p,{title:"Ladevorgang aktiv",disabled:"","model-value":e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/charge_state"]==1},null,8,["model-value"]),t(s,{title:"Zählerstand laden",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Zählerstand entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/exported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Heute geladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Heute entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/power",3,3,.001)},null,8,["model-value"]),t(s,{title:"Ladestromvorgabe",readonly:"",class:"text-right text-monospace",step:"0.01",unit:"A","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/set/current",2)},null,8,["model-value"]),t(s,{title:"Netzfrequenz",readonly:"",class:"text-right text-monospace",step:"0.01",unit:"Hz","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/frequency",2)},null,8,["model-value"]),t(f,null,{default:u(()=>[c("Werte pro Phase")]),_:1}),t(s,{title:"Spannung",readonly:"",class:"text-right text-monospace",unit:"V","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/voltages",1)},null,8,["model-value"]),t(s,{title:"Strom",readonly:"",class:"text-right text-monospace",unit:"A","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/currents",2)},null,8,["model-value"]),t(s,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",unit:"kW","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/powers",3,3,.001)},null,8,["model-value"]),t(s,{title:"Leistungsfaktor",readonly:"",class:"text-right text-monospace","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/power_factors",2)},null,8,["model-value"]),t(f,null,{default:u(()=>[c("Phasen")]),_:1}),t(s,{title:"Vorgabe",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/set/phases_to_use")},null,8,["model-value"]),t(s,{title:"Aktuell",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/phases_in_use")},null,8,["model-value"])]),_:1})}const ie=y(oe,[["render",le],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ChargePointCard.vue"]]);w.add(k,C,T,D);const ce={name:"CounterCard",mixins:[v],components:{FontAwesomeIcon:B},props:{counter:Object},data(){return{statusLevel:["success","warning","danger"]}}},ue=W("br",null,null,-1),de=W("br",null,null,-1);function pe(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-heading"),s=n("openwb-base-text-input"),f=n("openwb-base-card");return r(),l(f,{subtype:"danger",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","gauge-high"]}),c(" "+g(a.counter.name)+" (ID: "+g(a.counter.id)+") ",1)]),default:u(()=>[t(d,{subtype:_.statusLevel[e.$store.state.mqtt["openWB/counter/"+a.counter.id+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/counter/"+a.counter.id+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/counter/"+a.counter.id+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),ue,c(" "+g(e.$store.state.mqtt["openWB/counter/"+a.counter.id+"/get/fault_str"]),1)]),_:1},8,["subtype"]),e.$store.state.mqtt["openWB/counter/"+a.counter.id+"/get/state_str"]!=null?(r(),l(d,{key:0,subtype:"info"},{default:u(()=>[c(" Statusmeldung:"),de,c(" "+g(e.$store.state.mqtt["openWB/counter/"+a.counter.id+"/get/state_str"]),1)]),_:1})):I("",!0),t(p,null,{default:u(()=>[c("Zählerstände")]),_:1}),t(s,{title:"Export",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/counter/"+a.counter.id+"/get/exported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Import",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/counter/"+a.counter.id+"/get/imported",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Saldierte Werte")]),_:1}),t(s,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/counter/"+a.counter.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(s,{title:"Netzfrequenz",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"Hz","model-value":e.formatNumberTopic("openWB/counter/"+a.counter.id+"/get/frequency",3)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Werte pro Phase")]),_:1}),t(s,{title:"Spannung",readonly:"",class:"text-right text-monospace",unit:"V","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+a.counter.id+"/get/voltages",1)},null,8,["model-value"]),t(s,{title:"Strom",readonly:"",class:"text-right text-monospace",unit:"A","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+a.counter.id+"/get/currents",2)},null,8,["model-value"]),t(s,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",unit:"kW","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+a.counter.id+"/get/powers",3,3,.001)},null,8,["model-value"]),t(s,{title:"Leistungsfaktor",readonly:"",class:"text-right text-monospace","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+a.counter.id+"/get/power_factors",2)},null,8,["model-value"])]),_:1})}const me=y(ce,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/CounterCard.vue"]]);w.add(k,C,T,$);const ge={name:"InverterSumCard",mixins:[v],components:{FontAwesomeIcon:B}};function he(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-text-input"),p=n("openwb-base-heading"),s=n("openwb-base-card");return r(),l(s,{subtype:"success",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","solar-panel"]}),c(" Alle Wechselrichter ")]),default:u(()=>[t(d,{title:"Zählerstand",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/pv/get/power",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Erträge")]),_:1}),t(d,{title:"Heute",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Dieser Monat",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/monthly_exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Dieses Jahr",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/yearly_exported",3,3,.001)},null,8,["model-value"])]),_:1})}const _e=y(ge,[["render",he],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/InverterSumCard.vue"]]);w.add(k,C,T,$);const fe={name:"InverterCard",mixins:[v],components:{FontAwesomeIcon:B},props:{inverter:Object},data(){return{statusLevel:["success","warning","danger"]}}},be=W("br",null,null,-1);function ve(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-text-input"),s=n("openwb-base-card");return r(),l(s,{subtype:"success",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","solar-panel"]}),c(" "+g(a.inverter.name)+" (ID: "+g(a.inverter.id)+") ",1)]),default:u(()=>[t(d,{subtype:_.statusLevel[e.$store.state.mqtt["openWB/pv/"+a.inverter.id+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/pv/"+a.inverter.id+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/pv/"+a.inverter.id+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),be,c(" "+g(e.$store.state.mqtt["openWB/pv/"+a.inverter.id+"/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,{title:"Zählerstand",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/"+a.inverter.id+"/get/exported",3,3,.001)},null,8,["model-value"]),t(p,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/pv/"+a.inverter.id+"/get/power",3,3,.001)},null,8,["model-value"])]),_:1})}const ye=y(fe,[["render",ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/InverterCard.vue"]]);w.add(k,C,T,A);const We={name:"BatterySumCard",mixins:[v],components:{FontAwesomeIcon:B}},xe=W("br",null,null,-1);function we(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-heading"),s=n("openwb-base-text-input"),f=n("openwb-base-number-input"),x=n("openwb-base-card");return r(),l(x,{subtype:"warning",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","car-battery"]}),c(" Alle Speicher ")]),default:u(()=>[t(d,{subtype:e.statusLevel[e.$store.state.mqtt["openWB/bat/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/bat/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/bat/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),xe,c(" "+g(e.$store.state.mqtt["openWB/bat/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,null,{default:u(()=>[c("Zählerstände")]),_:1}),t(s,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/exported",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Tageswerte")]),_:1}),t(s,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Saldierte Werte")]),_:1}),t(s,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/bat/get/power",3,3,.001)},null,8,["model-value"]),t(f,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/bat/get/soc"]},null,8,["model-value"])]),_:1})}const Be=y(We,[["render",we],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/BatterySumCard.vue"]]);w.add(k,C,T,A);const ke={name:"InverterCard",mixins:[v],components:{FontAwesomeIcon:B},props:{battery:Object},data(){return{statusLevel:["success","warning","danger"]}}},Ce=W("br",null,null,-1);function Te(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-heading"),s=n("openwb-base-text-input"),f=n("openwb-base-number-input"),x=n("openwb-base-card");return r(),l(x,{subtype:"warning",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","car-battery"]}),c(" "+g(a.battery.name)+" (ID: "+g(a.battery.id)+") ",1)]),default:u(()=>[t(d,{subtype:_.statusLevel[e.$store.state.mqtt["openWB/bat/"+a.battery.id+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/bat/"+a.battery.id+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/bat/"+a.battery.id+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Ce,c(" "+g(e.$store.state.mqtt["openWB/bat/"+a.battery.id+"/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,null,{default:u(()=>[c("Aktuelle Werte")]),_:1}),t(s,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/bat/"+a.battery.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(f,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/bat/"+a.battery.id+"/get/soc"]},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Zählerstände")]),_:1}),t(s,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/"+a.battery.id+"/get/imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/"+a.battery.id+"/get/exported",3,3,.001)},null,8,["model-value"])]),_:1})}const Ie=y(ke,[["render",Te],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/BatteryCard.vue"]]);w.add(k,C,T,E);const qe={name:"VehicleCard",mixins:[v],components:{FontAwesomeIcon:B},props:{vehicle:Object,vehicleKey:String,vehicleName:String},data(){return{statusLevel:["success","warning","danger"]}},computed:{vehicleIndex:{get(){return parseInt(this.vehicleKey.match(/(?:\/)(\d+)(?=\/)/)[1])}},socTimestamp:{get(){return this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/soc_timestamp"]!==void 0?new Date(this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/soc_timestamp"]*1e3).toLocaleString():"-"}},socRange:{get(){return this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/range"]!==void 0?Math.round(this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/range"]):0}}}},Pe=W("br",null,null,-1);function Ne(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-heading"),s=n("openwb-base-number-input"),f=n("openwb-base-text-input"),x=n("openwb-base-card");return r(),l(x,{subtype:"info",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","car"]}),c(" "+g(a.vehicleName)+" (ID: "+g(o.vehicleIndex)+") ",1)]),default:u(()=>[e.$store.state.mqtt["openWB/vehicle/"+o.vehicleIndex+"/get/fault_state"]!==void 0?(r(),l(d,{key:0,subtype:_.statusLevel[e.$store.state.mqtt["openWB/vehicle/"+o.vehicleIndex+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/vehicle/"+o.vehicleIndex+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/vehicle/"+o.vehicleIndex+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Pe,c(" "+g(e.$store.state.mqtt["openWB/vehicle/"+o.vehicleIndex+"/get/fault_str"]),1)]),_:1},8,["subtype"])):I("",!0),t(p,null,{default:u(()=>[c("Fahrzeugdaten")]),_:1}),t(s,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/vehicle/"+o.vehicleIndex+"/get/soc"]},null,8,["model-value"]),t(s,{title:"Reichweite",readonly:"",class:"text-right text-monospace",unit:"km","model-value":o.socRange},null,8,["model-value"]),t(f,{title:"Letzter Zeitstempel",readonly:"",class:"text-right text-monospace","model-value":o.socTimestamp},null,8,["model-value"])]),_:1})}const Se=y(qe,[["render",Ne],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/VehicleCard.vue"]]);w.add(k,C,T,M);Z.register(H,K,F,J,G,Q,U,X,Y);const Le={name:"ElectricityTariffCard",mixins:[v],components:{ChartjsLine:ee,FontAwesomeIcon:B},data(){return{mqttTopicsToSubscribe:["openWB/optional/et/provider","openWB/optional/et/get/fault_state","openWB/optional/et/get/fault_str","openWB/optional/et/get/prices"],statusLevel:["success","warning","danger"],chartDatasets:{datasets:[{label:"Stromtarif",unit:"ct/kWh",type:"line",stepped:!0,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:void 0,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:"price"}}]},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0},legend:{display:!1}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"hour",text:"Zeit",maxTicksLimit:24},display:!0,title:{display:!0,text:"Uhrzeit"},ticks:{font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",title:{font:{size:12},display:!0,text:"Preis [ct/kWh]"},grid:{},ticks:{font:{size:12},stepSize:.01,maxTicksLimit:11}}}}}},computed:{electricityTariffConfigured(){const e=this.$store.state.mqtt["openWB/optional/et/provider"];return e!==void 0?(console.log(e.type),e.type!==null):!1},chartDataRead(){return this.chartDataObject.datasets[0].data!=null},chartDataObject(){if(this.$store.state.mqtt["openWB/optional/et/get/prices"]){var e=this.$store.state.mqtt["openWB/optional/et/get/prices"],m=[];for(const[_,o]of Object.entries(e))m.push({timestamp:_*1e3,price:o*1e5});const h=m.slice(-1)[0];m.push({timestamp:h.timestamp+(60*60-1)*1e3,price:h.price})}const a=this.chartDatasets;return a.datasets[0].data=m,a}}},$e=e=>(V("data-v-f4769d2f"),e=e(),R(),e),Ae=$e(()=>W("br",null,null,-1)),Oe={class:"openwb-chart"};function je(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-text-input"),s=n("chartjs-line"),f=n("openwb-base-card");return o.electricityTariffConfigured?(r(),l(f,{key:0,subtype:"secondary",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","ranking-star"]}),c(" Variabler Stromtarif ")]),default:u(()=>[t(d,{subtype:_.statusLevel[e.$store.state.mqtt["openWB/optional/et/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/optional/et/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/optional/et/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Ae,c(" "+g(e.$store.state.mqtt["openWB/optional/et/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,{title:"Anbieter",readonly:"","model-value":e.$store.state.mqtt["openWB/optional/et/provider"].name},null,8,["model-value"]),W("div",Oe,[o.chartDataRead?(r(),l(s,{key:0,ref:"myChart",data:o.chartDataObject,options:_.chartOptions},null,8,["data","options"])):I("",!0)])]),_:1})):I("",!0)}const ze=y(Le,[["render",je],["__scopeId","data-v-f4769d2f"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ElectricityTariffCard.vue"]]);const De={name:"OpenwbStatus",mixins:[v],components:{ChargePointSumCard:ae,ChargePointCard:ie,CounterCard:me,InverterSumCard:_e,InverterCard:ye,BatterySumCard:Be,BatteryCard:Ie,VehicleCard:Se,ElectricityTariffCard:ze},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/get/power","openWB/chargepoint/get/imported","openWB/chargepoint/get/exported","openWB/chargepoint/get/daily_imported","openWB/chargepoint/get/daily_exported","openWB/chargepoint/+/config","openWB/chargepoint/+/get/+","openWB/chargepoint/+/get/connected_vehicle/info","openWB/chargepoint/+/set/+","openWB/system/device/+/component/+/config","openWB/counter/+/get/+","openWB/pv/get/+","openWB/pv/+/get/+","openWB/bat/get/+","openWB/bat/+/get/+","openWB/vehicle/+/name","openWB/vehicle/+/get/+"]}},computed:{installedChargePoints:{get(){let e=this.getWildcardTopics("openWB/chargepoint/+/config"),m={};for(const[a,h]of Object.entries(e))(h.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(m[a]=h);return m}},numChargePointsInstalled:{get(){return Object.keys(this.installedChargePoints).length}},counterConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"counter")}},numInvertersInstalled:{get(){return Object.keys(this.inverterConfigs).length}},inverterConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"inverter")}},numBatteriesInstalled:{get(){return Object.keys(this.batteryConfigs).length}},batteryConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"bat")}},vehicleNames:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.getWildcardTopics("openWB/vehicle/+/name")}}},methods:{filterComponentsByType(e,m){return Object.keys(e).filter(a=>e[a].type.includes(m)).reduce((a,h)=>({...a,[h]:e[h]}),{})}}},Ee={class:"status"};function Me(e,m,a,h,_,o){const i=n("charge-point-sum-card"),d=n("charge-point-card"),p=n("counter-card"),s=n("inverter-sum-card"),f=n("inverter-card"),x=n("battery-sum-card"),O=n("battery-card"),j=n("vehicle-card"),z=n("electricity-tariff-card");return r(),q("div",Ee,[o.numChargePointsInstalled>1&&e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),l(i,{key:0})):I("",!0),(r(!0),q(N,null,S(o.installedChargePoints,(b,P)=>(r(),l(d,{key:P,installedChargePoint:b,installedChargePointKey:P},null,8,["installedChargePoint","installedChargePointKey"]))),128)),(r(!0),q(N,null,S(o.counterConfigs,b=>(r(),l(p,{key:b.id,counter:b},null,8,["counter"]))),128)),o.numInvertersInstalled>1&&e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),l(s,{key:1})):I("",!0),(r(!0),q(N,null,S(o.inverterConfigs,b=>(r(),l(f,{key:b.id,inverter:b},null,8,["inverter"]))),128)),o.numBatteriesInstalled>1&&e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),l(x,{key:2})):I("",!0),(r(!0),q(N,null,S(o.batteryConfigs,b=>(r(),l(O,{key:b.id,battery:b},null,8,["battery"]))),128)),(r(!0),q(N,null,S(o.vehicleNames,(b,P)=>(r(),l(j,{key:P,vehicleKey:P,vehicleName:b},null,8,["vehicleKey","vehicleName"]))),128)),t(z)])}const Ue=y(De,[["render",Me],["__scopeId","data-v-051028a3"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Status.vue"]]);export{Ue as default}; +import{C as v}from"./index-e599db2d.js";import{l as w,K as L,F as B,L as k,M as C,c as T,N as D,O as $,P as A,Q as E,R as M}from"./vendor-fortawesome-0685c9c0.js";import{_ as y,q as n,k as r,z as l,M as u,B as t,x as c,y as g,u as W,A as I,R as V,S as R,l as q,I as N,J as S}from"./vendor-72da2ec6.js";import{C as Z,p as H,a as K,L as F,b as J,P as G,c as Q,T as U,i as X,d as Y,e as ee}from"./vendor-chartjs-181c0e44.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";import"./vendor-luxon-78deadb9.js";w.add(L);const te={name:"ChargePointSumCard",mixins:[v],components:{FontAwesomeIcon:B}};function ne(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-text-input"),p=n("openwb-base-heading"),s=n("openwb-base-card");return r(),l(s,{subtype:"primary",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","charging-station"]}),c(" Alle Ladepunkte ")]),default:u(()=>[t(d,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/chargepoint/get/power",3,3,.001)},null,8,["model-value"]),t(d,{title:"Zählerstand laden",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/imported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Zählerstand entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/exported",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Historie")]),_:1}),t(d,{title:"Heute geladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Heute entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/daily_exported",3,3,.001)},null,8,["model-value"])]),_:1})}const ae=y(te,[["render",ne],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ChargePointSumCard.vue"]]);w.add(k,C,T,L);const oe={name:"ChargePointCard",mixins:[v],components:{FontAwesomeIcon:B},props:{installedChargePointKey:String,installedChargePoint:Object},data(){return{statusLevel:["success","warning","danger"]}},computed:{chargePointIndex:{get(){return parseInt(this.installedChargePointKey.match(/(?:\/)(\d+)(?=\/)/)[1])}}}},re=W("br",null,null,-1),se=W("br",null,null,-1);function le(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-checkbox-input"),s=n("openwb-base-text-input"),f=n("openwb-base-heading"),x=n("openwb-base-card");return r(),l(x,{subtype:"primary",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","charging-station"]}),c(" "+g(a.installedChargePoint.name)+" (ID: "+g(o.chargePointIndex)+") ",1)]),default:u(()=>[t(d,{subtype:_.statusLevel[e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),re,c(" "+g(e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/fault_str"]),1)]),_:1},8,["subtype"]),t(d,{subtype:"info"},{default:u(()=>[c(" Statusmeldung:"),se,c(" "+g(e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/state_str"]),1)]),_:1}),t(p,{title:"Fahrzeug angesteckt",disabled:"","model-value":e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/plug_state"]==1},null,8,["model-value"]),t(p,{title:"Ladevorgang aktiv",disabled:"","model-value":e.$store.state.mqtt["openWB/chargepoint/"+o.chargePointIndex+"/get/charge_state"]==1},null,8,["model-value"]),t(s,{title:"Zählerstand laden",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Zählerstand entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/exported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Heute geladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Heute entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/power",3,3,.001)},null,8,["model-value"]),t(s,{title:"Ladestromvorgabe",readonly:"",class:"text-right text-monospace",step:"0.01",unit:"A","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/set/current",2)},null,8,["model-value"]),t(s,{title:"Netzfrequenz",readonly:"",class:"text-right text-monospace",step:"0.01",unit:"Hz","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/frequency",2)},null,8,["model-value"]),t(f,null,{default:u(()=>[c("Werte pro Phase")]),_:1}),t(s,{title:"Spannung",readonly:"",class:"text-right text-monospace",unit:"V","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/voltages",1)},null,8,["model-value"]),t(s,{title:"Strom",readonly:"",class:"text-right text-monospace",unit:"A","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/currents",2)},null,8,["model-value"]),t(s,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",unit:"kW","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/powers",3,3,.001)},null,8,["model-value"]),t(s,{title:"Leistungsfaktor",readonly:"",class:"text-right text-monospace","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/power_factors",2)},null,8,["model-value"]),t(f,null,{default:u(()=>[c("Phasen")]),_:1}),t(s,{title:"Vorgabe",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/set/phases_to_use")},null,8,["model-value"]),t(s,{title:"Aktuell",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.chargePointIndex+"/get/phases_in_use")},null,8,["model-value"])]),_:1})}const ie=y(oe,[["render",le],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ChargePointCard.vue"]]);w.add(k,C,T,D);const ce={name:"CounterCard",mixins:[v],components:{FontAwesomeIcon:B},props:{counter:Object},data(){return{statusLevel:["success","warning","danger"]}}},ue=W("br",null,null,-1),de=W("br",null,null,-1);function pe(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-heading"),s=n("openwb-base-text-input"),f=n("openwb-base-card");return r(),l(f,{subtype:"danger",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","gauge-high"]}),c(" "+g(a.counter.name)+" (ID: "+g(a.counter.id)+") ",1)]),default:u(()=>[t(d,{subtype:_.statusLevel[e.$store.state.mqtt["openWB/counter/"+a.counter.id+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/counter/"+a.counter.id+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/counter/"+a.counter.id+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),ue,c(" "+g(e.$store.state.mqtt["openWB/counter/"+a.counter.id+"/get/fault_str"]),1)]),_:1},8,["subtype"]),e.$store.state.mqtt["openWB/counter/"+a.counter.id+"/get/state_str"]!=null?(r(),l(d,{key:0,subtype:"info"},{default:u(()=>[c(" Statusmeldung:"),de,c(" "+g(e.$store.state.mqtt["openWB/counter/"+a.counter.id+"/get/state_str"]),1)]),_:1})):I("",!0),t(p,null,{default:u(()=>[c("Zählerstände")]),_:1}),t(s,{title:"Export",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/counter/"+a.counter.id+"/get/exported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Import",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/counter/"+a.counter.id+"/get/imported",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Saldierte Werte")]),_:1}),t(s,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/counter/"+a.counter.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(s,{title:"Netzfrequenz",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"Hz","model-value":e.formatNumberTopic("openWB/counter/"+a.counter.id+"/get/frequency",3)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Werte pro Phase")]),_:1}),t(s,{title:"Spannung",readonly:"",class:"text-right text-monospace",unit:"V","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+a.counter.id+"/get/voltages",1)},null,8,["model-value"]),t(s,{title:"Strom",readonly:"",class:"text-right text-monospace",unit:"A","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+a.counter.id+"/get/currents",2)},null,8,["model-value"]),t(s,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",unit:"kW","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+a.counter.id+"/get/powers",3,3,.001)},null,8,["model-value"]),t(s,{title:"Leistungsfaktor",readonly:"",class:"text-right text-monospace","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+a.counter.id+"/get/power_factors",2)},null,8,["model-value"])]),_:1})}const me=y(ce,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/CounterCard.vue"]]);w.add(k,C,T,$);const ge={name:"InverterSumCard",mixins:[v],components:{FontAwesomeIcon:B}};function he(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-text-input"),p=n("openwb-base-heading"),s=n("openwb-base-card");return r(),l(s,{subtype:"success",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","solar-panel"]}),c(" Alle Wechselrichter ")]),default:u(()=>[t(d,{title:"Zählerstand",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/pv/get/power",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Erträge")]),_:1}),t(d,{title:"Heute",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Dieser Monat",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/monthly_exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Dieses Jahr",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/yearly_exported",3,3,.001)},null,8,["model-value"])]),_:1})}const _e=y(ge,[["render",he],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/InverterSumCard.vue"]]);w.add(k,C,T,$);const fe={name:"InverterCard",mixins:[v],components:{FontAwesomeIcon:B},props:{inverter:Object},data(){return{statusLevel:["success","warning","danger"]}}},be=W("br",null,null,-1);function ve(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-text-input"),s=n("openwb-base-card");return r(),l(s,{subtype:"success",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","solar-panel"]}),c(" "+g(a.inverter.name)+" (ID: "+g(a.inverter.id)+") ",1)]),default:u(()=>[t(d,{subtype:_.statusLevel[e.$store.state.mqtt["openWB/pv/"+a.inverter.id+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/pv/"+a.inverter.id+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/pv/"+a.inverter.id+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),be,c(" "+g(e.$store.state.mqtt["openWB/pv/"+a.inverter.id+"/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,{title:"Zählerstand",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/"+a.inverter.id+"/get/exported",3,3,.001)},null,8,["model-value"]),t(p,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/pv/"+a.inverter.id+"/get/power",3,3,.001)},null,8,["model-value"])]),_:1})}const ye=y(fe,[["render",ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/InverterCard.vue"]]);w.add(k,C,T,A);const We={name:"BatterySumCard",mixins:[v],components:{FontAwesomeIcon:B}},xe=W("br",null,null,-1);function we(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-heading"),s=n("openwb-base-text-input"),f=n("openwb-base-number-input"),x=n("openwb-base-card");return r(),l(x,{subtype:"warning",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","car-battery"]}),c(" Alle Speicher ")]),default:u(()=>[t(d,{subtype:e.statusLevel[e.$store.state.mqtt["openWB/bat/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/bat/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/bat/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),xe,c(" "+g(e.$store.state.mqtt["openWB/bat/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,null,{default:u(()=>[c("Zählerstände")]),_:1}),t(s,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/exported",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Tageswerte")]),_:1}),t(s,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Saldierte Werte")]),_:1}),t(s,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/bat/get/power",3,3,.001)},null,8,["model-value"]),t(f,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/bat/get/soc"]},null,8,["model-value"])]),_:1})}const Be=y(We,[["render",we],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/BatterySumCard.vue"]]);w.add(k,C,T,A);const ke={name:"InverterCard",mixins:[v],components:{FontAwesomeIcon:B},props:{battery:Object},data(){return{statusLevel:["success","warning","danger"]}}},Ce=W("br",null,null,-1);function Te(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-heading"),s=n("openwb-base-text-input"),f=n("openwb-base-number-input"),x=n("openwb-base-card");return r(),l(x,{subtype:"warning",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","car-battery"]}),c(" "+g(a.battery.name)+" (ID: "+g(a.battery.id)+") ",1)]),default:u(()=>[t(d,{subtype:_.statusLevel[e.$store.state.mqtt["openWB/bat/"+a.battery.id+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/bat/"+a.battery.id+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/bat/"+a.battery.id+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Ce,c(" "+g(e.$store.state.mqtt["openWB/bat/"+a.battery.id+"/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,null,{default:u(()=>[c("Aktuelle Werte")]),_:1}),t(s,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/bat/"+a.battery.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(f,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/bat/"+a.battery.id+"/get/soc"]},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Zählerstände")]),_:1}),t(s,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/"+a.battery.id+"/get/imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/"+a.battery.id+"/get/exported",3,3,.001)},null,8,["model-value"])]),_:1})}const Ie=y(ke,[["render",Te],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/BatteryCard.vue"]]);w.add(k,C,T,E);const qe={name:"VehicleCard",mixins:[v],components:{FontAwesomeIcon:B},props:{vehicle:Object,vehicleKey:String,vehicleName:String},data(){return{statusLevel:["success","warning","danger"]}},computed:{vehicleIndex:{get(){return parseInt(this.vehicleKey.match(/(?:\/)(\d+)(?=\/)/)[1])}},socTimestamp:{get(){return this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/soc_timestamp"]!==void 0?new Date(this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/soc_timestamp"]*1e3).toLocaleString():"-"}},socRange:{get(){return this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/range"]!==void 0?Math.round(this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/range"]):0}}}},Pe=W("br",null,null,-1);function Ne(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-heading"),s=n("openwb-base-number-input"),f=n("openwb-base-text-input"),x=n("openwb-base-card");return r(),l(x,{subtype:"info",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","car"]}),c(" "+g(a.vehicleName)+" (ID: "+g(o.vehicleIndex)+") ",1)]),default:u(()=>[e.$store.state.mqtt["openWB/vehicle/"+o.vehicleIndex+"/get/fault_state"]!==void 0?(r(),l(d,{key:0,subtype:_.statusLevel[e.$store.state.mqtt["openWB/vehicle/"+o.vehicleIndex+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/vehicle/"+o.vehicleIndex+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/vehicle/"+o.vehicleIndex+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Pe,c(" "+g(e.$store.state.mqtt["openWB/vehicle/"+o.vehicleIndex+"/get/fault_str"]),1)]),_:1},8,["subtype"])):I("",!0),t(p,null,{default:u(()=>[c("Fahrzeugdaten")]),_:1}),t(s,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/vehicle/"+o.vehicleIndex+"/get/soc"]},null,8,["model-value"]),t(s,{title:"Reichweite",readonly:"",class:"text-right text-monospace",unit:"km","model-value":o.socRange},null,8,["model-value"]),t(f,{title:"Letzter Zeitstempel",readonly:"",class:"text-right text-monospace","model-value":o.socTimestamp},null,8,["model-value"])]),_:1})}const Se=y(qe,[["render",Ne],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/VehicleCard.vue"]]);w.add(k,C,T,M);Z.register(H,K,F,J,G,Q,U,X,Y);const Le={name:"ElectricityTariffCard",mixins:[v],components:{ChartjsLine:ee,FontAwesomeIcon:B},data(){return{mqttTopicsToSubscribe:["openWB/optional/et/provider","openWB/optional/et/get/fault_state","openWB/optional/et/get/fault_str","openWB/optional/et/get/prices"],statusLevel:["success","warning","danger"],chartDatasets:{datasets:[{label:"Stromtarif",unit:"ct/kWh",type:"line",stepped:!0,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:void 0,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:"price"}}]},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0},legend:{display:!1}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"hour",text:"Zeit",maxTicksLimit:24},display:!0,title:{display:!0,text:"Uhrzeit"},ticks:{font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",title:{font:{size:12},display:!0,text:"Preis [ct/kWh]"},grid:{},ticks:{font:{size:12},stepSize:.01,maxTicksLimit:11}}}}}},computed:{electricityTariffConfigured(){const e=this.$store.state.mqtt["openWB/optional/et/provider"];return e!==void 0?(console.log(e.type),e.type!==null):!1},chartDataRead(){return this.chartDataObject.datasets[0].data!=null},chartDataObject(){if(this.$store.state.mqtt["openWB/optional/et/get/prices"]){var e=this.$store.state.mqtt["openWB/optional/et/get/prices"],m=[];for(const[_,o]of Object.entries(e))m.push({timestamp:_*1e3,price:o*1e5});const h=m.slice(-1)[0];m.push({timestamp:h.timestamp+(60*60-1)*1e3,price:h.price})}const a=this.chartDatasets;return a.datasets[0].data=m,a}}},$e=e=>(V("data-v-f4769d2f"),e=e(),R(),e),Ae=$e(()=>W("br",null,null,-1)),Oe={class:"openwb-chart"};function je(e,m,a,h,_,o){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-text-input"),s=n("chartjs-line"),f=n("openwb-base-card");return o.electricityTariffConfigured?(r(),l(f,{key:0,subtype:"secondary",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","ranking-star"]}),c(" Variabler Stromtarif ")]),default:u(()=>[t(d,{subtype:_.statusLevel[e.$store.state.mqtt["openWB/optional/et/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/optional/et/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/optional/et/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Ae,c(" "+g(e.$store.state.mqtt["openWB/optional/et/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,{title:"Anbieter",readonly:"","model-value":e.$store.state.mqtt["openWB/optional/et/provider"].name},null,8,["model-value"]),W("div",Oe,[o.chartDataRead?(r(),l(s,{key:0,ref:"myChart",data:o.chartDataObject,options:_.chartOptions},null,8,["data","options"])):I("",!0)])]),_:1})):I("",!0)}const ze=y(Le,[["render",je],["__scopeId","data-v-f4769d2f"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ElectricityTariffCard.vue"]]);const De={name:"OpenwbStatus",mixins:[v],components:{ChargePointSumCard:ae,ChargePointCard:ie,CounterCard:me,InverterSumCard:_e,InverterCard:ye,BatterySumCard:Be,BatteryCard:Ie,VehicleCard:Se,ElectricityTariffCard:ze},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/get/power","openWB/chargepoint/get/imported","openWB/chargepoint/get/exported","openWB/chargepoint/get/daily_imported","openWB/chargepoint/get/daily_exported","openWB/chargepoint/+/config","openWB/chargepoint/+/get/+","openWB/chargepoint/+/get/connected_vehicle/info","openWB/chargepoint/+/set/+","openWB/system/device/+/component/+/config","openWB/counter/+/get/+","openWB/pv/get/+","openWB/pv/+/get/+","openWB/bat/get/+","openWB/bat/+/get/+","openWB/vehicle/+/name","openWB/vehicle/+/get/+"]}},computed:{installedChargePoints:{get(){let e=this.getWildcardTopics("openWB/chargepoint/+/config"),m={};for(const[a,h]of Object.entries(e))(h.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(m[a]=h);return m}},numChargePointsInstalled:{get(){return Object.keys(this.installedChargePoints).length}},counterConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"counter")}},numInvertersInstalled:{get(){return Object.keys(this.inverterConfigs).length}},inverterConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"inverter")}},numBatteriesInstalled:{get(){return Object.keys(this.batteryConfigs).length}},batteryConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"bat")}},vehicleNames:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.getWildcardTopics("openWB/vehicle/+/name")}}},methods:{filterComponentsByType(e,m){return Object.keys(e).filter(a=>e[a].type.includes(m)).reduce((a,h)=>({...a,[h]:e[h]}),{})}}},Ee={class:"status"};function Me(e,m,a,h,_,o){const i=n("charge-point-sum-card"),d=n("charge-point-card"),p=n("counter-card"),s=n("inverter-sum-card"),f=n("inverter-card"),x=n("battery-sum-card"),O=n("battery-card"),j=n("vehicle-card"),z=n("electricity-tariff-card");return r(),q("div",Ee,[o.numChargePointsInstalled>1&&e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),l(i,{key:0})):I("",!0),(r(!0),q(N,null,S(o.installedChargePoints,(b,P)=>(r(),l(d,{key:P,installedChargePoint:b,installedChargePointKey:P},null,8,["installedChargePoint","installedChargePointKey"]))),128)),(r(!0),q(N,null,S(o.counterConfigs,b=>(r(),l(p,{key:b.id,counter:b},null,8,["counter"]))),128)),o.numInvertersInstalled>1&&e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),l(s,{key:1})):I("",!0),(r(!0),q(N,null,S(o.inverterConfigs,b=>(r(),l(f,{key:b.id,inverter:b},null,8,["inverter"]))),128)),o.numBatteriesInstalled>1&&e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),l(x,{key:2})):I("",!0),(r(!0),q(N,null,S(o.batteryConfigs,b=>(r(),l(O,{key:b.id,battery:b},null,8,["battery"]))),128)),(r(!0),q(N,null,S(o.vehicleNames,(b,P)=>(r(),l(j,{key:P,vehicleKey:P,vehicleName:b},null,8,["vehicleKey","vehicleName"]))),128)),t(z)])}const Ue=y(De,[["render",Me],["__scopeId","data-v-051028a3"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Status.vue"]]);export{Ue as default}; diff --git a/web/settings/assets/Support-f4d59b40.js b/web/settings/assets/Support-e315c047.js similarity index 94% rename from web/settings/assets/Support-f4d59b40.js rename to web/settings/assets/Support-e315c047.js index 748a43b282..37ed0127df 100644 --- a/web/settings/assets/Support-f4d59b40.js +++ b/web/settings/assets/Support-e315c047.js @@ -1 +1 @@ -import{l as w,g as V,F as y}from"./vendor-fortawesome-cf9a975a.js";import{C as B}from"./index-bed1470e.js";import{_ as v,q as a,k as r,l as c,u as l,z as h,M as s,B as n,a3 as z,A as g,x as t,p as F}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";w.add(V);const x={name:"OpenwbSupport",mixins:[B],emits:["sendCommand"],components:{FontAwesomeIcon:y},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged"],sendDebugData:{email:"",serialNumber:"",installedComponents:"",vehicles:"",message:""},enableSendDebugButton:!0}},methods:{sendDebugMessage(){if(document.forms.supportForm.reportValidity())this.$emit("sendCommand",{command:"sendDebug",data:this.sendDebugData}),this.enableSendDebugButton=!1;else{console.warn("form invalid");return}}}},C={class:"support"},q={name:"supportForm"},A={key:1},W={key:0},N=l("li",null,' Vergewissern Sie sich, dass mindestens die aktuelle "Release" Version installiert ist. ',-1),M=l("li",null," Stellen Sie beim Absenden des Berichtes die Fehlerkonditionen her. Lädt ein Fahrzeug nicht, sollte es angeschlossen und nicht voll geladen sein. Ist PV laden betroffen, sollte die Sonne auch scheinen. Der Systembericht muss dann versendet werden, wenn der Fehler aktuell vorliegt. ",-1),L=l("li",null," Stellen Sie sicher, dass der Lademodus korrekt gewählt ist und im Falle von nicht ladenden Fahrzeugen, dass der Ladepunkt auch entsperrt wurde. ",-1),U=l("li",null," Das Auslesen der Systemkonfiguration erfolgt direkt nach den Klick auf Absenden und kann einige Zeit in Anspruch nehmen. Sie erhalten ca. 15 bis 30 Minuten nach Versand des Systemberichtes von uns automatisch eine E-Mail mit der Ticketnummer unter der die Anfrage bei uns registriert wurde. Wir melden uns bei ihnen. Bitte kontrollieren Sie daher immer auch den Spam Ordner auf eingehende Nachrichten. Erhalten Sie trotzdem keine Ticketnummer, ist das Versenden des Systemberichtes fehlgeschlagen. ",-1),E={class:"row justify-content-center"};function G(d,o,T,H,e,_){const b=a("router-link"),u=a("openwb-base-alert"),f=a("FontAwesomeIcon"),p=a("openwb-base-text-input"),m=a("openwb-base-textarea"),S=a("openwb-base-click-button"),k=a("openwb-base-card"),D=a("font-awesome-icon");return r(),c("div",C,[l("form",q,[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(r(),h(u,{key:0,subtype:"danger"},{default:s(()=>[t(" Sie müssen der "),n(b,{to:"/System/LegalSettings"},{default:s(()=>[t(" Datenschutzerklärung ")]),_:1}),t(" zustimmen, um einen Systembericht senden zu können. ")]),_:1})):(r(),c("div",A,[n(u,{subtype:"success"},{default:s(()=>[t(" Sie haben der "),n(b,{to:"/System/LegalSettings"},{default:s(()=>[t(" Datenschutzerklärung ")]),_:1}),t(" zugestimmt und können Systemberichte senden. ")]),_:1}),n(k,{title:"Systembericht"},z({default:s(()=>[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?(r(),c("div",W,[n(u,{subtype:"info"},{default:s(()=>[l("ul",null,[l("li",null,[t(" Lesen Sie den Hilfetext, der durch Klick auf das "),n(f,{icon:["far","question-circle"]}),t(" angezeigt wird. Nehmen Sie das Wiki zur Hilfe. ")]),N,M,L,U])]),_:1}),n(p,{title:"E-Mail",required:"",subtype:"email",modelValue:e.sendDebugData.email,"onUpdate:modelValue":o[0]||(o[0]=i=>e.sendDebugData.email=i)},null,8,["modelValue"]),n(p,{title:"openWB Seriennummer",required:"",modelValue:e.sendDebugData.serialNumber,"onUpdate:modelValue":o[1]||(o[1]=i=>e.sendDebugData.serialNumber=i)},{help:s(()=>[t(" Die Seriennummer der openWB finden Sie außen am Gehäuse - bei Älteren innen im Gehäuse. Sie können uns aber auch eine Bestellnummer oder Rechnungsnummer übermitteln. Das Gehäuse muss nicht extra geöffnet werden! ")]),_:1},8,["modelValue"]),n(m,{title:"Verwendete Komponenten",required:"",minlength:"3",maxlength:"500",modelValue:e.sendDebugData.installedComponents,"onUpdate:modelValue":o[2]||(o[2]=i=>e.sendDebugData.installedComponents=i)},{help:s(()=>[t(" Geben Sie hier möglichst detailliert an, welche Anlagenkomponenten (EVU, PV, Speicher) angebunden sind. ")]),_:1},8,["modelValue"]),n(m,{title:"Fahrzeuge",required:"",minlength:"3",maxlength:"500",modelValue:e.sendDebugData.vehicles,"onUpdate:modelValue":o[3]||(o[3]=i=>e.sendDebugData.vehicles=i)},{help:s(()=>[t(" Geben Sie hier an, welche Fahrzeuge geladen werden (Hersteller, Modell, Baujahr). ")]),_:1},8,["modelValue"]),n(m,{title:"Problembeschreibung",required:"",minlength:"20",maxlength:"500",modelValue:e.sendDebugData.message,"onUpdate:modelValue":o[4]||(o[4]=i=>e.sendDebugData.message=i)},null,8,["modelValue"])])):g("",!0)]),_:2},[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:s(()=>[l("div",E,[n(S,{class:F(["col-4",e.enableSendDebugButton?"btn-success":"btn-outline-success"]),disabled:!e.enableSendDebugButton,onButtonClicked:_.sendDebugMessage},{default:s(()=>[t(" Absenden ")]),_:1},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024),e.enableSendDebugButton?g("",!0):(r(),h(u,{key:0,subtype:"success"},{default:s(()=>[t(" Die Daten für den Fehlerbericht werden im Hintergrund zusammengestellt. Sie können diese Seite jetzt verlassen. "),n(D,{"fixed-width":"",icon:["fas","check"]})]),_:1}))]))])])}const J=v(x,[["render",G],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Support.vue"]]);export{J as default}; +import{l as w,g as V,F as y}from"./vendor-fortawesome-0685c9c0.js";import{C as B}from"./index-e599db2d.js";import{_ as v,q as a,k as r,l as c,u as l,z as h,M as s,B as n,a3 as z,A as g,x as t,p as F}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";w.add(V);const x={name:"OpenwbSupport",mixins:[B],emits:["sendCommand"],components:{FontAwesomeIcon:y},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged"],sendDebugData:{email:"",serialNumber:"",installedComponents:"",vehicles:"",message:""},enableSendDebugButton:!0}},methods:{sendDebugMessage(){if(document.forms.supportForm.reportValidity())this.$emit("sendCommand",{command:"sendDebug",data:this.sendDebugData}),this.enableSendDebugButton=!1;else{console.warn("form invalid");return}}}},C={class:"support"},q={name:"supportForm"},A={key:1},W={key:0},N=l("li",null,' Vergewissern Sie sich, dass mindestens die aktuelle "Release" Version installiert ist. ',-1),M=l("li",null," Stellen Sie beim Absenden des Berichtes die Fehlerkonditionen her. Lädt ein Fahrzeug nicht, sollte es angeschlossen und nicht voll geladen sein. Ist PV laden betroffen, sollte die Sonne auch scheinen. Der Systembericht muss dann versendet werden, wenn der Fehler aktuell vorliegt. ",-1),L=l("li",null," Stellen Sie sicher, dass der Lademodus korrekt gewählt ist und im Falle von nicht ladenden Fahrzeugen, dass der Ladepunkt auch entsperrt wurde. ",-1),U=l("li",null," Das Auslesen der Systemkonfiguration erfolgt direkt nach den Klick auf Absenden und kann einige Zeit in Anspruch nehmen. Sie erhalten ca. 15 bis 30 Minuten nach Versand des Systemberichtes von uns automatisch eine E-Mail mit der Ticketnummer unter der die Anfrage bei uns registriert wurde. Wir melden uns bei ihnen. Bitte kontrollieren Sie daher immer auch den Spam Ordner auf eingehende Nachrichten. Erhalten Sie trotzdem keine Ticketnummer, ist das Versenden des Systemberichtes fehlgeschlagen. ",-1),E={class:"row justify-content-center"};function G(d,o,T,H,e,_){const b=a("router-link"),u=a("openwb-base-alert"),f=a("FontAwesomeIcon"),p=a("openwb-base-text-input"),m=a("openwb-base-textarea"),S=a("openwb-base-click-button"),k=a("openwb-base-card"),D=a("font-awesome-icon");return r(),c("div",C,[l("form",q,[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(r(),h(u,{key:0,subtype:"danger"},{default:s(()=>[t(" Sie müssen der "),n(b,{to:"/System/LegalSettings"},{default:s(()=>[t(" Datenschutzerklärung ")]),_:1}),t(" zustimmen, um einen Systembericht senden zu können. ")]),_:1})):(r(),c("div",A,[n(u,{subtype:"success"},{default:s(()=>[t(" Sie haben der "),n(b,{to:"/System/LegalSettings"},{default:s(()=>[t(" Datenschutzerklärung ")]),_:1}),t(" zugestimmt und können Systemberichte senden. ")]),_:1}),n(k,{title:"Systembericht"},z({default:s(()=>[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?(r(),c("div",W,[n(u,{subtype:"info"},{default:s(()=>[l("ul",null,[l("li",null,[t(" Lesen Sie den Hilfetext, der durch Klick auf das "),n(f,{icon:["far","question-circle"]}),t(" angezeigt wird. Nehmen Sie das Wiki zur Hilfe. ")]),N,M,L,U])]),_:1}),n(p,{title:"E-Mail",required:"",subtype:"email",modelValue:e.sendDebugData.email,"onUpdate:modelValue":o[0]||(o[0]=i=>e.sendDebugData.email=i)},null,8,["modelValue"]),n(p,{title:"openWB Seriennummer",required:"",modelValue:e.sendDebugData.serialNumber,"onUpdate:modelValue":o[1]||(o[1]=i=>e.sendDebugData.serialNumber=i)},{help:s(()=>[t(" Die Seriennummer der openWB finden Sie außen am Gehäuse - bei Älteren innen im Gehäuse. Sie können uns aber auch eine Bestellnummer oder Rechnungsnummer übermitteln. Das Gehäuse muss nicht extra geöffnet werden! ")]),_:1},8,["modelValue"]),n(m,{title:"Verwendete Komponenten",required:"",minlength:"3",maxlength:"500",modelValue:e.sendDebugData.installedComponents,"onUpdate:modelValue":o[2]||(o[2]=i=>e.sendDebugData.installedComponents=i)},{help:s(()=>[t(" Geben Sie hier möglichst detailliert an, welche Anlagenkomponenten (EVU, PV, Speicher) angebunden sind. ")]),_:1},8,["modelValue"]),n(m,{title:"Fahrzeuge",required:"",minlength:"3",maxlength:"500",modelValue:e.sendDebugData.vehicles,"onUpdate:modelValue":o[3]||(o[3]=i=>e.sendDebugData.vehicles=i)},{help:s(()=>[t(" Geben Sie hier an, welche Fahrzeuge geladen werden (Hersteller, Modell, Baujahr). ")]),_:1},8,["modelValue"]),n(m,{title:"Problembeschreibung",required:"",minlength:"20",maxlength:"500",modelValue:e.sendDebugData.message,"onUpdate:modelValue":o[4]||(o[4]=i=>e.sendDebugData.message=i)},null,8,["modelValue"])])):g("",!0)]),_:2},[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:s(()=>[l("div",E,[n(S,{class:F(["col-4",e.enableSendDebugButton?"btn-success":"btn-outline-success"]),disabled:!e.enableSendDebugButton,onButtonClicked:_.sendDebugMessage},{default:s(()=>[t(" Absenden ")]),_:1},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024),e.enableSendDebugButton?g("",!0):(r(),h(u,{key:0,subtype:"success"},{default:s(()=>[t(" Die Daten für den Fehlerbericht werden im Hintergrund zusammengestellt. Sie können diese Seite jetzt verlassen. "),n(D,{"fixed-width":"",icon:["fas","check"]})]),_:1}))]))])])}const J=v(x,[["render",G],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Support.vue"]]);export{J as default}; diff --git a/web/settings/assets/System-0add4c7f.js b/web/settings/assets/System-8bd350eb.js similarity index 96% rename from web/settings/assets/System-0add4c7f.js rename to web/settings/assets/System-8bd350eb.js index f7e03d2320..ee07dc7be1 100644 --- a/web/settings/assets/System-0add4c7f.js +++ b/web/settings/assets/System-8bd350eb.js @@ -1 +1 @@ -import{l as W,a5 as S,p as q,a4 as C,T as A,a6 as x,F as $}from"./vendor-fortawesome-cf9a975a.js";import{C as E}from"./index-bed1470e.js";import{_ as U,q as c,k as g,l as y,B as s,M as o,u as a,A as k,x as d,p as v,z as T,I as z,J as F,y as j,R as D,S as I}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";W.add(S,q,C,A,x);const L={name:"OpenwbSystem",mixins:[E],emits:["sendCommand"],components:{FontAwesomeIcon:$},data(){return{mqttTopicsToSubscribe:["openWB/system/current_commit","openWB/system/current_branch_commit","openWB/system/current_missing_commits","openWB/system/available_branches","openWB/system/current_branch"],warningAcknowledged:!1,selectedTag:"*HEAD*"}},computed:{updateAvailable(){return this.$store.state.mqtt["openWB/system/current_branch_commit"]&&this.$store.state.mqtt["openWB/system/current_branch_commit"]!=this.$store.state.mqtt["openWB/system/current_commit"]},releaseChangeValid(){return this.$store.state.mqtt["openWB/system/current_branch"]in this.$store.state.mqtt["openWB/system/available_branches"]&&"tags"in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]]&&(this.selectedTag in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]].tags||this.selectedTag=="*HEAD*")}},methods:{sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})},getBranchGroups(){const t="Release",e="Beta",m="master",w=[t,e,m],p=(l,i)=>l.value==i.value?0:l.value==t?-1:i.value==t?1:l.value==e?-1:i.value==e?1:l.value==m?-1:i.value==m||l.value>i.value?1:l.value(D("data-v-059847f6"),t=t(),I(),t),N={class:"system"},O=_(()=>a("h2",null,"Achtung!",-1)),R=_(()=>a("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1)),Z={key:0},H={name:"versionInfoForm"},P={class:"missing-commits"},G={class:"row justify-content-center"},J={class:"col-md-4 d-flex py-1 justify-content-center"},M={class:"col-md-4 d-flex py-1 justify-content-center"},K={name:"powerForm"},Q={class:"row justify-content-center"},X={class:"col-md-4 d-flex py-1 justify-content-center"},Y={class:"col-md-4 d-flex py-1 justify-content-center"},ee={name:"releaseChangeForm"},te=_(()=>a("br",null,null,-1)),se=_(()=>a("br",null,null,-1)),ne=_(()=>a("br",null,null,-1)),ae=_(()=>a("br",null,null,-1)),oe={class:"row justify-content-center"},re={class:"col-md-4 d-flex py-1 justify-content-center"};function le(t,e,m,w,p,r){const h=c("openwb-base-button-group-input"),u=c("openwb-base-alert"),l=c("openwb-base-text-input"),i=c("openwb-base-card"),b=c("font-awesome-icon"),f=c("openwb-base-click-button"),B=c("openwb-base-select-input");return g(),y("div",N,[s(u,{subtype:"danger"},{default:o(()=>[O,R,s(h,{title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:this.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=n=>this.warningAcknowledged=n)},null,8,["modelValue"])]),_:1}),p.warningAcknowledged?(g(),y("div",Z,[a("form",H,[s(i,{title:"Versions-Informationen / Aktualisierung",subtype:"success",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",G,[a("div",J,[s(f,{class:"btn-info",onButtonClicked:e[4]||(e[4]=n=>r.sendSystemCommand("systemFetchVersions"))},{default:o(()=>[d(" Informationen aktualisieren "),s(b,{"fixed-width":"",icon:["fas","download"]})]),_:1})]),a("div",M,[s(f,{class:v(r.updateAvailable?"btn-success clickable":"btn-outline-success"),disabled:!r.updateAvailable,onButtonClicked:e[5]||(e[5]=n=>r.systemUpdate())},{default:o(()=>[d(" Update "),s(b,{"fixed-width":"",icon:["fas","arrow-alt-circle-up"]})]),_:1},8,["class","disabled"])])])]),default:o(()=>[s(l,{title:"Entwicklungszweig",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[1]||(e[1]=n=>t.$store.state.mqtt["openWB/system/current_branch"]=n)},null,8,["modelValue"]),s(l,{title:"installierte Version",readonly:"",class:v(r.updateAvailable?"text-danger":"text-success"),modelValue:t.$store.state.mqtt["openWB/system/current_commit"],"onUpdate:modelValue":e[2]||(e[2]=n=>t.$store.state.mqtt["openWB/system/current_commit"]=n)},null,8,["class","modelValue"]),s(l,{title:"aktuellste Version",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/current_branch_commit"],"onUpdate:modelValue":e[3]||(e[3]=n=>t.$store.state.mqtt["openWB/system/current_branch_commit"]=n)},null,8,["modelValue"]),r.updateAvailable?(g(),T(i,{key:0,title:"Änderungen",subtype:"info",collapsible:!0,collapsed:!0},{default:o(()=>[a("ul",P,[(g(!0),y(z,null,F(t.$store.state.mqtt["openWB/system/current_missing_commits"],(n,V)=>(g(),y("li",{key:V},j(n),1))),128))])]),_:1})):k("",!0),s(u,{subtype:"danger"},{default:o(()=>[d(" Nach einem Update wird die Ladestation direkt neu gestartet! Es werden alle eventuell vorhandenen lokalen Änderungen am Programmcode mit dem Update verworfen! ")]),_:1})]),_:1})]),a("form",K,[s(i,{title:"Betrieb",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",Q,[a("div",X,[s(f,{class:"btn-warning",onButtonClicked:e[6]||(e[6]=n=>r.sendSystemCommand("systemReboot"))},{default:o(()=>[d(" Neustart "),s(b,{"fixed-width":"",icon:["fas","undo"]})]),_:1})]),a("div",Y,[s(f,{class:"btn-danger",onButtonClicked:e[7]||(e[7]=n=>r.sendSystemCommand("systemShutdown"))},{default:o(()=>[d(" Ausschalten "),s(b,{"fixed-width":"",icon:["fas","power-off"]})]),_:1})])])]),default:o(()=>[s(u,{subtype:"danger"},{default:o(()=>[d(" Wenn die Ladestation ausgeschaltet wird, muss sie komplett spannungsfrei geschaltet werden. Erst beim erneuten Zuschalten der Spannung fährt das System wieder hoch. ")]),_:1})]),_:1})]),a("form",ee,[s(i,{title:"Entwicklungszweig",subtype:"danger",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",oe,[a("div",re,[s(f,{class:v(r.releaseChangeValid?"btn-danger clickable":"btn-outline-danger"),disabled:!r.releaseChangeValid,onButtonClicked:e[10]||(e[10]=n=>r.switchBranch())},{default:o(()=>[s(b,{"fixed-width":"",icon:["fas","skull-crossbones"]}),d(" Branch und Tag wechseln "),s(b,{"fixed-width":"",icon:["fas","skull-crossbones"]})]),_:1},8,["class","disabled"])])])]),default:o(()=>[s(u,{subtype:"danger"},{default:o(()=>[d(" Nach einem Wechsel wird die Ladestation direkt neu gestartet! Es werden alle lokalen Änderungen mit dem Wechsel verworfen! ")]),_:1}),s(u,{subtype:"warning"},{default:o(()=>[d(" Bevor auf einen neuen Entwicklungszweig gewechselt wird sollte immer eine Sicherung erstellt werden! Es kann zwar wieder auf eine ältere Version gewechselt werden, jedoch ist nicht sichergestellt, dass es dabei keine Probleme gibt. Gerade wenn das Datenformat in der neuen Version angepasst wurde, wird eine ältere damit Fehler produzieren."),te,d(' Für den normalen Betrieb wird der Zweig "Release" empfohlen. Der Softwarestand wurde ausgiebig getestet, sodass ein Fehlverhalten relativ unwahrscheinlich ist.'),se,d(' Der "Beta" Zweig beinhaltet Vorabversionen, bei denen die Entwicklung soweit abgeschlossen ist. Die enthaltenen Anpassungen wurden rudimentär getestet, können aber durchaus noch Fehler enthalten.'),ne,d(' Die aktuelle Softwareentwicklung findet im Zweig "master" statt. Die enthaltenen Anpassungen sind teilweise noch nicht getestet und enthalten potentiell Fehler.'),ae,d(' Einträge, die mit "feature" beginnen, sind experimentelle Entwicklungszweige, die nicht für den allgemeinen Gebrauch gedacht sind. ')]),_:1}),s(B,{title:"Entwicklungszweig",groups:r.getBranchGroups(),"model-value":t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[8]||(e[8]=n=>t.updateState("openWB/system/current_branch",n))},null,8,["groups","model-value"]),s(B,{title:"Tag",options:r.getBranchTagOptions(),modelValue:p.selectedTag,"onUpdate:modelValue":e[9]||(e[9]=n=>p.selectedTag=n)},null,8,["options","modelValue"])]),_:1})])])):k("",!0)])}const be=U(L,[["render",le],["__scopeId","data-v-059847f6"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/System.vue"]]);export{be as default}; +import{l as W,a5 as S,p as q,a4 as C,T as A,a6 as x,F as $}from"./vendor-fortawesome-0685c9c0.js";import{C as E}from"./index-e599db2d.js";import{_ as U,q as c,k as g,l as y,B as s,M as o,u as a,A as k,x as d,p as v,z as T,I as z,J as F,y as j,R as D,S as I}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";W.add(S,q,C,A,x);const L={name:"OpenwbSystem",mixins:[E],emits:["sendCommand"],components:{FontAwesomeIcon:$},data(){return{mqttTopicsToSubscribe:["openWB/system/current_commit","openWB/system/current_branch_commit","openWB/system/current_missing_commits","openWB/system/available_branches","openWB/system/current_branch"],warningAcknowledged:!1,selectedTag:"*HEAD*"}},computed:{updateAvailable(){return this.$store.state.mqtt["openWB/system/current_branch_commit"]&&this.$store.state.mqtt["openWB/system/current_branch_commit"]!=this.$store.state.mqtt["openWB/system/current_commit"]},releaseChangeValid(){return this.$store.state.mqtt["openWB/system/current_branch"]in this.$store.state.mqtt["openWB/system/available_branches"]&&"tags"in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]]&&(this.selectedTag in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]].tags||this.selectedTag=="*HEAD*")}},methods:{sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})},getBranchGroups(){const t="Release",e="Beta",m="master",w=[t,e,m],p=(l,i)=>l.value==i.value?0:l.value==t?-1:i.value==t?1:l.value==e?-1:i.value==e?1:l.value==m?-1:i.value==m||l.value>i.value?1:l.value(D("data-v-059847f6"),t=t(),I(),t),N={class:"system"},O=_(()=>a("h2",null,"Achtung!",-1)),R=_(()=>a("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1)),Z={key:0},H={name:"versionInfoForm"},P={class:"missing-commits"},G={class:"row justify-content-center"},J={class:"col-md-4 d-flex py-1 justify-content-center"},M={class:"col-md-4 d-flex py-1 justify-content-center"},K={name:"powerForm"},Q={class:"row justify-content-center"},X={class:"col-md-4 d-flex py-1 justify-content-center"},Y={class:"col-md-4 d-flex py-1 justify-content-center"},ee={name:"releaseChangeForm"},te=_(()=>a("br",null,null,-1)),se=_(()=>a("br",null,null,-1)),ne=_(()=>a("br",null,null,-1)),ae=_(()=>a("br",null,null,-1)),oe={class:"row justify-content-center"},re={class:"col-md-4 d-flex py-1 justify-content-center"};function le(t,e,m,w,p,r){const h=c("openwb-base-button-group-input"),u=c("openwb-base-alert"),l=c("openwb-base-text-input"),i=c("openwb-base-card"),b=c("font-awesome-icon"),f=c("openwb-base-click-button"),B=c("openwb-base-select-input");return g(),y("div",N,[s(u,{subtype:"danger"},{default:o(()=>[O,R,s(h,{title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:this.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=n=>this.warningAcknowledged=n)},null,8,["modelValue"])]),_:1}),p.warningAcknowledged?(g(),y("div",Z,[a("form",H,[s(i,{title:"Versions-Informationen / Aktualisierung",subtype:"success",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",G,[a("div",J,[s(f,{class:"btn-info",onButtonClicked:e[4]||(e[4]=n=>r.sendSystemCommand("systemFetchVersions"))},{default:o(()=>[d(" Informationen aktualisieren "),s(b,{"fixed-width":"",icon:["fas","download"]})]),_:1})]),a("div",M,[s(f,{class:v(r.updateAvailable?"btn-success clickable":"btn-outline-success"),disabled:!r.updateAvailable,onButtonClicked:e[5]||(e[5]=n=>r.systemUpdate())},{default:o(()=>[d(" Update "),s(b,{"fixed-width":"",icon:["fas","arrow-alt-circle-up"]})]),_:1},8,["class","disabled"])])])]),default:o(()=>[s(l,{title:"Entwicklungszweig",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[1]||(e[1]=n=>t.$store.state.mqtt["openWB/system/current_branch"]=n)},null,8,["modelValue"]),s(l,{title:"installierte Version",readonly:"",class:v(r.updateAvailable?"text-danger":"text-success"),modelValue:t.$store.state.mqtt["openWB/system/current_commit"],"onUpdate:modelValue":e[2]||(e[2]=n=>t.$store.state.mqtt["openWB/system/current_commit"]=n)},null,8,["class","modelValue"]),s(l,{title:"aktuellste Version",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/current_branch_commit"],"onUpdate:modelValue":e[3]||(e[3]=n=>t.$store.state.mqtt["openWB/system/current_branch_commit"]=n)},null,8,["modelValue"]),r.updateAvailable?(g(),T(i,{key:0,title:"Änderungen",subtype:"info",collapsible:!0,collapsed:!0},{default:o(()=>[a("ul",P,[(g(!0),y(z,null,F(t.$store.state.mqtt["openWB/system/current_missing_commits"],(n,V)=>(g(),y("li",{key:V},j(n),1))),128))])]),_:1})):k("",!0),s(u,{subtype:"danger"},{default:o(()=>[d(" Nach einem Update wird die Ladestation direkt neu gestartet! Es werden alle eventuell vorhandenen lokalen Änderungen am Programmcode mit dem Update verworfen! ")]),_:1})]),_:1})]),a("form",K,[s(i,{title:"Betrieb",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",Q,[a("div",X,[s(f,{class:"btn-warning",onButtonClicked:e[6]||(e[6]=n=>r.sendSystemCommand("systemReboot"))},{default:o(()=>[d(" Neustart "),s(b,{"fixed-width":"",icon:["fas","undo"]})]),_:1})]),a("div",Y,[s(f,{class:"btn-danger",onButtonClicked:e[7]||(e[7]=n=>r.sendSystemCommand("systemShutdown"))},{default:o(()=>[d(" Ausschalten "),s(b,{"fixed-width":"",icon:["fas","power-off"]})]),_:1})])])]),default:o(()=>[s(u,{subtype:"danger"},{default:o(()=>[d(" Wenn die Ladestation ausgeschaltet wird, muss sie komplett spannungsfrei geschaltet werden. Erst beim erneuten Zuschalten der Spannung fährt das System wieder hoch. ")]),_:1})]),_:1})]),a("form",ee,[s(i,{title:"Entwicklungszweig",subtype:"danger",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",oe,[a("div",re,[s(f,{class:v(r.releaseChangeValid?"btn-danger clickable":"btn-outline-danger"),disabled:!r.releaseChangeValid,onButtonClicked:e[10]||(e[10]=n=>r.switchBranch())},{default:o(()=>[s(b,{"fixed-width":"",icon:["fas","skull-crossbones"]}),d(" Branch und Tag wechseln "),s(b,{"fixed-width":"",icon:["fas","skull-crossbones"]})]),_:1},8,["class","disabled"])])])]),default:o(()=>[s(u,{subtype:"danger"},{default:o(()=>[d(" Nach einem Wechsel wird die Ladestation direkt neu gestartet! Es werden alle lokalen Änderungen mit dem Wechsel verworfen! ")]),_:1}),s(u,{subtype:"warning"},{default:o(()=>[d(" Bevor auf einen neuen Entwicklungszweig gewechselt wird sollte immer eine Sicherung erstellt werden! Es kann zwar wieder auf eine ältere Version gewechselt werden, jedoch ist nicht sichergestellt, dass es dabei keine Probleme gibt. Gerade wenn das Datenformat in der neuen Version angepasst wurde, wird eine ältere damit Fehler produzieren."),te,d(' Für den normalen Betrieb wird der Zweig "Release" empfohlen. Der Softwarestand wurde ausgiebig getestet, sodass ein Fehlverhalten relativ unwahrscheinlich ist.'),se,d(' Der "Beta" Zweig beinhaltet Vorabversionen, bei denen die Entwicklung soweit abgeschlossen ist. Die enthaltenen Anpassungen wurden rudimentär getestet, können aber durchaus noch Fehler enthalten.'),ne,d(' Die aktuelle Softwareentwicklung findet im Zweig "master" statt. Die enthaltenen Anpassungen sind teilweise noch nicht getestet und enthalten potentiell Fehler.'),ae,d(' Einträge, die mit "feature" beginnen, sind experimentelle Entwicklungszweige, die nicht für den allgemeinen Gebrauch gedacht sind. ')]),_:1}),s(B,{title:"Entwicklungszweig",groups:r.getBranchGroups(),"model-value":t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[8]||(e[8]=n=>t.updateState("openWB/system/current_branch",n))},null,8,["groups","model-value"]),s(B,{title:"Tag",options:r.getBranchTagOptions(),modelValue:p.selectedTag,"onUpdate:modelValue":e[9]||(e[9]=n=>p.selectedTag=n)},null,8,["options","modelValue"])]),_:1})])])):k("",!0)])}const be=U(L,[["render",le],["__scopeId","data-v-059847f6"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/System.vue"]]);export{be as default}; diff --git a/web/settings/assets/TestingStore-e9639256.js b/web/settings/assets/TestingStore-1e43b491.js similarity index 95% rename from web/settings/assets/TestingStore-e9639256.js rename to web/settings/assets/TestingStore-1e43b491.js index 1dddd075f8..c79c032e89 100644 --- a/web/settings/assets/TestingStore-e9639256.js +++ b/web/settings/assets/TestingStore-1e43b491.js @@ -1 +1 @@ -import{C as V}from"./index-bed1470e.js";import{S as U}from"./OpenwbSortableList-947b5132.js";import{_ as y,q as s,k as E,l as k,u,B as o,M as a,x as n,y as v}from"./vendor-b03da118.js";import"./vendor-fortawesome-cf9a975a.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const T={name:"OpenwbTestingStore",mixins:[V],components:{SortableList:U},data(){return{mqttTopicsToSubscribe:[]}}},_={class:"testingStore"},N={name:"testingStoreForm"},z=u("hr",null,null,-1),O=u("br",null,null,-1),Z=u("br",null,null,-1),j=u("hr",null,null,-1),B=u("hr",null,null,-1),D=u("hr",null,null,-1),J=u("hr",null,null,-1),L=u("span",{style:{"text-decoration":"underline","font-style":"italic"}},[n(" Styled "),u("span",{style:{"font-weight":"initial"}},"Header"),n(" Slot ")],-1);function W(e,t,G,R,H,A){const p=s("openwb-base-text-input"),m=s("openwb-base-number-input"),g=s("openwb-base-textarea"),i=s("openwb-base-card"),r=s("openwb-base-range-input"),b=s("openwb-base-select-input"),f=s("openwb-base-button-group-input"),S=s("openwb-base-checkbox-input"),h=s("openwb-base-array-input"),x=s("openwb-base-heading"),d=s("openwb-base-alert"),w=s("sortable-list"),$=s("openwb-base-submit-buttons");return E(),k("div",_,[u("form",N,[o(i,{title:"Einfache Eingabefelder"},{default:a(()=>[o(p,{title:"1. Text","model-value":e.$store.state.examples.text1,"onUpdate:modelValue":t[0]||(t[0]=l=>e.updateState("text1",l))},{help:a(()=>[n("Einfacher Text")]),_:1},8,["model-value"]),o(p,{title:"2. Text (E-Mail)",subtype:"email","model-value":e.$store.state.examples.text2,"onUpdate:modelValue":t[1]||(t[1]=l=>e.updateState("text2",l))},{help:a(()=>[n("Eingabefeld für E-Mailadressen")]),_:1},8,["model-value"]),o(p,{title:"3. Text (Host)",subtype:"host","model-value":e.$store.state.examples.text3,"onUpdate:modelValue":t[2]||(t[2]=l=>e.updateState("text3",l))},{help:a(()=>[n(" Eingabefeld für Hosts (IP oder Namen) ")]),_:1},8,["model-value"]),o(p,{title:"4. Text (URL)",subtype:"url","model-value":e.$store.state.examples.text4,"onUpdate:modelValue":t[3]||(t[3]=l=>e.updateState("text4",l))},{help:a(()=>[n("Eingabefeld für URLs")]),_:1},8,["model-value"]),o(p,{title:"5. Text (User)",subtype:"user","model-value":e.$store.state.examples.text5,"onUpdate:modelValue":t[4]||(t[4]=l=>e.updateState("text5",l))},{help:a(()=>[n("Eingabefeld für Benutzernamen")]),_:1},8,["model-value"]),o(p,{title:"6. Text (Time)",subtype:"time","model-value":e.$store.state.examples.text6,"onUpdate:modelValue":t[5]||(t[5]=l=>e.updateState("text6",l))},{help:a(()=>[n("Eingabefeld für Zeiten")]),_:1},8,["model-value"]),o(p,{title:"7. Text (Date)",subtype:"date","model-value":e.$store.state.examples.text7,"onUpdate:modelValue":t[6]||(t[6]=l=>e.updateState("text7",l))},{help:a(()=>[n("Eingabefeld für ein Datum")]),_:1},8,["model-value"]),z,o(m,{title:"1. Zahl",min:5,max:9,step:2,unit:"kW","model-value":e.$store.state.examples.number1,"onUpdate:modelValue":t[7]||(t[7]=l=>e.updateState("number1",l))},{help:a(()=>[n("Zahl mit Einheit")]),_:1},8,["model-value"]),o(m,{title:"2. Zahl",min:10,max:32,step:2,"model-value":e.$store.state.examples.number2,"onUpdate:modelValue":t[8]||(t[8]=l=>e.updateState("number2",l))},{help:a(()=>[n("Eingabefeld für Zahlen ohne Einheit")]),_:1},8,["model-value"]),o(m,{title:"3. Zahl",min:-30,max:30,step:.01,precision:2,unit:"ct/kWh","model-value":e.$store.state.examples.number3*1e5,"onUpdate:modelValue":t[9]||(t[9]=l=>e.updateState("number3",parseFloat((l/1e5).toFixed(7))))},{help:a(()=>[n(" Eingabefeld für Zahlen mit Einheit und Nachkommastellen"),O,n(' Zusätzlich zum optionalen Parameter "step" sollte immer auch "precision" gesetzt sein, um unvermeidbare Darstellungsfehler zu vermeiden.'),Z,n(" Wenn der dargestellte Wert eine andere Genauigkeit/Einheit als der Wert im Backend hat (z.B. €/Wh <-> ct/kWh), dann ist bei der Umrechnung darauf zu achten, dass es nicht erneut zu Ungenauigkeiten bei Dezimalzahlen kommt. ")]),_:1},8,["model-value"]),o(p,{title:"1. Passwort",subtype:"password","model-value":e.$store.state.examples.password1,"onUpdate:modelValue":t[10]||(t[10]=l=>e.updateState("password1",l))},{help:a(()=>[n(" Das Passwort kann per Klick auf das Auge angezeigt werden. ")]),_:1},8,["model-value"]),j,o(g,{title:"1. Textarea",maxlength:"50","model-value":e.$store.state.examples.textarea1,"onUpdate:modelValue":t[11]||(t[11]=l=>e.updateState("textarea1",l))},{help:a(()=>[n(" Textarea mit maximaler Länge von 50 Zeichen. ")]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Spezielle Elemente"},{default:a(()=>[o(r,{title:"1. Range",min:6,max:32,step:1,unit:"A","model-value":e.$store.state.examples.range1,"onUpdate:modelValue":t[12]||(t[12]=l=>e.updateState("range1",l))},{help:a(()=>[n("Range ohne spezielle Labels")]),_:1},8,["model-value"]),o(r,{title:"2. Range",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":e.$store.state.examples.range2,"onUpdate:modelValue":t[13]||(t[13]=l=>e.updateState("range2",l))},{help:a(()=>[n("Range mit speziellen Labels")]),_:1},8,["model-value"]),B,o(b,{title:"1. Select",notSelected:"Bitte auswählen",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}],"model-value":e.$store.state.examples.select1,"onUpdate:modelValue":t[14]||(t[14]=l=>e.updateState("select1",l))},{help:a(()=>[n("Select mit einfachen Optionen")]),_:1},8,["model-value"]),o(b,{title:"2. Select",groups:[{label:"Gruppe 1 (Number)",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}]},{label:"Gruppe 2 (String)",options:[{value:"three",text:"Drei"},{value:"four",text:"Vier"}]}],"model-value":e.$store.state.examples.select2,"onUpdate:modelValue":t[15]||(t[15]=l=>e.updateState("select2",l))},{help:a(()=>[n("Select mit Gruppen")]),_:1},8,["groups","model-value"]),D,o(f,{title:"1. Button-Group",buttons:[{buttonValue:1,text:"Eins"},{buttonValue:2,text:"Zwei"}],"model-value":e.$store.state.examples.buttonGroup1,"onUpdate:modelValue":t[16]||(t[16]=l=>e.updateState("buttonGroup1",l))},{help:a(()=>[n("Hilfetext")]),_:1},8,["model-value"]),J,o(S,{title:"1. Checkbox","model-value":e.$store.state.examples.checkbox1,"onUpdate:modelValue":t[17]||(t[17]=l=>e.updateState("checkbox1",l))},{help:a(()=>[n("Hilfetext")]),_:1},8,["model-value"])]),_:1}),o(i,{title:"JSON Gruppe"},{default:a(()=>[o(p,{title:"JSON 1",subtype:"json","model-value":e.$store.state.examples.json1,"onUpdate:modelValue":t[18]||(t[18]=l=>e.updateState("json1",l))},{help:a(()=>[n("JSON Objekt")]),_:1},8,["model-value"]),o(p,{title:"JSON 1 Text","model-value":e.$store.state.examples.json1.text,"onUpdate:modelValue":t[19]||(t[19]=l=>e.updateState("json1",l,"text"))},{help:a(()=>[n("Text im JSON Objekt")]),_:1},8,["model-value"]),o(m,{title:"JSON 1 Zahl","model-value":e.$store.state.examples.json1.number,"onUpdate:modelValue":t[20]||(t[20]=l=>e.updateState("json1",l,"number"))},{help:a(()=>[n("Zahl im JSON Objekt")]),_:1},8,["model-value"]),o(h,{title:"Tag Array","model-value":e.$store.state.examples.tags,"onUpdate:modelValue":t[21]||(t[21]=l=>e.updateState("tags",l))},{help:a(()=>[u("pre",null,v(JSON.stringify(e.$store.state.examples.tags,void 0,2)),1)]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Meldungen"},{header:a(()=>[L]),default:a(()=>[o(x,null,{help:a(()=>[n(" Es sind auch Hilfetexte im #help Slot möglich. ")]),default:a(()=>[n(" Das ist eine Überschrift ")]),_:1}),o(d,null,{default:a(()=>[n(" Meldung ohne speziellen Subtype. ")]),_:1}),o(d,{subtype:"info"},{default:a(()=>[n("Infomeldung")]),_:1}),o(d,{subtype:"warning"},{default:a(()=>[n("Warnmeldung")]),_:1}),o(d,{subtype:"danger"},{default:a(()=>[n(" Fehlermeldung ")]),_:1})]),_:1}),o(i,{title:"Listen"},{default:a(()=>[o(w,{title:"Liste 1",modelValue:e.$store.state.examples.hierarchy1,"onUpdate:modelValue":t[22]||(t[22]=l=>e.$store.state.examples.hierarchy1=l),labels:e.$store.state.examples.hierarchy1Labels},{help:a(()=>[u("pre",null,v(JSON.stringify(e.$store.state.examples.hierarchy1,void 0,2)),1)]),_:1},8,["modelValue","labels"])]),_:1}),o($,{formName:"testingStoreForm",onSave:t[23]||(t[23]=l=>e.$emit("save")),onReset:t[24]||(t[24]=l=>e.$emit("reset")),onDefaults:t[25]||(t[25]=l=>e.$emit("defaults"))})])])}const X=y(T,[["render",W],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TestingStore.vue"]]);export{X as default}; +import{C as V}from"./index-e599db2d.js";import{S as U}from"./OpenwbSortableList-2c36b1d6.js";import{_ as y,q as s,k as E,l as k,u,B as o,M as a,x as n,y as v}from"./vendor-72da2ec6.js";import"./vendor-fortawesome-0685c9c0.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const T={name:"OpenwbTestingStore",mixins:[V],components:{SortableList:U},data(){return{mqttTopicsToSubscribe:[]}}},_={class:"testingStore"},N={name:"testingStoreForm"},z=u("hr",null,null,-1),O=u("br",null,null,-1),Z=u("br",null,null,-1),j=u("hr",null,null,-1),B=u("hr",null,null,-1),D=u("hr",null,null,-1),J=u("hr",null,null,-1),L=u("span",{style:{"text-decoration":"underline","font-style":"italic"}},[n(" Styled "),u("span",{style:{"font-weight":"initial"}},"Header"),n(" Slot ")],-1);function W(e,t,G,R,H,A){const p=s("openwb-base-text-input"),m=s("openwb-base-number-input"),g=s("openwb-base-textarea"),i=s("openwb-base-card"),r=s("openwb-base-range-input"),b=s("openwb-base-select-input"),f=s("openwb-base-button-group-input"),S=s("openwb-base-checkbox-input"),h=s("openwb-base-array-input"),x=s("openwb-base-heading"),d=s("openwb-base-alert"),w=s("sortable-list"),$=s("openwb-base-submit-buttons");return E(),k("div",_,[u("form",N,[o(i,{title:"Einfache Eingabefelder"},{default:a(()=>[o(p,{title:"1. Text","model-value":e.$store.state.examples.text1,"onUpdate:modelValue":t[0]||(t[0]=l=>e.updateState("text1",l))},{help:a(()=>[n("Einfacher Text")]),_:1},8,["model-value"]),o(p,{title:"2. Text (E-Mail)",subtype:"email","model-value":e.$store.state.examples.text2,"onUpdate:modelValue":t[1]||(t[1]=l=>e.updateState("text2",l))},{help:a(()=>[n("Eingabefeld für E-Mailadressen")]),_:1},8,["model-value"]),o(p,{title:"3. Text (Host)",subtype:"host","model-value":e.$store.state.examples.text3,"onUpdate:modelValue":t[2]||(t[2]=l=>e.updateState("text3",l))},{help:a(()=>[n(" Eingabefeld für Hosts (IP oder Namen) ")]),_:1},8,["model-value"]),o(p,{title:"4. Text (URL)",subtype:"url","model-value":e.$store.state.examples.text4,"onUpdate:modelValue":t[3]||(t[3]=l=>e.updateState("text4",l))},{help:a(()=>[n("Eingabefeld für URLs")]),_:1},8,["model-value"]),o(p,{title:"5. Text (User)",subtype:"user","model-value":e.$store.state.examples.text5,"onUpdate:modelValue":t[4]||(t[4]=l=>e.updateState("text5",l))},{help:a(()=>[n("Eingabefeld für Benutzernamen")]),_:1},8,["model-value"]),o(p,{title:"6. Text (Time)",subtype:"time","model-value":e.$store.state.examples.text6,"onUpdate:modelValue":t[5]||(t[5]=l=>e.updateState("text6",l))},{help:a(()=>[n("Eingabefeld für Zeiten")]),_:1},8,["model-value"]),o(p,{title:"7. Text (Date)",subtype:"date","model-value":e.$store.state.examples.text7,"onUpdate:modelValue":t[6]||(t[6]=l=>e.updateState("text7",l))},{help:a(()=>[n("Eingabefeld für ein Datum")]),_:1},8,["model-value"]),z,o(m,{title:"1. Zahl",min:5,max:9,step:2,unit:"kW","model-value":e.$store.state.examples.number1,"onUpdate:modelValue":t[7]||(t[7]=l=>e.updateState("number1",l))},{help:a(()=>[n("Zahl mit Einheit")]),_:1},8,["model-value"]),o(m,{title:"2. Zahl",min:10,max:32,step:2,"model-value":e.$store.state.examples.number2,"onUpdate:modelValue":t[8]||(t[8]=l=>e.updateState("number2",l))},{help:a(()=>[n("Eingabefeld für Zahlen ohne Einheit")]),_:1},8,["model-value"]),o(m,{title:"3. Zahl",min:-30,max:30,step:.01,precision:2,unit:"ct/kWh","model-value":e.$store.state.examples.number3*1e5,"onUpdate:modelValue":t[9]||(t[9]=l=>e.updateState("number3",parseFloat((l/1e5).toFixed(7))))},{help:a(()=>[n(" Eingabefeld für Zahlen mit Einheit und Nachkommastellen"),O,n(' Zusätzlich zum optionalen Parameter "step" sollte immer auch "precision" gesetzt sein, um unvermeidbare Darstellungsfehler zu vermeiden.'),Z,n(" Wenn der dargestellte Wert eine andere Genauigkeit/Einheit als der Wert im Backend hat (z.B. €/Wh <-> ct/kWh), dann ist bei der Umrechnung darauf zu achten, dass es nicht erneut zu Ungenauigkeiten bei Dezimalzahlen kommt. ")]),_:1},8,["model-value"]),o(p,{title:"1. Passwort",subtype:"password","model-value":e.$store.state.examples.password1,"onUpdate:modelValue":t[10]||(t[10]=l=>e.updateState("password1",l))},{help:a(()=>[n(" Das Passwort kann per Klick auf das Auge angezeigt werden. ")]),_:1},8,["model-value"]),j,o(g,{title:"1. Textarea",maxlength:"50","model-value":e.$store.state.examples.textarea1,"onUpdate:modelValue":t[11]||(t[11]=l=>e.updateState("textarea1",l))},{help:a(()=>[n(" Textarea mit maximaler Länge von 50 Zeichen. ")]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Spezielle Elemente"},{default:a(()=>[o(r,{title:"1. Range",min:6,max:32,step:1,unit:"A","model-value":e.$store.state.examples.range1,"onUpdate:modelValue":t[12]||(t[12]=l=>e.updateState("range1",l))},{help:a(()=>[n("Range ohne spezielle Labels")]),_:1},8,["model-value"]),o(r,{title:"2. Range",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":e.$store.state.examples.range2,"onUpdate:modelValue":t[13]||(t[13]=l=>e.updateState("range2",l))},{help:a(()=>[n("Range mit speziellen Labels")]),_:1},8,["model-value"]),B,o(b,{title:"1. Select",notSelected:"Bitte auswählen",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}],"model-value":e.$store.state.examples.select1,"onUpdate:modelValue":t[14]||(t[14]=l=>e.updateState("select1",l))},{help:a(()=>[n("Select mit einfachen Optionen")]),_:1},8,["model-value"]),o(b,{title:"2. Select",groups:[{label:"Gruppe 1 (Number)",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}]},{label:"Gruppe 2 (String)",options:[{value:"three",text:"Drei"},{value:"four",text:"Vier"}]}],"model-value":e.$store.state.examples.select2,"onUpdate:modelValue":t[15]||(t[15]=l=>e.updateState("select2",l))},{help:a(()=>[n("Select mit Gruppen")]),_:1},8,["groups","model-value"]),D,o(f,{title:"1. Button-Group",buttons:[{buttonValue:1,text:"Eins"},{buttonValue:2,text:"Zwei"}],"model-value":e.$store.state.examples.buttonGroup1,"onUpdate:modelValue":t[16]||(t[16]=l=>e.updateState("buttonGroup1",l))},{help:a(()=>[n("Hilfetext")]),_:1},8,["model-value"]),J,o(S,{title:"1. Checkbox","model-value":e.$store.state.examples.checkbox1,"onUpdate:modelValue":t[17]||(t[17]=l=>e.updateState("checkbox1",l))},{help:a(()=>[n("Hilfetext")]),_:1},8,["model-value"])]),_:1}),o(i,{title:"JSON Gruppe"},{default:a(()=>[o(p,{title:"JSON 1",subtype:"json","model-value":e.$store.state.examples.json1,"onUpdate:modelValue":t[18]||(t[18]=l=>e.updateState("json1",l))},{help:a(()=>[n("JSON Objekt")]),_:1},8,["model-value"]),o(p,{title:"JSON 1 Text","model-value":e.$store.state.examples.json1.text,"onUpdate:modelValue":t[19]||(t[19]=l=>e.updateState("json1",l,"text"))},{help:a(()=>[n("Text im JSON Objekt")]),_:1},8,["model-value"]),o(m,{title:"JSON 1 Zahl","model-value":e.$store.state.examples.json1.number,"onUpdate:modelValue":t[20]||(t[20]=l=>e.updateState("json1",l,"number"))},{help:a(()=>[n("Zahl im JSON Objekt")]),_:1},8,["model-value"]),o(h,{title:"Tag Array","model-value":e.$store.state.examples.tags,"onUpdate:modelValue":t[21]||(t[21]=l=>e.updateState("tags",l))},{help:a(()=>[u("pre",null,v(JSON.stringify(e.$store.state.examples.tags,void 0,2)),1)]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Meldungen"},{header:a(()=>[L]),default:a(()=>[o(x,null,{help:a(()=>[n(" Es sind auch Hilfetexte im #help Slot möglich. ")]),default:a(()=>[n(" Das ist eine Überschrift ")]),_:1}),o(d,null,{default:a(()=>[n(" Meldung ohne speziellen Subtype. ")]),_:1}),o(d,{subtype:"info"},{default:a(()=>[n("Infomeldung")]),_:1}),o(d,{subtype:"warning"},{default:a(()=>[n("Warnmeldung")]),_:1}),o(d,{subtype:"danger"},{default:a(()=>[n(" Fehlermeldung ")]),_:1})]),_:1}),o(i,{title:"Listen"},{default:a(()=>[o(w,{title:"Liste 1",modelValue:e.$store.state.examples.hierarchy1,"onUpdate:modelValue":t[22]||(t[22]=l=>e.$store.state.examples.hierarchy1=l),labels:e.$store.state.examples.hierarchy1Labels},{help:a(()=>[u("pre",null,v(JSON.stringify(e.$store.state.examples.hierarchy1,void 0,2)),1)]),_:1},8,["modelValue","labels"])]),_:1}),o($,{formName:"testingStoreForm",onSave:t[23]||(t[23]=l=>e.$emit("save")),onReset:t[24]||(t[24]=l=>e.$emit("reset")),onDefaults:t[25]||(t[25]=l=>e.$emit("defaults"))})])])}const X=y(T,[["render",W],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TestingStore.vue"]]);export{X as default}; diff --git a/web/settings/assets/TimeChargeConfig-a6736c02.js b/web/settings/assets/TimeChargeConfig-a9cc0249.js similarity index 84% rename from web/settings/assets/TimeChargeConfig-a6736c02.js rename to web/settings/assets/TimeChargeConfig-a9cc0249.js index 0a93f365c6..f15ebabad9 100644 --- a/web/settings/assets/TimeChargeConfig-a6736c02.js +++ b/web/settings/assets/TimeChargeConfig-a9cc0249.js @@ -1 +1 @@ -import{C as l}from"./index-bed1470e.js";import{_,q as o,k as a,l as i,u as b,B as s,M as r,x as m}from"./vendor-b03da118.js";import"./vendor-fortawesome-cf9a975a.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"OpenwbTimeChargeConfig",mixins:[l],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/time_charging/phases_to_use"]}}},c={class:"timeChargeConfig"},f={name:"timeChargeConfigForm"},v={key:0},C={key:1};function w(t,e,$,B,k,V){const u=o("openwb-base-alert"),p=o("openwb-base-button-group-input"),g=o("openwb-base-card"),d=o("openwb-base-submit-buttons");return a(),i("div",c,[b("form",f,[s(g,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(u,{subtype:"info"},{default:r(()=>[m(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",C,[s(p,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/time_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/time_charging/phases_to_use",n))},{help:r(()=>[m(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zeitladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(d,{formName:"timeChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const M=_(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TimeChargeConfig.vue"]]);export{M as default}; +import{C as l}from"./index-e599db2d.js";import{_,q as o,k as a,l as i,u as b,B as s,M as r,x as m}from"./vendor-72da2ec6.js";import"./vendor-fortawesome-0685c9c0.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"OpenwbTimeChargeConfig",mixins:[l],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/time_charging/phases_to_use"]}}},c={class:"timeChargeConfig"},f={name:"timeChargeConfigForm"},v={key:0},C={key:1};function w(t,e,$,B,k,V){const u=o("openwb-base-alert"),p=o("openwb-base-button-group-input"),g=o("openwb-base-card"),d=o("openwb-base-submit-buttons");return a(),i("div",c,[b("form",f,[s(g,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(u,{subtype:"info"},{default:r(()=>[m(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",C,[s(p,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/time_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/time_charging/phases_to_use",n))},{help:r(()=>[m(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zeitladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(d,{formName:"timeChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const M=_(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TimeChargeConfig.vue"]]);export{M as default}; diff --git a/web/settings/assets/VehicleConfig-926199e1.js b/web/settings/assets/VehicleConfig-86c73ee1.js similarity index 94% rename from web/settings/assets/VehicleConfig-926199e1.js rename to web/settings/assets/VehicleConfig-86c73ee1.js index e3812443d4..9eb89e88e1 100644 --- a/web/settings/assets/VehicleConfig-926199e1.js +++ b/web/settings/assets/VehicleConfig-86c73ee1.js @@ -1 +1 @@ -import{l as H,d as J,Z as j,A as G,_ as Q,$ as X,z as Y,P as K,a1 as ee,Q as te,a0 as ne,a2 as ae,F as le,I as ie}from"./vendor-fortawesome-cf9a975a.js";import{_ as S,C as oe}from"./index-bed1470e.js";import{_ as de}from"./dynamic-import-helper-be004503.js";import{_ as x,q as k,k as r,l as h,z as f,M as a,x as l,y as V,B as n,u as s,a1 as re,a2 as ue,I as y,A as c,J as E,a3 as M,O as N,p as I,R as se,S as me}from"./vendor-b03da118.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";import"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";const ce={name:"VehicleConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{default:void 0},vehicleType:String},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},he={class:"vehicle-fallback"},ge={key:1};function pe(e,o,g,q,w,m){const W=k("openwb-base-alert"),b=k("openwb-base-textarea");return r(),h("div",he,[Object.keys(g.configuration).length==0?(r(),f(W,{key:0,subtype:"info"},{default:a(()=>[l(' Der Fahrzeug-Typ "'+V(g.vehicleType)+'" bietet keine Einstellungen. ',1)]),_:1})):(r(),h("div",ge,[n(W,{subtype:"warning"},{default:a(()=>[l(' Es wurde keine Konfigurationsseite für den Fahrzeug-Typ "'+V(g.vehicleType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(b,{title:"Konfiguration",subtype:"json","model-value":g.configuration,"onUpdate:modelValue":o[0]||(o[0]=U=>m.updateConfiguration(U,"configuration"))},{help:a(()=>[l(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(W,{subtype:"info"},{default:a(()=>[s("pre",null,V(JSON.stringify(g.configuration,void 0,2)),1)]),_:1})]))])}const be=x(ce,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleConfigFallback.vue"]]),fe={name:"OpenwbVehicleProxy",emits:["update:configuration"],props:{vehicleId:{required:!0},vehicle:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading vehicle: ${this.vehicle.type}`),re({loader:()=>de(Object.assign({"./bmw/vehicle.vue":()=>S(()=>import("./vehicle-0707afd6.js"),["assets/vehicle-0707afd6.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./evnotify/vehicle.vue":()=>S(()=>import("./vehicle-0ae9100e.js"),["assets/vehicle-0ae9100e.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./http/vehicle.vue":()=>S(()=>import("./vehicle-a9ee8a77.js"),["assets/vehicle-a9ee8a77.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./kia/vehicle.vue":()=>S(()=>import("./vehicle-5551211d.js"),["assets/vehicle-5551211d.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./manual/vehicle.vue":()=>S(()=>import("./vehicle-e4d616a2.js"),["assets/vehicle-e4d616a2.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./mercedeseq/vehicle.vue":()=>S(()=>import("./vehicle-ef39dee6.js"),["assets/vehicle-ef39dee6.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./mqtt/vehicle.vue":()=>S(()=>import("./vehicle-b77f08de.js"),["assets/vehicle-b77f08de.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./psa/vehicle.vue":()=>S(()=>import("./vehicle-0b361e30.js"),["assets/vehicle-0b361e30.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./renault/vehicle.vue":()=>S(()=>import("./vehicle-0f314a94.js"),["assets/vehicle-0f314a94.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./skodaconnect/vehicle.vue":()=>S(()=>import("./vehicle-86bfc22f.js"),["assets/vehicle-86bfc22f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./smarteq/vehicle.vue":()=>S(()=>import("./vehicle-b65a9e8f.js"),["assets/vehicle-b65a9e8f.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./tesla/vehicle.vue":()=>S(()=>import("./vehicle-1278d0cd.js"),["assets/vehicle-1278d0cd.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-axios-3d217103.js","assets/index-bed1470e.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/index-5b24ed91.css"]),"./tronity/vehicle.vue":()=>S(()=>import("./vehicle-a31d5a49.js"),["assets/vehicle-a31d5a49.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"]),"./vwid/vehicle.vue":()=>S(()=>import("./vehicle-4151f79c.js"),["assets/vehicle-4151f79c.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css"])}),`./${this.vehicle.type}/vehicle.vue`),errorComponent:be})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function ve(e,o,g,q,w,m){const W=k("openwb-base-heading");return r(),h(y,null,[n(W,null,{default:a(()=>[l(' Einstellungen für SoC-Modul "'+V(g.vehicle.name)+'" ',1)]),_:1}),(r(),f(ue(m.myComponent),{vehicleId:g.vehicleId,vehicle:g.vehicle,configuration:g.vehicle.configuration,vehicleType:g.vehicle.type,"onUpdate:configuration":o[0]||(o[0]=b=>m.updateConfiguration(b))},null,40,["vehicleId","vehicle","configuration","vehicleType"]))],64)}const _e=x(fe,[["render",ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleProxy.vue"]]);H.add(J,j,G,Q,X,Y,K,ee,te,ne,ae);const we={name:"OpenwbVehicleConfig",mixins:[oe],emits:["sendCommand"],components:{FontAwesomeIcon:le,FontAwesomeLayers:ie,OpenwbVehicleProxy:_e},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/et/provider","openWB/optional/rfid/active","openWB/vehicle/template/ev_template/+","openWB/vehicle/template/charge_template/+","openWB/vehicle/template/charge_template/+/chargemode/scheduled_charging/plans/+","openWB/vehicle/template/charge_template/+/time_charging/plans/+","openWB/vehicle/+/name","openWB/vehicle/+/charge_template","openWB/vehicle/+/ev_template","openWB/vehicle/+/tag_id","openWB/system/configurable/soc_modules","openWB/vehicle/+/soc_module/general_config","openWB/vehicle/+/soc_module/config"],showVehicleModal:!1,modalVehicleIndex:void 0,showEvTemplateModal:!1,modalEvTemplateIndex:void 0,showChargeTemplateModal:!1,modalChargeTemplateIndex:void 0,showChargeTemplateSchedulePlanModal:!1,modalChargeTemplateSchedulePlanIndex:void 0,showChargeTemplateTimeChargingPlanModal:!1,modalChargeTemplateTimeChargingPlanIndex:void 0}},computed:{vehicleIndexes:{get(){return this.getWildcardIndexList("openWB/vehicle/+/name")}},evTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/ev_template/+")}},evTemplateList:{get(){let e=[];return Object.keys(this.evTemplates).forEach(o=>{let g=parseInt(o.match(/([0-9]+)$/g)[0]),q=this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+g].name;e.push({value:g,text:q})}),e}},chargeTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/charge_template/+")}},chargeTemplateList:{get(){let e=[];return Object.keys(this.chargeTemplates).forEach(o=>{let g=parseInt(o.match(/([0-9]+)$/g)[0]),q=this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+g].name;e.push({value:g,text:q})}),e}},socModuleList:{get(){return this.$store.state.mqtt["openWB/system/configurable/soc_modules"]}}},methods:{getChargeTemplateScheduledChargingPlans(e){let o=e.match(/([^/]+)$/)[0];return this.getWildcardTopics("openWB/vehicle/template/charge_template/"+o+"/chargemode/scheduled_charging/plans/+")},getChargeTemplateTimeChargingPlans(e){let o=e.match(/([^/]+)$/)[0];return this.getWildcardTopics("openWB/vehicle/template/charge_template/"+o+"/time_charging/plans/+")},addVehicle(e){e.stopPropagation(),console.info("requesting new vehicle..."),this.$emit("sendCommand",{command:"addVehicle",data:{}})},removeVehicleModal(e,o){o.stopPropagation(),this.modalVehicleIndex=e,this.showVehicleModal=!0},removeVehicle(e,o){this.showVehicleModal=!1,o=="confirm"&&(console.info("request removal of vehicle '"+e+"'"),this.$emit("sendCommand",{command:"removeVehicle",data:{id:e}}))},getVehicleName(e){return this.$store.state.mqtt["openWB/vehicle/"+e+"/name"]?this.$store.state.mqtt["openWB/vehicle/"+e+"/name"]:"Fahrzeug "+e},getSocDefaultConfiguration(e){const o=this.socModuleList.find(g=>g.value==e);return Object.prototype.hasOwnProperty.call(o,"defaults")?{...JSON.parse(JSON.stringify(o.defaults))}:(console.warn("no default configuration found for soc type!",e),{})},updateSelectedSocModule(e,o){this.updateState("openWB/vehicle/"+e+"/soc_module/config",o,"type"),this.updateState("openWB/vehicle/"+e+"/soc_module/config",this.getSocDefaultConfiguration(o))},updateConfiguration(e,o){console.debug("updateConfiguration",e,o),this.updateState(e,o.value,o.object)},addEvTemplate(e){e.stopPropagation(),console.info("requesting new ev template..."),this.$emit("sendCommand",{command:"addEvTemplate",data:{}})},removeEvTemplateModal(e,o){o.stopPropagation(),this.modalEvTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.showEvTemplateModal=!0},removeEvTemplate(e,o){this.showEvTemplateModal=!1,o=="confirm"&&(console.info("request removal of ev template '"+e+"'"),this.$emit("sendCommand",{command:"removeEvTemplate",data:{id:e}}))},getEvTemplateName(e){return this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+e]?this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+e].name:"Fahrzeug-Profil "+e},addChargeTemplate(e){e.stopPropagation(),console.info("requesting new charge template..."),this.$emit("sendCommand",{command:"addChargeTemplate",data:{}})},getChargeTemplateIndex(e){return parseInt(e.match(/([^/]+)$/)[0])},removeChargeTemplateModal(e,o){o.stopPropagation(),this.modalChargeTemplateIndex=this.getChargeTemplateIndex(e),this.showChargeTemplateModal=!0},removeChargeTemplate(e,o){this.showChargeTemplateModal=!1,o=="confirm"&&(console.info("request removal of charge template '"+e+"'"),this.$emit("sendCommand",{command:"removeChargeTemplate",data:{id:e}}))},getChargeTemplateName(e){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e].name:"Lade-Profil "+e},getChargeTemplateSchedulePlanName(e,o){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/chargemode/scheduled_charging/plans/"+o]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/chargemode/scheduled_charging/plans/"+o].name:"Zielladen Zeitplan "+e+"/"+o},addChargeTemplateSchedulePlan(e,o){o.stopPropagation(),console.info("requesting new charge template schedule plan...");let g=parseInt(e.match(/([^/]+)$/)[0]);this.$emit("sendCommand",{command:"addChargeTemplateSchedulePlan",data:{template:g}})},removeChargeTemplateSchedulePlanModal(e,o,g){g.stopPropagation(),this.modalChargeTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.modalChargeTemplateSchedulePlanIndex=parseInt(o.match(/([^/]+)$/)[0]),this.showChargeTemplateSchedulePlanModal=!0},removeChargeTemplateSchedulePlan(e,o,g){this.showChargeTemplateSchedulePlanModal=!1,g=="confirm"&&(console.info("request removal of charge template '"+e+"' schedule plan '"+o+"'"),this.$emit("sendCommand",{command:"removeChargeTemplateSchedulePlan",data:{template:e,plan:o}}))},getChargeTemplateTimeChargingPlanName(e,o){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/time_charging/plans/"+o]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/time_charging/plans/"+o].name:"Zeitladen Zeitplan "+e+"/"+o},addChargeTemplateTimeChargingPlan(e,o){o.stopPropagation(),console.info("requesting new charge template time charging plan...");let g=parseInt(e.match(/([^/]+)$/)[0]);this.$emit("sendCommand",{command:"addChargeTemplateTimeChargingPlan",data:{template:g}})},removeChargeTemplateTimeChargingPlanModal(e,o,g){g.stopPropagation(),this.modalChargeTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.modalChargeTemplateTimeChargingPlanIndex=parseInt(o.match(/([^/]+)$/)[0]),this.showChargeTemplateTimeChargingPlanModal=!0},removeChargeTemplateTimeChargingPlan(e,o,g){this.showChargeTemplateTimeChargingPlanModal=!1,g=="confirm"&&(console.info("request removal of charge template '"+e+"' time charging plan '"+o+"'"),this.$emit("sendCommand",{command:"removeChargeTemplateTimeChargingPlan",data:{template:e,plan:o}}))}}},_=e=>(se("data-v-d7193cf0"),e=e(),me(),e),ke={class:"vehicleConfig"},Ve={name:"vehicleConfigForm"},Ce={key:0},Se={key:1},ze=_(()=>s("hr",null,null,-1)),Te={key:0},Ue=_(()=>s("br",null,null,-1)),We=["innerHTML"],Pe=_(()=>s("hr",null,null,-1)),Le=_(()=>s("br",null,null,-1)),ye=_(()=>s("br",null,null,-1)),Be=_(()=>s("br",null,null,-1)),Ae={key:1},Ee=_(()=>s("hr",{class:"border-secondary"},null,-1)),qe={key:0},Me={key:1},Fe=_(()=>s("br",null,null,-1)),De=_(()=>s("br",null,null,-1)),xe=_(()=>s("br",null,null,-1)),Ze=_(()=>s("br",null,null,-1)),Ne={key:0},Ie={key:1},Oe=_(()=>s("br",null,null,-1)),Re=_(()=>s("br",null,null,-1)),$e=_(()=>s("ol",null,[s("li",null," Zielladen (Sofortladen) mit Priorität "),s("li",null,"Zielladen (Sofortladen)"),s("li",null,"Zeitladen mit Priorität"),s("li",null,"Zeitladen"),s("li",null,"Sofortladen mit Priorität"),s("li",null,"Sofortladen"),s("li",null,"PV (Min-Anteil) mit Priorität"),s("li",null,"PV (Min-Anteil)"),s("li",null,"Zielladen (PV) mit Priorität"),s("li",null,"Zielladen (PV)"),s("li",null,"PV (PV-Anteil) mit Priorität"),s("li",null,"PV (PV-Anteil)")],-1)),He={key:0},Je={key:0},je=_(()=>s("hr",null,null,-1)),Ge=_(()=>s("hr",null,null,-1)),Qe=_(()=>s("br",null,null,-1)),Xe=_(()=>s("br",null,null,-1)),Ye=_(()=>s("hr",null,null,-1)),Ke=_(()=>s("br",null,null,-1)),et=_(()=>s("br",null,null,-1)),tt=["onClick"],nt={key:0},at={key:1},lt={key:2},it={key:3},ot={key:4},dt={key:4},rt=_(()=>s("hr",null,null,-1)),ut=["onClick"],st={key:0},mt={key:1},ct={key:2},ht={key:3},gt={key:4},pt={key:4};function bt(e,o,g,q,w,m){const W=k("openwb-base-modal-dialog"),b=k("font-awesome-icon"),U=k("openwb-base-avatar"),A=k("openwb-base-alert"),P=k("openwb-base-text-input"),F=k("openwb-base-select-input"),O=k("openwb-base-array-input"),v=k("openwb-base-button-group-input"),L=k("openwb-base-heading"),z=k("openwb-base-number-input"),R=k("openwb-vehicle-proxy"),B=k("openwb-base-card"),Z=k("font-awesome-layers"),C=k("openwb-base-range-input"),$=k("openwb-base-submit-buttons");return r(),h(y,null,[n(W,{show:w.showVehicleModal,title:"Fahrzeug löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[0]||(o[0]=i=>m.removeVehicle(w.modalVehicleIndex,i))},{default:a(()=>[l(' Wollen Sie das Fahrzeug "'+V(m.getVehicleName(w.modalVehicleIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showEvTemplateModal,title:"Fahrzeug-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[1]||(o[1]=i=>m.removeEvTemplate(w.modalEvTemplateIndex,i))},{default:a(()=>[l(' Wollen Sie das Fahrzeug-Profil "'+V(m.getEvTemplateName(w.modalEvTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showChargeTemplateModal,title:"Lade-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[2]||(o[2]=i=>m.removeChargeTemplate(w.modalChargeTemplateIndex,i))},{default:a(()=>[l(' Wollen Sie das Lade-Profil "'+V(m.getChargeTemplateName(w.modalChargeTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showChargeTemplateSchedulePlanModal,title:"Zielladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[3]||(o[3]=i=>m.removeChargeTemplateSchedulePlan(w.modalChargeTemplateIndex,w.modalChargeTemplateSchedulePlanIndex,i))},{default:a(()=>[l(' Wollen Sie den Zielladen Zeitplan "'+V(m.getChargeTemplateSchedulePlanName(w.modalChargeTemplateIndex,w.modalChargeTemplateSchedulePlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showChargeTemplateTimeChargingPlanModal,title:"Zeitladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[4]||(o[4]=i=>m.removeChargeTemplateTimeChargingPlan(w.modalChargeTemplateIndex,w.modalChargeTemplateTimeChargingPlanIndex,i))},{default:a(()=>[l(' Wollen Sie den Zeitladen Zeitplan "'+V(m.getChargeTemplateTimeChargingPlanName(w.modalChargeTemplateIndex,w.modalChargeTemplateTimeChargingPlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),s("div",ke,[s("form",Ve,[n(B,{subtype:"info",collapsible:!0,collapsed:e.$route.params.section!="vehicle"},{header:a(()=>[n(b,{"fixed-width":"",icon:["fas","car"]}),l(" Fahrzeuge ")]),actions:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),f(U,{key:0,class:"bg-success clickable",onClick:m.addVehicle},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),h("div",Ce,[n(A,{subtype:"info"},{default:a(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),h("div",Se,[(r(!0),h(y,null,E(m.vehicleIndexes,i=>(r(),f(B,{key:i,title:m.getVehicleName(i),collapsible:!0,collapsed:!(e.$route.params.section=="vehicle"&&parseInt(e.$route.params.section_index)==i),subtype:"info"},M({default:a(()=>[n(P,{title:"Bezeichnung","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/name"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/name",d),disabled:i===0},M({_:2},[i===0?{name:"help",fn:a(()=>[l(" Das Standard-Fahrzeug kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),n(A,{subtype:"info"},{default:a(()=>[l(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ")]),_:1}),n(F,{title:"Fahrzeug-Profil",options:m.evTemplateList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/ev_template"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/ev_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),n(F,{title:"Lade-Profil",options:m.chargeTemplateList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/charge_template"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/charge_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),ze,e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(r(),h("div",Te,[n(O,{title:"Zugeordnete ID-Tags","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/tag_id"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/tag_id",d)},null,8,["model-value","onUpdate:modelValue"]),n(A,{subtype:"info"},{default:a(()=>[l(" Die ID-Tags müssen auch in den Ladepunkt-Profil eingetragen werden, um zuzuordnen, an welchen Ladepunkten die ID-Tags verwendet werden dürfen."),Ue,s("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,We)]),_:1}),Pe])):c("",!0),n(F,{class:"mb-2",title:"SoC-Modul",options:m.socModuleList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type,"onUpdate:modelValue":d=>m.updateSelectedSocModule(i,d)},{help:a(()=>[l(" Mit einem SoC-Modul kann der Ladestand des Fahrzeugs ermittelt und geregelt werden. Z.B. lassen sich unabhängig vom Fahrzeug bestimmte SoC-Werte einstellen, um den Fahrzeugakku zu schonen. Aktuell werden die SoC-Werte mittels der App-Zugangsdaten aus dem Herstellerserver des Fahrzeuges ausgelesen. Zukünftig soll auch eine direkte SoC-Auslesung aus dem Fahrzeug möglich werden (openWB Pro)."),Le,l(" Die SoC-Abfrage erfolgt automatisch beim Anstecken des Fahrzeuges und zusätzlich über einstellbare Abfrageintervalle während des Ladens und Nichtladens. Die Abfrage kann auch manuell durch Klick auf den Reload-Pfeil auf der Hauptseite ausgelöst werden."),ye,l(" Wenn eine Abfrage fehlschlägt, wird noch drei weitere Male im Abstand von 5 Minuten versucht, den SoC abzufragen. Wenn dies nicht erfolgreich ist, wird der SoC auf 0% gesetzt um zu vermeiden, dass ein Auto beim SoC-basierten Laden nicht geladen wird. Die Abfrage erfolgt dann wieder in den oben genannten Intervallen."),Be,l(" Da aktuell die SoC-Abfragen über Onlineserver der Fahrzeughersteller laufen, ist infolge möglicher Umstellungen/Wartungen keine 100%-ig sichere SoC-Abfrage garantiert. Auch kann es zu SoC-Abweichungen infolge von zeitlicher Verzögerungen kommen. Hilfestellung erfolgt primär im openWB-Forum. ")]),_:2},1032,["options","model-value","onUpdate:modelValue"]),e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type?(r(),h("div",Ae,[n(v,{title:"SoC aus Fahrzeug auslesen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].use_soc_from_cp,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d,"use_soc_from_cp")},{help:a(()=>[l(" Wenn Ladepunkt und Fahrzeug das Auslesen des SoCs unterstützen, wird nach dem Anstecken der SoC aus dem Fahrzeug ausgelesen und während der Ladung berechnet. Das Auslesen des SoC aus dem Fahrzeug ist aktuell nur mit einer openWB Pro möglich. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(L,null,{help:a(()=>[l(" Einige Hersteller begrenzen die möglichen Abfragen. Sobald ein gewisses Limit in einem Zeitraum überschritten wird, werden weitere Anfragen blockiert. Die Zeitintervalle sollten daher nicht zu klein gewählt werden. ")]),default:a(()=>[l(" Aktualisierung der Fahrzeugdaten ")]),_:1}),n(z,{title:"Während der Ladung",unit:"Min.","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].request_interval_charging/60,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d*60,"request_interval_charging")},{help:a(()=>[l(" Der Ladestand des Fahrzeugs (SoC) wird bei einem laufenden Ladevorgang in dem hier eingestellten Intervall in Minuten abgefragt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Ohne laufende Ladung",unit:"Min.","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].request_interval_not_charging/60,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d*60,"request_interval_not_charging")},{help:a(()=>[l(" Der Ladestand des Fahrzeugs (SoC) wird in dem hier eingestellten Intervall in Minuten abgefragt, falls kein Ladevorgang aktiv ist. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Nur aktualisieren wenn angesteckt",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].request_only_plugged,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d,"request_only_plugged")},{help:a(()=>[l(' Wird hier "Ja" ausgewählt, dann wird der Ladestand des Fahrzeugs nur abgefragt, wenn das Ladekabel angesteckt ist. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(R,{vehicleId:i,vehicle:e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"],"onUpdate:configuration":d=>m.updateConfiguration("openWB/vehicle/"+i+"/soc_module/config",d)},null,8,["vehicleId","vehicle","onUpdate:configuration"])])):c("",!0)]),_:2},[i!==0?{name:"actions",fn:a(d=>[d.collapsed?c("",!0):(r(),f(U,{key:0,class:"bg-danger clickable",onClick:t=>m.removeVehicleModal(i,t)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}:void 0]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),Ee,n(L,null,{default:a(()=>[l("Profile")]),_:1}),n(B,{collapsible:!0,collapsed:!0},{header:a(()=>[n(Z,{"fixed-width":"",class:"fa-lg"},{default:a(()=>[n(b,{"fixed-width":"",icon:["far","file"]}),n(b,{"fixed-width":"",icon:["fas","car"],transform:"shrink-8"})]),_:1}),l(" Fahrzeug-Profile ")]),actions:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),f(U,{key:0,class:"bg-success clickable",onClick:m.addEvTemplate},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),h("div",qe,[n(A,{subtype:"info"},{default:a(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),h("div",Me,[n(A,{subtype:"info"},{default:a(()=>[l(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ")]),_:1}),(r(!0),h(y,null,E(m.evTemplates,(i,d)=>(r(),f(B,{key:d,title:i.name?i.name:d,collapsible:!0,collapsed:!0},M({default:a(()=>[n(P,{title:"Bezeichnung","model-value":i.name,"onUpdate:modelValue":t=>e.updateState(d,t,"name"),disabled:d.endsWith("/0")},M({_:2},[d.endsWith("/0")?{name:"help",fn:a(()=>[l(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),n(L,null,{default:a(()=>[l(" Angaben zum Ladestrom ")]),_:1}),n(C,{title:"Mindeststrom",min:6,max:16,step:1,unit:"A","model-value":i.min_current,"onUpdate:modelValue":t=>e.updateState(d,t,"min_current")},null,8,["model-value","onUpdate:modelValue"]),n(C,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":i.max_current_single_phase,"onUpdate:modelValue":t=>e.updateState(d,t,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),n(C,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":i.max_current_multi_phases,"onUpdate:modelValue":t=>e.updateState(d,t,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),n(z,{title:"Erlaubte Stromabweichung",step:.1,unit:"A","model-value":i.nominal_difference,"onUpdate:modelValue":t=>e.updateState(d,t,"nominal_difference")},{help:a(()=>[l(" In manchen Lademodi, z.B. bei der automatischen Phasenumschaltung, wird geprüft, ob das Fahrzeug mit der vorgegebenen Stromstärke lädt. Manche Fahrzeuge laden nicht exakt mit der vorgegebenen Stromstärke. Die erlaubte Abweichung kann hier eingestellt werden. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(L,null,{default:a(()=>[l(" Angaben zur Batterie ")]),_:1}),n(z,{title:"Kapazität der Batterie",unit:"kWh",min:1,step:1,"model-value":i.battery_capacity/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"battery_capacity")},{help:a(()=>[l(" Angabe der Netto-Kapazität der Fahrzeugbatterie. Dient zur Berechnung des manuellen SoC und der geladenen Reichweite. Die Netto-Kapazität unterscheidet sich meist von den Angaben der Fahrzeughersteller. So besitzt ein Tesla Model S 90 z. B. nur ca. 83kWh und nicht die durch die Typenbezeichnung suggerierten 90kWh. Andere Hersteller begrenzen die nutzbare Kapazität absichtlich, um eine höhere Lebensdauer der Akkus zu erreichen. Gängig sind eine Drosselung auf 90% der angegebenen Brutto-Kapazität. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Wirkungsgrad der Ladeelektronik",unit:"%",required:"","model-value":i.efficiency,"onUpdate:modelValue":t=>e.updateState(d,t,"efficiency")},{help:a(()=>[l(" Durch Verluste in der Ladeelektronik (z. B. Umwandlung Wechselspannung in Gleichspannung) gelangt nicht die komplette Energie, welche durch den Zähler in der Wallbox gemessen wird, in den Akku des Fahrzeugs. Der anzugebende Wert liegt bei gängigen Fahrzeugen im Bereich 90-95%. Eine Ausnahme stellt der Zoe dar, dessen Chameleon-Lader je nach Modellversion und freigegebener Leistung der Wallbox teilweise nur auf ca. 50% kommt."),Fe,l(" Liegen die Angaben der Wallbox und des Fahrzeugs nach der Ladung mehrere Prozent auseinander, dann kann mit dieser Einstellung eine Feinabstimmung erfolgen: "),De,l(" SoC an der Wallbox zu hoch: Wirkungsgrad um ein paar Prozent reduzieren"),xe,l(" SoC an der Wallbox zu gering: Wirkungsgrad um ein paar Prozent erhöhen"),Ze]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Durchschnittsverbrauch",unit:"kWh / 100km",min:0,step:.1,"model-value":i.average_consump/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"average_consump")},null,8,["model-value","onUpdate:modelValue"]),n(L,null,{default:a(()=>[l(" Angaben zur Handhabung von Phasen ")]),_:1}),n(v,{title:"Unterstützte Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":i.max_phases,"onUpdate:modelValue":t=>e.updateState(d,t,"max_phases")},{help:a(()=>[l(" Anzahl der Phasen, die der Fahrzeuglader (s.g. OBC - OnboardCharger) bereitstellt. Plugin-Hybride haben meist nur eine Phase, reine E-Autos meist 2 bis 3 Phasen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"CP-Unterbrechung",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.control_pilot_interruption,"onUpdate:modelValue":t=>e.updateState(d,t,"control_pilot_interruption")},{help:a(()=>[l(' Erläuterung siehe "Konfiguration - Ladepunkte" -> Hardware-Optionen ')]),_:2},1032,["model-value","onUpdate:modelValue"]),i.control_pilot_interruption?(r(),f(z,{key:0,title:"Dauer der CP-Unterbrechung",min:4,step:1,unit:"s","model-value":i.control_pilot_interruption_duration,"onUpdate:modelValue":t=>e.updateState(d,t,"control_pilot_interruption_duration")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),n(v,{title:"Phasenumschaltung blockieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.prevent_phase_switch,"onUpdate:modelValue":t=>e.updateState(d,t,"prevent_phase_switch")},{help:a(()=>[l(' Erläuterung zu 1p3p siehe "Ladeeinstellungen" ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Ladung aktiv halten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.prevent_charge_stop,"onUpdate:modelValue":t=>e.updateState(d,t,"prevent_charge_stop")},{help:a(()=>[l(" Der Ladevorgang wird in den Lademodi PV- und Zielladen nach Ladebeginn nicht unterbrochen, selbst wenn nicht mehr genug Überschuss vorhanden ist. Diese Einstellung sollte bei Fahrzeugen aktiviert werden, die nach einer Ladungsunterbrechung keine Ladung mehr starten. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Pause bei Phasenumschaltung",unit:"s",min:2,step:1,"model-value":i.phase_switch_pause,"onUpdate:modelValue":t=>e.updateState(d,t,"phase_switch_pause")},null,8,["model-value","onUpdate:modelValue"]),n(z,{title:"Mindestzeit zwischen Umschaltungen",unit:"s",min:2,step:1,"model-value":i.keep_charge_active_duration,"onUpdate:modelValue":t=>e.updateState(d,t,"keep_charge_active_duration")},{help:a(()=>[l(" Manche Fahrzeuge benötigen nach der Umschaltung einige Zeit, bis sie mit der vorgegebenen Phasenzahl laden. In dieser Zeit wird keine neue Phasenumschaltung angestoßen. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},[d.endsWith("/0")?void 0:{name:"actions",fn:a(t=>[e.$store.state.mqtt["openWB/general/extern"]===!1&&!t.collapsed?(r(),f(U,{key:0,class:"bg-danger clickable",onClick:p=>m.removeEvTemplateModal(d,p)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("",!0)]),key:"0"}]),1032,["title"]))),128))]))]),_:1}),n(B,{collapsible:!0,collapsed:e.$route.params.section!="charge_template"},{header:a(()=>[n(Z,{"fixed-width":"",class:"fa-lg"},{default:a(()=>[n(b,{"fixed-width":"",icon:["far","file"]}),n(b,{"fixed-width":"",icon:["fas","plug"],transform:"shrink-8"})]),_:1}),l(" Lade-Profile ")]),actions:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),f(U,{key:0,class:"bg-success clickable",onClick:m.addChargeTemplate},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),h("div",Ne,[n(A,{subtype:"info"},{default:a(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),h("div",Ie,[(r(!0),h(y,null,E(m.chargeTemplates,(i,d)=>(r(),f(B,{key:d,title:i.name?i.name:d,collapsible:!0,collapsed:!(e.$route.params.section=="charge_template"&&parseInt(e.$route.params.section_index)==m.getChargeTemplateIndex(d))},M({default:a(()=>[n(P,{title:"Bezeichnung","model-value":i.name,"onUpdate:modelValue":t=>e.updateState(d,t,"name"),disabled:d.endsWith("/0")},M({_:2},[d.endsWith("/0")?{name:"help",fn:a(()=>[l(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),n(L,null,{default:a(()=>[l(" Allgemeine Optionen ")]),_:1}),n(v,{title:"Aktiver Lademodus",buttons:[{buttonValue:"instant_charging",text:"Sofortladen",class:"btn-outline-danger"},{buttonValue:"pv_charging",text:"PV",class:"btn-outline-success"},{buttonValue:"scheduled_charging",text:"Zielladen",class:"btn-outline-primary"},{buttonValue:"standby",text:"Standby",class:"btn-outline-secondary"},{buttonValue:"stop",text:"Stop",class:"btn-outline-dark"}],"model-value":i.chargemode.selected,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.selected")},{help:a(()=>[l(" Diese Einstellung entspricht dem gewählten Lademodus auf der Hauptseite und ist aktiv, wenn ein zugehöriges Fahrzeug angesteckt ist."),Oe,l(" Die zur Verfügung stehende Leistung wird intern anhand folgender Prioritätenliste auf die Fahrzeuge bzw. Ladepunkte verteilt:"),Re,$e]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Priorität",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.prio,"onUpdate:modelValue":t=>e.updateState(d,t,"prio")},{help:a(()=>[l(" Die Ladefreigabe mit dem jeweils eingestellten Mindeststrom erfolgt für alle Fahrzeuge, soweit die verfügbare Leistung ausreicht. Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar. Erst wenn alle priorisierten Fahrzeuge die maximale Ladeleistung bekommen und noch zusätzlicher Überschuss vorhanden ist, wird auch für Fahrzeuge ohne Priorität mehr Leistung freigegeben. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Zeitladen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.time_charging.active,"onUpdate:modelValue":t=>e.updateState(d,t,"time_charging.active")},{help:a(()=>[l(' Der Lademodus Zeitladen kann parallel zu einem der anderen Lademodi aktiviert werden. Die Auswahl des Lademodus, der in der Regelung genutzt wird, erfolgt anhand der Übersicht in der Hilfe bei "Aktiver Lademodus". Wenn kein Zeitplan aktiv ist oder das Limit des Zeitplans erreicht wurde, wird der Lademodus verwendet, der bei "Aktiver Lademodus" ausgewählt ist. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Sperre nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.disable_after_unplug,"onUpdate:modelValue":t=>e.updateState(d,t,"disable_after_unplug")},{help:a(()=>[l(" Wird ein Fahrzeug mit diesem Profil abgesteckt, dann wird der betroffene Ladepunkt automatisch deaktiviert. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Standard nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.load_default,"onUpdate:modelValue":t=>e.updateState(d,t,"load_default")},{help:a(()=>[l(" Falls diese Option aktiviert ist, wird der betroffene Ladepunkt nach dem Abstecken auf das Standard Ladeprofil zurückgesetzt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Strompreisbasiert Laden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.et.active,"onUpdate:modelValue":t=>e.updateState(d,t,"et.active")},null,8,["model-value","onUpdate:modelValue"]),i.et.active==!0?(r(),h("div",He,[!e.$store.state.mqtt["openWB/optional/et/provider"]||!e.$store.state.mqtt["openWB/optional/et/provider"].type?(r(),h("div",Je,[n(A,{subtype:"danger"},{default:a(()=>[l(" Bitte in den übergreifenden Ladeeinstellungen einen Strompreis-Anbieter konfigurieren. ")]),_:1})])):c("",!0),n(z,{title:"Preisgrenze für Zeit- & Sofortladen",min:"-80",max:"80",step:"0.01",precision:2,unit:"ct/kWh","model-value":i.et.max_price*1e5,"onUpdate:modelValue":t=>e.updateState(d,parseFloat((t/1e5).toFixed(7)),"et.max_price")},{help:a(()=>[l(" Für Zielladen werden die günstigsten Stunden ermittelt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])])):c("",!0),je,n(L,null,{default:a(()=>[l("Sofortladen")]),_:1}),n(C,{title:"Soll-Ladestrom",min:6,max:32,step:1,unit:"A","model-value":i.chargemode.instant_charging.current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.current")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":i.chargemode.instant_charging.limit.selected,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.limit.selected")},{help:a(()=>[l(" Sofortladen kann ohne Fahrzeug-SoC-Begrenzung (Aus), mit Begrenzung des Fahrzeug-SoC (SoC) bei konfiguriertem SoC-Auslesemodul oder mittels Vorgabe eine gewünschten Energiemenge in kWh (Energie) genutzt werden. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(C,{title:"SoC-Limit",min:5,max:100,step:5,unit:"%","model-value":i.chargemode.instant_charging.limit.soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.limit.soc")},{help:a(()=>[l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Energie-Limit",unit:"kWh",min:1,max:100,step:1,"model-value":i.chargemode.instant_charging.limit.amount/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"chargemode.instant_charging.limit.amount")},{help:a(()=>[l(" Die geladene Energiemenge wird beim Wechsel des Lademodus oder nach dem Anstecken, wenn Sofortladen schon ausgewählt ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),Ge,n(L,null,{default:a(()=>[l("PV-Laden")]),_:1}),n(C,{title:"Minimaler Dauerstrom",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":i.chargemode.pv_charging.min_current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_current")},{help:a(()=>[l(' Hier kann eine Stromstärke eingestellt werden, mit dem unabhängig vom vorhandenen Überschuss durchgeladen wird. Hierdurch wird z.B. an Tagen mit häufigem Sonne/Wolken-Wechsel oder mit nur wenig PV-Ertrag ein Laden ohne Unterbrechung ermöglicht. Folglich kann auch Netzbezug für das Fahrzeugladen entstehen, weshalb der niedrigste Stromwert empfohlen wird. Diese Einstellung entspricht weitestgehend dem Lademodus "Min+PV" der Version 1.x. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(C,{title:"SoC-Limit",min:0,max:20,step:1,unit:"%",labels:[{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:100,value:100},{label:"Aus",value:101}],"model-value":i.chargemode.pv_charging.max_soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.max_soc")},{help:a(()=>[l(' Bei der Einstellung "100%" wird die Ladung sofort mit Erreichen der 100% beendet. Dadurch erfolgt KEIN Balancing der Batteriezellen. Ist dies gewünscht (sollte ab und an durchgeführt werden), muss hier "Aus" gewählt werden (Schieberegler ganz nach rechts stellen), um die Ladung MIT Balancing bis zur Beendigung durch das Fahrzeug weiterlaufen zu lassen.'),Qe,l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(C,{title:"Mindest-SoC",min:0,max:19,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":i.chargemode.pv_charging.min_soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_soc")},{help:a(()=>[l(' Liegt der Fahrzeug-Ladestand (SoC) unter dem hier eingestellten Wert, dann wird bis zum Erreichen dieses Wertes mit dem eingestellten "Mindest-SoC-Strom" geladen. Dies dient der Sicherstellung eines "Mindest-SoC" - z.B. für eine immer abzudeckende Fahrzeugreichweite - auch wenn kein oder zu wenig Überschuss verfügbar ist (=> Laden mit anteilig Netzstrom). Nach dem Erreichen des "Mindest-SoC" wird bei verfügbarem Überschuss geladen.'),Xe,l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(C,{title:"Mindest-SoC-Strom",min:6,max:32,step:1,unit:"A","model-value":i.chargemode.pv_charging.min_soc_current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_soc_current")},{help:a(()=>[l(' Wird der oben eingestellte "Mindest-SoC" des Fahrzeuges unterschritten, dann wird unabhängig vom Überschuss ein Ladevorgang mit dem hier festgelegten "Mindest-SoC-Strom" initiiert (ggf. mit anteilig Netzbezug). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Einspeisegrenze beachten",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.chargemode.pv_charging.feed_in_limit,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.feed_in_limit")},{help:a(()=>[l(' Erläuterung siehe "Ladeeinstellungen" -> "PV-Laden" -> "Regelparameter" -> "Regelpunkt Einspeisegrenze" ')]),_:2},1032,["model-value","onUpdate:modelValue"]),Ye,n(L,null,{actions:a(()=>[n(U,{class:"bg-success clickable",onClick:t=>m.addChargeTemplateSchedulePlan(d,t)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:a(()=>[l(' Im Lademodus "Zielladen" wird der Ladestrom so angepasst, dass das Fahrzeug zum angegebenen Zeitpunkt den eingestellten SoC bzw. die einzuladende Energiemenge erreicht. Anhand des vorgegebenen Ladestroms wird der Zeitpunkt berechnet, an dem die Ladung spätestens starten muss.'),Ke,l(' Ist der berechnete Zeitpunkt des Ladestarts noch nicht erreicht, wird mit Überschuss geladen. Auch nach Erreichen des Ziel-SoCs wird mit Überschuss geladen, solange bis das "SoC-Limit" erreicht wird.'),et,l(" Kann der Ziel-SoC bzw. die Energiemenge NICHT erreicht werden, z.B. weil das Auto zu spät angesteckt wurde oder das Lastmanagement eingegriffen hat, wird bis 20 Minuten nach dem angegebenen Termin mit der Maximalstromstärke geladen. Danach wird der Termin verworfen und mit Überschuss geladen. ")]),default:a(()=>[l(" Zielladen ")]),_:2},1024),(r(!0),h(y,null,E(m.getChargeTemplateScheduledChargingPlans(d),(t,p)=>(r(),f(B,{key:p,title:t.name,collapsible:!0,collapsed:!0},{actions:a(u=>[u.collapsed==!0?(r(),h("span",{key:0,onClick:N(T=>e.updateState(p,!t.active,"active"),["stop"]),class:I(["subheader pill clickable",t.active?"bg-success":"bg-danger"])},[t.limit.selected=="soc"?(r(),h("span",nt,[n(b,{"fixed-width":"",icon:["fas","car-battery"]}),l(" "+V(t.limit.soc_scheduled)+"% ",1)])):c("",!0),t.limit.selected=="amount"?(r(),h("span",at,[n(b,{"fixed-width":"",icon:["fas","bolt"]}),l(" "+V(t.limit.amount/1e3)+"kWh ",1)])):c("",!0),n(b,{"fixed-width":"",icon:["fas","clock"]}),l(" "+V(t.time)+" ",1),t.frequency.selected=="once"?(r(),h("span",lt,[n(b,{"fixed-width":"",icon:["fas","calendar-day"]}),l(" "+V(e.formatDate(t.frequency.once)),1)])):c("",!0),t.frequency.selected=="daily"?(r(),h("span",it,[n(b,{"fixed-width":"",icon:["fas","calendar-week"]})])):c("",!0),t.frequency.selected=="weekly"?(r(),h("span",ot,[n(b,{"fixed-width":"",icon:["fas","calendar-alt"]})])):c("",!0)],10,tt)):c("",!0),u.collapsed==!1?(r(),f(U,{key:1,class:"bg-danger clickable",onClick:T=>m.removeChargeTemplateSchedulePlanModal(d,p,T)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("",!0)]),default:a(()=>[n(P,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":u=>e.updateState(p,u,"name")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Zeitpunkt aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":u=>e.updateState(p,u,"active")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Ziel-Uhrzeit",subtype:"time","model-value":t.time,"onUpdate:modelValue":u=>e.updateState(p,u,"time")},{help:a(()=>[l(" Hier ist die gewünschte Uhrzeit einzustellen, zu welcher das Fahrzeug den gewünschten SoC bzw. die zu ladende Energiemenge BEREITS ERREICHT haben soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(C,{title:"Ladestrom",min:6,max:32,step:1,unit:"A","model-value":t.current,"onUpdate:modelValue":u=>e.updateState(p,u,"current")},{help:a(()=>[l(" Mit dieser Stromstärke wird der Zeitpunkt berechnet, wann die Ladung mit Netzbezug gestartet werden muss. Wird der Ziel-SoC nicht zum angegebenen Termin erreicht, weil z.B. das Auto erst später angesteckt wurde, wird auch mit einer höheren Stromstärke geladen. Um etwas Puffer zu haben, empfiehlt es sich, etwas weniger als die Maximalstromstärke des Fahrzeugs zu wählen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Ziel",buttons:[{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":t.limit.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.selected")},{help:a(()=>[l(" Bestimmt die Art der Grenze für den Ladevorgang. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),t.limit.selected=="soc"?(r(),f(C,{key:0,title:"Ziel-SoC",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc_scheduled,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.soc_scheduled")},{help:a(()=>[l(" SoC, der zum angegebenen Zeitpunkt erreicht werden soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),t.limit.selected=="soc"?(r(),f(C,{key:1,title:"SoC-Limit",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc_limit,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.soc_limit")},{help:a(()=>[l(" Nach Erreichen des Ziel-SoCs wird mit Überschuss weiter geladen, bis das SoC-Limit erreicht wird. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),t.limit.selected=="amount"?(r(),f(z,{key:2,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.limit.amount/1e3,"onUpdate:modelValue":u=>e.updateState(p,u*1e3,"limit.amount")},{help:a(()=>[l(" Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zielladen schon ausgewählt ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),n(v,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(r(),f(P,{key:3,title:"Datum",subtype:"date","model-value":t.frequency.once,"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.once")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),t.frequency.selected=="weekly"?(r(),h("div",dt,[(r(!0),h(y,null,E(e.weekdays,(u,T)=>(r(),f(v,{key:T,title:u,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[T],"onUpdate:modelValue":D=>e.updateState(p,D,"frequency.weekly."+T)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):c("",!0)]),_:2},1032,["title"]))),128)),rt,n(L,null,{actions:a(()=>[n(U,{class:"bg-success clickable",onClick:t=>m.addChargeTemplateTimeChargingPlan(d,t)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:a(()=>[l(" Mit einem Zeitplan kann ein klar abgegrenzter Zeitbereich zum Fahrzeugladen definiert werden. Dies wird häufig genutzt, um einem Fahrzeug kurz vor der Abfahrt Strom anzubieten, damit dessen Vorklimatisierung nicht aus dem Fahrzeugakku, sondern aus der openWB bezogen wird (Enteisung, Vorwärmung, Abkühlung). Nicht von der Vorklimatisierung benötigter Strom erhöht dabei den Fahrzeug-SoC. Um das Stromnetz am Morgen nicht unnötig zu strapazieren, sollte eine moderate Stromvorgabe und ein beschränkter Zeitbereich vorgegeben werden (z.B. max. 10A; 30min - in Übereinstimmung mit den Fahrzeug-App-Vorklimatisierungsvorgaben). ")]),default:a(()=>[l(" Laden nach Zeitplan ")]),_:2},1024),(r(!0),h(y,null,E(m.getChargeTemplateTimeChargingPlans(d),(t,p)=>(r(),f(B,{key:p,title:t.name,collapsible:!0,collapsed:!0},{actions:a(u=>[u.collapsed==!0?(r(),h("span",{key:0,onClick:N(T=>e.updateState(p,!t.active,"active"),["stop"]),class:I(["subheader pill clickable",t.active?"bg-success":"bg-danger"])},[t.limit.selected=="soc"?(r(),h("span",st,[n(b,{"fixed-width":"",icon:["fas","car-battery"]}),l(" "+V(t.limit.soc)+"% ",1)])):c("",!0),t.limit.selected=="amount"?(r(),h("span",mt,[n(b,{"fixed-width":"",icon:["fas","bolt"]}),l(" "+V(t.limit.amount/1e3)+"kWh ",1)])):c("",!0),n(b,{"fixed-width":"",icon:["fas","clock"]}),l(" "+V(t.time[0])+" - "+V(t.time[1])+" ",1),t.frequency.selected=="once"?(r(),h("span",ct,[n(b,{"fixed-width":"",icon:["fas","calendar-day"]}),l(" "+V(e.formatDate(t.frequency.once[0])==e.formatDate(t.frequency.once[1])?e.formatDate(t.frequency.once[0]):e.formatDate(t.frequency.once[0])+" - "+e.formatDate(t.frequency.once[1])),1)])):c("",!0),t.frequency.selected=="daily"?(r(),h("span",ht,[n(b,{"fixed-width":"",icon:["fas","calendar-week"]})])):c("",!0),t.frequency.selected=="weekly"?(r(),h("span",gt,[n(b,{"fixed-width":"",icon:["fas","calendar-alt"]})])):c("",!0)],10,ut)):c("",!0),u.collapsed==!1?(r(),f(U,{key:1,class:"bg-danger clickable",onClick:T=>m.removeChargeTemplateTimeChargingPlanModal(d,p,T)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("",!0)]),default:a(()=>[n(P,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":u=>e.updateState(p,u,"name")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":u=>e.updateState(p,u,"active")},null,8,["model-value","onUpdate:modelValue"]),n(C,{title:"Ladestrom",min:6,max:32,step:1,unit:"A","model-value":t.current,"onUpdate:modelValue":u=>e.updateState(p,u,"current")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Ziel",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":t.limit.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.selected")},{help:a(()=>[l(" Bestimmt die Art der Grenze für den Ladevorgang. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),t.limit.selected=="soc"?(r(),f(C,{key:0,title:"Ziel-SoC",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.soc")},{help:a(()=>[l(" Ladestand des Akku (State of Charge, SoC), bis zu welchem maximal geladen werden soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),t.limit.selected=="amount"?(r(),f(z,{key:1,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.limit.amount/1e3,"onUpdate:modelValue":u=>e.updateState(p,u*1e3,"limit.amount")},{help:a(()=>[l(" Maximal zu ladende Energie innerhalb des Zeitfensters. Eignet sich immer dann wenn kein SoC zur Verfügung steht. Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zeitladen schon aktiv ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),n(P,{title:"Zeitpunkt des Ladebeginns",subtype:"time","model-value":t.time[0],"onUpdate:modelValue":u=>e.updateState(p,u,"time.0")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Zeitpunkt des Ladeendes",subtype:"time","model-value":t.time[1],"onUpdate:modelValue":u=>e.updateState(p,u,"time.1")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(r(),f(P,{key:2,title:"Gültig ab",subtype:"date","model-value":t.frequency.once[0],"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.once.0")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),t.frequency.selected=="once"?(r(),f(P,{key:3,title:"Gültig bis",subtype:"date",min:t.frequency.once[0],"model-value":t.frequency.once[1],"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.once.1")},null,8,["min","model-value","onUpdate:modelValue"])):c("",!0),t.frequency.selected=="weekly"?(r(),h("div",pt,[(r(!0),h(y,null,E(e.weekdays,(u,T)=>(r(),f(v,{key:T,title:u,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[T],"onUpdate:modelValue":D=>e.updateState(p,D,"frequency.weekly."+T)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):c("",!0)]),_:2},1032,["title"]))),128))]),_:2},[d.endsWith("/0")?void 0:{name:"actions",fn:a(t=>[t.collapsed?c("",!0):(r(),f(U,{key:0,class:"bg-danger clickable",onClick:p=>m.removeChargeTemplateModal(d,p)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),n($,{formName:"vehicleConfigForm",onSave:o[5]||(o[5]=i=>e.$emit("save")),onReset:o[6]||(o[6]=i=>e.$emit("reset")),onDefaults:o[7]||(o[7]=i=>e.$emit("defaults"))})])])],64)}const zt=x(we,[["render",bt],["__scopeId","data-v-d7193cf0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/VehicleConfig.vue"]]);export{zt as default}; +import{l as H,d as J,Z as j,A as G,_ as Q,$ as X,z as Y,P as K,a1 as ee,Q as te,a0 as ne,a2 as ae,F as le,I as ie}from"./vendor-fortawesome-0685c9c0.js";import{_ as S,C as oe}from"./index-e599db2d.js";import{_ as de}from"./dynamic-import-helper-be004503.js";import{_ as x,q as k,k as r,l as h,z as f,M as a,x as l,y as V,B as n,u as s,a1 as re,a2 as ue,I as y,A as c,J as E,a3 as M,O as N,p as I,R as se,S as me}from"./vendor-72da2ec6.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";import"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";const ce={name:"VehicleConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{default:void 0},vehicleType:String},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},he={class:"vehicle-fallback"},ge={key:1};function pe(e,o,g,q,w,m){const W=k("openwb-base-alert"),b=k("openwb-base-textarea");return r(),h("div",he,[Object.keys(g.configuration).length==0?(r(),f(W,{key:0,subtype:"info"},{default:a(()=>[l(' Der Fahrzeug-Typ "'+V(g.vehicleType)+'" bietet keine Einstellungen. ',1)]),_:1})):(r(),h("div",ge,[n(W,{subtype:"warning"},{default:a(()=>[l(' Es wurde keine Konfigurationsseite für den Fahrzeug-Typ "'+V(g.vehicleType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(b,{title:"Konfiguration",subtype:"json","model-value":g.configuration,"onUpdate:modelValue":o[0]||(o[0]=U=>m.updateConfiguration(U,"configuration"))},{help:a(()=>[l(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(W,{subtype:"info"},{default:a(()=>[s("pre",null,V(JSON.stringify(g.configuration,void 0,2)),1)]),_:1})]))])}const be=x(ce,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleConfigFallback.vue"]]),fe={name:"OpenwbVehicleProxy",emits:["update:configuration"],props:{vehicleId:{required:!0},vehicle:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading vehicle: ${this.vehicle.type}`),re({loader:()=>de(Object.assign({"./bmw/vehicle.vue":()=>S(()=>import("./vehicle-dd10f333.js"),["assets/vehicle-dd10f333.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./evnotify/vehicle.vue":()=>S(()=>import("./vehicle-f97de3a1.js"),["assets/vehicle-f97de3a1.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./http/vehicle.vue":()=>S(()=>import("./vehicle-69fc4aee.js"),["assets/vehicle-69fc4aee.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./kia/vehicle.vue":()=>S(()=>import("./vehicle-169d9f6a.js"),["assets/vehicle-169d9f6a.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./manual/vehicle.vue":()=>S(()=>import("./vehicle-b4e137a0.js"),["assets/vehicle-b4e137a0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./mercedeseq/vehicle.vue":()=>S(()=>import("./vehicle-2f0805c0.js"),["assets/vehicle-2f0805c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./mqtt/vehicle.vue":()=>S(()=>import("./vehicle-9ff932ad.js"),["assets/vehicle-9ff932ad.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./psa/vehicle.vue":()=>S(()=>import("./vehicle-fd3076cf.js"),["assets/vehicle-fd3076cf.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./renault/vehicle.vue":()=>S(()=>import("./vehicle-0b875c05.js"),["assets/vehicle-0b875c05.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./skodaconnect/vehicle.vue":()=>S(()=>import("./vehicle-6cddf1ff.js"),["assets/vehicle-6cddf1ff.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./smarteq/vehicle.vue":()=>S(()=>import("./vehicle-28dd95f3.js"),["assets/vehicle-28dd95f3.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./tesla/vehicle.vue":()=>S(()=>import("./vehicle-28ef5348.js"),["assets/vehicle-28ef5348.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-axios-a313c26e.js","assets/index-e599db2d.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/index-5b24ed91.css"]),"./tronity/vehicle.vue":()=>S(()=>import("./vehicle-92e18a5a.js"),["assets/vehicle-92e18a5a.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"]),"./vwid/vehicle.vue":()=>S(()=>import("./vehicle-531b6be7.js"),["assets/vehicle-531b6be7.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css"])}),`./${this.vehicle.type}/vehicle.vue`),errorComponent:be})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function ve(e,o,g,q,w,m){const W=k("openwb-base-heading");return r(),h(y,null,[n(W,null,{default:a(()=>[l(' Einstellungen für SoC-Modul "'+V(g.vehicle.name)+'" ',1)]),_:1}),(r(),f(ue(m.myComponent),{vehicleId:g.vehicleId,vehicle:g.vehicle,configuration:g.vehicle.configuration,vehicleType:g.vehicle.type,"onUpdate:configuration":o[0]||(o[0]=b=>m.updateConfiguration(b))},null,40,["vehicleId","vehicle","configuration","vehicleType"]))],64)}const _e=x(fe,[["render",ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleProxy.vue"]]);H.add(J,j,G,Q,X,Y,K,ee,te,ne,ae);const we={name:"OpenwbVehicleConfig",mixins:[oe],emits:["sendCommand"],components:{FontAwesomeIcon:le,FontAwesomeLayers:ie,OpenwbVehicleProxy:_e},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/et/provider","openWB/optional/rfid/active","openWB/vehicle/template/ev_template/+","openWB/vehicle/template/charge_template/+","openWB/vehicle/template/charge_template/+/chargemode/scheduled_charging/plans/+","openWB/vehicle/template/charge_template/+/time_charging/plans/+","openWB/vehicle/+/name","openWB/vehicle/+/charge_template","openWB/vehicle/+/ev_template","openWB/vehicle/+/tag_id","openWB/system/configurable/soc_modules","openWB/vehicle/+/soc_module/general_config","openWB/vehicle/+/soc_module/config"],showVehicleModal:!1,modalVehicleIndex:void 0,showEvTemplateModal:!1,modalEvTemplateIndex:void 0,showChargeTemplateModal:!1,modalChargeTemplateIndex:void 0,showChargeTemplateSchedulePlanModal:!1,modalChargeTemplateSchedulePlanIndex:void 0,showChargeTemplateTimeChargingPlanModal:!1,modalChargeTemplateTimeChargingPlanIndex:void 0}},computed:{vehicleIndexes:{get(){return this.getWildcardIndexList("openWB/vehicle/+/name")}},evTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/ev_template/+")}},evTemplateList:{get(){let e=[];return Object.keys(this.evTemplates).forEach(o=>{let g=parseInt(o.match(/([0-9]+)$/g)[0]),q=this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+g].name;e.push({value:g,text:q})}),e}},chargeTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/charge_template/+")}},chargeTemplateList:{get(){let e=[];return Object.keys(this.chargeTemplates).forEach(o=>{let g=parseInt(o.match(/([0-9]+)$/g)[0]),q=this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+g].name;e.push({value:g,text:q})}),e}},socModuleList:{get(){return this.$store.state.mqtt["openWB/system/configurable/soc_modules"]}}},methods:{getChargeTemplateScheduledChargingPlans(e){let o=e.match(/([^/]+)$/)[0];return this.getWildcardTopics("openWB/vehicle/template/charge_template/"+o+"/chargemode/scheduled_charging/plans/+")},getChargeTemplateTimeChargingPlans(e){let o=e.match(/([^/]+)$/)[0];return this.getWildcardTopics("openWB/vehicle/template/charge_template/"+o+"/time_charging/plans/+")},addVehicle(e){e.stopPropagation(),console.info("requesting new vehicle..."),this.$emit("sendCommand",{command:"addVehicle",data:{}})},removeVehicleModal(e,o){o.stopPropagation(),this.modalVehicleIndex=e,this.showVehicleModal=!0},removeVehicle(e,o){this.showVehicleModal=!1,o=="confirm"&&(console.info("request removal of vehicle '"+e+"'"),this.$emit("sendCommand",{command:"removeVehicle",data:{id:e}}))},getVehicleName(e){return this.$store.state.mqtt["openWB/vehicle/"+e+"/name"]?this.$store.state.mqtt["openWB/vehicle/"+e+"/name"]:"Fahrzeug "+e},getSocDefaultConfiguration(e){const o=this.socModuleList.find(g=>g.value==e);return Object.prototype.hasOwnProperty.call(o,"defaults")?{...JSON.parse(JSON.stringify(o.defaults))}:(console.warn("no default configuration found for soc type!",e),{})},updateSelectedSocModule(e,o){this.updateState("openWB/vehicle/"+e+"/soc_module/config",o,"type"),this.updateState("openWB/vehicle/"+e+"/soc_module/config",this.getSocDefaultConfiguration(o))},updateConfiguration(e,o){console.debug("updateConfiguration",e,o),this.updateState(e,o.value,o.object)},addEvTemplate(e){e.stopPropagation(),console.info("requesting new ev template..."),this.$emit("sendCommand",{command:"addEvTemplate",data:{}})},removeEvTemplateModal(e,o){o.stopPropagation(),this.modalEvTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.showEvTemplateModal=!0},removeEvTemplate(e,o){this.showEvTemplateModal=!1,o=="confirm"&&(console.info("request removal of ev template '"+e+"'"),this.$emit("sendCommand",{command:"removeEvTemplate",data:{id:e}}))},getEvTemplateName(e){return this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+e]?this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+e].name:"Fahrzeug-Profil "+e},addChargeTemplate(e){e.stopPropagation(),console.info("requesting new charge template..."),this.$emit("sendCommand",{command:"addChargeTemplate",data:{}})},getChargeTemplateIndex(e){return parseInt(e.match(/([^/]+)$/)[0])},removeChargeTemplateModal(e,o){o.stopPropagation(),this.modalChargeTemplateIndex=this.getChargeTemplateIndex(e),this.showChargeTemplateModal=!0},removeChargeTemplate(e,o){this.showChargeTemplateModal=!1,o=="confirm"&&(console.info("request removal of charge template '"+e+"'"),this.$emit("sendCommand",{command:"removeChargeTemplate",data:{id:e}}))},getChargeTemplateName(e){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e].name:"Lade-Profil "+e},getChargeTemplateSchedulePlanName(e,o){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/chargemode/scheduled_charging/plans/"+o]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/chargemode/scheduled_charging/plans/"+o].name:"Zielladen Zeitplan "+e+"/"+o},addChargeTemplateSchedulePlan(e,o){o.stopPropagation(),console.info("requesting new charge template schedule plan...");let g=parseInt(e.match(/([^/]+)$/)[0]);this.$emit("sendCommand",{command:"addChargeTemplateSchedulePlan",data:{template:g}})},removeChargeTemplateSchedulePlanModal(e,o,g){g.stopPropagation(),this.modalChargeTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.modalChargeTemplateSchedulePlanIndex=parseInt(o.match(/([^/]+)$/)[0]),this.showChargeTemplateSchedulePlanModal=!0},removeChargeTemplateSchedulePlan(e,o,g){this.showChargeTemplateSchedulePlanModal=!1,g=="confirm"&&(console.info("request removal of charge template '"+e+"' schedule plan '"+o+"'"),this.$emit("sendCommand",{command:"removeChargeTemplateSchedulePlan",data:{template:e,plan:o}}))},getChargeTemplateTimeChargingPlanName(e,o){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/time_charging/plans/"+o]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/time_charging/plans/"+o].name:"Zeitladen Zeitplan "+e+"/"+o},addChargeTemplateTimeChargingPlan(e,o){o.stopPropagation(),console.info("requesting new charge template time charging plan...");let g=parseInt(e.match(/([^/]+)$/)[0]);this.$emit("sendCommand",{command:"addChargeTemplateTimeChargingPlan",data:{template:g}})},removeChargeTemplateTimeChargingPlanModal(e,o,g){g.stopPropagation(),this.modalChargeTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.modalChargeTemplateTimeChargingPlanIndex=parseInt(o.match(/([^/]+)$/)[0]),this.showChargeTemplateTimeChargingPlanModal=!0},removeChargeTemplateTimeChargingPlan(e,o,g){this.showChargeTemplateTimeChargingPlanModal=!1,g=="confirm"&&(console.info("request removal of charge template '"+e+"' time charging plan '"+o+"'"),this.$emit("sendCommand",{command:"removeChargeTemplateTimeChargingPlan",data:{template:e,plan:o}}))}}},_=e=>(se("data-v-d7193cf0"),e=e(),me(),e),ke={class:"vehicleConfig"},Ve={name:"vehicleConfigForm"},Ce={key:0},Se={key:1},ze=_(()=>s("hr",null,null,-1)),Te={key:0},Ue=_(()=>s("br",null,null,-1)),We=["innerHTML"],Pe=_(()=>s("hr",null,null,-1)),Le=_(()=>s("br",null,null,-1)),ye=_(()=>s("br",null,null,-1)),Be=_(()=>s("br",null,null,-1)),Ae={key:1},Ee=_(()=>s("hr",{class:"border-secondary"},null,-1)),qe={key:0},Me={key:1},Fe=_(()=>s("br",null,null,-1)),De=_(()=>s("br",null,null,-1)),xe=_(()=>s("br",null,null,-1)),Ze=_(()=>s("br",null,null,-1)),Ne={key:0},Ie={key:1},Oe=_(()=>s("br",null,null,-1)),Re=_(()=>s("br",null,null,-1)),$e=_(()=>s("ol",null,[s("li",null," Zielladen (Sofortladen) mit Priorität "),s("li",null,"Zielladen (Sofortladen)"),s("li",null,"Zeitladen mit Priorität"),s("li",null,"Zeitladen"),s("li",null,"Sofortladen mit Priorität"),s("li",null,"Sofortladen"),s("li",null,"PV (Min-Anteil) mit Priorität"),s("li",null,"PV (Min-Anteil)"),s("li",null,"Zielladen (PV) mit Priorität"),s("li",null,"Zielladen (PV)"),s("li",null,"PV (PV-Anteil) mit Priorität"),s("li",null,"PV (PV-Anteil)")],-1)),He={key:0},Je={key:0},je=_(()=>s("hr",null,null,-1)),Ge=_(()=>s("hr",null,null,-1)),Qe=_(()=>s("br",null,null,-1)),Xe=_(()=>s("br",null,null,-1)),Ye=_(()=>s("hr",null,null,-1)),Ke=_(()=>s("br",null,null,-1)),et=_(()=>s("br",null,null,-1)),tt=["onClick"],nt={key:0},at={key:1},lt={key:2},it={key:3},ot={key:4},dt={key:4},rt=_(()=>s("hr",null,null,-1)),ut=["onClick"],st={key:0},mt={key:1},ct={key:2},ht={key:3},gt={key:4},pt={key:4};function bt(e,o,g,q,w,m){const W=k("openwb-base-modal-dialog"),b=k("font-awesome-icon"),U=k("openwb-base-avatar"),A=k("openwb-base-alert"),P=k("openwb-base-text-input"),F=k("openwb-base-select-input"),O=k("openwb-base-array-input"),v=k("openwb-base-button-group-input"),L=k("openwb-base-heading"),z=k("openwb-base-number-input"),R=k("openwb-vehicle-proxy"),B=k("openwb-base-card"),Z=k("font-awesome-layers"),C=k("openwb-base-range-input"),$=k("openwb-base-submit-buttons");return r(),h(y,null,[n(W,{show:w.showVehicleModal,title:"Fahrzeug löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[0]||(o[0]=i=>m.removeVehicle(w.modalVehicleIndex,i))},{default:a(()=>[l(' Wollen Sie das Fahrzeug "'+V(m.getVehicleName(w.modalVehicleIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showEvTemplateModal,title:"Fahrzeug-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[1]||(o[1]=i=>m.removeEvTemplate(w.modalEvTemplateIndex,i))},{default:a(()=>[l(' Wollen Sie das Fahrzeug-Profil "'+V(m.getEvTemplateName(w.modalEvTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showChargeTemplateModal,title:"Lade-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[2]||(o[2]=i=>m.removeChargeTemplate(w.modalChargeTemplateIndex,i))},{default:a(()=>[l(' Wollen Sie das Lade-Profil "'+V(m.getChargeTemplateName(w.modalChargeTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showChargeTemplateSchedulePlanModal,title:"Zielladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[3]||(o[3]=i=>m.removeChargeTemplateSchedulePlan(w.modalChargeTemplateIndex,w.modalChargeTemplateSchedulePlanIndex,i))},{default:a(()=>[l(' Wollen Sie den Zielladen Zeitplan "'+V(m.getChargeTemplateSchedulePlanName(w.modalChargeTemplateIndex,w.modalChargeTemplateSchedulePlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showChargeTemplateTimeChargingPlanModal,title:"Zeitladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[4]||(o[4]=i=>m.removeChargeTemplateTimeChargingPlan(w.modalChargeTemplateIndex,w.modalChargeTemplateTimeChargingPlanIndex,i))},{default:a(()=>[l(' Wollen Sie den Zeitladen Zeitplan "'+V(m.getChargeTemplateTimeChargingPlanName(w.modalChargeTemplateIndex,w.modalChargeTemplateTimeChargingPlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),s("div",ke,[s("form",Ve,[n(B,{subtype:"info",collapsible:!0,collapsed:e.$route.params.section!="vehicle"},{header:a(()=>[n(b,{"fixed-width":"",icon:["fas","car"]}),l(" Fahrzeuge ")]),actions:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),f(U,{key:0,class:"bg-success clickable",onClick:m.addVehicle},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),h("div",Ce,[n(A,{subtype:"info"},{default:a(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),h("div",Se,[(r(!0),h(y,null,E(m.vehicleIndexes,i=>(r(),f(B,{key:i,title:m.getVehicleName(i),collapsible:!0,collapsed:!(e.$route.params.section=="vehicle"&&parseInt(e.$route.params.section_index)==i),subtype:"info"},M({default:a(()=>[n(P,{title:"Bezeichnung","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/name"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/name",d),disabled:i===0},M({_:2},[i===0?{name:"help",fn:a(()=>[l(" Das Standard-Fahrzeug kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),n(A,{subtype:"info"},{default:a(()=>[l(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ")]),_:1}),n(F,{title:"Fahrzeug-Profil",options:m.evTemplateList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/ev_template"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/ev_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),n(F,{title:"Lade-Profil",options:m.chargeTemplateList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/charge_template"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/charge_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),ze,e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(r(),h("div",Te,[n(O,{title:"Zugeordnete ID-Tags","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/tag_id"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/tag_id",d)},null,8,["model-value","onUpdate:modelValue"]),n(A,{subtype:"info"},{default:a(()=>[l(" Die ID-Tags müssen auch in den Ladepunkt-Profil eingetragen werden, um zuzuordnen, an welchen Ladepunkten die ID-Tags verwendet werden dürfen."),Ue,s("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,We)]),_:1}),Pe])):c("",!0),n(F,{class:"mb-2",title:"SoC-Modul",options:m.socModuleList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type,"onUpdate:modelValue":d=>m.updateSelectedSocModule(i,d)},{help:a(()=>[l(" Mit einem SoC-Modul kann der Ladestand des Fahrzeugs ermittelt und geregelt werden. Z.B. lassen sich unabhängig vom Fahrzeug bestimmte SoC-Werte einstellen, um den Fahrzeugakku zu schonen. Aktuell werden die SoC-Werte mittels der App-Zugangsdaten aus dem Herstellerserver des Fahrzeuges ausgelesen. Zukünftig soll auch eine direkte SoC-Auslesung aus dem Fahrzeug möglich werden (openWB Pro)."),Le,l(" Die SoC-Abfrage erfolgt automatisch beim Anstecken des Fahrzeuges und zusätzlich über einstellbare Abfrageintervalle während des Ladens und Nichtladens. Die Abfrage kann auch manuell durch Klick auf den Reload-Pfeil auf der Hauptseite ausgelöst werden."),ye,l(" Wenn eine Abfrage fehlschlägt, wird noch drei weitere Male im Abstand von 5 Minuten versucht, den SoC abzufragen. Wenn dies nicht erfolgreich ist, wird der SoC auf 0% gesetzt um zu vermeiden, dass ein Auto beim SoC-basierten Laden nicht geladen wird. Die Abfrage erfolgt dann wieder in den oben genannten Intervallen."),Be,l(" Da aktuell die SoC-Abfragen über Onlineserver der Fahrzeughersteller laufen, ist infolge möglicher Umstellungen/Wartungen keine 100%-ig sichere SoC-Abfrage garantiert. Auch kann es zu SoC-Abweichungen infolge von zeitlicher Verzögerungen kommen. Hilfestellung erfolgt primär im openWB-Forum. ")]),_:2},1032,["options","model-value","onUpdate:modelValue"]),e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type?(r(),h("div",Ae,[n(v,{title:"SoC aus Fahrzeug auslesen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].use_soc_from_cp,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d,"use_soc_from_cp")},{help:a(()=>[l(" Wenn Ladepunkt und Fahrzeug das Auslesen des SoCs unterstützen, wird nach dem Anstecken der SoC aus dem Fahrzeug ausgelesen und während der Ladung berechnet. Das Auslesen des SoC aus dem Fahrzeug ist aktuell nur mit einer openWB Pro möglich. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(L,null,{help:a(()=>[l(" Einige Hersteller begrenzen die möglichen Abfragen. Sobald ein gewisses Limit in einem Zeitraum überschritten wird, werden weitere Anfragen blockiert. Die Zeitintervalle sollten daher nicht zu klein gewählt werden. ")]),default:a(()=>[l(" Aktualisierung der Fahrzeugdaten ")]),_:1}),n(z,{title:"Während der Ladung",unit:"Min.","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].request_interval_charging/60,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d*60,"request_interval_charging")},{help:a(()=>[l(" Der Ladestand des Fahrzeugs (SoC) wird bei einem laufenden Ladevorgang in dem hier eingestellten Intervall in Minuten abgefragt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Ohne laufende Ladung",unit:"Min.","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].request_interval_not_charging/60,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d*60,"request_interval_not_charging")},{help:a(()=>[l(" Der Ladestand des Fahrzeugs (SoC) wird in dem hier eingestellten Intervall in Minuten abgefragt, falls kein Ladevorgang aktiv ist. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Nur aktualisieren wenn angesteckt",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].request_only_plugged,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d,"request_only_plugged")},{help:a(()=>[l(' Wird hier "Ja" ausgewählt, dann wird der Ladestand des Fahrzeugs nur abgefragt, wenn das Ladekabel angesteckt ist. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(R,{vehicleId:i,vehicle:e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"],"onUpdate:configuration":d=>m.updateConfiguration("openWB/vehicle/"+i+"/soc_module/config",d)},null,8,["vehicleId","vehicle","onUpdate:configuration"])])):c("",!0)]),_:2},[i!==0?{name:"actions",fn:a(d=>[d.collapsed?c("",!0):(r(),f(U,{key:0,class:"bg-danger clickable",onClick:t=>m.removeVehicleModal(i,t)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}:void 0]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),Ee,n(L,null,{default:a(()=>[l("Profile")]),_:1}),n(B,{collapsible:!0,collapsed:!0},{header:a(()=>[n(Z,{"fixed-width":"",class:"fa-lg"},{default:a(()=>[n(b,{"fixed-width":"",icon:["far","file"]}),n(b,{"fixed-width":"",icon:["fas","car"],transform:"shrink-8"})]),_:1}),l(" Fahrzeug-Profile ")]),actions:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),f(U,{key:0,class:"bg-success clickable",onClick:m.addEvTemplate},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),h("div",qe,[n(A,{subtype:"info"},{default:a(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),h("div",Me,[n(A,{subtype:"info"},{default:a(()=>[l(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ")]),_:1}),(r(!0),h(y,null,E(m.evTemplates,(i,d)=>(r(),f(B,{key:d,title:i.name?i.name:d,collapsible:!0,collapsed:!0},M({default:a(()=>[n(P,{title:"Bezeichnung","model-value":i.name,"onUpdate:modelValue":t=>e.updateState(d,t,"name"),disabled:d.endsWith("/0")},M({_:2},[d.endsWith("/0")?{name:"help",fn:a(()=>[l(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),n(L,null,{default:a(()=>[l(" Angaben zum Ladestrom ")]),_:1}),n(C,{title:"Mindeststrom",min:6,max:16,step:1,unit:"A","model-value":i.min_current,"onUpdate:modelValue":t=>e.updateState(d,t,"min_current")},null,8,["model-value","onUpdate:modelValue"]),n(C,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":i.max_current_single_phase,"onUpdate:modelValue":t=>e.updateState(d,t,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),n(C,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":i.max_current_multi_phases,"onUpdate:modelValue":t=>e.updateState(d,t,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),n(z,{title:"Erlaubte Stromabweichung",step:.1,unit:"A","model-value":i.nominal_difference,"onUpdate:modelValue":t=>e.updateState(d,t,"nominal_difference")},{help:a(()=>[l(" In manchen Lademodi, z.B. bei der automatischen Phasenumschaltung, wird geprüft, ob das Fahrzeug mit der vorgegebenen Stromstärke lädt. Manche Fahrzeuge laden nicht exakt mit der vorgegebenen Stromstärke. Die erlaubte Abweichung kann hier eingestellt werden. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(L,null,{default:a(()=>[l(" Angaben zur Batterie ")]),_:1}),n(z,{title:"Kapazität der Batterie",unit:"kWh",min:1,step:1,"model-value":i.battery_capacity/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"battery_capacity")},{help:a(()=>[l(" Angabe der Netto-Kapazität der Fahrzeugbatterie. Dient zur Berechnung des manuellen SoC und der geladenen Reichweite. Die Netto-Kapazität unterscheidet sich meist von den Angaben der Fahrzeughersteller. So besitzt ein Tesla Model S 90 z. B. nur ca. 83kWh und nicht die durch die Typenbezeichnung suggerierten 90kWh. Andere Hersteller begrenzen die nutzbare Kapazität absichtlich, um eine höhere Lebensdauer der Akkus zu erreichen. Gängig sind eine Drosselung auf 90% der angegebenen Brutto-Kapazität. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Wirkungsgrad der Ladeelektronik",unit:"%",required:"","model-value":i.efficiency,"onUpdate:modelValue":t=>e.updateState(d,t,"efficiency")},{help:a(()=>[l(" Durch Verluste in der Ladeelektronik (z. B. Umwandlung Wechselspannung in Gleichspannung) gelangt nicht die komplette Energie, welche durch den Zähler in der Wallbox gemessen wird, in den Akku des Fahrzeugs. Der anzugebende Wert liegt bei gängigen Fahrzeugen im Bereich 90-95%. Eine Ausnahme stellt der Zoe dar, dessen Chameleon-Lader je nach Modellversion und freigegebener Leistung der Wallbox teilweise nur auf ca. 50% kommt."),Fe,l(" Liegen die Angaben der Wallbox und des Fahrzeugs nach der Ladung mehrere Prozent auseinander, dann kann mit dieser Einstellung eine Feinabstimmung erfolgen: "),De,l(" SoC an der Wallbox zu hoch: Wirkungsgrad um ein paar Prozent reduzieren"),xe,l(" SoC an der Wallbox zu gering: Wirkungsgrad um ein paar Prozent erhöhen"),Ze]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Durchschnittsverbrauch",unit:"kWh / 100km",min:0,step:.1,"model-value":i.average_consump/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"average_consump")},null,8,["model-value","onUpdate:modelValue"]),n(L,null,{default:a(()=>[l(" Angaben zur Handhabung von Phasen ")]),_:1}),n(v,{title:"Unterstützte Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":i.max_phases,"onUpdate:modelValue":t=>e.updateState(d,t,"max_phases")},{help:a(()=>[l(" Anzahl der Phasen, die der Fahrzeuglader (s.g. OBC - OnboardCharger) bereitstellt. Plugin-Hybride haben meist nur eine Phase, reine E-Autos meist 2 bis 3 Phasen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"CP-Unterbrechung",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.control_pilot_interruption,"onUpdate:modelValue":t=>e.updateState(d,t,"control_pilot_interruption")},{help:a(()=>[l(' Erläuterung siehe "Konfiguration - Ladepunkte" -> Hardware-Optionen ')]),_:2},1032,["model-value","onUpdate:modelValue"]),i.control_pilot_interruption?(r(),f(z,{key:0,title:"Dauer der CP-Unterbrechung",min:4,step:1,unit:"s","model-value":i.control_pilot_interruption_duration,"onUpdate:modelValue":t=>e.updateState(d,t,"control_pilot_interruption_duration")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),n(v,{title:"Phasenumschaltung blockieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.prevent_phase_switch,"onUpdate:modelValue":t=>e.updateState(d,t,"prevent_phase_switch")},{help:a(()=>[l(' Erläuterung zu 1p3p siehe "Ladeeinstellungen" ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Ladung aktiv halten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.prevent_charge_stop,"onUpdate:modelValue":t=>e.updateState(d,t,"prevent_charge_stop")},{help:a(()=>[l(" Der Ladevorgang wird in den Lademodi PV- und Zielladen nach Ladebeginn nicht unterbrochen, selbst wenn nicht mehr genug Überschuss vorhanden ist. Diese Einstellung sollte bei Fahrzeugen aktiviert werden, die nach einer Ladungsunterbrechung keine Ladung mehr starten. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Pause bei Phasenumschaltung",unit:"s",min:2,step:1,"model-value":i.phase_switch_pause,"onUpdate:modelValue":t=>e.updateState(d,t,"phase_switch_pause")},null,8,["model-value","onUpdate:modelValue"]),n(z,{title:"Mindestzeit zwischen Umschaltungen",unit:"s",min:2,step:1,"model-value":i.keep_charge_active_duration,"onUpdate:modelValue":t=>e.updateState(d,t,"keep_charge_active_duration")},{help:a(()=>[l(" Manche Fahrzeuge benötigen nach der Umschaltung einige Zeit, bis sie mit der vorgegebenen Phasenzahl laden. In dieser Zeit wird keine neue Phasenumschaltung angestoßen. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},[d.endsWith("/0")?void 0:{name:"actions",fn:a(t=>[e.$store.state.mqtt["openWB/general/extern"]===!1&&!t.collapsed?(r(),f(U,{key:0,class:"bg-danger clickable",onClick:p=>m.removeEvTemplateModal(d,p)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("",!0)]),key:"0"}]),1032,["title"]))),128))]))]),_:1}),n(B,{collapsible:!0,collapsed:e.$route.params.section!="charge_template"},{header:a(()=>[n(Z,{"fixed-width":"",class:"fa-lg"},{default:a(()=>[n(b,{"fixed-width":"",icon:["far","file"]}),n(b,{"fixed-width":"",icon:["fas","plug"],transform:"shrink-8"})]),_:1}),l(" Lade-Profile ")]),actions:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),f(U,{key:0,class:"bg-success clickable",onClick:m.addChargeTemplate},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),h("div",Ne,[n(A,{subtype:"info"},{default:a(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),h("div",Ie,[(r(!0),h(y,null,E(m.chargeTemplates,(i,d)=>(r(),f(B,{key:d,title:i.name?i.name:d,collapsible:!0,collapsed:!(e.$route.params.section=="charge_template"&&parseInt(e.$route.params.section_index)==m.getChargeTemplateIndex(d))},M({default:a(()=>[n(P,{title:"Bezeichnung","model-value":i.name,"onUpdate:modelValue":t=>e.updateState(d,t,"name"),disabled:d.endsWith("/0")},M({_:2},[d.endsWith("/0")?{name:"help",fn:a(()=>[l(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),n(L,null,{default:a(()=>[l(" Allgemeine Optionen ")]),_:1}),n(v,{title:"Aktiver Lademodus",buttons:[{buttonValue:"instant_charging",text:"Sofortladen",class:"btn-outline-danger"},{buttonValue:"pv_charging",text:"PV",class:"btn-outline-success"},{buttonValue:"scheduled_charging",text:"Zielladen",class:"btn-outline-primary"},{buttonValue:"standby",text:"Standby",class:"btn-outline-secondary"},{buttonValue:"stop",text:"Stop",class:"btn-outline-dark"}],"model-value":i.chargemode.selected,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.selected")},{help:a(()=>[l(" Diese Einstellung entspricht dem gewählten Lademodus auf der Hauptseite und ist aktiv, wenn ein zugehöriges Fahrzeug angesteckt ist."),Oe,l(" Die zur Verfügung stehende Leistung wird intern anhand folgender Prioritätenliste auf die Fahrzeuge bzw. Ladepunkte verteilt:"),Re,$e]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Priorität",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.prio,"onUpdate:modelValue":t=>e.updateState(d,t,"prio")},{help:a(()=>[l(" Die Ladefreigabe mit dem jeweils eingestellten Mindeststrom erfolgt für alle Fahrzeuge, soweit die verfügbare Leistung ausreicht. Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar. Erst wenn alle priorisierten Fahrzeuge die maximale Ladeleistung bekommen und noch zusätzlicher Überschuss vorhanden ist, wird auch für Fahrzeuge ohne Priorität mehr Leistung freigegeben. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Zeitladen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.time_charging.active,"onUpdate:modelValue":t=>e.updateState(d,t,"time_charging.active")},{help:a(()=>[l(' Der Lademodus Zeitladen kann parallel zu einem der anderen Lademodi aktiviert werden. Die Auswahl des Lademodus, der in der Regelung genutzt wird, erfolgt anhand der Übersicht in der Hilfe bei "Aktiver Lademodus". Wenn kein Zeitplan aktiv ist oder das Limit des Zeitplans erreicht wurde, wird der Lademodus verwendet, der bei "Aktiver Lademodus" ausgewählt ist. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Sperre nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.disable_after_unplug,"onUpdate:modelValue":t=>e.updateState(d,t,"disable_after_unplug")},{help:a(()=>[l(" Wird ein Fahrzeug mit diesem Profil abgesteckt, dann wird der betroffene Ladepunkt automatisch deaktiviert. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Standard nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.load_default,"onUpdate:modelValue":t=>e.updateState(d,t,"load_default")},{help:a(()=>[l(" Falls diese Option aktiviert ist, wird der betroffene Ladepunkt nach dem Abstecken auf das Standard Ladeprofil zurückgesetzt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Strompreisbasiert Laden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.et.active,"onUpdate:modelValue":t=>e.updateState(d,t,"et.active")},null,8,["model-value","onUpdate:modelValue"]),i.et.active==!0?(r(),h("div",He,[!e.$store.state.mqtt["openWB/optional/et/provider"]||!e.$store.state.mqtt["openWB/optional/et/provider"].type?(r(),h("div",Je,[n(A,{subtype:"danger"},{default:a(()=>[l(" Bitte in den übergreifenden Ladeeinstellungen einen Strompreis-Anbieter konfigurieren. ")]),_:1})])):c("",!0),n(z,{title:"Preisgrenze für Zeit- & Sofortladen",min:"-80",max:"80",step:"0.01",precision:2,unit:"ct/kWh","model-value":i.et.max_price*1e5,"onUpdate:modelValue":t=>e.updateState(d,parseFloat((t/1e5).toFixed(7)),"et.max_price")},{help:a(()=>[l(" Für Zielladen werden die günstigsten Stunden ermittelt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])])):c("",!0),je,n(L,null,{default:a(()=>[l("Sofortladen")]),_:1}),n(C,{title:"Soll-Ladestrom",min:6,max:32,step:1,unit:"A","model-value":i.chargemode.instant_charging.current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.current")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":i.chargemode.instant_charging.limit.selected,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.limit.selected")},{help:a(()=>[l(" Sofortladen kann ohne Fahrzeug-SoC-Begrenzung (Aus), mit Begrenzung des Fahrzeug-SoC (SoC) bei konfiguriertem SoC-Auslesemodul oder mittels Vorgabe eine gewünschten Energiemenge in kWh (Energie) genutzt werden. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(C,{title:"SoC-Limit",min:5,max:100,step:5,unit:"%","model-value":i.chargemode.instant_charging.limit.soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.limit.soc")},{help:a(()=>[l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Energie-Limit",unit:"kWh",min:1,max:100,step:1,"model-value":i.chargemode.instant_charging.limit.amount/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"chargemode.instant_charging.limit.amount")},{help:a(()=>[l(" Die geladene Energiemenge wird beim Wechsel des Lademodus oder nach dem Anstecken, wenn Sofortladen schon ausgewählt ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),Ge,n(L,null,{default:a(()=>[l("PV-Laden")]),_:1}),n(C,{title:"Minimaler Dauerstrom",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":i.chargemode.pv_charging.min_current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_current")},{help:a(()=>[l(' Hier kann eine Stromstärke eingestellt werden, mit dem unabhängig vom vorhandenen Überschuss durchgeladen wird. Hierdurch wird z.B. an Tagen mit häufigem Sonne/Wolken-Wechsel oder mit nur wenig PV-Ertrag ein Laden ohne Unterbrechung ermöglicht. Folglich kann auch Netzbezug für das Fahrzeugladen entstehen, weshalb der niedrigste Stromwert empfohlen wird. Diese Einstellung entspricht weitestgehend dem Lademodus "Min+PV" der Version 1.x. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(C,{title:"SoC-Limit",min:0,max:20,step:1,unit:"%",labels:[{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:100,value:100},{label:"Aus",value:101}],"model-value":i.chargemode.pv_charging.max_soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.max_soc")},{help:a(()=>[l(' Bei der Einstellung "100%" wird die Ladung sofort mit Erreichen der 100% beendet. Dadurch erfolgt KEIN Balancing der Batteriezellen. Ist dies gewünscht (sollte ab und an durchgeführt werden), muss hier "Aus" gewählt werden (Schieberegler ganz nach rechts stellen), um die Ladung MIT Balancing bis zur Beendigung durch das Fahrzeug weiterlaufen zu lassen.'),Qe,l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(C,{title:"Mindest-SoC",min:0,max:19,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":i.chargemode.pv_charging.min_soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_soc")},{help:a(()=>[l(' Liegt der Fahrzeug-Ladestand (SoC) unter dem hier eingestellten Wert, dann wird bis zum Erreichen dieses Wertes mit dem eingestellten "Mindest-SoC-Strom" geladen. Dies dient der Sicherstellung eines "Mindest-SoC" - z.B. für eine immer abzudeckende Fahrzeugreichweite - auch wenn kein oder zu wenig Überschuss verfügbar ist (=> Laden mit anteilig Netzstrom). Nach dem Erreichen des "Mindest-SoC" wird bei verfügbarem Überschuss geladen.'),Xe,l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(C,{title:"Mindest-SoC-Strom",min:6,max:32,step:1,unit:"A","model-value":i.chargemode.pv_charging.min_soc_current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_soc_current")},{help:a(()=>[l(' Wird der oben eingestellte "Mindest-SoC" des Fahrzeuges unterschritten, dann wird unabhängig vom Überschuss ein Ladevorgang mit dem hier festgelegten "Mindest-SoC-Strom" initiiert (ggf. mit anteilig Netzbezug). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Einspeisegrenze beachten",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.chargemode.pv_charging.feed_in_limit,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.feed_in_limit")},{help:a(()=>[l(' Erläuterung siehe "Ladeeinstellungen" -> "PV-Laden" -> "Regelparameter" -> "Regelpunkt Einspeisegrenze" ')]),_:2},1032,["model-value","onUpdate:modelValue"]),Ye,n(L,null,{actions:a(()=>[n(U,{class:"bg-success clickable",onClick:t=>m.addChargeTemplateSchedulePlan(d,t)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:a(()=>[l(' Im Lademodus "Zielladen" wird der Ladestrom so angepasst, dass das Fahrzeug zum angegebenen Zeitpunkt den eingestellten SoC bzw. die einzuladende Energiemenge erreicht. Anhand des vorgegebenen Ladestroms wird der Zeitpunkt berechnet, an dem die Ladung spätestens starten muss.'),Ke,l(' Ist der berechnete Zeitpunkt des Ladestarts noch nicht erreicht, wird mit Überschuss geladen. Auch nach Erreichen des Ziel-SoCs wird mit Überschuss geladen, solange bis das "SoC-Limit" erreicht wird.'),et,l(" Kann der Ziel-SoC bzw. die Energiemenge NICHT erreicht werden, z.B. weil das Auto zu spät angesteckt wurde oder das Lastmanagement eingegriffen hat, wird bis 20 Minuten nach dem angegebenen Termin mit der Maximalstromstärke geladen. Danach wird der Termin verworfen und mit Überschuss geladen. ")]),default:a(()=>[l(" Zielladen ")]),_:2},1024),(r(!0),h(y,null,E(m.getChargeTemplateScheduledChargingPlans(d),(t,p)=>(r(),f(B,{key:p,title:t.name,collapsible:!0,collapsed:!0},{actions:a(u=>[u.collapsed==!0?(r(),h("span",{key:0,onClick:N(T=>e.updateState(p,!t.active,"active"),["stop"]),class:I(["subheader pill clickable",t.active?"bg-success":"bg-danger"])},[t.limit.selected=="soc"?(r(),h("span",nt,[n(b,{"fixed-width":"",icon:["fas","car-battery"]}),l(" "+V(t.limit.soc_scheduled)+"% ",1)])):c("",!0),t.limit.selected=="amount"?(r(),h("span",at,[n(b,{"fixed-width":"",icon:["fas","bolt"]}),l(" "+V(t.limit.amount/1e3)+"kWh ",1)])):c("",!0),n(b,{"fixed-width":"",icon:["fas","clock"]}),l(" "+V(t.time)+" ",1),t.frequency.selected=="once"?(r(),h("span",lt,[n(b,{"fixed-width":"",icon:["fas","calendar-day"]}),l(" "+V(e.formatDate(t.frequency.once)),1)])):c("",!0),t.frequency.selected=="daily"?(r(),h("span",it,[n(b,{"fixed-width":"",icon:["fas","calendar-week"]})])):c("",!0),t.frequency.selected=="weekly"?(r(),h("span",ot,[n(b,{"fixed-width":"",icon:["fas","calendar-alt"]})])):c("",!0)],10,tt)):c("",!0),u.collapsed==!1?(r(),f(U,{key:1,class:"bg-danger clickable",onClick:T=>m.removeChargeTemplateSchedulePlanModal(d,p,T)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("",!0)]),default:a(()=>[n(P,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":u=>e.updateState(p,u,"name")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Zeitpunkt aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":u=>e.updateState(p,u,"active")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Ziel-Uhrzeit",subtype:"time","model-value":t.time,"onUpdate:modelValue":u=>e.updateState(p,u,"time")},{help:a(()=>[l(" Hier ist die gewünschte Uhrzeit einzustellen, zu welcher das Fahrzeug den gewünschten SoC bzw. die zu ladende Energiemenge BEREITS ERREICHT haben soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(C,{title:"Ladestrom",min:6,max:32,step:1,unit:"A","model-value":t.current,"onUpdate:modelValue":u=>e.updateState(p,u,"current")},{help:a(()=>[l(" Mit dieser Stromstärke wird der Zeitpunkt berechnet, wann die Ladung mit Netzbezug gestartet werden muss. Wird der Ziel-SoC nicht zum angegebenen Termin erreicht, weil z.B. das Auto erst später angesteckt wurde, wird auch mit einer höheren Stromstärke geladen. Um etwas Puffer zu haben, empfiehlt es sich, etwas weniger als die Maximalstromstärke des Fahrzeugs zu wählen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Ziel",buttons:[{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":t.limit.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.selected")},{help:a(()=>[l(" Bestimmt die Art der Grenze für den Ladevorgang. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),t.limit.selected=="soc"?(r(),f(C,{key:0,title:"Ziel-SoC",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc_scheduled,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.soc_scheduled")},{help:a(()=>[l(" SoC, der zum angegebenen Zeitpunkt erreicht werden soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),t.limit.selected=="soc"?(r(),f(C,{key:1,title:"SoC-Limit",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc_limit,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.soc_limit")},{help:a(()=>[l(" Nach Erreichen des Ziel-SoCs wird mit Überschuss weiter geladen, bis das SoC-Limit erreicht wird. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),t.limit.selected=="amount"?(r(),f(z,{key:2,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.limit.amount/1e3,"onUpdate:modelValue":u=>e.updateState(p,u*1e3,"limit.amount")},{help:a(()=>[l(" Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zielladen schon ausgewählt ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),n(v,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(r(),f(P,{key:3,title:"Datum",subtype:"date","model-value":t.frequency.once,"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.once")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),t.frequency.selected=="weekly"?(r(),h("div",dt,[(r(!0),h(y,null,E(e.weekdays,(u,T)=>(r(),f(v,{key:T,title:u,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[T],"onUpdate:modelValue":D=>e.updateState(p,D,"frequency.weekly."+T)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):c("",!0)]),_:2},1032,["title"]))),128)),rt,n(L,null,{actions:a(()=>[n(U,{class:"bg-success clickable",onClick:t=>m.addChargeTemplateTimeChargingPlan(d,t)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:a(()=>[l(" Mit einem Zeitplan kann ein klar abgegrenzter Zeitbereich zum Fahrzeugladen definiert werden. Dies wird häufig genutzt, um einem Fahrzeug kurz vor der Abfahrt Strom anzubieten, damit dessen Vorklimatisierung nicht aus dem Fahrzeugakku, sondern aus der openWB bezogen wird (Enteisung, Vorwärmung, Abkühlung). Nicht von der Vorklimatisierung benötigter Strom erhöht dabei den Fahrzeug-SoC. Um das Stromnetz am Morgen nicht unnötig zu strapazieren, sollte eine moderate Stromvorgabe und ein beschränkter Zeitbereich vorgegeben werden (z.B. max. 10A; 30min - in Übereinstimmung mit den Fahrzeug-App-Vorklimatisierungsvorgaben). ")]),default:a(()=>[l(" Laden nach Zeitplan ")]),_:2},1024),(r(!0),h(y,null,E(m.getChargeTemplateTimeChargingPlans(d),(t,p)=>(r(),f(B,{key:p,title:t.name,collapsible:!0,collapsed:!0},{actions:a(u=>[u.collapsed==!0?(r(),h("span",{key:0,onClick:N(T=>e.updateState(p,!t.active,"active"),["stop"]),class:I(["subheader pill clickable",t.active?"bg-success":"bg-danger"])},[t.limit.selected=="soc"?(r(),h("span",st,[n(b,{"fixed-width":"",icon:["fas","car-battery"]}),l(" "+V(t.limit.soc)+"% ",1)])):c("",!0),t.limit.selected=="amount"?(r(),h("span",mt,[n(b,{"fixed-width":"",icon:["fas","bolt"]}),l(" "+V(t.limit.amount/1e3)+"kWh ",1)])):c("",!0),n(b,{"fixed-width":"",icon:["fas","clock"]}),l(" "+V(t.time[0])+" - "+V(t.time[1])+" ",1),t.frequency.selected=="once"?(r(),h("span",ct,[n(b,{"fixed-width":"",icon:["fas","calendar-day"]}),l(" "+V(e.formatDate(t.frequency.once[0])==e.formatDate(t.frequency.once[1])?e.formatDate(t.frequency.once[0]):e.formatDate(t.frequency.once[0])+" - "+e.formatDate(t.frequency.once[1])),1)])):c("",!0),t.frequency.selected=="daily"?(r(),h("span",ht,[n(b,{"fixed-width":"",icon:["fas","calendar-week"]})])):c("",!0),t.frequency.selected=="weekly"?(r(),h("span",gt,[n(b,{"fixed-width":"",icon:["fas","calendar-alt"]})])):c("",!0)],10,ut)):c("",!0),u.collapsed==!1?(r(),f(U,{key:1,class:"bg-danger clickable",onClick:T=>m.removeChargeTemplateTimeChargingPlanModal(d,p,T)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("",!0)]),default:a(()=>[n(P,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":u=>e.updateState(p,u,"name")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":u=>e.updateState(p,u,"active")},null,8,["model-value","onUpdate:modelValue"]),n(C,{title:"Ladestrom",min:6,max:32,step:1,unit:"A","model-value":t.current,"onUpdate:modelValue":u=>e.updateState(p,u,"current")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Ziel",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":t.limit.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.selected")},{help:a(()=>[l(" Bestimmt die Art der Grenze für den Ladevorgang. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),t.limit.selected=="soc"?(r(),f(C,{key:0,title:"Ziel-SoC",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.soc")},{help:a(()=>[l(" Ladestand des Akku (State of Charge, SoC), bis zu welchem maximal geladen werden soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),t.limit.selected=="amount"?(r(),f(z,{key:1,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.limit.amount/1e3,"onUpdate:modelValue":u=>e.updateState(p,u*1e3,"limit.amount")},{help:a(()=>[l(" Maximal zu ladende Energie innerhalb des Zeitfensters. Eignet sich immer dann wenn kein SoC zur Verfügung steht. Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zeitladen schon aktiv ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),n(P,{title:"Zeitpunkt des Ladebeginns",subtype:"time","model-value":t.time[0],"onUpdate:modelValue":u=>e.updateState(p,u,"time.0")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Zeitpunkt des Ladeendes",subtype:"time","model-value":t.time[1],"onUpdate:modelValue":u=>e.updateState(p,u,"time.1")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(r(),f(P,{key:2,title:"Gültig ab",subtype:"date","model-value":t.frequency.once[0],"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.once.0")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),t.frequency.selected=="once"?(r(),f(P,{key:3,title:"Gültig bis",subtype:"date",min:t.frequency.once[0],"model-value":t.frequency.once[1],"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.once.1")},null,8,["min","model-value","onUpdate:modelValue"])):c("",!0),t.frequency.selected=="weekly"?(r(),h("div",pt,[(r(!0),h(y,null,E(e.weekdays,(u,T)=>(r(),f(v,{key:T,title:u,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[T],"onUpdate:modelValue":D=>e.updateState(p,D,"frequency.weekly."+T)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):c("",!0)]),_:2},1032,["title"]))),128))]),_:2},[d.endsWith("/0")?void 0:{name:"actions",fn:a(t=>[t.collapsed?c("",!0):(r(),f(U,{key:0,class:"bg-danger clickable",onClick:p=>m.removeChargeTemplateModal(d,p)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),n($,{formName:"vehicleConfigForm",onSave:o[5]||(o[5]=i=>e.$emit("save")),onReset:o[6]||(o[6]=i=>e.$emit("reset")),onDefaults:o[7]||(o[7]=i=>e.$emit("defaults"))})])])],64)}const zt=x(we,[["render",bt],["__scopeId","data-v-d7193cf0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/VehicleConfig.vue"]]);export{zt as default}; diff --git a/web/settings/assets/backup_cloud-db5deede.js b/web/settings/assets/backup_cloud-1813a7df.js similarity index 84% rename from web/settings/assets/backup_cloud-db5deede.js rename to web/settings/assets/backup_cloud-1813a7df.js index a882b28c85..f481cd0463 100644 --- a/web/settings/assets/backup_cloud-db5deede.js +++ b/web/settings/assets/backup_cloud-1813a7df.js @@ -1 +1 @@ -import{_ as s,q as c,k as p,l as r,B as d}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const i={name:"BackupCloudNfs",emits:["update:configuration"],props:{backupCloud:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},l={class:"backup-cloud-nfs"};function _(t,e,o,f,m,n){const a=c("openwb-base-text-input");return p(),r("div",l,[d(a,{title:"Pfad zum NFS Share",pattern:"^([^/: ]+):(\\/[^/: ]+)+$","model-value":o.backupCloud.configuration.nfs_share,"onUpdate:modelValue":e[0]||(e[0]=u=>n.updateConfiguration(u,"configuration.nfs_share"))},null,8,["model-value"])])}const g=s(i,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/nfs/backup_cloud.vue"]]);export{g as default}; +import{_ as s,q as c,k as p,l as r,B as d}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const i={name:"BackupCloudNfs",emits:["update:configuration"],props:{backupCloud:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},l={class:"backup-cloud-nfs"};function _(t,e,o,f,m,n){const a=c("openwb-base-text-input");return p(),r("div",l,[d(a,{title:"Pfad zum NFS Share",pattern:"^([^/: ]+):(\\/[^/: ]+)+$","model-value":o.backupCloud.configuration.nfs_share,"onUpdate:modelValue":e[0]||(e[0]=u=>n.updateConfiguration(u,"configuration.nfs_share"))},null,8,["model-value"])])}const g=s(i,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/nfs/backup_cloud.vue"]]);export{g as default}; diff --git a/web/settings/assets/backup_cloud-60db8ac4.js b/web/settings/assets/backup_cloud-34a457f6.js similarity index 98% rename from web/settings/assets/backup_cloud-60db8ac4.js rename to web/settings/assets/backup_cloud-34a457f6.js index a9fe928b52..dc7778a34d 100644 --- a/web/settings/assets/backup_cloud-60db8ac4.js +++ b/web/settings/assets/backup_cloud-34a457f6.js @@ -1 +1 @@ -import{_ as b,q as d,k as f,l as g,B as t,M as o,x as n,u as r}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"BackupCloudOneDrive",emits:["update:configuration","sendCommand"],props:{backupCloud:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(u,e=void 0){this.$emit("update:configuration",{value:u,object:e})},sendSystemCommand(u,e={}){this.$emit("sendCommand",{command:u,data:e})}}},h={class:"backup-cloud-one-drive"},v=r("br",null,null,-1),k=r("br",null,null,-1),w=r("br",null,null,-1),C=r("br",null,null,-1),B=r("a",{href:"https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code",target:"_blank",rel:"noopener noreferrer"},"https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code",-1),y=r("a",{href:"https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-client-applications",target:"_blank",rel:"noopener noreferrer"},"https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-client-applications",-1);function x(u,e,i,A,z,s){const p=d("openwb-base-alert"),a=d("openwb-base-text-input"),m=d("openwb-base-heading"),c=d("openwb-base-button-input");return f(),g("div",h,[t(p,{subtype:"info"},{default:o(()=>[n(" Zum Abruf der Zugangsberechtigung bitte die Konfiguration speichern, dann die Schritte 1-4 durchführen und danach die Konfiguration erneut speichern. "),v,n(" Auth Code und URL werden nur einmal benötigt werden nach erfolgreicher Autorisierung wieder gelöscht. ")]),_:1}),t(a,{title:"Backupverzeichnis in OneDrive",subtype:"text",required:"",pattern:"^/(.*/)*","model-value":i.backupCloud.configuration.backuppath,"onUpdate:modelValue":e[0]||(e[0]=l=>s.updateConfiguration(l,"configuration.backuppath"))},{help:o(()=>[n(" In diesem Verzeichnis werden die Backupdateien erstellt. Bitte den Pfad mit / beenden. "),k,n(" Beispiel: /openWB/Backup/ ")]),_:1},8,["model-value"]),t(a,{title:"Anmeldedaten auf openWB gespeichert",readonly:"","model-value":i.backupCloud.configuration.persistent_tokencache?"Ja":"Nein"},null,8,["model-value"]),t(m,null,{default:o(()=>[n(" Zugang zu OneDrive für diese openWB autorisieren ")]),_:1}),t(c,{title:"1. Anmeldeanforderung erstellen",buttonText:"Autorisierungs-Code anfordern",subtype:"success",onButtonClicked:e[1]||(e[1]=l=>s.sendSystemCommand("requestMSALAuthCode",{}))},{help:o(()=>[n(" Es werden Zugangstokens für OneDrive angefordert. Diese werden nur lokal auf dieser openWB gespeichert. Genutzt wird Device Flow mit public application."),w,n(" Weitere Infos:"),C,B,y]),_:1}),t(a,{title:"2. Diesen Code kopieren",subtype:"text",readonly:"","model-value":i.backupCloud.configuration.authcode},null,8,["model-value"]),t(a,{title:"3. Anmelde-URL aufrufen",subtype:"url",readonly:"","model-value":i.backupCloud.configuration.authurl},{help:o(()=>[n(" Diese URL im Browser öffnen und den Code eingeben. Dies erzeugt die notwendigen Zugangsberechtigung für diese openWB. ")]),_:1},8,["model-value"]),t(c,{title:"4. Token abrufen und speichern",buttonText:"Autorisierungs-Token abrufen",subtype:"success",onButtonClicked:e[2]||(e[2]=l=>s.sendSystemCommand("retrieveMSALTokens",{}))},{help:o(()=>[n(" Zugangstoken wird abgerufen und gespeichert, damit das Backup durchgeführt werden kann. Zugangstoken werden nur lokal auf dieser openWB gespeichert. ")]),_:1})])}const Z=b(_,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/onedrive/backup_cloud.vue"]]);export{Z as default}; +import{_ as b,q as d,k as f,l as g,B as t,M as o,x as n,u as r}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"BackupCloudOneDrive",emits:["update:configuration","sendCommand"],props:{backupCloud:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(u,e=void 0){this.$emit("update:configuration",{value:u,object:e})},sendSystemCommand(u,e={}){this.$emit("sendCommand",{command:u,data:e})}}},h={class:"backup-cloud-one-drive"},v=r("br",null,null,-1),k=r("br",null,null,-1),w=r("br",null,null,-1),C=r("br",null,null,-1),B=r("a",{href:"https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code",target:"_blank",rel:"noopener noreferrer"},"https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code",-1),y=r("a",{href:"https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-client-applications",target:"_blank",rel:"noopener noreferrer"},"https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-client-applications",-1);function x(u,e,i,A,z,s){const p=d("openwb-base-alert"),a=d("openwb-base-text-input"),m=d("openwb-base-heading"),c=d("openwb-base-button-input");return f(),g("div",h,[t(p,{subtype:"info"},{default:o(()=>[n(" Zum Abruf der Zugangsberechtigung bitte die Konfiguration speichern, dann die Schritte 1-4 durchführen und danach die Konfiguration erneut speichern. "),v,n(" Auth Code und URL werden nur einmal benötigt werden nach erfolgreicher Autorisierung wieder gelöscht. ")]),_:1}),t(a,{title:"Backupverzeichnis in OneDrive",subtype:"text",required:"",pattern:"^/(.*/)*","model-value":i.backupCloud.configuration.backuppath,"onUpdate:modelValue":e[0]||(e[0]=l=>s.updateConfiguration(l,"configuration.backuppath"))},{help:o(()=>[n(" In diesem Verzeichnis werden die Backupdateien erstellt. Bitte den Pfad mit / beenden. "),k,n(" Beispiel: /openWB/Backup/ ")]),_:1},8,["model-value"]),t(a,{title:"Anmeldedaten auf openWB gespeichert",readonly:"","model-value":i.backupCloud.configuration.persistent_tokencache?"Ja":"Nein"},null,8,["model-value"]),t(m,null,{default:o(()=>[n(" Zugang zu OneDrive für diese openWB autorisieren ")]),_:1}),t(c,{title:"1. Anmeldeanforderung erstellen",buttonText:"Autorisierungs-Code anfordern",subtype:"success",onButtonClicked:e[1]||(e[1]=l=>s.sendSystemCommand("requestMSALAuthCode",{}))},{help:o(()=>[n(" Es werden Zugangstokens für OneDrive angefordert. Diese werden nur lokal auf dieser openWB gespeichert. Genutzt wird Device Flow mit public application."),w,n(" Weitere Infos:"),C,B,y]),_:1}),t(a,{title:"2. Diesen Code kopieren",subtype:"text",readonly:"","model-value":i.backupCloud.configuration.authcode},null,8,["model-value"]),t(a,{title:"3. Anmelde-URL aufrufen",subtype:"url",readonly:"","model-value":i.backupCloud.configuration.authurl},{help:o(()=>[n(" Diese URL im Browser öffnen und den Code eingeben. Dies erzeugt die notwendigen Zugangsberechtigung für diese openWB. ")]),_:1},8,["model-value"]),t(c,{title:"4. Token abrufen und speichern",buttonText:"Autorisierungs-Token abrufen",subtype:"success",onButtonClicked:e[2]||(e[2]=l=>s.sendSystemCommand("retrieveMSALTokens",{}))},{help:o(()=>[n(" Zugangstoken wird abgerufen und gespeichert, damit das Backup durchgeführt werden kann. Zugangstoken werden nur lokal auf dieser openWB gespeichert. ")]),_:1})])}const Z=b(_,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/onedrive/backup_cloud.vue"]]);export{Z as default}; diff --git a/web/settings/assets/backup_cloud-49a3231f.js b/web/settings/assets/backup_cloud-9751a369.js similarity index 96% rename from web/settings/assets/backup_cloud-49a3231f.js rename to web/settings/assets/backup_cloud-9751a369.js index afa7f36f31..ac6f3ffc9c 100644 --- a/web/settings/assets/backup_cloud-49a3231f.js +++ b/web/settings/assets/backup_cloud-9751a369.js @@ -1 +1 @@ -import{_ as d,q as s,k as p,l as m,B as a,M as b,x as l,u as r}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const c={name:"BackupCloudSamba",emits:["update:configuration"],props:{backupCloud:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},_={class:"backup-cloud-samba"},f=r("br",null,null,-1),g=r("br",null,null,-1),v=r("br",null,null,-1);function C(i,e,t,k,w,u){const n=s("openwb-base-text-input");return p(),m("div",_,[a(n,{title:"Server",subtype:"host",required:"","model-value":t.backupCloud.configuration.smb_server,"onUpdate:modelValue":e[0]||(e[0]=o=>u.updateConfiguration(o,"configuration.smb_server"))},null,8,["model-value"]),a(n,{title:"Freigabe",required:"","model-value":t.backupCloud.configuration.smb_share,"onUpdate:modelValue":e[1]||(e[1]=o=>u.updateConfiguration(o,"configuration.smb_share"))},null,8,["model-value"]),a(n,{title:"Unterordner (optional)","model-value":t.backupCloud.configuration.smb_path,pattern:'([^\\\\:"\\|*?<>]+/)*',"onUpdate:modelValue":e[2]||(e[2]=o=>u.updateConfiguration(o,"configuration.smb_path"))},{help:b(()=>[l(" Jeder Unterordner muss mit / enden."),f,l(' Die Zeichen \\:"|*?<> sind verboten!'),g,l(" Beispiel 1: openwb/ "),v,l(" Beispiel 2: openwb/lp2/ ")]),_:1},8,["model-value"]),a(n,{title:"Benutzer",subtype:"user","model-value":t.backupCloud.configuration.smb_user,"onUpdate:modelValue":e[3]||(e[3]=o=>u.updateConfiguration(o,"configuration.smb_user"))},null,8,["model-value"]),a(n,{title:"Kennwort",subtype:"password","model-value":t.backupCloud.configuration.smb_password,"onUpdate:modelValue":e[4]||(e[4]=o=>u.updateConfiguration(o,"configuration.smb_password"))},null,8,["model-value"])])}const V=d(c,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/samba/backup_cloud.vue"]]);export{V as default}; +import{_ as d,q as s,k as p,l as m,B as a,M as b,x as l,u as r}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const c={name:"BackupCloudSamba",emits:["update:configuration"],props:{backupCloud:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},_={class:"backup-cloud-samba"},f=r("br",null,null,-1),g=r("br",null,null,-1),v=r("br",null,null,-1);function C(i,e,t,k,w,u){const n=s("openwb-base-text-input");return p(),m("div",_,[a(n,{title:"Server",subtype:"host",required:"","model-value":t.backupCloud.configuration.smb_server,"onUpdate:modelValue":e[0]||(e[0]=o=>u.updateConfiguration(o,"configuration.smb_server"))},null,8,["model-value"]),a(n,{title:"Freigabe",required:"","model-value":t.backupCloud.configuration.smb_share,"onUpdate:modelValue":e[1]||(e[1]=o=>u.updateConfiguration(o,"configuration.smb_share"))},null,8,["model-value"]),a(n,{title:"Unterordner (optional)","model-value":t.backupCloud.configuration.smb_path,pattern:'([^\\\\:"\\|*?<>]+/)*',"onUpdate:modelValue":e[2]||(e[2]=o=>u.updateConfiguration(o,"configuration.smb_path"))},{help:b(()=>[l(" Jeder Unterordner muss mit / enden."),f,l(' Die Zeichen \\:"|*?<> sind verboten!'),g,l(" Beispiel 1: openwb/ "),v,l(" Beispiel 2: openwb/lp2/ ")]),_:1},8,["model-value"]),a(n,{title:"Benutzer",subtype:"user","model-value":t.backupCloud.configuration.smb_user,"onUpdate:modelValue":e[3]||(e[3]=o=>u.updateConfiguration(o,"configuration.smb_user"))},null,8,["model-value"]),a(n,{title:"Kennwort",subtype:"password","model-value":t.backupCloud.configuration.smb_password,"onUpdate:modelValue":e[4]||(e[4]=o=>u.updateConfiguration(o,"configuration.smb_password"))},null,8,["model-value"])])}const V=d(c,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/samba/backup_cloud.vue"]]);export{V as default}; diff --git a/web/settings/assets/backup_cloud-cacf246a.js b/web/settings/assets/backup_cloud-e3cd26f1.js similarity index 95% rename from web/settings/assets/backup_cloud-cacf246a.js rename to web/settings/assets/backup_cloud-e3cd26f1.js index 591e762201..1a13beebf2 100644 --- a/web/settings/assets/backup_cloud-cacf246a.js +++ b/web/settings/assets/backup_cloud-e3cd26f1.js @@ -1 +1 @@ -import{_ as l,q as s,k as r,l as i,B as a,M as p,x as c}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const m={name:"BackupCloudNextCloud",emits:["update:configuration"],props:{backupCloud:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},f={class:"backup-cloud-next-cloud"};function _(d,e,o,b,g,u){const n=s("openwb-base-text-input");return r(),i("div",f,[a(n,{title:"Cloud-URL",subtype:"host",required:"","model-value":o.backupCloud.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>u.updateConfiguration(t,"configuration.ip_address"))},{help:p(()=>[c(" Die Cloud-URL wird in der Form 'https://nextcloud-url' und Benutzername im Eingabefeld oder mit Zugangstoken erwartet. Die URL kann je nach NextCloud Installation so 'https://nextcloud-url/s/user_token' oder so 'https://nextcloud-url/index.php/s/user_token' aussehen. ")]),_:1},8,["model-value"]),a(n,{title:"Benutzername",subtype:"user","model-value":o.backupCloud.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>u.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),a(n,{title:"Passwort",subtype:"password","model-value":o.backupCloud.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>u.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const C=l(m,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/nextcloud/backup_cloud.vue"]]);export{C as default}; +import{_ as l,q as s,k as r,l as i,B as a,M as p,x as c}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const m={name:"BackupCloudNextCloud",emits:["update:configuration"],props:{backupCloud:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},f={class:"backup-cloud-next-cloud"};function _(d,e,o,b,g,u){const n=s("openwb-base-text-input");return r(),i("div",f,[a(n,{title:"Cloud-URL",subtype:"host",required:"","model-value":o.backupCloud.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>u.updateConfiguration(t,"configuration.ip_address"))},{help:p(()=>[c(" Die Cloud-URL wird in der Form 'https://nextcloud-url' und Benutzername im Eingabefeld oder mit Zugangstoken erwartet. Die URL kann je nach NextCloud Installation so 'https://nextcloud-url/s/user_token' oder so 'https://nextcloud-url/index.php/s/user_token' aussehen. ")]),_:1},8,["model-value"]),a(n,{title:"Benutzername",subtype:"user","model-value":o.backupCloud.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>u.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),a(n,{title:"Passwort",subtype:"password","model-value":o.backupCloud.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>u.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const C=l(m,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/nextcloud/backup_cloud.vue"]]);export{C as default}; diff --git a/web/settings/assets/bat-1619dcb7.js b/web/settings/assets/bat-003c9ec2.js similarity index 93% rename from web/settings/assets/bat-1619dcb7.js rename to web/settings/assets/bat-003c9ec2.js index 7cc8a10113..f9fe989fd5 100644 --- a/web/settings/assets/bat-1619dcb7.js +++ b/web/settings/assets/bat-003c9ec2.js @@ -1 +1 @@ -import{_ as r,q as n,k as p,l,B as o,M as s,x as a,u as d,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceKostalPlenticoreBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-kostalplenticore-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),l("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Kostal Plenticore Batteriespeicher "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/bat.vue"]]);export{$ as default}; +import{_ as r,q as n,k as p,l,B as o,M as s,x as a,u as d,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceKostalPlenticoreBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-kostalplenticore-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),l("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Kostal Plenticore Batteriespeicher "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/bat.vue"]]);export{$ as default}; diff --git a/web/settings/assets/bat-bb5f37f1.js b/web/settings/assets/bat-04d6743b.js similarity index 93% rename from web/settings/assets/bat-bb5f37f1.js rename to web/settings/assets/bat-04d6743b.js index 070aa27b82..743bc8c5e0 100644 --- a/web/settings/assets/bat-bb5f37f1.js +++ b/web/settings/assets/bat-04d6743b.js @@ -1 +1 @@ -import{_ as d,q as t,k as c,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSunnyIslandBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sunnyisland-bat"},m={class:"small"};function b(e,n,g,h,v,y){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return c(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Sunny Island Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const $=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_island/bat.vue"]]);export{$ as default}; +import{_ as d,q as t,k as c,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSunnyIslandBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sunnyisland-bat"},m={class:"small"};function b(e,n,g,h,v,y){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return c(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Sunny Island Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const $=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_island/bat.vue"]]);export{$ as default}; diff --git a/web/settings/assets/bat-cc31b792.js b/web/settings/assets/bat-0c742817.js similarity index 88% rename from web/settings/assets/bat-cc31b792.js rename to web/settings/assets/bat-0c742817.js index 20697b7717..24b4647450 100644 --- a/web/settings/assets/bat-cc31b792.js +++ b/web/settings/assets/bat-0c742817.js @@ -1 +1 @@ -import{_ as d,q as t,k as c,l as p,B as o,M as l,x as m,u as _,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceFemsBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-fems-bat"},v={class:"small"};function h(n,e,a,B,w,i){const s=t("openwb-base-heading"),r=t("openwb-base-number-input");return c(),p("div",g,[o(s,null,{default:l(()=>[m(" Einstellungen für openEMS, Fenecon FEMS, CENTURIO 10, Kaco Hy-Control Batteriespeicher "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(r,{title:"Anzahl der verbauten Speicher",required:"",min:1,max:2,"model-value":a.configuration.num,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.num"))},null,8,["model-value"])])}const E=d(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/bat.vue"]]);export{E as default}; +import{_ as d,q as t,k as c,l as p,B as o,M as l,x as m,u as _,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceFemsBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-fems-bat"},v={class:"small"};function h(n,e,a,B,w,i){const s=t("openwb-base-heading"),r=t("openwb-base-number-input");return c(),p("div",g,[o(s,null,{default:l(()=>[m(" Einstellungen für openEMS, Fenecon FEMS, CENTURIO 10, Kaco Hy-Control Batteriespeicher "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(r,{title:"Anzahl der verbauten Speicher",required:"",min:1,max:2,"model-value":a.configuration.num,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.num"))},null,8,["model-value"])])}const E=d(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/bat.vue"]]);export{E as default}; diff --git a/web/settings/assets/bat-942848c5.js b/web/settings/assets/bat-13a367f1.js similarity index 87% rename from web/settings/assets/bat-942848c5.js rename to web/settings/assets/bat-13a367f1.js index 6171a7b961..b8492f9705 100644 --- a/web/settings/assets/bat-942848c5.js +++ b/web/settings/assets/bat-13a367f1.js @@ -1 +1 @@ -import{_ as d,q as n,k as c,l as p,B as o,M as l,x as m,u as _,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceFroniusBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-fronius-bat"},v={class:"small"};function h(t,e,a,B,w,i){const s=n("openwb-base-heading"),r=n("openwb-base-number-input");return c(),p("div",g,[o(s,null,{default:l(()=>[m(" Einstellungen für Fronius Batteriespeicher "),_("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(r,{title:"Meter ID",required:"",min:"0",max:"65535","model-value":a.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.meter_id"))},null,8,["model-value"])])}const C=d(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/bat.vue"]]);export{C as default}; +import{_ as d,q as n,k as c,l as p,B as o,M as l,x as m,u as _,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceFroniusBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-fronius-bat"},v={class:"small"};function h(t,e,a,B,w,i){const s=n("openwb-base-heading"),r=n("openwb-base-number-input");return c(),p("div",g,[o(s,null,{default:l(()=>[m(" Einstellungen für Fronius Batteriespeicher "),_("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(r,{title:"Meter ID",required:"",min:"0",max:"65535","model-value":a.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.meter_id"))},null,8,["model-value"])])}const C=d(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/bat.vue"]]);export{C as default}; diff --git a/web/settings/assets/bat-cce72fb8.js b/web/settings/assets/bat-29944a82.js similarity index 92% rename from web/settings/assets/bat-cce72fb8.js rename to web/settings/assets/bat-29944a82.js index 0ed1597699..247e89c6c7 100644 --- a/web/settings/assets/bat-cce72fb8.js +++ b/web/settings/assets/bat-29944a82.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as a,x as s,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceHuaweiBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-huawei-bat"},m={class:"small"};function b(e,t,h,g,w,v){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Huawei Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/bat.vue"]]);export{x as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as a,x as s,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceHuaweiBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-huawei-bat"},m={class:"small"};function b(e,t,h,g,w,v){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Huawei Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/bat.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat-085a5a22.js b/web/settings/assets/bat-33cba17a.js similarity index 87% rename from web/settings/assets/bat-085a5a22.js rename to web/settings/assets/bat-33cba17a.js index 210f23e3c8..f11fc1530a 100644 --- a/web/settings/assets/bat-085a5a22.js +++ b/web/settings/assets/bat-33cba17a.js @@ -1 +1 @@ -import{_ as r,q as n,k as c,l as p,B as o,M as l,x as m,u as _,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceDeyeBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-deye-bat"},v={class:"small"};function h(t,e,a,y,B,i){const s=n("openwb-base-heading"),d=n("openwb-base-number-input");return c(),p("div",g,[o(s,null,{default:l(()=>[m(" Einstellungen für Deye Batteriespeicher "),_("span",v,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(d,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.modbus_id"))},null,8,["model-value"])])}const D=r(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/bat.vue"]]);export{D as default}; +import{_ as r,q as n,k as c,l as p,B as o,M as l,x as m,u as _,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceDeyeBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-deye-bat"},v={class:"small"};function h(t,e,a,y,B,i){const s=n("openwb-base-heading"),d=n("openwb-base-number-input");return c(),p("div",g,[o(s,null,{default:l(()=>[m(" Einstellungen für Deye Batteriespeicher "),_("span",v,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(d,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.modbus_id"))},null,8,["model-value"])])}const D=r(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/bat.vue"]]);export{D as default}; diff --git a/web/settings/assets/bat-b54aa729.js b/web/settings/assets/bat-42a7473f.js similarity index 90% rename from web/settings/assets/bat-b54aa729.js rename to web/settings/assets/bat-42a7473f.js index 65a49fb66c..09cfadb391 100644 --- a/web/settings/assets/bat-b54aa729.js +++ b/web/settings/assets/bat-42a7473f.js @@ -1 +1 @@ -import{_ as p,q as n,k as m,l as _,B as o,M as a,x as s,u as b,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceSolarmaxBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},h={class:"device-solarmax-bat"},v={class:"small"};function x(t,e,i,w,A,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),l=n("openwb-base-number-input");return m(),_("div",h,[o(d,null,{default:a(()=>[s(" Einstellungen für Solarmax MAX.STORAGE / MAX.STORAGE Ultimate Batteriespeicher "),b("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:a(()=>[s(" Solarmax MAX.STORAGE / MAX.STORAGE Ultimate Batteriespeicher sind Teil eines Hybridsystems. Daher muss auch eine Komponente Wechselrichter angelegt werden. ")]),_:1}),o(l,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.modbus_id"))},null,8,["model-value"])])}const M=p(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/bat.vue"]]);export{M as default}; +import{_ as p,q as n,k as m,l as _,B as o,M as a,x as s,u as b,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceSolarmaxBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},h={class:"device-solarmax-bat"},v={class:"small"};function x(t,e,i,w,A,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),l=n("openwb-base-number-input");return m(),_("div",h,[o(d,null,{default:a(()=>[s(" Einstellungen für Solarmax MAX.STORAGE / MAX.STORAGE Ultimate Batteriespeicher "),b("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:a(()=>[s(" Solarmax MAX.STORAGE / MAX.STORAGE Ultimate Batteriespeicher sind Teil eines Hybridsystems. Daher muss auch eine Komponente Wechselrichter angelegt werden. ")]),_:1}),o(l,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.modbus_id"))},null,8,["model-value"])])}const M=p(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/bat.vue"]]);export{M as default}; diff --git a/web/settings/assets/bat-b866cc15.js b/web/settings/assets/bat-488bfce7.js similarity index 92% rename from web/settings/assets/bat-b866cc15.js rename to web/settings/assets/bat-488bfce7.js index abdd38d2a4..85b27c14ee 100644 --- a/web/settings/assets/bat-b866cc15.js +++ b/web/settings/assets/bat-488bfce7.js @@ -1 +1 @@ -import{_ as r,q as n,k as p,l as d,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceLGBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-lg-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für LG ESS V1.0 Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/bat.vue"]]);export{x as default}; +import{_ as r,q as n,k as p,l as d,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceLGBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-lg-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für LG ESS V1.0 Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/bat.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat-08e1822f.js b/web/settings/assets/bat-4d911d20.js similarity index 88% rename from web/settings/assets/bat-08e1822f.js rename to web/settings/assets/bat-4d911d20.js index 12612b1838..dc94054b63 100644 --- a/web/settings/assets/bat-08e1822f.js +++ b/web/settings/assets/bat-4d911d20.js @@ -1 +1 @@ -import{_ as d,q as n,k as r,l as p,B as o,M as c,x as _,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceOpenwbEvukitBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-evukit-bat"},g={class:"small"};function w(t,e,a,h,B,i){const s=n("openwb-base-heading"),u=n("openwb-base-select-input");return r(),p("div",b,[o(s,null,{default:c(()=>[_(" Einstellungen für openWB EVU-Kit Batteriespeicher "),m("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(u,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>i.updateConfiguration(l,"configuration.version"))},null,8,["model-value"])])}const k=d(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/bat.vue"]]);export{k as default}; +import{_ as d,q as n,k as r,l as p,B as o,M as c,x as _,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceOpenwbEvukitBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-evukit-bat"},g={class:"small"};function w(t,e,a,h,B,i){const s=n("openwb-base-heading"),u=n("openwb-base-select-input");return r(),p("div",b,[o(s,null,{default:c(()=>[_(" Einstellungen für openWB EVU-Kit Batteriespeicher "),m("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(u,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>i.updateConfiguration(l,"configuration.version"))},null,8,["model-value"])])}const k=d(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/bat.vue"]]);export{k as default}; diff --git a/web/settings/assets/bat-25ad94e5.js b/web/settings/assets/bat-60a320a7.js similarity index 93% rename from web/settings/assets/bat-25ad94e5.js rename to web/settings/assets/bat-60a320a7.js index 58f1d5769f..0301055685 100644 --- a/web/settings/assets/bat-25ad94e5.js +++ b/web/settings/assets/bat-60a320a7.js @@ -1 +1 @@ -import{_ as c,q as o,k as r,l as p,B as n,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceGoodWeBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-goodwe-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=o("openwb-base-heading"),d=o("openwb-base-alert");return r(),p("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für GoodWe Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(d,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/bat.vue"]]);export{x as default}; +import{_ as c,q as o,k as r,l as p,B as n,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceGoodWeBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-goodwe-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=o("openwb-base-heading"),d=o("openwb-base-alert");return r(),p("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für GoodWe Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(d,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/bat.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat-8154ced9.js b/web/settings/assets/bat-61ae3b44.js similarity index 86% rename from web/settings/assets/bat-8154ced9.js rename to web/settings/assets/bat-61ae3b44.js index ac99f97c54..044378d061 100644 --- a/web/settings/assets/bat-8154ced9.js +++ b/web/settings/assets/bat-61ae3b44.js @@ -1 +1 @@ -import{_ as c,q as n,k as r,l as d,B as o,M as s,x as a,u as l,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceAlphaessBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-alphaess-bat"},m={class:"small"};function b(e,t,h,g,v,B){const i=n("openwb-base-heading"),p=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Alpha ESS Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/bat.vue"]]);export{x as default}; +import{_ as c,q as n,k as r,l as d,B as o,M as s,x as a,u as l,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceAlphaessBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-alphaess-bat"},m={class:"small"};function b(e,t,h,g,v,B){const i=n("openwb-base-heading"),p=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Alpha ESS Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/bat.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat-a43b1ef5.js b/web/settings/assets/bat-6c8a8668.js similarity index 92% rename from web/settings/assets/bat-a43b1ef5.js rename to web/settings/assets/bat-6c8a8668.js index 69933b51d6..7db8ccd72d 100644 --- a/web/settings/assets/bat-a43b1ef5.js +++ b/web/settings/assets/bat-6c8a8668.js @@ -1 +1 @@ -import{_ as r,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceBYDBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-byd-bat"},f={class:"small"};function m(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return d(),p("div",b,[o(i,null,{default:s(()=>[a(" Einstellungen für BYD Batteriespeicher "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=r(_,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/byd/bat.vue"]]);export{$ as default}; +import{_ as r,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceBYDBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-byd-bat"},f={class:"small"};function m(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return d(),p("div",b,[o(i,null,{default:s(()=>[a(" Einstellungen für BYD Batteriespeicher "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=r(_,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/byd/bat.vue"]]);export{$ as default}; diff --git a/web/settings/assets/bat-6cd7597a.js b/web/settings/assets/bat-71e53e98.js similarity index 92% rename from web/settings/assets/bat-6cd7597a.js rename to web/settings/assets/bat-71e53e98.js index fc339e5b6f..0416b7f93d 100644 --- a/web/settings/assets/bat-6cd7597a.js +++ b/web/settings/assets/bat-71e53e98.js @@ -1 +1 @@ -import{_ as r,q as n,k as p,l as d,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceRCTBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-rct-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für RCT Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/bat.vue"]]);export{x as default}; +import{_ as r,q as n,k as p,l as d,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceRCTBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-rct-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für RCT Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/bat.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat-8a82cd9d.js b/web/settings/assets/bat-74882a7c.js similarity index 92% rename from web/settings/assets/bat-8a82cd9d.js rename to web/settings/assets/bat-74882a7c.js index 1bf9c4b336..b90cb49576 100644 --- a/web/settings/assets/bat-8a82cd9d.js +++ b/web/settings/assets/bat-74882a7c.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSungrowBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-sungrow-bat"},m={class:"small"};function b(e,t,g,w,h,v){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Sungrow Speicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/bat.vue"]]);export{x as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSungrowBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-sungrow-bat"},m={class:"small"};function b(e,t,g,w,h,v){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Sungrow Speicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/bat.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat-3ba49769.js b/web/settings/assets/bat-7ab1c5e7.js similarity index 92% rename from web/settings/assets/bat-3ba49769.js rename to web/settings/assets/bat-7ab1c5e7.js index 7cf7ee7d5d..0513069534 100644 --- a/web/settings/assets/bat-3ba49769.js +++ b/web/settings/assets/bat-7ab1c5e7.js @@ -1 +1 @@ -import{_ as d,q as n,k as r,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceE3dcBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return r(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für E3DC Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/bat.vue"]]);export{x as default}; +import{_ as d,q as n,k as r,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceE3dcBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return r(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für E3DC Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/bat.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat-924093e2.js b/web/settings/assets/bat-7edf509e.js similarity index 93% rename from web/settings/assets/bat-924093e2.js rename to web/settings/assets/bat-7edf509e.js index 1f17b3afbb..f028238779 100644 --- a/web/settings/assets/bat-924093e2.js +++ b/web/settings/assets/bat-7edf509e.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as a,x as s,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSonnenbatterieBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-sonnenbatterie-bat"},b={class:"small"};function m(e,t,g,h,v,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für SonnenBatterie Speicher "),u("span",b,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/bat.vue"]]);export{x as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as a,x as s,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSonnenbatterieBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-sonnenbatterie-bat"},b={class:"small"};function m(e,t,g,h,v,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für SonnenBatterie Speicher "),u("span",b,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/bat.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat-cb55ee49.js b/web/settings/assets/bat-8b526727.js similarity index 96% rename from web/settings/assets/bat-cb55ee49.js rename to web/settings/assets/bat-8b526727.js index 2e346025b5..f2169414ef 100644 --- a/web/settings/assets/bat-cb55ee49.js +++ b/web/settings/assets/bat-8b526727.js @@ -1 +1 @@ -import{_ as h,q as u,k as p,l as c,B as i,M as r,x as t,u as a,y as g}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceHttpBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(s,e=void 0){this.$emit("update:configuration",{value:s,object:e})}}},f={class:"device-http-bat"},b={class:"small"},v=a("br",null,null,-1),w=a("br",null,null,-1),k=a("br",null,null,-1),S=a("br",null,null,-1),x=a("br",null,null,-1);function z(s,e,l,Z,D,o){const m=u("openwb-base-heading"),d=u("openwb-base-text-input");return p(),c("div",f,[i(m,null,{default:r(()=>[t(" Einstellungen für Http Batteriespeicher "),a("span",b,"(Modul: "+g(s.$options.name)+")",1)]),_:1}),i(d,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":l.configuration.power_path,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.power_path"))},{help:r(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),v,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ")]),_:1},8,["model-value"]),i(d,{title:"Pfad für Ladestand",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":l.configuration.soc_path,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.soc_path"))},{help:r(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),w,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen Ladestand (SoC) in Prozent darstellt. ")]),_:1},8,["model-value"]),i(d,{title:"Pfad für Zählerstand laden",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":l.configuration.imported_path,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.imported_path"))},{help:r(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),k,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt. ")]),_:1},8,["model-value"]),i(d,{title:"Pfad für Zählerstand entladen",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":l.configuration.exported_path,"onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.exported_path"))},{help:r(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),S,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),x,t(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"])])}const A=h(_,[["render",z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/bat.vue"]]);export{A as default}; +import{_ as h,q as u,k as p,l as c,B as i,M as r,x as t,u as a,y as g}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceHttpBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(s,e=void 0){this.$emit("update:configuration",{value:s,object:e})}}},f={class:"device-http-bat"},b={class:"small"},v=a("br",null,null,-1),w=a("br",null,null,-1),k=a("br",null,null,-1),S=a("br",null,null,-1),x=a("br",null,null,-1);function z(s,e,l,Z,D,o){const m=u("openwb-base-heading"),d=u("openwb-base-text-input");return p(),c("div",f,[i(m,null,{default:r(()=>[t(" Einstellungen für Http Batteriespeicher "),a("span",b,"(Modul: "+g(s.$options.name)+")",1)]),_:1}),i(d,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":l.configuration.power_path,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.power_path"))},{help:r(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),v,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ")]),_:1},8,["model-value"]),i(d,{title:"Pfad für Ladestand",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":l.configuration.soc_path,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.soc_path"))},{help:r(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),w,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen Ladestand (SoC) in Prozent darstellt. ")]),_:1},8,["model-value"]),i(d,{title:"Pfad für Zählerstand laden",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":l.configuration.imported_path,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.imported_path"))},{help:r(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),k,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt. ")]),_:1},8,["model-value"]),i(d,{title:"Pfad für Zählerstand entladen",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":l.configuration.exported_path,"onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.exported_path"))},{help:r(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),S,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),x,t(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"])])}const A=h(_,[["render",z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/bat.vue"]]);export{A as default}; diff --git a/web/settings/assets/bat-42234350.js b/web/settings/assets/bat-922195e1.js similarity index 92% rename from web/settings/assets/bat-42234350.js rename to web/settings/assets/bat-922195e1.js index 203dfce512..f5af78c6d2 100644 --- a/web/settings/assets/bat-42234350.js +++ b/web/settings/assets/bat-922195e1.js @@ -1 +1 @@ -import{_ as d,q as n,k as c,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceStuderBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-studer-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return c(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Studer Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/bat.vue"]]);export{x as default}; +import{_ as d,q as n,k as c,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceStuderBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-studer-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return c(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Studer Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/bat.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat-2bb1b47a.js b/web/settings/assets/bat-9e5d4526.js similarity index 93% rename from web/settings/assets/bat-2bb1b47a.js rename to web/settings/assets/bat-9e5d4526.js index f47bc9a8de..f6300e90a9 100644 --- a/web/settings/assets/bat-2bb1b47a.js +++ b/web/settings/assets/bat-9e5d4526.js @@ -1 +1 @@ -import{_ as p,q as o,k as c,l as d,B as n,M as a,x as s,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSaxpowerBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-saxpower-bat"},m={class:"small"};function b(e,t,g,w,h,v){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return c(),d("div",f,[n(i,null,{default:a(()=>[s(" Einstellungen für Saxpower Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const $=p(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/saxpower/bat.vue"]]);export{$ as default}; +import{_ as p,q as o,k as c,l as d,B as n,M as a,x as s,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSaxpowerBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-saxpower-bat"},m={class:"small"};function b(e,t,g,w,h,v){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return c(),d("div",f,[n(i,null,{default:a(()=>[s(" Einstellungen für Saxpower Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const $=p(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/saxpower/bat.vue"]]);export{$ as default}; diff --git a/web/settings/assets/bat-ec8aebd6.js b/web/settings/assets/bat-ae70d5ff.js similarity index 90% rename from web/settings/assets/bat-ec8aebd6.js rename to web/settings/assets/bat-ae70d5ff.js index e53d5764bf..030c20359e 100644 --- a/web/settings/assets/bat-ec8aebd6.js +++ b/web/settings/assets/bat-ae70d5ff.js @@ -1 +1 @@ -import{_ as r,q as o,k as p,l as c,B as a,M as m,x as _,u as b,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceOpenwbFlexBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-openwb-flex-bat"},x={class:"small"};function w(t,e,i,M,B,s){const u=o("openwb-base-heading"),l=o("openwb-base-select-input"),d=o("openwb-base-number-input");return p(),c("div",g,[a(u,null,{default:m(()=>[_(" Einstellungen für openWB-Flex Batteriespeicher "),b("span",x,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),a(l,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.version"))},null,8,["model-value"]),a(d,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":i.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.id"))},null,8,["model-value"])])}const C=r(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/bat.vue"]]);export{C as default}; +import{_ as r,q as o,k as p,l as c,B as a,M as m,x as _,u as b,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceOpenwbFlexBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-openwb-flex-bat"},x={class:"small"};function w(t,e,i,M,B,s){const u=o("openwb-base-heading"),l=o("openwb-base-select-input"),d=o("openwb-base-number-input");return p(),c("div",g,[a(u,null,{default:m(()=>[_(" Einstellungen für openWB-Flex Batteriespeicher "),b("span",x,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),a(l,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.version"))},null,8,["model-value"]),a(d,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":i.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.id"))},null,8,["model-value"])])}const C=r(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/bat.vue"]]);export{C as default}; diff --git a/web/settings/assets/bat-3a8a0fa9.js b/web/settings/assets/bat-b124a484.js similarity index 86% rename from web/settings/assets/bat-3a8a0fa9.js rename to web/settings/assets/bat-b124a484.js index 83f0eb03f4..64d3e30cf2 100644 --- a/web/settings/assets/bat-3a8a0fa9.js +++ b/web/settings/assets/bat-b124a484.js @@ -1 +1 @@ -import{_ as c,q as n,k as p,l as d,B as o,M as a,x as s,u as l,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSolarwattBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solarwatt-bat"},m={class:"small"};function b(e,t,g,v,w,h){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Solarwatt/My Reserve Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/bat.vue"]]);export{x as default}; +import{_ as c,q as n,k as p,l as d,B as o,M as a,x as s,u as l,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSolarwattBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solarwatt-bat"},m={class:"small"};function b(e,t,g,v,w,h){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Solarwatt/My Reserve Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/bat.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat-b867b312.js b/web/settings/assets/bat-b39e4f19.js similarity index 88% rename from web/settings/assets/bat-b867b312.js rename to web/settings/assets/bat-b39e4f19.js index 34bdfe3647..08f9678e5d 100644 --- a/web/settings/assets/bat-b867b312.js +++ b/web/settings/assets/bat-b39e4f19.js @@ -1 +1 @@ -import{_ as d,q as o,k as c,l as p,B as n,M as l,x as m,u as _,y as g}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceHuaweiSmartLoggerBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},f={class:"device-huawei-smart-logger-bat"},v={class:"small"};function w(t,e,a,h,B,i){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),p("div",f,[n(s,null,{default:l(()=>[m(" Einstellungen für Huawei SmartLogger Batteriespeicher "),_("span",v,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),n(r,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.modbus_id"))},null,8,["model-value"])])}const V=d(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/bat.vue"]]);export{V as default}; +import{_ as d,q as o,k as c,l as p,B as n,M as l,x as m,u as _,y as g}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceHuaweiSmartLoggerBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},f={class:"device-huawei-smart-logger-bat"},v={class:"small"};function w(t,e,a,h,B,i){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),p("div",f,[n(s,null,{default:l(()=>[m(" Einstellungen für Huawei SmartLogger Batteriespeicher "),_("span",v,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),n(r,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.modbus_id"))},null,8,["model-value"])])}const V=d(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/bat.vue"]]);export{V as default}; diff --git a/web/settings/assets/bat-8df9fe41.js b/web/settings/assets/bat-c28324a3.js similarity index 86% rename from web/settings/assets/bat-8df9fe41.js rename to web/settings/assets/bat-c28324a3.js index c801cfc817..570925ec83 100644 --- a/web/settings/assets/bat-8df9fe41.js +++ b/web/settings/assets/bat-c28324a3.js @@ -1 +1 @@ -import{_ as c,q as o,k as d,l as p,B as n,M as a,x as s,u as l,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSolaxBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solax-bat"},m={class:"small"};function b(e,t,g,h,v,x){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return d(),p("div",f,[n(i,null,{default:a(()=>[s(" Einstellungen für Solax Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/bat.vue"]]);export{$ as default}; +import{_ as c,q as o,k as d,l as p,B as n,M as a,x as s,u as l,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSolaxBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solax-bat"},m={class:"small"};function b(e,t,g,h,v,x){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return d(),p("div",f,[n(i,null,{default:a(()=>[s(" Einstellungen für Solax Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/bat.vue"]]);export{$ as default}; diff --git a/web/settings/assets/bat-2e6df830.js b/web/settings/assets/bat-cb56f27d.js similarity index 86% rename from web/settings/assets/bat-2e6df830.js rename to web/settings/assets/bat-cb56f27d.js index 01b9c96b20..751ad28d3a 100644 --- a/web/settings/assets/bat-2e6df830.js +++ b/web/settings/assets/bat-cb56f27d.js @@ -1 +1 @@ -import{_ as r,q as n,k as p,l as d,B as o,M as s,x as a,u as l,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceTeslaBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-tesla-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Tesla Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/bat.vue"]]);export{x as default}; +import{_ as r,q as n,k as p,l as d,B as o,M as s,x as a,u as l,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceTeslaBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-tesla-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Tesla Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/bat.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat-c38a98fa.js b/web/settings/assets/bat-d24c0bd6.js similarity index 86% rename from web/settings/assets/bat-c38a98fa.js rename to web/settings/assets/bat-d24c0bd6.js index 155c5508d6..4a67c4533b 100644 --- a/web/settings/assets/bat-c38a98fa.js +++ b/web/settings/assets/bat-d24c0bd6.js @@ -1 +1 @@ -import{_ as r,q as n,k as l,l as p,B as o,M as s,x as a,u as d,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceQCelllsBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-qcells-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return l(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für QCells ESS Batteriespeicher "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const q=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/bat.vue"]]);export{q as default}; +import{_ as r,q as n,k as l,l as p,B as o,M as s,x as a,u as d,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceQCelllsBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-qcells-bat"},m={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return l(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für QCells ESS Batteriespeicher "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const q=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/bat.vue"]]);export{q as default}; diff --git a/web/settings/assets/bat-22a5ada0.js b/web/settings/assets/bat-d341f445.js similarity index 94% rename from web/settings/assets/bat-22a5ada0.js rename to web/settings/assets/bat-d341f445.js index c71f50307b..2c5c9df32c 100644 --- a/web/settings/assets/bat-22a5ada0.js +++ b/web/settings/assets/bat-d341f445.js @@ -1 +1 @@ -import{_ as m,q as u,k as f,l as g,B as n,M as d,x as o,u as s,y as c}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceJsonBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(l,e=void 0){this.$emit("update:configuration",{value:l,object:e})}}},b={class:"device-json-bat"},v={class:"small"},w=s("br",null,null,-1);function h(l,e,a,j,q,i){const p=u("openwb-base-heading"),r=u("openwb-base-text-input");return f(),g("div",b,[n(p,null,{default:d(()=>[o(" Einstellungen für JSON Batteriespeicher "),s("span",v,"(Modul: "+c(l.$options.name)+")",1)]),_:1}),n(r,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":a.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.jq_power"))},{help:d(()=>[o(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. '),w,o(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt (positiv Ladung, negativ Entladung) darstellt. ")]),_:1},8,["model-value"]),n(r,{title:"Abfrage für Ladestand",subtype:"text",required:"","model-value":a.configuration.jq_soc,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.jq_soc"))},null,8,["model-value"]),n(r,{title:"Abfrage für Zählerstand Ladung",subtype:"text","model-value":a.configuration.jq_imported,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.jq_imported"))},{help:d(()=>[o(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"]),n(r,{title:"Abfrage für Zählerstand Entladung",subtype:"text","model-value":a.configuration.jq_exported,"onUpdate:modelValue":e[3]||(e[3]=t=>i.updateConfiguration(t,"configuration.jq_exported"))},{help:d(()=>[o(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"])])}const y=m(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/bat.vue"]]);export{y as default}; +import{_ as m,q as u,k as f,l as g,B as n,M as d,x as o,u as s,y as c}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceJsonBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(l,e=void 0){this.$emit("update:configuration",{value:l,object:e})}}},b={class:"device-json-bat"},v={class:"small"},w=s("br",null,null,-1);function h(l,e,a,j,q,i){const p=u("openwb-base-heading"),r=u("openwb-base-text-input");return f(),g("div",b,[n(p,null,{default:d(()=>[o(" Einstellungen für JSON Batteriespeicher "),s("span",v,"(Modul: "+c(l.$options.name)+")",1)]),_:1}),n(r,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":a.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.jq_power"))},{help:d(()=>[o(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. '),w,o(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt (positiv Ladung, negativ Entladung) darstellt. ")]),_:1},8,["model-value"]),n(r,{title:"Abfrage für Ladestand",subtype:"text",required:"","model-value":a.configuration.jq_soc,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.jq_soc"))},null,8,["model-value"]),n(r,{title:"Abfrage für Zählerstand Ladung",subtype:"text","model-value":a.configuration.jq_imported,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.jq_imported"))},{help:d(()=>[o(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"]),n(r,{title:"Abfrage für Zählerstand Entladung",subtype:"text","model-value":a.configuration.jq_exported,"onUpdate:modelValue":e[3]||(e[3]=t=>i.updateConfiguration(t,"configuration.jq_exported"))},{help:d(()=>[o(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"])])}const y=m(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/bat.vue"]]);export{y as default}; diff --git a/web/settings/assets/bat-7cd1f25f.js b/web/settings/assets/bat-d7f4793e.js similarity index 93% rename from web/settings/assets/bat-7cd1f25f.js rename to web/settings/assets/bat-d7f4793e.js index e7109e14f0..a606d0c259 100644 --- a/web/settings/assets/bat-7cd1f25f.js +++ b/web/settings/assets/bat-d7f4793e.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSiemensBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-siemens-bat"},f={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für Siemens Batteriespeicher "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/bat.vue"]]);export{x as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSiemensBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-siemens-bat"},f={class:"small"};function b(e,t,g,h,v,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für Siemens Batteriespeicher "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/bat.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat-bd24894e.js b/web/settings/assets/bat-de9f8571.js similarity index 86% rename from web/settings/assets/bat-bd24894e.js rename to web/settings/assets/bat-de9f8571.js index 002491f2a6..8f4df69fe3 100644 --- a/web/settings/assets/bat-bd24894e.js +++ b/web/settings/assets/bat-de9f8571.js @@ -1 +1 @@ -import{_ as c,q as t,k as p,l as u,B as o,M as s,x as a,u as d,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const l={name:"DeviceSunnyBoyBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},b={class:"device-sunnyboy-bat"},f={class:"small"};function m(e,n,y,g,h,v){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return p(),u("div",b,[o(i,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy/Tripower Batteriespeicher "),d("span",f,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/bat.vue"]]);export{$ as default}; +import{_ as c,q as t,k as p,l as u,B as o,M as s,x as a,u as d,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const l={name:"DeviceSunnyBoyBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},b={class:"device-sunnyboy-bat"},f={class:"small"};function m(e,n,y,g,h,v){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return p(),u("div",b,[o(i,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy/Tripower Batteriespeicher "),d("span",f,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/bat.vue"]]);export{$ as default}; diff --git a/web/settings/assets/bat-19e5d4a2.js b/web/settings/assets/bat-e0f34558.js similarity index 87% rename from web/settings/assets/bat-19e5d4a2.js rename to web/settings/assets/bat-e0f34558.js index fd2312c009..84662789bb 100644 --- a/web/settings/assets/bat-19e5d4a2.js +++ b/web/settings/assets/bat-e0f34558.js @@ -1 +1 @@ -import{_ as u,q as n,k as c,l as p,B as o,M as l,x as m,u as _,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceVictronBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-victron-bat"},g={class:"small"};function h(t,e,a,B,w,i){const s=n("openwb-base-heading"),r=n("openwb-base-number-input");return c(),p("div",v,[o(s,null,{default:l(()=>[m(" Einstellungen für Victron Batteriespeicher "),_("span",g,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(r,{title:"Modbus-ID",min:1,max:255,required:"","model-value":a.configuration.modbus_id,"onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const q=u(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/bat.vue"]]);export{q as default}; +import{_ as u,q as n,k as c,l as p,B as o,M as l,x as m,u as _,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceVictronBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-victron-bat"},g={class:"small"};function h(t,e,a,B,w,i){const s=n("openwb-base-heading"),r=n("openwb-base-number-input");return c(),p("div",v,[o(s,null,{default:l(()=>[m(" Einstellungen für Victron Batteriespeicher "),_("span",g,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(r,{title:"Modbus-ID",min:1,max:255,required:"","model-value":a.configuration.modbus_id,"onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const q=u(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/bat.vue"]]);export{q as default}; diff --git a/web/settings/assets/bat-65fb855c.js b/web/settings/assets/bat-e320a176.js similarity index 94% rename from web/settings/assets/bat-65fb855c.js rename to web/settings/assets/bat-e320a176.js index 5ec921c43a..305dd8b684 100644 --- a/web/settings/assets/bat-65fb855c.js +++ b/web/settings/assets/bat-e320a176.js @@ -1 +1 @@ -import{_ as u,q as c,k as _,l as m,B as n,M as o,x as t,u as e,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"DeviceMqttBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(a,d=void 0){this.$emit("update:configuration",{value:a,object:d})}}},b={class:"device-mqtt-bat"},f={class:"small"},g=e("br",null,null,-1),k=e("br",null,null,-1),B=e("span",{class:"text-info"},"-123",-1),x=e("br",null,null,-1),v=e("br",null,null,-1),I=e("span",{class:"text-info"},"123.45",-1),w=e("br",null,null,-1),W=e("br",null,null,-1),z=e("span",{class:"text-info"},"123.45",-1),N=e("br",null,null,-1),T=e("br",null,null,-1),q=e("span",{class:"text-info"},"95",-1);function y(a,d,i,D,E,F){const p=c("openwb-base-heading"),s=c("openwb-base-copy-to-clipboard"),r=c("openwb-base-alert");return _(),m("div",b,[n(p,null,{default:o(()=>[t(" Einstellungen für MQTT Batteriespeicher "),e("span",f,"(Modul: "+l(a.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:o(()=>[e("ul",null,[e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/power",1)]),_:1}),g,t(" Speicherleistung in Watt, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, positiv Ladung, negativ Entladung"),k,t(" Beispiel: "),B]),e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/imported",1)]),_:1}),x,t(" Geladene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),v,t(" Beispiel: "),I]),e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/exported",1)]),_:1}),w,t(" Entladene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),W,t(" Beispiel: "),z]),e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/soc",1)]),_:1}),N,t(" Ladestand des Speichers, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, gültige Werte 0 bis 100"),T,t(" Beispiel: "),q])])]),_:1})])}const Z=u(h,[["render",y],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/bat.vue"]]);export{Z as default}; +import{_ as u,q as c,k as _,l as m,B as n,M as o,x as t,u as e,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"DeviceMqttBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(a,d=void 0){this.$emit("update:configuration",{value:a,object:d})}}},b={class:"device-mqtt-bat"},f={class:"small"},g=e("br",null,null,-1),k=e("br",null,null,-1),B=e("span",{class:"text-info"},"-123",-1),x=e("br",null,null,-1),v=e("br",null,null,-1),I=e("span",{class:"text-info"},"123.45",-1),w=e("br",null,null,-1),W=e("br",null,null,-1),z=e("span",{class:"text-info"},"123.45",-1),N=e("br",null,null,-1),T=e("br",null,null,-1),q=e("span",{class:"text-info"},"95",-1);function y(a,d,i,D,E,F){const p=c("openwb-base-heading"),s=c("openwb-base-copy-to-clipboard"),r=c("openwb-base-alert");return _(),m("div",b,[n(p,null,{default:o(()=>[t(" Einstellungen für MQTT Batteriespeicher "),e("span",f,"(Modul: "+l(a.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:o(()=>[e("ul",null,[e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/power",1)]),_:1}),g,t(" Speicherleistung in Watt, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, positiv Ladung, negativ Entladung"),k,t(" Beispiel: "),B]),e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/imported",1)]),_:1}),x,t(" Geladene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),v,t(" Beispiel: "),I]),e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/exported",1)]),_:1}),w,t(" Entladene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),W,t(" Beispiel: "),z]),e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/soc",1)]),_:1}),N,t(" Ladestand des Speichers, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, gültige Werte 0 bis 100"),T,t(" Beispiel: "),q])])]),_:1})])}const Z=u(h,[["render",y],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/bat.vue"]]);export{Z as default}; diff --git a/web/settings/assets/bat-a96acd17.js b/web/settings/assets/bat-f409ca38.js similarity index 88% rename from web/settings/assets/bat-a96acd17.js rename to web/settings/assets/bat-f409ca38.js index 067e9b0a1a..8f3ac3f3c5 100644 --- a/web/settings/assets/bat-a96acd17.js +++ b/web/settings/assets/bat-f409ca38.js @@ -1 +1 @@ -import{_ as d,q as n,k as r,l as p,B as o,M as c,x as _,u as m,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceOpenwbEvukitBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-openwb-batkit-bat"},g={class:"small"};function w(t,e,a,h,B,i){const s=n("openwb-base-heading"),u=n("openwb-base-select-input");return r(),p("div",v,[o(s,null,{default:c(()=>[_(" Einstellungen für openWB EVU-Kit Batteriespeicher "),m("span",g,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>i.updateConfiguration(l,"configuration.version"))},null,8,["model-value"])])}const k=d(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_bat_kit/bat.vue"]]);export{k as default}; +import{_ as d,q as n,k as r,l as p,B as o,M as c,x as _,u as m,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceOpenwbEvukitBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-openwb-batkit-bat"},g={class:"small"};function w(t,e,a,h,B,i){const s=n("openwb-base-heading"),u=n("openwb-base-select-input");return r(),p("div",v,[o(s,null,{default:c(()=>[_(" Einstellungen für openWB EVU-Kit Batteriespeicher "),m("span",g,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>i.updateConfiguration(l,"configuration.version"))},null,8,["model-value"])])}const k=d(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_bat_kit/bat.vue"]]);export{k as default}; diff --git a/web/settings/assets/bat-f260a30b.js b/web/settings/assets/bat-f5c5005f.js similarity index 93% rename from web/settings/assets/bat-f260a30b.js rename to web/settings/assets/bat-f5c5005f.js index 4ff9ce0545..3086ec11dc 100644 --- a/web/settings/assets/bat-f260a30b.js +++ b/web/settings/assets/bat-f5c5005f.js @@ -1 +1 @@ -import{_ as c,q as n,k as p,l as d,B as o,M as a,x as s,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceBatterXBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-batterx-bat"},f={class:"small"};function m(e,t,g,h,v,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",b,[o(i,null,{default:a(()=>[s(" Einstellungen für BatterX Batteriespeicher "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/bat.vue"]]);export{$ as default}; +import{_ as c,q as n,k as p,l as d,B as o,M as a,x as s,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceBatterXBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-batterx-bat"},f={class:"small"};function m(e,t,g,h,v,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",b,[o(i,null,{default:a(()=>[s(" Einstellungen für BatterX Batteriespeicher "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/bat.vue"]]);export{$ as default}; diff --git a/web/settings/assets/bat-17332646.js b/web/settings/assets/bat-fdbcca07.js similarity index 93% rename from web/settings/assets/bat-17332646.js rename to web/settings/assets/bat-fdbcca07.js index 7ba30b4823..a1818ccb8d 100644 --- a/web/settings/assets/bat-17332646.js +++ b/web/settings/assets/bat-fdbcca07.js @@ -1 +1 @@ -import{_ as u,q as t,k as c,l,B as n,M as p,x as m,u as _,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceSolarEdgeBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-solaredge-bat"},v={class:"small"};function h(o,e,a,B,w,s){const i=t("openwb-base-heading"),d=t("openwb-base-number-input");return c(),l("div",g,[n(i,null,{default:p(()=>[m(" Einstellungen für SolarEdge Batteriespeicher "),_("span",v,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(d,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const E=u(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/bat.vue"]]);export{E as default}; +import{_ as u,q as t,k as c,l,B as n,M as p,x as m,u as _,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceSolarEdgeBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-solaredge-bat"},v={class:"small"};function h(o,e,a,B,w,s){const i=t("openwb-base-heading"),d=t("openwb-base-number-input");return c(),l("div",g,[n(i,null,{default:p(()=>[m(" Einstellungen für SolarEdge Batteriespeicher "),_("span",v,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(d,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const E=u(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/bat.vue"]]);export{E as default}; diff --git a/web/settings/assets/bat_api-9676fc68.js b/web/settings/assets/bat_api-628d475c.js similarity index 93% rename from web/settings/assets/bat_api-9676fc68.js rename to web/settings/assets/bat_api-628d475c.js index 4e631acb07..84d3fc73c3 100644 --- a/web/settings/assets/bat_api-9676fc68.js +++ b/web/settings/assets/bat_api-628d475c.js @@ -1 +1 @@ -import{_ as c,q as n,k as p,l as d,B as a,M as o,x as s,u,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const l={name:"DeviceVartaAPIBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-varta-bat"},m={class:"small"};function b(e,t,g,v,h,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[a(i,null,{default:o(()=>[s(" Einstellungen für Varta API Batteriespeicher "),u("span",m,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),a(r,{subtype:"info"},{default:o(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/bat_api.vue"]]);export{x as default}; +import{_ as c,q as n,k as p,l as d,B as a,M as o,x as s,u,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const l={name:"DeviceVartaAPIBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-varta-bat"},m={class:"small"};function b(e,t,g,v,h,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[a(i,null,{default:o(()=>[s(" Einstellungen für Varta API Batteriespeicher "),u("span",m,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),a(r,{subtype:"info"},{default:o(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/bat_api.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat_modbus-06361a6d.js b/web/settings/assets/bat_modbus-191bc394.js similarity index 93% rename from web/settings/assets/bat_modbus-06361a6d.js rename to web/settings/assets/bat_modbus-191bc394.js index 8d1c2a2068..526b81317d 100644 --- a/web/settings/assets/bat_modbus-06361a6d.js +++ b/web/settings/assets/bat_modbus-191bc394.js @@ -1 +1 @@ -import{_ as d,q as n,k as c,l as p,B as o,M as a,x as s,u,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const l={name:"DeviceVartaModbusBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-varta-bat"},m={class:"small"};function f(e,t,g,v,h,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return c(),p("div",b,[o(i,null,{default:a(()=>[s(" Einstellungen für Varta Modbus Batteriespeicher "),u("span",m,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=d(l,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/bat_modbus.vue"]]);export{x as default}; +import{_ as d,q as n,k as c,l as p,B as o,M as a,x as s,u,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const l={name:"DeviceVartaModbusBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-varta-bat"},m={class:"small"};function f(e,t,g,v,h,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return c(),p("div",b,[o(i,null,{default:a(()=>[s(" Einstellungen für Varta Modbus Batteriespeicher "),u("span",m,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=d(l,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/bat_modbus.vue"]]);export{x as default}; diff --git a/web/settings/assets/bat_smart_energy-dd1c7e67.js b/web/settings/assets/bat_smart_energy-e504f90d.js similarity index 87% rename from web/settings/assets/bat_smart_energy-dd1c7e67.js rename to web/settings/assets/bat_smart_energy-e504f90d.js index 3450295cf3..23e96a6d23 100644 --- a/web/settings/assets/bat_smart_energy-dd1c7e67.js +++ b/web/settings/assets/bat_smart_energy-e504f90d.js @@ -1 +1 @@ -import{_ as c,q as t,k as p,l as u,B as o,M as s,x as a,u as d,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const l={name:"DeviceSunnyBoyBatSmartEnergy",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-sunnyboy-bat-smart-energy"},b={class:"small"};function f(e,n,y,g,h,v){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return p(),u("div",m,[o(r,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy Smart Energy Batteriespeicher "),d("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const S=c(l,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/bat_smart_energy.vue"]]);export{S as default}; +import{_ as c,q as t,k as p,l as u,B as o,M as s,x as a,u as d,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const l={name:"DeviceSunnyBoyBatSmartEnergy",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-sunnyboy-bat-smart-energy"},b={class:"small"};function f(e,n,y,g,h,v){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return p(),u("div",m,[o(r,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy Smart Energy Batteriespeicher "),d("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const S=c(l,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/bat_smart_energy.vue"]]);export{S as default}; diff --git a/web/settings/assets/chargePoint-f3d3d9e7.js b/web/settings/assets/chargePoint-1a139f8b.js similarity index 84% rename from web/settings/assets/chargePoint-f3d3d9e7.js rename to web/settings/assets/chargePoint-1a139f8b.js index c811fb7bf7..93d66d70a2 100644 --- a/web/settings/assets/chargePoint-f3d3d9e7.js +++ b/web/settings/assets/chargePoint-1a139f8b.js @@ -1 +1 @@ -import{_ as a,q as s,k as p,l as u,B as d}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const c={name:"ChargePointOpenwbPro",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:o,object:e})}}},_={class:"charge-point-openwbpro"};function l(o,e,t,f,m,n){const i=s("openwb-base-text-input");return p(),u("div",_,[d(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>n.updateConfiguration(r,"ip_address"))},null,8,["model-value"])])}const v=a(c,[["render",l],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_pro/chargePoint.vue"]]);export{v as default}; +import{_ as a,q as s,k as p,l as u,B as d}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const c={name:"ChargePointOpenwbPro",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:o,object:e})}}},_={class:"charge-point-openwbpro"};function l(o,e,t,f,m,n){const i=s("openwb-base-text-input");return p(),u("div",_,[d(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>n.updateConfiguration(r,"ip_address"))},null,8,["model-value"])])}const v=a(c,[["render",l],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_pro/chargePoint.vue"]]);export{v as default}; diff --git a/web/settings/assets/chargePoint-aad3b434.js b/web/settings/assets/chargePoint-45e0c9d4.js similarity index 98% rename from web/settings/assets/chargePoint-aad3b434.js rename to web/settings/assets/chargePoint-45e0c9d4.js index 0b401788ce..b2fa6b4ca7 100644 --- a/web/settings/assets/chargePoint-aad3b434.js +++ b/web/settings/assets/chargePoint-45e0c9d4.js @@ -1 +1 @@ -import{_ as c,q as u,k as p,l as _,B as n,M as l,x as t,u as e,y as s}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"ChargePointMqtt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(a,r=void 0){this.$emit("update:configuration",{value:a,object:r})}}},g={class:"charge-point-mqtt"},f=e("br",null,null,-1),b=e("br",null,null,-1),m=e("br",null,null,-1),k=e("span",{class:"text-info"},"12.34",-1),B=e("br",null,null,-1),x=e("br",null,null,-1),v=e("span",{class:"text-info"},"1",-1),w=e("br",null,null,-1),W=e("br",null,null,-1),T=e("span",{class:"text-info"},"[6.78,6.89,6.94]",-1),P=e("br",null,null,-1),z=e("br",null,null,-1),L=e("span",{class:"text-info"},"123.45",-1),I=e("br",null,null,-1),y=e("br",null,null,-1),F=e("span",{class:"text-info"},"true",-1),N=e("br",null,null,-1),A=e("br",null,null,-1),Z=e("span",{class:"text-info"},"true",-1),D=e("br",null,null,-1),S=e("br",null,null,-1),E=e("span",{class:"text-info"},"3",-1),M=e("br",null,null,-1),q=e("br",null,null,-1),V=e("br",null,null,-1),C=e("span",{class:"text-info"},"123.45",-1),G=e("br",null,null,-1),j=e("br",null,null,-1),O=e("br",null,null,-1),J=e("span",{class:"text-info"},"123.45",-1),K=e("br",null,null,-1),Q=e("br",null,null,-1),H=e("br",null,null,-1),R=e("span",{class:"text-info"},"[230.12,231.08,232.54]",-1),U=e("br",null,null,-1),X=e("br",null,null,-1),Y=e("br",null,null,-1),$=e("span",{class:"text-info"},"[-0.87,0.96,1.0]",-1),ee=e("br",null,null,-1),te=e("br",null,null,-1),ne=e("span",{class:"text-info"},'"123654"',-1);function le(a,r,i,ie,oe,se){const d=u("openwb-base-alert"),o=u("openwb-base-copy-to-clipboard");return p(),_("div",g,[n(d,{subtype:"danger"},{default:l(()=>[t(" Dieser Ladepunkt-Typ darf nur in Kombination mit dem Simulator zur Fehleranalyse genutzt werden. Eine andere Verwendung ist laut den Nutzungsbedingungen untersagt. ")]),_:1}),n(d,{subtype:"info"},{default:l(()=>[t(" Das MQTT Modul stellt keine aktive Verbindung her, sondern erwartet, dass die Daten von speziellen Topics im Broker gelesen bzw. geschrieben werden."),f,t(" Alle Daten werden als gültiges JSON gesendet und auch so erwartet! Zahlen mit Nachkommastellen (Float) verwenden einen Punkt als Dezimaltrenner (internationales Format). "),e("ol",null,[e("li",null,[t(" von openWB gesendete Topics "),e("ul",null,[e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/chargepoint/"+s(i.chargePointId)+"/set/current",1)]),_:1}),b,t(" Sollwert des Ladestroms, mit Nachkommastellen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt)."),m,t(" Beispiel: "),k]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/chargepoint/"+s(i.chargePointId)+"/set/phases_to_use",1)]),_:1}),B,t(" Sollwert für die Anzahl Phasen als Ganzzahl (Integer). Mögliche Werte: 1 oder 3"),x,t(" Beispiel: "),v])])]),e("li",null,[t(" von openWB zwingend erwartete Topics "),e("ul",null,[e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/currents",1)]),_:1}),w,t(" Aktuelle Phasenströme des Ladepunktes, Array mit drei Zahlen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt)."),W,t(" Beispiel: "),T]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/power",1)]),_:1}),P,t(" Leistung in Watt, mit Nachkommastellen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt)."),z,t(" Beispiel: "),L]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/plug_state",1)]),_:1}),I,t(" Zeigt an, ob aktuell ein Fahrzeug angesteckt ist, Wahrheitswert (Bool)."),y,t(" Beispiel: "),F]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/charge_state",1)]),_:1}),N,t(" Zeigt an, ob ein Ladevorgang aktiv ist, Wahrheitswert (Bool)."),A,t(" Beispiel: "),Z]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/phases_in_use",1)]),_:1}),D,t(" Anzahl der Phasen, mit denen geladen wird, Ganzzahl (Integer). Mögliche Werte: 0 bis 3"),S,t(" Beispiel: "),E])])]),e("li",null,[t(" optionale Topics "),e("ul",null,[e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/imported",1)]),_:1}),M,t(" Geladene Energie in Wh, mit Nachkommastellen (Float), nur positiv"),q,t(" Wird dieses Topic nicht vom Ladepunkt gesendet, so wird intern ein Zählerstand anhand der Leistung simuliert."),V,t(" Beispiel: "),C]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/exported",1)]),_:1}),G,t(" Entladene Energie in Wh, mit Nachkommastellen (Float), nur positiv"),j,t(" Wird dieses Topic nicht vom Ladepunkt gesendet, so wird intern ein Zählerstand anhand der Leistung simuliert."),O,t(" Beispiel: "),J]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/voltages",1)]),_:1}),K,t(" Aktuelle Phasenspannungen des Ladepunktes, Array mit drei Zahlen (Float), nur positiv."),Q,t(" Die Spannungen werden nicht verarbeitet, sondern lediglich im Status angezeigt."),H,t(" Beispiel: "),R]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/power_factors",1)]),_:1}),U,t(" Aktuelle Leistungsfaktoren des Ladepunktes, Array mit drei Zahlen (Float), Wertebereich von -1 bis 1."),X,t(" Die Leistungsfaktoren werden nicht verarbeitet, sondern lediglich im Status angezeigt."),Y,t(" Beispiel: "),$]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/rfid_tag",1)]),_:1}),ee,t(" Eine Zeichenfolge, die einen eingelesenen Tag für openWB repräsentiert."),te,t(" Beispiel: "),ne])])])])]),_:1})])}const de=c(h,[["render",le],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/mqtt/chargePoint.vue"]]);export{de as default}; +import{_ as c,q as u,k as p,l as _,B as n,M as l,x as t,u as e,y as s}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"ChargePointMqtt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(a,r=void 0){this.$emit("update:configuration",{value:a,object:r})}}},g={class:"charge-point-mqtt"},f=e("br",null,null,-1),b=e("br",null,null,-1),m=e("br",null,null,-1),k=e("span",{class:"text-info"},"12.34",-1),B=e("br",null,null,-1),x=e("br",null,null,-1),v=e("span",{class:"text-info"},"1",-1),w=e("br",null,null,-1),W=e("br",null,null,-1),T=e("span",{class:"text-info"},"[6.78,6.89,6.94]",-1),P=e("br",null,null,-1),z=e("br",null,null,-1),L=e("span",{class:"text-info"},"123.45",-1),I=e("br",null,null,-1),y=e("br",null,null,-1),F=e("span",{class:"text-info"},"true",-1),N=e("br",null,null,-1),A=e("br",null,null,-1),Z=e("span",{class:"text-info"},"true",-1),D=e("br",null,null,-1),S=e("br",null,null,-1),E=e("span",{class:"text-info"},"3",-1),M=e("br",null,null,-1),q=e("br",null,null,-1),V=e("br",null,null,-1),C=e("span",{class:"text-info"},"123.45",-1),G=e("br",null,null,-1),j=e("br",null,null,-1),O=e("br",null,null,-1),J=e("span",{class:"text-info"},"123.45",-1),K=e("br",null,null,-1),Q=e("br",null,null,-1),H=e("br",null,null,-1),R=e("span",{class:"text-info"},"[230.12,231.08,232.54]",-1),U=e("br",null,null,-1),X=e("br",null,null,-1),Y=e("br",null,null,-1),$=e("span",{class:"text-info"},"[-0.87,0.96,1.0]",-1),ee=e("br",null,null,-1),te=e("br",null,null,-1),ne=e("span",{class:"text-info"},'"123654"',-1);function le(a,r,i,ie,oe,se){const d=u("openwb-base-alert"),o=u("openwb-base-copy-to-clipboard");return p(),_("div",g,[n(d,{subtype:"danger"},{default:l(()=>[t(" Dieser Ladepunkt-Typ darf nur in Kombination mit dem Simulator zur Fehleranalyse genutzt werden. Eine andere Verwendung ist laut den Nutzungsbedingungen untersagt. ")]),_:1}),n(d,{subtype:"info"},{default:l(()=>[t(" Das MQTT Modul stellt keine aktive Verbindung her, sondern erwartet, dass die Daten von speziellen Topics im Broker gelesen bzw. geschrieben werden."),f,t(" Alle Daten werden als gültiges JSON gesendet und auch so erwartet! Zahlen mit Nachkommastellen (Float) verwenden einen Punkt als Dezimaltrenner (internationales Format). "),e("ol",null,[e("li",null,[t(" von openWB gesendete Topics "),e("ul",null,[e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/chargepoint/"+s(i.chargePointId)+"/set/current",1)]),_:1}),b,t(" Sollwert des Ladestroms, mit Nachkommastellen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt)."),m,t(" Beispiel: "),k]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/chargepoint/"+s(i.chargePointId)+"/set/phases_to_use",1)]),_:1}),B,t(" Sollwert für die Anzahl Phasen als Ganzzahl (Integer). Mögliche Werte: 1 oder 3"),x,t(" Beispiel: "),v])])]),e("li",null,[t(" von openWB zwingend erwartete Topics "),e("ul",null,[e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/currents",1)]),_:1}),w,t(" Aktuelle Phasenströme des Ladepunktes, Array mit drei Zahlen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt)."),W,t(" Beispiel: "),T]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/power",1)]),_:1}),P,t(" Leistung in Watt, mit Nachkommastellen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt)."),z,t(" Beispiel: "),L]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/plug_state",1)]),_:1}),I,t(" Zeigt an, ob aktuell ein Fahrzeug angesteckt ist, Wahrheitswert (Bool)."),y,t(" Beispiel: "),F]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/charge_state",1)]),_:1}),N,t(" Zeigt an, ob ein Ladevorgang aktiv ist, Wahrheitswert (Bool)."),A,t(" Beispiel: "),Z]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/phases_in_use",1)]),_:1}),D,t(" Anzahl der Phasen, mit denen geladen wird, Ganzzahl (Integer). Mögliche Werte: 0 bis 3"),S,t(" Beispiel: "),E])])]),e("li",null,[t(" optionale Topics "),e("ul",null,[e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/imported",1)]),_:1}),M,t(" Geladene Energie in Wh, mit Nachkommastellen (Float), nur positiv"),q,t(" Wird dieses Topic nicht vom Ladepunkt gesendet, so wird intern ein Zählerstand anhand der Leistung simuliert."),V,t(" Beispiel: "),C]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/exported",1)]),_:1}),G,t(" Entladene Energie in Wh, mit Nachkommastellen (Float), nur positiv"),j,t(" Wird dieses Topic nicht vom Ladepunkt gesendet, so wird intern ein Zählerstand anhand der Leistung simuliert."),O,t(" Beispiel: "),J]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/voltages",1)]),_:1}),K,t(" Aktuelle Phasenspannungen des Ladepunktes, Array mit drei Zahlen (Float), nur positiv."),Q,t(" Die Spannungen werden nicht verarbeitet, sondern lediglich im Status angezeigt."),H,t(" Beispiel: "),R]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/power_factors",1)]),_:1}),U,t(" Aktuelle Leistungsfaktoren des Ladepunktes, Array mit drei Zahlen (Float), Wertebereich von -1 bis 1."),X,t(" Die Leistungsfaktoren werden nicht verarbeitet, sondern lediglich im Status angezeigt."),Y,t(" Beispiel: "),$]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/rfid_tag",1)]),_:1}),ee,t(" Eine Zeichenfolge, die einen eingelesenen Tag für openWB repräsentiert."),te,t(" Beispiel: "),ne])])])])]),_:1})])}const de=c(h,[["render",le],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/mqtt/chargePoint.vue"]]);export{de as default}; diff --git a/web/settings/assets/chargePoint-07bd6e84.js b/web/settings/assets/chargePoint-554e3f13.js similarity index 92% rename from web/settings/assets/chargePoint-07bd6e84.js rename to web/settings/assets/chargePoint-554e3f13.js index d506acca66..2319ef4e77 100644 --- a/web/settings/assets/chargePoint-07bd6e84.js +++ b/web/settings/assets/chargePoint-554e3f13.js @@ -1 +1 @@ -import{_ as d,q as a,k as u,l as c,B as l,z as m,M as p,x as f,A as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"ChargePointInternalOpenwb",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){e&&(e==="mode"&&(n=="series"||n=="socket")&&this.updateConfiguration(0,"duo_num"),e="configuration."+e),this.$emit("update:configuration",{value:n,object:e})}}},b={class:"charge-point-internalopenwb"};function B(n,e,t,h,w,i){const r=a("openwb-base-select-input"),s=a("openwb-base-number-input");return u(),c("div",b,[l(r,{title:"Bauart",notSelected:"Bitte auswählen",options:[{value:"series",text:"openWB series1/2 in den Varianten custom, standard & standard+"},{value:"duo",text:"openWB series1/2 Duo"},{value:"socket",text:"openWB series1/2 Buchse"}],"model-value":t.configuration.mode,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"mode"))},null,8,["model-value"]),t.configuration.mode=="duo"?(u(),m(s,{key:0,title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":t.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o-1,"duo_num"))},{help:p(()=>[f(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ')]),_:1},8,["model-value"])):_("",!0)])}const x=d(g,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/internal_openwb/chargePoint.vue"]]);export{x as default}; +import{_ as d,q as a,k as u,l as c,B as l,z as m,M as p,x as f,A as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"ChargePointInternalOpenwb",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){e&&(e==="mode"&&(n=="series"||n=="socket")&&this.updateConfiguration(0,"duo_num"),e="configuration."+e),this.$emit("update:configuration",{value:n,object:e})}}},b={class:"charge-point-internalopenwb"};function B(n,e,t,h,w,i){const r=a("openwb-base-select-input"),s=a("openwb-base-number-input");return u(),c("div",b,[l(r,{title:"Bauart",notSelected:"Bitte auswählen",options:[{value:"series",text:"openWB series1/2 in den Varianten custom, standard & standard+"},{value:"duo",text:"openWB series1/2 Duo"},{value:"socket",text:"openWB series1/2 Buchse"}],"model-value":t.configuration.mode,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"mode"))},null,8,["model-value"]),t.configuration.mode=="duo"?(u(),m(s,{key:0,title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":t.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o-1,"duo_num"))},{help:p(()=>[f(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ')]),_:1},8,["model-value"])):_("",!0)])}const x=d(g,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/internal_openwb/chargePoint.vue"]]);export{x as default}; diff --git a/web/settings/assets/chargePoint-f93ecbce.js b/web/settings/assets/chargePoint-91ec85da.js similarity index 95% rename from web/settings/assets/chargePoint-f93ecbce.js rename to web/settings/assets/chargePoint-91ec85da.js index 8a27e4726d..6fc1c0189d 100644 --- a/web/settings/assets/chargePoint-f93ecbce.js +++ b/web/settings/assets/chargePoint-91ec85da.js @@ -1 +1 @@ -import{_ as s,q as a,k as p,l,B as r,M as m,x as c}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"ChargePointExternalOpenwb",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:t,object:e})}}},f={class:"charge-point-externalopenwb"};function g(t,e,o,b,x,i){const u=a("openwb-base-text-input"),d=a("openwb-base-number-input");return p(),l("div",f,[r(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"ip_address"))},null,8,["model-value"]),r(d,{title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":o.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n-1,"duo_num"))},{help:m(()=>[c(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ')]),_:1},8,["model-value"])])}const v=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/external_openwb/chargePoint.vue"]]);export{v as default}; +import{_ as s,q as a,k as p,l,B as r,M as m,x as c}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"ChargePointExternalOpenwb",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:t,object:e})}}},f={class:"charge-point-externalopenwb"};function g(t,e,o,b,x,i){const u=a("openwb-base-text-input"),d=a("openwb-base-number-input");return p(),l("div",f,[r(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"ip_address"))},null,8,["model-value"]),r(d,{title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":o.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n-1,"duo_num"))},{help:m(()=>[c(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ')]),_:1},8,["model-value"])])}const v=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/external_openwb/chargePoint.vue"]]);export{v as default}; diff --git a/web/settings/assets/chargePoint-a5938a3a.js b/web/settings/assets/chargePoint-b34b8d34.js similarity index 94% rename from web/settings/assets/chargePoint-a5938a3a.js rename to web/settings/assets/chargePoint-b34b8d34.js index ade2fc87ff..83e00f7f6e 100644 --- a/web/settings/assets/chargePoint-a5938a3a.js +++ b/web/settings/assets/chargePoint-b34b8d34.js @@ -1 +1 @@ -import{_ as d,q as a,k as p,l as m,B as r,M as c,x as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"ChargePointSmartwb",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:n,object:e})}}},f={class:"charge-point-smartwb"};function g(n,e,o,b,w,i){const u=a("openwb-base-text-input"),s=a("openwb-base-number-input");return p(),m("div",f,[r(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"ip_address"))},null,8,["model-value"]),r(s,{title:"Wartezeit",required:"",min:2,max:10,unit:"s","model-value":o.configuration.timeout,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"timeout"))},{help:c(()=>[l(" Zeitangabe in Sekunden, für die auf eine Antwort des Ladepunktes gewartet wird. Wird diese Zeit überschritten, so wird von einer Kommunikationsstörung ausgegangen. ")]),_:1},8,["model-value"])])}const h=d(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/smartwb/chargePoint.vue"]]);export{h as default}; +import{_ as d,q as a,k as p,l as m,B as r,M as c,x as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"ChargePointSmartwb",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:n,object:e})}}},f={class:"charge-point-smartwb"};function g(n,e,o,b,w,i){const u=a("openwb-base-text-input"),s=a("openwb-base-number-input");return p(),m("div",f,[r(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"ip_address"))},null,8,["model-value"]),r(s,{title:"Wartezeit",required:"",min:2,max:10,unit:"s","model-value":o.configuration.timeout,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"timeout"))},{help:c(()=>[l(" Zeitangabe in Sekunden, für die auf eine Antwort des Ladepunktes gewartet wird. Wird diese Zeit überschritten, so wird von einer Kommunikationsstörung ausgegangen. ")]),_:1},8,["model-value"])])}const h=d(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/smartwb/chargePoint.vue"]]);export{h as default}; diff --git a/web/settings/assets/chargePoint-8de07428.js b/web/settings/assets/chargePoint-beb6e683.js similarity index 95% rename from web/settings/assets/chargePoint-8de07428.js rename to web/settings/assets/chargePoint-beb6e683.js index fc2a1d56e1..15707acd21 100644 --- a/web/settings/assets/chargePoint-8de07428.js +++ b/web/settings/assets/chargePoint-beb6e683.js @@ -1 +1 @@ -import{_ as s,q as a,k as p,l,B as r,M as m,x as c}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"ChargePointSatellite",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:t,object:e})}}},f={class:"charge-point-satellite"};function g(t,e,o,b,h,i){const u=a("openwb-base-text-input"),d=a("openwb-base-number-input");return p(),l("div",f,[r(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"ip_address"))},null,8,["model-value"]),r(d,{title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":o.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n-1,"duo_num"))},{help:m(()=>[c(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ')]),_:1},8,["model-value"])])}const x=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_series2_satellit/chargePoint.vue"]]);export{x as default}; +import{_ as s,q as a,k as p,l,B as r,M as m,x as c}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"ChargePointSatellite",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:t,object:e})}}},f={class:"charge-point-satellite"};function g(t,e,o,b,h,i){const u=a("openwb-base-text-input"),d=a("openwb-base-number-input");return p(),l("div",f,[r(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"ip_address"))},null,8,["model-value"]),r(d,{title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":o.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n-1,"duo_num"))},{help:m(()=>[c(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ')]),_:1},8,["model-value"])])}const x=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_series2_satellit/chargePoint.vue"]]);export{x as default}; diff --git a/web/settings/assets/commands-f95f5df1.js b/web/settings/assets/commands-dcca536b.js similarity index 96% rename from web/settings/assets/commands-f95f5df1.js rename to web/settings/assets/commands-dcca536b.js index 3ed0ba00bd..e4d990150d 100644 --- a/web/settings/assets/commands-f95f5df1.js +++ b/web/settings/assets/commands-dcca536b.js @@ -1 +1 @@ -import{_ as i,q as r,k as p,l as d,B as c,M as u,x as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"ChargePointCommandsOpenwbPro",props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{async triggerUpdate(){let s=new FormData;s.append("command","update"),s.append("data",'{"ip_address":"'+this.configuration.ip_address+'"}');const n="Die Aktualisierung der openWB Pro wird gestartet...";this.$root.postClientMessage(n,"info"),console.debug(location),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/charge_points/openwb_pro/commands.php",s,{timeout:5e3}).then(()=>{const e="Die Aktualisierung der openWB Pro wurde erfolgreich gestartet.";this.$root.postClientMessage(e,"success")}).catch(e=>{var t="Aktualisierung fehlgeschlagen!
";e.response?(console.error(e.response.status,e.response.data),t+=e.response.status+": "+e.response.data):e.request?(console.error(e.request),t+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",e.message),t+="Es ist ein unbekannter Fehler aufgetreten."),this.$root.postClientMessage(t,"danger")})}}},m={class:"charge-point-commands-openwbpro"};function h(s,n,e,t,_,o){const a=r("openwb-base-button-input");return p(),d("div",m,[c(a,{title:"Ladepunkt aktualisieren",buttonText:"Update anfordern",subtype:"success",disabled:e.configuration.ip_address==null,onButtonClicked:o.triggerUpdate},{help:u(()=>[l(" Mit diesem Befehl können Sie die Aktualisierung der openWB Pro anstoßen. Bitte beachten Sie, dass kein Fahrzeug angesteckt ist. ")]),_:1},8,["disabled","onButtonClicked"])])}const k=i(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_pro/commands.vue"]]);export{k as default}; +import{_ as i,q as r,k as p,l as d,B as c,M as u,x as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"ChargePointCommandsOpenwbPro",props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{async triggerUpdate(){let s=new FormData;s.append("command","update"),s.append("data",'{"ip_address":"'+this.configuration.ip_address+'"}');const n="Die Aktualisierung der openWB Pro wird gestartet...";this.$root.postClientMessage(n,"info"),console.debug(location),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/charge_points/openwb_pro/commands.php",s,{timeout:5e3}).then(()=>{const e="Die Aktualisierung der openWB Pro wurde erfolgreich gestartet.";this.$root.postClientMessage(e,"success")}).catch(e=>{var t="Aktualisierung fehlgeschlagen!
";e.response?(console.error(e.response.status,e.response.data),t+=e.response.status+": "+e.response.data):e.request?(console.error(e.request),t+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",e.message),t+="Es ist ein unbekannter Fehler aufgetreten."),this.$root.postClientMessage(t,"danger")})}}},m={class:"charge-point-commands-openwbpro"};function h(s,n,e,t,_,o){const a=r("openwb-base-button-input");return p(),d("div",m,[c(a,{title:"Ladepunkt aktualisieren",buttonText:"Update anfordern",subtype:"success",disabled:e.configuration.ip_address==null,onButtonClicked:o.triggerUpdate},{help:u(()=>[l(" Mit diesem Befehl können Sie die Aktualisierung der openWB Pro anstoßen. Bitte beachten Sie, dass kein Fahrzeug angesteckt ist. ")]),_:1},8,["disabled","onButtonClicked"])])}const k=i(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_pro/commands.vue"]]);export{k as default}; diff --git a/web/settings/assets/counter-99f5924e.js b/web/settings/assets/counter-06c26104.js similarity index 85% rename from web/settings/assets/counter-99f5924e.js rename to web/settings/assets/counter-06c26104.js index 8e1b53ea01..3580d40556 100644 --- a/web/settings/assets/counter-99f5924e.js +++ b/web/settings/assets/counter-06c26104.js @@ -1 +1 @@ -import{_ as c,q as n,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceRCTCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-rct-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für RCT Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/counter.vue"]]);export{x as default}; +import{_ as c,q as n,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceRCTCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-rct-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für RCT Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/counter.vue"]]);export{x as default}; diff --git a/web/settings/assets/counter-19537b8c.js b/web/settings/assets/counter-0767c5af.js similarity index 86% rename from web/settings/assets/counter-19537b8c.js rename to web/settings/assets/counter-0767c5af.js index ceab6b4514..bc0d8503c7 100644 --- a/web/settings/assets/counter-19537b8c.js +++ b/web/settings/assets/counter-0767c5af.js @@ -1 +1 @@ -import{_ as c,q as n,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSmartfoxCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-smartfox-counter"},m={class:"small"};function b(e,t,g,h,v,x){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Smartfox Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smartfox/counter.vue"]]);export{B as default}; +import{_ as c,q as n,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSmartfoxCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-smartfox-counter"},m={class:"small"};function b(e,t,g,h,v,x){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Smartfox Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smartfox/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-03425fdc.js b/web/settings/assets/counter-0939463a.js similarity index 86% rename from web/settings/assets/counter-03425fdc.js rename to web/settings/assets/counter-0939463a.js index 88a301c28e..f36793a6b2 100644 --- a/web/settings/assets/counter-03425fdc.js +++ b/web/settings/assets/counter-0939463a.js @@ -1 +1 @@ -import{_ as c,q as t,k as d,l as u,B as o,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSiemensCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-siemens-counter"},f={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für Siemens Zähler "),p("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/counter.vue"]]);export{B as default}; +import{_ as c,q as t,k as d,l as u,B as o,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSiemensCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-siemens-counter"},f={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für Siemens Zähler "),p("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-2265b8df.js b/web/settings/assets/counter-0c01a4c5.js similarity index 92% rename from web/settings/assets/counter-2265b8df.js rename to web/settings/assets/counter-0c01a4c5.js index 172618fcf4..e4652d77c2 100644 --- a/web/settings/assets/counter-2265b8df.js +++ b/web/settings/assets/counter-0c01a4c5.js @@ -1 +1 @@ -import{_ as c,q as r,k as m,l as g,B as t,M as u,x as d,u as f,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceVZLoggerCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-vzlogger-counter"},w={class:"small"};function h(o,e,i,Z,V,a){const s=r("openwb-base-heading"),p=r("openwb-base-alert"),l=r("openwb-base-number-input");return m(),g("div",v,[t(s,null,{default:u(()=>[d(" Einstellungen für VZLogger Zähler "),f("span",w,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),t(p,{subtype:"info"},{default:u(()=>[d(' Bitte auf der Shell ausführen: "curl -s IPdesVZLogger:Port | jq .|cat -n" Zählen, in welcher Zeile der gesuchte Wert steht. Bei der ersten Zeile mit 1 anfangen zu zählen. ')]),_:1}),t(l,{title:"Zeile der Leistung",required:"",min:0,"model-value":i.configuration.line_power,"onUpdate:modelValue":e[0]||(e[0]=n=>a.updateConfiguration(n,"configuration.line_power"))},null,8,["model-value"]),t(l,{title:"Zeile der Einspeisung",min:0,"model-value":i.configuration.line_exported,"onUpdate:modelValue":e[1]||(e[1]=n=>a.updateConfiguration(n,"configuration.line_exported"))},null,8,["model-value"]),t(l,{title:"Zeile des Bezugs",min:0,"model-value":i.configuration.line_imported,"onUpdate:modelValue":e[2]||(e[2]=n=>a.updateConfiguration(n,"configuration.line_imported"))},null,8,["model-value"])])}const C=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/counter.vue"]]);export{C as default}; +import{_ as c,q as r,k as m,l as g,B as t,M as u,x as d,u as f,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceVZLoggerCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-vzlogger-counter"},w={class:"small"};function h(o,e,i,Z,V,a){const s=r("openwb-base-heading"),p=r("openwb-base-alert"),l=r("openwb-base-number-input");return m(),g("div",v,[t(s,null,{default:u(()=>[d(" Einstellungen für VZLogger Zähler "),f("span",w,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),t(p,{subtype:"info"},{default:u(()=>[d(' Bitte auf der Shell ausführen: "curl -s IPdesVZLogger:Port | jq .|cat -n" Zählen, in welcher Zeile der gesuchte Wert steht. Bei der ersten Zeile mit 1 anfangen zu zählen. ')]),_:1}),t(l,{title:"Zeile der Leistung",required:"",min:0,"model-value":i.configuration.line_power,"onUpdate:modelValue":e[0]||(e[0]=n=>a.updateConfiguration(n,"configuration.line_power"))},null,8,["model-value"]),t(l,{title:"Zeile der Einspeisung",min:0,"model-value":i.configuration.line_exported,"onUpdate:modelValue":e[1]||(e[1]=n=>a.updateConfiguration(n,"configuration.line_exported"))},null,8,["model-value"]),t(l,{title:"Zeile des Bezugs",min:0,"model-value":i.configuration.line_imported,"onUpdate:modelValue":e[2]||(e[2]=n=>a.updateConfiguration(n,"configuration.line_imported"))},null,8,["model-value"])])}const C=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/counter.vue"]]);export{C as default}; diff --git a/web/settings/assets/counter-88acb637.js b/web/settings/assets/counter-125d4517.js similarity index 88% rename from web/settings/assets/counter-88acb637.js rename to web/settings/assets/counter-125d4517.js index 4f4139d6fa..a85f67fff2 100644 --- a/web/settings/assets/counter-88acb637.js +++ b/web/settings/assets/counter-125d4517.js @@ -1 +1 @@ -import{_ as c,q as t,k as l,l as _,B as o,M as a,x as s,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceEnphaseCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-enphase-counter"},h={class:"small"};function v(n,e,i,w,E,r){const u=t("openwb-base-heading"),d=t("openwb-base-number-input");return l(),_("div",g,[o(u,null,{default:a(()=>[s(" Einstellungen für Enphase Envoy / IQ Gateway Zähler "),m("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"EID",required:"","model-value":i.configuration.eid,"onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.eid"))},{help:a(()=>[s(' EID für "net-consumption" ')]),_:1},8,["model-value"])])}const B=c(b,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/counter.vue"]]);export{B as default}; +import{_ as c,q as t,k as l,l as _,B as o,M as a,x as s,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceEnphaseCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-enphase-counter"},h={class:"small"};function v(n,e,i,w,E,r){const u=t("openwb-base-heading"),d=t("openwb-base-number-input");return l(),_("div",g,[o(u,null,{default:a(()=>[s(" Einstellungen für Enphase Envoy / IQ Gateway Zähler "),m("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"EID",required:"","model-value":i.configuration.eid,"onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.eid"))},{help:a(()=>[s(' EID für "net-consumption" ')]),_:1},8,["model-value"])])}const B=c(b,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-d5ec2e1e.js b/web/settings/assets/counter-15097af0.js similarity index 88% rename from web/settings/assets/counter-d5ec2e1e.js rename to web/settings/assets/counter-15097af0.js index 2b23ad2f58..ef702e4951 100644 --- a/web/settings/assets/counter-d5ec2e1e.js +++ b/web/settings/assets/counter-15097af0.js @@ -1 +1 @@ -import{_ as d,q as t,k as p,l as c,B as n,M as l,x as _,u as f,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DevicePowerdogCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-powerdog-counter"},v={class:"small"};function w(o,e,u,h,x,a){const i=t("openwb-base-heading"),s=t("openwb-base-button-group-input");return p(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für Powerdog Zähler "),f("span",v,"(Modul: "+m(o.$options.name)+")",1)]),_:1}),n(s,{title:"Einbau-Position",buttons:[{buttonValue:!1,text:"Hausverbrauch"},{buttonValue:!0,text:"EVU-Punkt"}],"model-value":u.configuration.position_evu,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.position_evu"))},null,8,["model-value"])])}const C=d(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/counter.vue"]]);export{C as default}; +import{_ as d,q as t,k as p,l as c,B as n,M as l,x as _,u as f,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DevicePowerdogCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-powerdog-counter"},v={class:"small"};function w(o,e,u,h,x,a){const i=t("openwb-base-heading"),s=t("openwb-base-button-group-input");return p(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für Powerdog Zähler "),f("span",v,"(Modul: "+m(o.$options.name)+")",1)]),_:1}),n(s,{title:"Einbau-Position",buttons:[{buttonValue:!1,text:"Hausverbrauch"},{buttonValue:!0,text:"EVU-Punkt"}],"model-value":u.configuration.position_evu,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.position_evu"))},null,8,["model-value"])])}const C=d(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/counter.vue"]]);export{C as default}; diff --git a/web/settings/assets/counter-eea9237a.js b/web/settings/assets/counter-17eb014c.js similarity index 85% rename from web/settings/assets/counter-eea9237a.js rename to web/settings/assets/counter-17eb014c.js index dd603ad473..71d78af48b 100644 --- a/web/settings/assets/counter-eea9237a.js +++ b/web/settings/assets/counter-17eb014c.js @@ -1 +1 @@ -import{_ as c,q as t,k as u,l as p,B as n,M as s,x as a,u as d,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceKostalPikoCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-kostalpiko-counter"},m={class:"small"};function b(e,o,h,v,g,k){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return u(),p("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für Kostal Piko Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Hausverbrauchszähler ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko/counter.vue"]]);export{x as default}; +import{_ as c,q as t,k as u,l as p,B as n,M as s,x as a,u as d,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceKostalPikoCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-kostalpiko-counter"},m={class:"small"};function b(e,o,h,v,g,k){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return u(),p("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für Kostal Piko Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Hausverbrauchszähler ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko/counter.vue"]]);export{x as default}; diff --git a/web/settings/assets/counter-6e3c2d16.js b/web/settings/assets/counter-22aa0b64.js similarity index 91% rename from web/settings/assets/counter-6e3c2d16.js rename to web/settings/assets/counter-22aa0b64.js index 27705a4524..9d13650ae6 100644 --- a/web/settings/assets/counter-6e3c2d16.js +++ b/web/settings/assets/counter-22aa0b64.js @@ -1 +1 @@ -import{_ as m,q as a,k as p,l as _,B as n,M as u,x as d,u as f,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceSolarEdgeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-solaredge-counter"},h={class:"small"};function w(o,e,i,x,C,r){const l=a("openwb-base-heading"),c=a("openwb-base-alert"),s=a("openwb-base-number-input");return p(),_("div",v,[n(l,null,{default:u(()=>[d(" Einstellungen für SolarEdge Zähler "),f("span",h,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(c,{subtype:"info"},{default:u(()=>[d(" Hierfür muss ein EVU-Zähler am SolarEdge Wechselrichter per Modbus angebunden sein. Der Zähler muss an erster Position im Wechselrichter konfiguriert sein. ")]),_:1}),n(s,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=t=>r.updateConfiguration(t,"configuration.modbus_id"))},null,8,["model-value"]),n(s,{title:"Meter ID","model-value":i.configuration.meter_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=t=>r.updateConfiguration(t,"configuration.meter_id"))},null,8,["model-value"])])}const B=m(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/counter.vue"]]);export{B as default}; +import{_ as m,q as a,k as p,l as _,B as n,M as u,x as d,u as f,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceSolarEdgeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-solaredge-counter"},h={class:"small"};function w(o,e,i,x,C,r){const l=a("openwb-base-heading"),c=a("openwb-base-alert"),s=a("openwb-base-number-input");return p(),_("div",v,[n(l,null,{default:u(()=>[d(" Einstellungen für SolarEdge Zähler "),f("span",h,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(c,{subtype:"info"},{default:u(()=>[d(" Hierfür muss ein EVU-Zähler am SolarEdge Wechselrichter per Modbus angebunden sein. Der Zähler muss an erster Position im Wechselrichter konfiguriert sein. ")]),_:1}),n(s,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=t=>r.updateConfiguration(t,"configuration.modbus_id"))},null,8,["model-value"]),n(s,{title:"Meter ID","model-value":i.configuration.meter_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=t=>r.updateConfiguration(t,"configuration.meter_id"))},null,8,["model-value"])])}const B=m(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-62bc3b79.js b/web/settings/assets/counter-22cdd087.js similarity index 86% rename from web/settings/assets/counter-62bc3b79.js rename to web/settings/assets/counter-22cdd087.js index e6875bc0ee..f5226c78a5 100644 --- a/web/settings/assets/counter-62bc3b79.js +++ b/web/settings/assets/counter-22cdd087.js @@ -1 +1 @@ -import{_ as c,q as n,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSolarViewCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solar-view-counter"},m={class:"small"};function b(e,t,g,v,w,h){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für SolarView Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/counter.vue"]]);export{B as default}; +import{_ as c,q as n,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSolarViewCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solar-view-counter"},m={class:"small"};function b(e,t,g,v,w,h){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für SolarView Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-9b10ae70.js b/web/settings/assets/counter-2539a836.js similarity index 90% rename from web/settings/assets/counter-9b10ae70.js rename to web/settings/assets/counter-2539a836.js index 4a9b5b6023..4107a3b4c2 100644 --- a/web/settings/assets/counter-9b10ae70.js +++ b/web/settings/assets/counter-2539a836.js @@ -1 +1 @@ -import{_ as l,q as t,k as p,l as m,B as o,M as i,x as r,u as _,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceVirtualCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"device-virtual-counter"},b={class:"small"};function v(n,e,a,w,x,s){const u=t("openwb-base-heading"),d=t("openwb-base-number-input");return p(),m("div",h,[o(u,null,{default:i(()=>[r(" Einstellungen für virtuelle Zähler "),_("span",b,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"Zusätzlicher Verbrauch",min:0,step:.05,unit:"kW",required:"","model-value":a.configuration.external_consumption/1e3,"onUpdate:modelValue":e[0]||(e[0]=c=>s.updateConfiguration(c*1e3,"configuration.external_consumption"))},{help:i(()=>[r(" Die hier angegebene Leistung wird pauschal zu dem Leistungen der hinter dem Zähler liegenden Komponenten addiert. Damit lässt sich z. B. eine Reserve für nicht erfasste Verbraucher einstellen. ")]),_:1},8,["model-value"])])}const C=l(g,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/virtual/counter.vue"]]);export{C as default}; +import{_ as l,q as t,k as p,l as m,B as o,M as i,x as r,u as _,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceVirtualCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"device-virtual-counter"},b={class:"small"};function v(n,e,a,w,x,s){const u=t("openwb-base-heading"),d=t("openwb-base-number-input");return p(),m("div",h,[o(u,null,{default:i(()=>[r(" Einstellungen für virtuelle Zähler "),_("span",b,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"Zusätzlicher Verbrauch",min:0,step:.05,unit:"kW",required:"","model-value":a.configuration.external_consumption/1e3,"onUpdate:modelValue":e[0]||(e[0]=c=>s.updateConfiguration(c*1e3,"configuration.external_consumption"))},{help:i(()=>[r(" Die hier angegebene Leistung wird pauschal zu dem Leistungen der hinter dem Zähler liegenden Komponenten addiert. Damit lässt sich z. B. eine Reserve für nicht erfasste Verbraucher einstellen. ")]),_:1},8,["model-value"])])}const C=l(g,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/virtual/counter.vue"]]);export{C as default}; diff --git a/web/settings/assets/counter-269eaeb4.js b/web/settings/assets/counter-2d0bb50e.js similarity index 89% rename from web/settings/assets/counter-269eaeb4.js rename to web/settings/assets/counter-2d0bb50e.js index 67c3cba781..e625202c3f 100644 --- a/web/settings/assets/counter-269eaeb4.js +++ b/web/settings/assets/counter-2d0bb50e.js @@ -1 +1 @@ -import{_ as m,q as o,k as p,l as _,B as a,M as i,x as t,u as r,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceSmahmCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-smahm-counter"},h={class:"small"},v=r("br",null,null,-1);function M(n,e,s,w,B,u){const d=o("openwb-base-heading"),c=o("openwb-base-number-input");return p(),_("div",g,[a(d,null,{default:i(()=>[t(" Einstellungen für SMA-HM/EM Zähler "),r("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),a(c,{title:"Seriennummer","model-value":s.configuration.serials,"onUpdate:modelValue":e[0]||(e[0]=l=>u.updateConfiguration(l,"configuration.serials"))},{help:i(()=>[t(" Eine Seriennummer ist nur erforderlich, wenn mehrere SMA HomeManager in Betrieb sind."),v,t(" Funktioniert auch mit Energy Meter statt Home Manager. ")]),_:1},8,["model-value"])])}const C=m(b,[["render",M],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_shm/counter.vue"]]);export{C as default}; +import{_ as m,q as o,k as p,l as _,B as a,M as i,x as t,u as r,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceSmahmCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-smahm-counter"},h={class:"small"},v=r("br",null,null,-1);function M(n,e,s,w,B,u){const d=o("openwb-base-heading"),c=o("openwb-base-number-input");return p(),_("div",g,[a(d,null,{default:i(()=>[t(" Einstellungen für SMA-HM/EM Zähler "),r("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),a(c,{title:"Seriennummer","model-value":s.configuration.serials,"onUpdate:modelValue":e[0]||(e[0]=l=>u.updateConfiguration(l,"configuration.serials"))},{help:i(()=>[t(" Eine Seriennummer ist nur erforderlich, wenn mehrere SMA HomeManager in Betrieb sind."),v,t(" Funktioniert auch mit Energy Meter statt Home Manager. ")]),_:1},8,["model-value"])])}const C=m(b,[["render",M],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_shm/counter.vue"]]);export{C as default}; diff --git a/web/settings/assets/counter-e7425fea.js b/web/settings/assets/counter-34f1b64f.js similarity index 96% rename from web/settings/assets/counter-e7425fea.js rename to web/settings/assets/counter-34f1b64f.js index f402a9ac5f..3754f26f6c 100644 --- a/web/settings/assets/counter-e7425fea.js +++ b/web/settings/assets/counter-34f1b64f.js @@ -1 +1 @@ -import{_ as d,q as c,k as _,l as m,B as n,M as o,x as t,u as e,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"DeviceMqttCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(a,u=void 0){this.$emit("update:configuration",{value:a,object:u})}}},f={class:"device-mqtt-counter"},g={class:"small"},b=e("br",null,null,-1),B=e("br",null,null,-1),k=e("span",{class:"text-info"},"-123.45",-1),x=e("br",null,null,-1),v=e("br",null,null,-1),z=e("span",{class:"text-info"},"123.45",-1),I=e("br",null,null,-1),W=e("br",null,null,-1),N=e("span",{class:"text-info"},"123.45",-1),w=e("br",null,null,-1),y=e("br",null,null,-1),T=e("span",{class:"text-info"},"50.12",-1),q=e("br",null,null,-1),F=e("br",null,null,-1),P=e("span",{class:"text-info"},"[1.2,2.3,-2.1]",-1),E=e("br",null,null,-1),j=e("br",null,null,-1),D=e("span",{class:"text-info"},"[222.2,223.3,222.3]",-1),A=e("br",null,null,-1),Z=e("br",null,null,-1),C=e("span",{class:"text-info"},"[12.3,23.4,-12.3]",-1),M=e("br",null,null,-1),V=e("br",null,null,-1),S=e("span",{class:"text-info"},"[0.95,0.96,-0.95]",-1);function L(a,u,s,H,O,Q){const r=c("openwb-base-heading"),i=c("openwb-base-copy-to-clipboard"),p=c("openwb-base-alert");return _(),m("div",f,[n(r,null,{default:o(()=>[t(" Einstellungen für MQTT Zähler "),e("span",g,"(Modul: "+l(a.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:o(()=>[e("ul",null,[e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/power",1)]),_:1}),b,t(" Bezugsleistung in Watt, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, positiv Bezug, negativ Einspeisung"),B,t(" Beispiel: "),k]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/imported",1)]),_:1}),x,t(" Bezogene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),v,t(" Beispiel: "),z]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/exported",1)]),_:1}),I,t(" Eingespeiste Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),W,t(" Beispiel: "),N]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/frequency",1)]),_:1}),w,t(" Netzfrequenz in Hz, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen"),y,t(" Beispiel: "),T]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/currents",1)]),_:1}),q,t(" Array mit den Strömen je Phase in Ampere, mit Nachkommastellen (Float), positiv Bezug, negativ Einspeisung"),F,t(" Beispiel: "),P]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/voltages",1)]),_:1}),E,t(" Array mit den Spannungen je Phase in Volt, mit Nachkommastellen (Float)"),j,t(" Beispiel: "),D]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/powers",1)]),_:1}),A,t(" Array mit den Leistungen je Phase in Watt, mit Nachkommastellen (Float)"),Z,t(" Beispiel: "),C]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/power_factors",1)]),_:1}),M,t(" Array mit den Leistungsfaktoren je Phase, mit Nachkommastellen (Float), Wertebereich -1 bis 1"),V,t(" Beispiel: "),S])])]),_:1})])}const K=d(h,[["render",L],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/counter.vue"]]);export{K as default}; +import{_ as d,q as c,k as _,l as m,B as n,M as o,x as t,u as e,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"DeviceMqttCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(a,u=void 0){this.$emit("update:configuration",{value:a,object:u})}}},f={class:"device-mqtt-counter"},g={class:"small"},b=e("br",null,null,-1),B=e("br",null,null,-1),k=e("span",{class:"text-info"},"-123.45",-1),x=e("br",null,null,-1),v=e("br",null,null,-1),z=e("span",{class:"text-info"},"123.45",-1),I=e("br",null,null,-1),W=e("br",null,null,-1),N=e("span",{class:"text-info"},"123.45",-1),w=e("br",null,null,-1),y=e("br",null,null,-1),T=e("span",{class:"text-info"},"50.12",-1),q=e("br",null,null,-1),F=e("br",null,null,-1),P=e("span",{class:"text-info"},"[1.2,2.3,-2.1]",-1),E=e("br",null,null,-1),j=e("br",null,null,-1),D=e("span",{class:"text-info"},"[222.2,223.3,222.3]",-1),A=e("br",null,null,-1),Z=e("br",null,null,-1),C=e("span",{class:"text-info"},"[12.3,23.4,-12.3]",-1),M=e("br",null,null,-1),V=e("br",null,null,-1),S=e("span",{class:"text-info"},"[0.95,0.96,-0.95]",-1);function L(a,u,s,H,O,Q){const r=c("openwb-base-heading"),i=c("openwb-base-copy-to-clipboard"),p=c("openwb-base-alert");return _(),m("div",f,[n(r,null,{default:o(()=>[t(" Einstellungen für MQTT Zähler "),e("span",g,"(Modul: "+l(a.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:o(()=>[e("ul",null,[e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/power",1)]),_:1}),b,t(" Bezugsleistung in Watt, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, positiv Bezug, negativ Einspeisung"),B,t(" Beispiel: "),k]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/imported",1)]),_:1}),x,t(" Bezogene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),v,t(" Beispiel: "),z]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/exported",1)]),_:1}),I,t(" Eingespeiste Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),W,t(" Beispiel: "),N]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/frequency",1)]),_:1}),w,t(" Netzfrequenz in Hz, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen"),y,t(" Beispiel: "),T]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/currents",1)]),_:1}),q,t(" Array mit den Strömen je Phase in Ampere, mit Nachkommastellen (Float), positiv Bezug, negativ Einspeisung"),F,t(" Beispiel: "),P]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/voltages",1)]),_:1}),E,t(" Array mit den Spannungen je Phase in Volt, mit Nachkommastellen (Float)"),j,t(" Beispiel: "),D]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/powers",1)]),_:1}),A,t(" Array mit den Leistungen je Phase in Watt, mit Nachkommastellen (Float)"),Z,t(" Beispiel: "),C]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/power_factors",1)]),_:1}),M,t(" Array mit den Leistungsfaktoren je Phase, mit Nachkommastellen (Float), Wertebereich -1 bis 1"),V,t(" Beispiel: "),S])])]),_:1})])}const K=d(h,[["render",L],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/counter.vue"]]);export{K as default}; diff --git a/web/settings/assets/counter-a7be89d0.js b/web/settings/assets/counter-3a478d3f.js similarity index 86% rename from web/settings/assets/counter-a7be89d0.js rename to web/settings/assets/counter-3a478d3f.js index 1f38030ff8..f97a062360 100644 --- a/web/settings/assets/counter-a7be89d0.js +++ b/web/settings/assets/counter-3a478d3f.js @@ -1 +1 @@ -import{_ as c,q as n,k as u,l as d,B as o,M as a,x as s,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceVartaCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-varta-counter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Varta Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/counter.vue"]]);export{B as default}; +import{_ as c,q as n,k as u,l as d,B as o,M as a,x as s,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceVartaCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-varta-counter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Varta Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-f297e0d8.js b/web/settings/assets/counter-3adcde7c.js similarity index 90% rename from web/settings/assets/counter-f297e0d8.js rename to web/settings/assets/counter-3adcde7c.js index ec027b82d6..6eaf2e90ef 100644 --- a/web/settings/assets/counter-f297e0d8.js +++ b/web/settings/assets/counter-3adcde7c.js @@ -1 +1 @@ -import{_ as l,q as o,k as m,l as _,B as r,M as i,x as n,u as s,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceDiscovergyCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-discovergy-counter"},b={class:"small"},h=s("a",{href:"https://api.discovergy.com/public/v1/meters",target:"_blank",rel:"noopener noreferrer"}," https://api.discovergy.com/public/v1/meters ",-1);function w(t,e,a,y,x,d){const u=o("openwb-base-heading"),c=o("openwb-base-text-input");return m(),_("div",v,[r(u,null,{default:i(()=>[n(" Einstellungen für Discovergy Zähler "),s("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),r(c,{title:"Meter-ID",required:"","model-value":a.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.meter_id"))},{help:i(()=>[n(" Um die ID herauszufinden mit dem Browser die Adresse "),h,n(" aufrufen und dort Benutzername und Passwort eingeben. Hier wird nun u.a. die ID des Zählers angezeigt. ")]),_:1},8,["model-value"])])}const C=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/counter.vue"]]);export{C as default}; +import{_ as l,q as o,k as m,l as _,B as r,M as i,x as n,u as s,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceDiscovergyCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-discovergy-counter"},b={class:"small"},h=s("a",{href:"https://api.discovergy.com/public/v1/meters",target:"_blank",rel:"noopener noreferrer"}," https://api.discovergy.com/public/v1/meters ",-1);function w(t,e,a,y,x,d){const u=o("openwb-base-heading"),c=o("openwb-base-text-input");return m(),_("div",v,[r(u,null,{default:i(()=>[n(" Einstellungen für Discovergy Zähler "),s("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),r(c,{title:"Meter-ID",required:"","model-value":a.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.meter_id"))},{help:i(()=>[n(" Um die ID herauszufinden mit dem Browser die Adresse "),h,n(" aufrufen und dort Benutzername und Passwort eingeben. Hier wird nun u.a. die ID des Zählers angezeigt. ")]),_:1},8,["model-value"])])}const C=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/counter.vue"]]);export{C as default}; diff --git a/web/settings/assets/counter-9983166e.js b/web/settings/assets/counter-41510a72.js similarity index 90% rename from web/settings/assets/counter-9983166e.js rename to web/settings/assets/counter-41510a72.js index 3fe51b05bc..cc7b738e24 100644 --- a/web/settings/assets/counter-9983166e.js +++ b/web/settings/assets/counter-41510a72.js @@ -1 +1 @@ -import{_ as c,q as t,k as p,l as m,B as o,M as i,x as s,u as _,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceSungrowCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},b={class:"device-sungrow-counter"},v={class:"small"};function h(n,e,a,w,S,r){const u=t("openwb-base-heading"),d=t("openwb-base-select-input");return p(),m("div",b,[o(u,null,{default:i(()=>[s(" Einstellungen für Sungrow Zähler "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"Version",options:[{value:0,text:"SH (Hybrid)"},{value:1,text:"SG (kein Hybrid)"},{value:2,text:"SG (kein Hybrid) mit WiNet Dongle"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>r.updateConfiguration(l,"configuration.version"))},{help:i(()=>[s(" Die Variante SH ist nur über die LAN-IP mit openWB nutzbar. Hierzu hinter dem WiNet-S Dongle den Lan Anschluss nutzen. Den WiNet-S Dongle zusätzlich ins Heimnetz (per Lan oder Wlan) einbinden, um ISolarCloud nutzen zu können. ")]),_:1},8,["options","model-value"])])}const D=c(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/counter.vue"]]);export{D as default}; +import{_ as c,q as t,k as p,l as m,B as o,M as i,x as s,u as _,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceSungrowCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},b={class:"device-sungrow-counter"},v={class:"small"};function h(n,e,a,w,S,r){const u=t("openwb-base-heading"),d=t("openwb-base-select-input");return p(),m("div",b,[o(u,null,{default:i(()=>[s(" Einstellungen für Sungrow Zähler "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"Version",options:[{value:0,text:"SH (Hybrid)"},{value:1,text:"SG (kein Hybrid)"},{value:2,text:"SG (kein Hybrid) mit WiNet Dongle"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>r.updateConfiguration(l,"configuration.version"))},{help:i(()=>[s(" Die Variante SH ist nur über die LAN-IP mit openWB nutzbar. Hierzu hinter dem WiNet-S Dongle den Lan Anschluss nutzen. Den WiNet-S Dongle zusätzlich ins Heimnetz (per Lan oder Wlan) einbinden, um ISolarCloud nutzen zu können. ")]),_:1},8,["options","model-value"])])}const D=c(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/counter.vue"]]);export{D as default}; diff --git a/web/settings/assets/counter-9eee8339.js b/web/settings/assets/counter-435e72ec.js similarity index 90% rename from web/settings/assets/counter-9eee8339.js rename to web/settings/assets/counter-435e72ec.js index 01a8e575e4..750dc16459 100644 --- a/web/settings/assets/counter-9eee8339.js +++ b/web/settings/assets/counter-435e72ec.js @@ -1 +1 @@ -import{_ as l,q as o,k as c,l as p,B as u,M as m,x as _,u as b,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceVictronCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-victron-counter"},V={class:"small"};function w(t,e,i,x,C,a){const r=o("openwb-base-heading"),s=o("openwb-base-number-input"),d=o("openwb-base-button-group-input");return c(),p("div",v,[u(r,null,{default:m(()=>[_(" Einstellungen für Victron Zähler "),b("span",V,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),u(s,{title:"Modbus-ID",min:1,max:255,required:"","model-value":i.configuration.modbus_id,"onUpdate:modelValue":e[0]||(e[0]=n=>a.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),u(d,{title:"Messgerät",buttons:[{buttonValue:!1,text:"AC-In Victron GX"},{buttonValue:!0,text:"Energy Meter"}],"model-value":i.configuration.energy_meter,"onUpdate:modelValue":e[1]||(e[1]=n=>a.updateConfiguration(n,"configuration.energy_meter"))},null,8,["model-value"])])}const B=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/counter.vue"]]);export{B as default}; +import{_ as l,q as o,k as c,l as p,B as u,M as m,x as _,u as b,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceVictronCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-victron-counter"},V={class:"small"};function w(t,e,i,x,C,a){const r=o("openwb-base-heading"),s=o("openwb-base-number-input"),d=o("openwb-base-button-group-input");return c(),p("div",v,[u(r,null,{default:m(()=>[_(" Einstellungen für Victron Zähler "),b("span",V,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),u(s,{title:"Modbus-ID",min:1,max:255,required:"","model-value":i.configuration.modbus_id,"onUpdate:modelValue":e[0]||(e[0]=n=>a.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),u(d,{title:"Messgerät",buttons:[{buttonValue:!1,text:"AC-In Victron GX"},{buttonValue:!0,text:"Energy Meter"}],"model-value":i.configuration.energy_meter,"onUpdate:modelValue":e[1]||(e[1]=n=>a.updateConfiguration(n,"configuration.energy_meter"))},null,8,["model-value"])])}const B=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-43df20c3.js b/web/settings/assets/counter-4be7364f.js similarity index 86% rename from web/settings/assets/counter-43df20c3.js rename to web/settings/assets/counter-4be7364f.js index 956f21d3e0..7baf6ebea0 100644 --- a/web/settings/assets/counter-43df20c3.js +++ b/web/settings/assets/counter-4be7364f.js @@ -1 +1 @@ -import{_ as c,q as n,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceHuaweiCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-huawei-counter"},m={class:"small"};function b(e,t,h,g,w,v){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Huawei Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/counter.vue"]]);export{B as default}; +import{_ as c,q as n,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceHuaweiCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-huawei-counter"},m={class:"small"};function b(e,t,h,g,w,v){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Huawei Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-2a8037d9.js b/web/settings/assets/counter-4ed52ce3.js similarity index 86% rename from web/settings/assets/counter-2a8037d9.js rename to web/settings/assets/counter-4ed52ce3.js index 762819fd4f..0d8194d088 100644 --- a/web/settings/assets/counter-2a8037d9.js +++ b/web/settings/assets/counter-4ed52ce3.js @@ -1 +1 @@ -import{_ as c,q as t,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSiemensSentronCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-siemens-sentron-counter"},f={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return u(),d("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für Siemens Sentron Zähler "),p("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens_sentron/counter.vue"]]);export{B as default}; +import{_ as c,q as t,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSiemensSentronCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-siemens-sentron-counter"},f={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return u(),d("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für Siemens Sentron Zähler "),p("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens_sentron/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-212856fb.js b/web/settings/assets/counter-502ba4ea.js similarity index 89% rename from web/settings/assets/counter-212856fb.js rename to web/settings/assets/counter-502ba4ea.js index 08a0abce9f..3fe6a2a9b4 100644 --- a/web/settings/assets/counter-212856fb.js +++ b/web/settings/assets/counter-502ba4ea.js @@ -1 +1 @@ -import{_ as u,q as n,k as l,l as d,B as r,M as s,x as t,u as a,y as p}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceKostalPlenticoreCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-kostalplenticore-counter"},h={class:"small"},m=a("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Zähler",target:"_blank",rel:"noopener noreferrer"},"Wiki für Hausverbrauchs-Zähler",-1);function b(e,o,g,v,w,k){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return l(),d("div",f,[r(i,null,{default:s(()=>[t(" Einstellungen für Kostal Plenticore Zähler "),a("span",h,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),r(c,{subtype:"info"},{default:s(()=>[t(" Wenn der Zähler im Hausverbrauchs-Zweig installiert ist, muss die Hierarchie wie im "),m,t(" beschrieben, angeordnet werden. ")]),_:1})])}const x=u(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/counter.vue"]]);export{x as default}; +import{_ as u,q as n,k as l,l as d,B as r,M as s,x as t,u as a,y as p}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceKostalPlenticoreCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-kostalplenticore-counter"},h={class:"small"},m=a("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Zähler",target:"_blank",rel:"noopener noreferrer"},"Wiki für Hausverbrauchs-Zähler",-1);function b(e,o,g,v,w,k){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return l(),d("div",f,[r(i,null,{default:s(()=>[t(" Einstellungen für Kostal Plenticore Zähler "),a("span",h,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),r(c,{subtype:"info"},{default:s(()=>[t(" Wenn der Zähler im Hausverbrauchs-Zweig installiert ist, muss die Hierarchie wie im "),m,t(" beschrieben, angeordnet werden. ")]),_:1})])}const x=u(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/counter.vue"]]);export{x as default}; diff --git a/web/settings/assets/counter-b1adda4a.js b/web/settings/assets/counter-55e31718.js similarity index 97% rename from web/settings/assets/counter-b1adda4a.js rename to web/settings/assets/counter-55e31718.js index 76ef5dcb60..a5a40f5dfc 100644 --- a/web/settings/assets/counter-b1adda4a.js +++ b/web/settings/assets/counter-55e31718.js @@ -1 +1 @@ -import{_ as h,q as u,k as c,l as g,B as a,M as l,x as e,u as t,y as p}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceHttpCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(s,n=void 0){this.$emit("update:configuration",{value:s,object:n})}}},f={class:"device-http-counter"},b={class:"small"},w=t("br",null,null,-1),v=t("br",null,null,-1),k=t("br",null,null,-1),S=t("br",null,null,-1),P=t("br",null,null,-1),z=t("br",null,null,-1),Z=t("br",null,null,-1),x=t("br",null,null,-1),A=t("br",null,null,-1),D=t("br",null,null,-1),U=t("br",null,null,-1);function F(s,n,i,L,C,d){const m=u("openwb-base-heading"),o=u("openwb-base-text-input");return c(),g("div",f,[a(m,null,{default:l(()=>[e(" Einstellungen für Http Zähler "),t("span",b,"(Modul: "+p(s.$options.name)+")",1)]),_:1}),a(o,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":i.configuration.power_path,"onUpdate:modelValue":n[0]||(n[0]=r=>d.updateConfiguration(r,"configuration.power_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),w,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Zählerstand Bezug",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.imported_path,"onUpdate:modelValue":n[1]||(n[1]=r=>d.updateConfiguration(r,"configuration.imported_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),v,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),k,e(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Zählerstand Einspeisung",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.exported_path,"onUpdate:modelValue":n[2]||(n[2]=r=>d.updateConfiguration(r,"configuration.exported_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),S,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),P,e(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Strom Phase 1",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.current_l1_path,"onUpdate:modelValue":n[3]||(n[3]=r=>d.updateConfiguration(r,"configuration.current_l1_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),z,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 1. Phase in Ampere darstellt."),Z,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Strom Phase 2",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.current_l2_path,"onUpdate:modelValue":n[4]||(n[4]=r=>d.updateConfiguration(r,"configuration.current_l2_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),x,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 2. Phase in Ampere darstellt."),A,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Strom Phase 3",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.current_l3_path,"onUpdate:modelValue":n[5]||(n[5]=r=>d.updateConfiguration(r,"configuration.current_l3_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),D,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 3. Phase in Ampere darstellt."),U,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"])])}const N=h(_,[["render",F],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/counter.vue"]]);export{N as default}; +import{_ as h,q as u,k as c,l as g,B as a,M as l,x as e,u as t,y as p}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceHttpCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(s,n=void 0){this.$emit("update:configuration",{value:s,object:n})}}},f={class:"device-http-counter"},b={class:"small"},w=t("br",null,null,-1),v=t("br",null,null,-1),k=t("br",null,null,-1),S=t("br",null,null,-1),P=t("br",null,null,-1),z=t("br",null,null,-1),Z=t("br",null,null,-1),x=t("br",null,null,-1),A=t("br",null,null,-1),D=t("br",null,null,-1),U=t("br",null,null,-1);function F(s,n,i,L,C,d){const m=u("openwb-base-heading"),o=u("openwb-base-text-input");return c(),g("div",f,[a(m,null,{default:l(()=>[e(" Einstellungen für Http Zähler "),t("span",b,"(Modul: "+p(s.$options.name)+")",1)]),_:1}),a(o,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":i.configuration.power_path,"onUpdate:modelValue":n[0]||(n[0]=r=>d.updateConfiguration(r,"configuration.power_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),w,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Zählerstand Bezug",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.imported_path,"onUpdate:modelValue":n[1]||(n[1]=r=>d.updateConfiguration(r,"configuration.imported_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),v,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),k,e(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Zählerstand Einspeisung",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.exported_path,"onUpdate:modelValue":n[2]||(n[2]=r=>d.updateConfiguration(r,"configuration.exported_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),S,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),P,e(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Strom Phase 1",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.current_l1_path,"onUpdate:modelValue":n[3]||(n[3]=r=>d.updateConfiguration(r,"configuration.current_l1_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),z,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 1. Phase in Ampere darstellt."),Z,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Strom Phase 2",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.current_l2_path,"onUpdate:modelValue":n[4]||(n[4]=r=>d.updateConfiguration(r,"configuration.current_l2_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),x,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 2. Phase in Ampere darstellt."),A,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Strom Phase 3",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.current_l3_path,"onUpdate:modelValue":n[5]||(n[5]=r=>d.updateConfiguration(r,"configuration.current_l3_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),D,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 3. Phase in Ampere darstellt."),U,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"])])}const N=h(_,[["render",F],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/counter.vue"]]);export{N as default}; diff --git a/web/settings/assets/counter-8da7044d.js b/web/settings/assets/counter-5dd3b2bc.js similarity index 86% rename from web/settings/assets/counter-8da7044d.js rename to web/settings/assets/counter-5dd3b2bc.js index 4926e228d5..bbb6812d49 100644 --- a/web/settings/assets/counter-8da7044d.js +++ b/web/settings/assets/counter-5dd3b2bc.js @@ -1 +1 @@ -import{_ as c,q as n,k as u,l as d,B as o,M as a,x as s,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSolarwattCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solarwatt-counter"},m={class:"small"};function b(e,t,g,v,w,h){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return u(),d("div",f,[o(r,null,{default:a(()=>[s(" Einstellungen für Solarwatt/My Reserve Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const y=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/counter.vue"]]);export{y as default}; +import{_ as c,q as n,k as u,l as d,B as o,M as a,x as s,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSolarwattCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solarwatt-counter"},m={class:"small"};function b(e,t,g,v,w,h){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return u(),d("div",f,[o(r,null,{default:a(()=>[s(" Einstellungen für Solarwatt/My Reserve Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const y=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/counter.vue"]]);export{y as default}; diff --git a/web/settings/assets/counter-06f0f51f.js b/web/settings/assets/counter-5e0adaad.js similarity index 90% rename from web/settings/assets/counter-06f0f51f.js rename to web/settings/assets/counter-5e0adaad.js index 43b66f951d..ce3c144ce2 100644 --- a/web/settings/assets/counter-06f0f51f.js +++ b/web/settings/assets/counter-5e0adaad.js @@ -1 +1 @@ -import{_ as r,q as o,k as p,l as c,B as a,M as m,x as _,u as f,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceOpenwbFlexCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-openwb-flex-counter"},x={class:"small"};function w(n,e,i,M,h,u){const s=o("openwb-base-heading"),l=o("openwb-base-select-input"),d=o("openwb-base-number-input");return p(),c("div",g,[a(s,null,{default:m(()=>[_(" Einstellungen für openWB-Flex Zähler "),f("span",x,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),a(l,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=t=>u.updateConfiguration(t,"configuration.version"))},null,8,["model-value"]),a(d,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":i.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=t=>u.updateConfiguration(t,"configuration.id"))},null,8,["model-value"])])}const D=r(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/counter.vue"]]);export{D as default}; +import{_ as r,q as o,k as p,l as c,B as a,M as m,x as _,u as f,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceOpenwbFlexCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-openwb-flex-counter"},x={class:"small"};function w(n,e,i,M,h,u){const s=o("openwb-base-heading"),l=o("openwb-base-select-input"),d=o("openwb-base-number-input");return p(),c("div",g,[a(s,null,{default:m(()=>[_(" Einstellungen für openWB-Flex Zähler "),f("span",x,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),a(l,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=t=>u.updateConfiguration(t,"configuration.version"))},null,8,["model-value"]),a(d,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":i.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=t=>u.updateConfiguration(t,"configuration.id"))},null,8,["model-value"])])}const D=r(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/counter.vue"]]);export{D as default}; diff --git a/web/settings/assets/counter-4a2dd614.js b/web/settings/assets/counter-6715e651.js similarity index 90% rename from web/settings/assets/counter-4a2dd614.js rename to web/settings/assets/counter-6715e651.js index c8909bc1bb..a8f537dfc1 100644 --- a/web/settings/assets/counter-4a2dd614.js +++ b/web/settings/assets/counter-6715e651.js @@ -1 +1 @@ -import{_ as u,q as r,k as c,l as d,B as s,M as a,x as e,u as o,y as p}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSolarLogCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,n=void 0){this.$emit("update:configuration",{value:t,object:n})}}},m={class:"device-solar_log-counter"},h={class:"small"},f=o("span",{class:"text-danger"},[e(" Solar-Log Zähler geben keine Ströme aus, sodass kein Lastmanagement möglich ist."),o("br")],-1),g=o("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"}," Wiki für Hausverbrauchs-Zähler ",-1);function b(t,n,v,k,w,Z){const i=r("openwb-base-heading"),l=r("openwb-base-alert");return c(),d("div",m,[s(i,null,{default:a(()=>[e(" Einstellungen für Solar-Log Zähler "),o("span",h,"(Modul: "+p(t.$options.name)+")",1)]),_:1}),s(l,{subtype:"info"},{default:a(()=>[f,e(" Solar-Log Zähler sind Hausverbrauchs-Zähler. Um die Werte am EVU-Punkt zu ermitteln, muss ein virtueller Zähler konfiguriert werden. Eine Beispiel-Konfiguration mit Solar-Log Zähler findest Du im "),g,e(". ")]),_:1})])}const x=u(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/counter.vue"]]);export{x as default}; +import{_ as u,q as r,k as c,l as d,B as s,M as a,x as e,u as o,y as p}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSolarLogCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,n=void 0){this.$emit("update:configuration",{value:t,object:n})}}},m={class:"device-solar_log-counter"},h={class:"small"},f=o("span",{class:"text-danger"},[e(" Solar-Log Zähler geben keine Ströme aus, sodass kein Lastmanagement möglich ist."),o("br")],-1),g=o("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"}," Wiki für Hausverbrauchs-Zähler ",-1);function b(t,n,v,k,w,Z){const i=r("openwb-base-heading"),l=r("openwb-base-alert");return c(),d("div",m,[s(i,null,{default:a(()=>[e(" Einstellungen für Solar-Log Zähler "),o("span",h,"(Modul: "+p(t.$options.name)+")",1)]),_:1}),s(l,{subtype:"info"},{default:a(()=>[f,e(" Solar-Log Zähler sind Hausverbrauchs-Zähler. Um die Werte am EVU-Punkt zu ermitteln, muss ein virtueller Zähler konfiguriert werden. Eine Beispiel-Konfiguration mit Solar-Log Zähler findest Du im "),g,e(". ")]),_:1})])}const x=u(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/counter.vue"]]);export{x as default}; diff --git a/web/settings/assets/counter-00f93543.js b/web/settings/assets/counter-74cf3abb.js similarity index 86% rename from web/settings/assets/counter-00f93543.js rename to web/settings/assets/counter-74cf3abb.js index e06b80101b..d65b04f917 100644 --- a/web/settings/assets/counter-00f93543.js +++ b/web/settings/assets/counter-74cf3abb.js @@ -1 +1 @@ -import{_ as c,q as t,k as d,l as u,B as n,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceGoodWeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-goodwe-counter"},m={class:"small"};function b(e,o,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für GoodWe Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/counter.vue"]]);export{B as default}; +import{_ as c,q as t,k as d,l as u,B as n,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceGoodWeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-goodwe-counter"},m={class:"small"};function b(e,o,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für GoodWe Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-67c9f193.js b/web/settings/assets/counter-7ac73056.js similarity index 88% rename from web/settings/assets/counter-67c9f193.js rename to web/settings/assets/counter-7ac73056.js index f3c9599ee0..ab5734a02a 100644 --- a/web/settings/assets/counter-67c9f193.js +++ b/web/settings/assets/counter-7ac73056.js @@ -1 +1 @@ -import{_ as l,q as o,k as c,l as d,B as n,M as p,x as _,u as m,y as v}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceOpenwbEvukitCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-evukit-counter"},g={class:"small"};function w(t,e,a,h,x,i){const s=o("openwb-base-heading"),u=o("openwb-base-select-input");return c(),d("div",b,[n(s,null,{default:p(()=>[_(" Einstellungen für openWB EVU-Kit Zähler "),m("span",g,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),n(u,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=r=>i.updateConfiguration(r,"configuration.version"))},null,8,["model-value"])])}const k=l(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/counter.vue"]]);export{k as default}; +import{_ as l,q as o,k as c,l as d,B as n,M as p,x as _,u as m,y as v}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceOpenwbEvukitCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-evukit-counter"},g={class:"small"};function w(t,e,a,h,x,i){const s=o("openwb-base-heading"),u=o("openwb-base-select-input");return c(),d("div",b,[n(s,null,{default:p(()=>[_(" Einstellungen für openWB EVU-Kit Zähler "),m("span",g,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),n(u,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=r=>i.updateConfiguration(r,"configuration.version"))},null,8,["model-value"])])}const k=l(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/counter.vue"]]);export{k as default}; diff --git a/web/settings/assets/counter-9b130dde.js b/web/settings/assets/counter-8a255937.js similarity index 86% rename from web/settings/assets/counter-9b130dde.js rename to web/settings/assets/counter-8a255937.js index e13145db91..f5ba398613 100644 --- a/web/settings/assets/counter-9b130dde.js +++ b/web/settings/assets/counter-8a255937.js @@ -1 +1 @@ -import{_ as c,q as n,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceLGCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-lg-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für LG ESS V1.0 Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/counter.vue"]]);export{B as default}; +import{_ as c,q as n,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceLGCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-lg-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für LG ESS V1.0 Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-e0c57375.js b/web/settings/assets/counter-9537d105.js similarity index 86% rename from web/settings/assets/counter-e0c57375.js rename to web/settings/assets/counter-9537d105.js index 7f3ecd546d..bf21c6fa0a 100644 --- a/web/settings/assets/counter-e0c57375.js +++ b/web/settings/assets/counter-9537d105.js @@ -1 +1 @@ -import{_ as r,q as n,k as l,l as u,B as o,M as s,x as a,u as d,y as p}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceQCelllsCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-qcells-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return l(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für QCells ESS Zähler "),d("span",m,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const q=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/counter.vue"]]);export{q as default}; +import{_ as r,q as n,k as l,l as u,B as o,M as s,x as a,u as d,y as p}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceQCelllsCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-qcells-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return l(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für QCells ESS Zähler "),d("span",m,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const q=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/counter.vue"]]);export{q as default}; diff --git a/web/settings/assets/counter-aa7dd269.js b/web/settings/assets/counter-a1f36698.js similarity index 86% rename from web/settings/assets/counter-aa7dd269.js rename to web/settings/assets/counter-a1f36698.js index 8e3260df55..f38d32b147 100644 --- a/web/settings/assets/counter-aa7dd269.js +++ b/web/settings/assets/counter-a1f36698.js @@ -1 +1 @@ -import{_ as c,q as o,k as u,l as p,B as t,M as s,x as a,u as d,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSunnyBoyCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sunnyboy-counter"},m={class:"small"};function b(e,n,y,g,h,v){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return u(),p("div",f,[t(i,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy/Tripower Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),t(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/counter.vue"]]);export{$ as default}; +import{_ as c,q as o,k as u,l as p,B as t,M as s,x as a,u as d,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSunnyBoyCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sunnyboy-counter"},m={class:"small"};function b(e,n,y,g,h,v){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return u(),p("div",f,[t(i,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy/Tripower Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),t(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/counter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/counter-c82b5fcd.js b/web/settings/assets/counter-ac6e14af.js similarity index 86% rename from web/settings/assets/counter-c82b5fcd.js rename to web/settings/assets/counter-ac6e14af.js index 430e5ab213..0df01ca411 100644 --- a/web/settings/assets/counter-c82b5fcd.js +++ b/web/settings/assets/counter-ac6e14af.js @@ -1 +1 @@ -import{_ as c,q as n,k as u,l as d,B as o,M as a,x as s,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceJanitzaCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-janitza-counter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Janitza Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(' ModbusTCP muss im Janitza auf Port 502 aktiv und die ID auf "1" eingestellt sein. ')]),_:1})])}const z=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/janitza/counter.vue"]]);export{z as default}; +import{_ as c,q as n,k as u,l as d,B as o,M as a,x as s,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceJanitzaCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-janitza-counter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Janitza Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(' ModbusTCP muss im Janitza auf Port 502 aktiv und die ID auf "1" eingestellt sein. ')]),_:1})])}const z=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/janitza/counter.vue"]]);export{z as default}; diff --git a/web/settings/assets/counter-6f5d816d.js b/web/settings/assets/counter-b066d1b9.js similarity index 92% rename from web/settings/assets/counter-6f5d816d.js rename to web/settings/assets/counter-b066d1b9.js index a9336d466b..76e90ecefb 100644 --- a/web/settings/assets/counter-6f5d816d.js +++ b/web/settings/assets/counter-b066d1b9.js @@ -1 +1 @@ -import{_ as l,q as i,k as f,l as _,B as s,M as r,x as n,u as o,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"DevicePowerfoxCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-powerfox-counter"},b={class:"small"},w=o("a",{href:"https://backend.powerfox.energy/api/2.0/my/all/devices",target:"_blank",rel:"noopener noreferrer"}," https://backend.powerfox.energy/api/2.0/my/all/devices ",-1),v=o("span",{class:"font-weight-bold text-monospace",style:{display:"contents"}},' "DeviceID" ',-1);function x(t,e,a,D,k,d){const u=i("openwb-base-heading"),c=i("openwb-base-text-input");return f(),_("div",g,[s(u,null,{default:r(()=>[n(" Einstellungen für Powerfox Zähler "),o("span",b,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),s(c,{title:"ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.id"))},{help:r(()=>[n(" Um die ID herauszufinden mit dem Browser die Adresse "),w,n(" aufrufen und dort Benutzername und Passwort eingeben. Die DeviceID ist exakt so einzutragen, wie in der Antwort des Servers. Das bedeutet insbesondere auch, die Groß-/Kleinschreibung ist zu beachten! In dem Feld ist nur die Zeichenfolge direkt hinter "),v,n(" ohne den Doppelpunkt und Anführungszeichen einzutragen. ")]),_:1},8,["model-value"])])}const I=l(h,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/counter.vue"]]);export{I as default}; +import{_ as l,q as i,k as f,l as _,B as s,M as r,x as n,u as o,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"DevicePowerfoxCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-powerfox-counter"},b={class:"small"},w=o("a",{href:"https://backend.powerfox.energy/api/2.0/my/all/devices",target:"_blank",rel:"noopener noreferrer"}," https://backend.powerfox.energy/api/2.0/my/all/devices ",-1),v=o("span",{class:"font-weight-bold text-monospace",style:{display:"contents"}},' "DeviceID" ',-1);function x(t,e,a,D,k,d){const u=i("openwb-base-heading"),c=i("openwb-base-text-input");return f(),_("div",g,[s(u,null,{default:r(()=>[n(" Einstellungen für Powerfox Zähler "),o("span",b,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),s(c,{title:"ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.id"))},{help:r(()=>[n(" Um die ID herauszufinden mit dem Browser die Adresse "),w,n(" aufrufen und dort Benutzername und Passwort eingeben. Die DeviceID ist exakt so einzutragen, wie in der Antwort des Servers. Das bedeutet insbesondere auch, die Groß-/Kleinschreibung ist zu beachten! In dem Feld ist nur die Zeichenfolge direkt hinter "),v,n(" ohne den Doppelpunkt und Anführungszeichen einzutragen. ")]),_:1},8,["model-value"])])}const I=l(h,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/counter.vue"]]);export{I as default}; diff --git a/web/settings/assets/counter-b724f8ad.js b/web/settings/assets/counter-bfa14197.js similarity index 88% rename from web/settings/assets/counter-b724f8ad.js rename to web/settings/assets/counter-bfa14197.js index a40556f423..29970d6fab 100644 --- a/web/settings/assets/counter-b724f8ad.js +++ b/web/settings/assets/counter-bfa14197.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as u,B as o,M as s,x as a,u as l,y as p}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceKostalSEMCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-kostal-sem-counter"},f={class:"small"};function h(e,t,g,b,v,w){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),u("div",m,[o(r,null,{default:s(()=>[a(" Einstellungen für Kostal Smart Energy Meter oder TQ EM 410 Zähler "),l("span",f,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente ist nur richtig, wenn der Zähler NICHT direkt am Wechselrichter (Kostal Plenticore) angeschlossen ist und daher separat abgefragt werden muss. ")]),_:1})])}const x=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_sem/counter.vue"]]);export{x as default}; +import{_ as c,q as n,k as d,l as u,B as o,M as s,x as a,u as l,y as p}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceKostalSEMCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-kostal-sem-counter"},f={class:"small"};function h(e,t,g,b,v,w){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),u("div",m,[o(r,null,{default:s(()=>[a(" Einstellungen für Kostal Smart Energy Meter oder TQ EM 410 Zähler "),l("span",f,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente ist nur richtig, wenn der Zähler NICHT direkt am Wechselrichter (Kostal Plenticore) angeschlossen ist und daher separat abgefragt werden muss. ")]),_:1})])}const x=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_sem/counter.vue"]]);export{x as default}; diff --git a/web/settings/assets/counter-3e996b67.js b/web/settings/assets/counter-c672bc05.js similarity index 87% rename from web/settings/assets/counter-3e996b67.js rename to web/settings/assets/counter-c672bc05.js index bd6a0c1468..9622e4759a 100644 --- a/web/settings/assets/counter-3e996b67.js +++ b/web/settings/assets/counter-c672bc05.js @@ -1 +1 @@ -import{_ as c,q as t,k as d,l as u,B as o,M as a,x as s,u as l,y as p}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceTeslaCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-tesla-counter"},f={class:"small"};function h(e,n,b,g,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",m,[o(i,null,{default:a(()=>[s(" Einstellungen für Tesla Zähler "),l("span",f,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Je nach Firmware-Version ist nur ein Lastmanagement anhand der Gesamtleistung möglich, da nicht alle Firmware-Versionen Phasenströme liefern. ")]),_:1})])}const B=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/counter.vue"]]);export{B as default}; +import{_ as c,q as t,k as d,l as u,B as o,M as a,x as s,u as l,y as p}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceTeslaCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-tesla-counter"},f={class:"small"};function h(e,n,b,g,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",m,[o(i,null,{default:a(()=>[s(" Einstellungen für Tesla Zähler "),l("span",f,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Je nach Firmware-Version ist nur ein Lastmanagement anhand der Gesamtleistung möglich, da nicht alle Firmware-Versionen Phasenströme liefern. ")]),_:1})])}const B=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-c174e25c.js b/web/settings/assets/counter-c6900dd2.js similarity index 87% rename from web/settings/assets/counter-c174e25c.js rename to web/settings/assets/counter-c6900dd2.js index 2e2eebcbd9..832b041ded 100644 --- a/web/settings/assets/counter-c174e25c.js +++ b/web/settings/assets/counter-c6900dd2.js @@ -1 +1 @@ -import{_ as d,q as n,k as c,l as p,B as o,M as l,x as m,u as _,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceSmartMeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-smart-me-counter"},v={class:"small"};function h(t,e,a,x,w,s){const i=n("openwb-base-heading"),r=n("openwb-base-text-input");return c(),p("div",b,[o(i,null,{default:l(()=>[m(" Einstellungen für smart-me Zähler "),_("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(r,{title:"Geräte-ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=u=>s.updateConfiguration(u,"configuration.id"))},null,8,["model-value"])])}const q=d(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/counter.vue"]]);export{q as default}; +import{_ as d,q as n,k as c,l as p,B as o,M as l,x as m,u as _,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceSmartMeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-smart-me-counter"},v={class:"small"};function h(t,e,a,x,w,s){const i=n("openwb-base-heading"),r=n("openwb-base-text-input");return c(),p("div",b,[o(i,null,{default:l(()=>[m(" Einstellungen für smart-me Zähler "),_("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(r,{title:"Geräte-ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=u=>s.updateConfiguration(u,"configuration.id"))},null,8,["model-value"])])}const q=d(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/counter.vue"]]);export{q as default}; diff --git a/web/settings/assets/counter-41cd3727.js b/web/settings/assets/counter-c92cc706.js similarity index 86% rename from web/settings/assets/counter-41cd3727.js rename to web/settings/assets/counter-c92cc706.js index ed8d3c04d5..7114d2c5f8 100644 --- a/web/settings/assets/counter-41cd3727.js +++ b/web/settings/assets/counter-c92cc706.js @@ -1 +1 @@ -import{_ as c,q as t,k as d,l as u,B as n,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSolaxCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-solax-counter"},m={class:"small"};function b(e,o,g,h,v,x){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für Solax Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/counter.vue"]]);export{B as default}; +import{_ as c,q as t,k as d,l as u,B as n,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSolaxCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-solax-counter"},m={class:"small"};function b(e,o,g,h,v,x){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für Solax Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-973bc4bb.js b/web/settings/assets/counter-c9de23b7.js similarity index 86% rename from web/settings/assets/counter-973bc4bb.js rename to web/settings/assets/counter-c9de23b7.js index 68da53a8aa..516b0f268c 100644 --- a/web/settings/assets/counter-973bc4bb.js +++ b/web/settings/assets/counter-c9de23b7.js @@ -1 +1 @@ -import{_ as c,q as n,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceBatterXCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-batterx-counter"},m={class:"small"};function b(e,t,g,h,v,x){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für BatterX Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/counter.vue"]]);export{$ as default}; +import{_ as c,q as n,k as u,l as d,B as o,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceBatterXCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-batterx-counter"},m={class:"small"};function b(e,t,g,h,v,x){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für BatterX Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/counter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/counter-e8b2caff.js b/web/settings/assets/counter-c9f07f90.js similarity index 85% rename from web/settings/assets/counter-e8b2caff.js rename to web/settings/assets/counter-c9f07f90.js index ef80ec39a9..15b443fbef 100644 --- a/web/settings/assets/counter-e8b2caff.js +++ b/web/settings/assets/counter-c9f07f90.js @@ -1 +1 @@ -import{_ as r,q as n,k as d,l as u,B as o,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceE3dcCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return d(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für E3DC Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/counter.vue"]]);export{B as default}; +import{_ as r,q as n,k as d,l as u,B as o,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceE3dcCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return d(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für E3DC Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-99a20711.js b/web/settings/assets/counter-ccf7acd7.js similarity index 96% rename from web/settings/assets/counter-99a20711.js rename to web/settings/assets/counter-ccf7acd7.js index 9a689e7211..0d3eac6ea3 100644 --- a/web/settings/assets/counter-99a20711.js +++ b/web/settings/assets/counter-ccf7acd7.js @@ -1 +1 @@ -import{_ as g,q as d,k as p,l as _,B as n,M as u,x as r,u as s,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const c={name:"DeviceJsonCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},w={class:"device-json-counter"},v={class:"small"},j=s("br",null,null,-1);function q(i,e,o,h,x,a){const f=d("openwb-base-heading"),l=d("openwb-base-text-input"),m=d("openwb-base-alert");return p(),_("div",w,[n(f,null,{default:u(()=>[r(" Einstellungen für JSON Zähler "),s("span",v,"(Modul: "+b(i.$options.name)+")",1)]),_:1}),n(l,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":o.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.jq_power"))},{help:u(()=>[r(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. '),j,r(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ")]),_:1},8,["model-value"]),n(l,{title:"Abfrage für Zählerstand Bezug",subtype:"text","model-value":o.configuration.jq_imported,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.jq_imported"))},{help:u(()=>[r(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"]),n(l,{title:"Abfrage für Zählerstand Einspeisung",subtype:"text","model-value":o.configuration.jq_exported,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.jq_exported"))},{help:u(()=>[r(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"]),n(m,{subtype:"info"},{default:u(()=>[r(" Werden sowohl Leistung als auch Strom auf den Einzelphasen leer gelassen, erfolgt das Lastmanagement am EVU-Punkt nur anhand der Gesamtleistung am EVU-Punkt. Wird der Zähler als Zwischenzähler verwendet, wird in diesem Fall kein Lastmanagement durchgeführt. ")]),_:1}),n(l,{title:"Abfrage für Leistung auf Phase 1",subtype:"text","model-value":o.configuration.jq_power_l1,"onUpdate:modelValue":e[3]||(e[3]=t=>a.updateConfiguration(t,"configuration.jq_power_l1"))},null,8,["model-value"]),n(l,{title:"Abfrage für Leistung auf Phase 2",subtype:"text","model-value":o.configuration.jq_power_l2,"onUpdate:modelValue":e[4]||(e[4]=t=>a.updateConfiguration(t,"configuration.jq_power_l2"))},null,8,["model-value"]),n(l,{title:"Abfrage für Leistung auf Phase 3",subtype:"text","model-value":o.configuration.jq_power_l3,"onUpdate:modelValue":e[5]||(e[5]=t=>a.updateConfiguration(t,"configuration.jq_power_l3"))},null,8,["model-value"]),n(l,{title:"Abfrage für Strom auf Phase 1",subtype:"text","model-value":o.configuration.jq_current_l1,"onUpdate:modelValue":e[6]||(e[6]=t=>a.updateConfiguration(t,"configuration.jq_current_l1"))},null,8,["model-value"]),n(l,{title:"Abfrage für Strom auf Phase 2",subtype:"text","model-value":o.configuration.jq_current_l2,"onUpdate:modelValue":e[7]||(e[7]=t=>a.updateConfiguration(t,"configuration.jq_current_l2"))},null,8,["model-value"]),n(l,{title:"Abfrage für Strom auf Phase 3",subtype:"text","model-value":o.configuration.jq_current_l3,"onUpdate:modelValue":e[8]||(e[8]=t=>a.updateConfiguration(t,"configuration.jq_current_l3"))},null,8,["model-value"])])}const V=g(c,[["render",q],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/counter.vue"]]);export{V as default}; +import{_ as g,q as d,k as p,l as _,B as n,M as u,x as r,u as s,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const c={name:"DeviceJsonCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},w={class:"device-json-counter"},v={class:"small"},j=s("br",null,null,-1);function q(i,e,o,h,x,a){const f=d("openwb-base-heading"),l=d("openwb-base-text-input"),m=d("openwb-base-alert");return p(),_("div",w,[n(f,null,{default:u(()=>[r(" Einstellungen für JSON Zähler "),s("span",v,"(Modul: "+b(i.$options.name)+")",1)]),_:1}),n(l,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":o.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.jq_power"))},{help:u(()=>[r(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. '),j,r(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ")]),_:1},8,["model-value"]),n(l,{title:"Abfrage für Zählerstand Bezug",subtype:"text","model-value":o.configuration.jq_imported,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.jq_imported"))},{help:u(()=>[r(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"]),n(l,{title:"Abfrage für Zählerstand Einspeisung",subtype:"text","model-value":o.configuration.jq_exported,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.jq_exported"))},{help:u(()=>[r(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"]),n(m,{subtype:"info"},{default:u(()=>[r(" Werden sowohl Leistung als auch Strom auf den Einzelphasen leer gelassen, erfolgt das Lastmanagement am EVU-Punkt nur anhand der Gesamtleistung am EVU-Punkt. Wird der Zähler als Zwischenzähler verwendet, wird in diesem Fall kein Lastmanagement durchgeführt. ")]),_:1}),n(l,{title:"Abfrage für Leistung auf Phase 1",subtype:"text","model-value":o.configuration.jq_power_l1,"onUpdate:modelValue":e[3]||(e[3]=t=>a.updateConfiguration(t,"configuration.jq_power_l1"))},null,8,["model-value"]),n(l,{title:"Abfrage für Leistung auf Phase 2",subtype:"text","model-value":o.configuration.jq_power_l2,"onUpdate:modelValue":e[4]||(e[4]=t=>a.updateConfiguration(t,"configuration.jq_power_l2"))},null,8,["model-value"]),n(l,{title:"Abfrage für Leistung auf Phase 3",subtype:"text","model-value":o.configuration.jq_power_l3,"onUpdate:modelValue":e[5]||(e[5]=t=>a.updateConfiguration(t,"configuration.jq_power_l3"))},null,8,["model-value"]),n(l,{title:"Abfrage für Strom auf Phase 1",subtype:"text","model-value":o.configuration.jq_current_l1,"onUpdate:modelValue":e[6]||(e[6]=t=>a.updateConfiguration(t,"configuration.jq_current_l1"))},null,8,["model-value"]),n(l,{title:"Abfrage für Strom auf Phase 2",subtype:"text","model-value":o.configuration.jq_current_l2,"onUpdate:modelValue":e[7]||(e[7]=t=>a.updateConfiguration(t,"configuration.jq_current_l2"))},null,8,["model-value"]),n(l,{title:"Abfrage für Strom auf Phase 3",subtype:"text","model-value":o.configuration.jq_current_l3,"onUpdate:modelValue":e[8]||(e[8]=t=>a.updateConfiguration(t,"configuration.jq_current_l3"))},null,8,["model-value"])])}const V=g(c,[["render",q],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/counter.vue"]]);export{V as default}; diff --git a/web/settings/assets/counter-2f64ee09.js b/web/settings/assets/counter-d097ef09.js similarity index 86% rename from web/settings/assets/counter-2f64ee09.js rename to web/settings/assets/counter-d097ef09.js index 67f56620de..e3d6f807a1 100644 --- a/web/settings/assets/counter-2f64ee09.js +++ b/web/settings/assets/counter-d097ef09.js @@ -1 +1 @@ -import{_ as r,q as t,k as p,l as u,B as o,M as s,x as a,u as d,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceFemsCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fems-counter"},m={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),c=t("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openEMS, Fenecon FEMS, CENTURIO 10, Kaco Hy-Control Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/counter.vue"]]);export{$ as default}; +import{_ as r,q as t,k as p,l as u,B as o,M as s,x as a,u as d,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceFemsCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fems-counter"},m={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),c=t("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openEMS, Fenecon FEMS, CENTURIO 10, Kaco Hy-Control Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/counter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/counter-925e7cf7.js b/web/settings/assets/counter-d2113024.js similarity index 93% rename from web/settings/assets/counter-925e7cf7.js rename to web/settings/assets/counter-d2113024.js index a192c0122b..e9efdb42ba 100644 --- a/web/settings/assets/counter-925e7cf7.js +++ b/web/settings/assets/counter-d2113024.js @@ -1 +1 @@ -import{_ as c,q as t,k as d,l,B as n,M as s,x as a,u,y as p}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSolarWorldCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-solar_world-counter"},m={class:"small"};function b(e,o,g,h,v,w){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),l("div",f,[n(r,null,{default:s(()=>[a(" Einstellungen für SolarWorld Zähler "),u("span",m,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),n(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/counter.vue"]]);export{B as default}; +import{_ as c,q as t,k as d,l,B as n,M as s,x as a,u,y as p}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSolarWorldCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-solar_world-counter"},m={class:"small"};function b(e,o,g,h,v,w){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),l("div",f,[n(r,null,{default:s(()=>[a(" Einstellungen für SolarWorld Zähler "),u("span",m,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),n(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-12371945.js b/web/settings/assets/counter-d7bf0d90.js similarity index 86% rename from web/settings/assets/counter-12371945.js rename to web/settings/assets/counter-d7bf0d90.js index 026c3f6ff4..ab31aea443 100644 --- a/web/settings/assets/counter-12371945.js +++ b/web/settings/assets/counter-d7bf0d90.js @@ -1 +1 @@ -import{_ as c,q as t,k as u,l as d,B as n,M as a,x as s,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceCarloGavazziCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-carlogavazzi-counter"},m={class:"small"};function v(e,o,b,g,h,z){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return u(),d("div",f,[n(i,null,{default:a(()=>[s(" Einstellungen für Carlo Gavazzi EM24 LAN "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:a(()=>[s(" ModbusTCP muss aktiviert sein. Ausgelesen wird ID 1 auf Port 502. ")]),_:1})])}const $=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/carlo_gavazzi/counter.vue"]]);export{$ as default}; +import{_ as c,q as t,k as u,l as d,B as n,M as a,x as s,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceCarloGavazziCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-carlogavazzi-counter"},m={class:"small"};function v(e,o,b,g,h,z){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return u(),d("div",f,[n(i,null,{default:a(()=>[s(" Einstellungen für Carlo Gavazzi EM24 LAN "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:a(()=>[s(" ModbusTCP muss aktiviert sein. Ausgelesen wird ID 1 auf Port 502. ")]),_:1})])}const $=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/carlo_gavazzi/counter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/counter-fa702554.js b/web/settings/assets/counter-eeaa830b.js similarity index 87% rename from web/settings/assets/counter-fa702554.js rename to web/settings/assets/counter-eeaa830b.js index 11e4347beb..796edf0831 100644 --- a/web/settings/assets/counter-fa702554.js +++ b/web/settings/assets/counter-eeaa830b.js @@ -1 +1 @@ -import{_ as c,q as t,k as d,l as u,B as o,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSonnenbatterieCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-sonnenbatterie-counter"},f={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für SonnenBatterie Zähler "),p("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Mit diesem Modul ist kein Lastmanagement möglich, da keine Ströme der einzelnen Phasen gemessen werden. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/counter.vue"]]);export{k as default}; +import{_ as c,q as t,k as d,l as u,B as o,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSonnenbatterieCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-sonnenbatterie-counter"},f={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für SonnenBatterie Zähler "),p("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Mit diesem Modul ist kein Lastmanagement möglich, da keine Ströme der einzelnen Phasen gemessen werden. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/counter.vue"]]);export{k as default}; diff --git a/web/settings/assets/counter-11298763.js b/web/settings/assets/counter-f5aa5536.js similarity index 86% rename from web/settings/assets/counter-11298763.js rename to web/settings/assets/counter-f5aa5536.js index e9db4fd890..84010976e2 100644 --- a/web/settings/assets/counter-11298763.js +++ b/web/settings/assets/counter-f5aa5536.js @@ -1 +1 @@ -import{_ as c,q as n,k as p,l as u,B as o,M as s,x as a,u as d,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceAlphaessCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-alphaess-counter"},m={class:"small"};function b(e,t,h,g,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Alpha ESS Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/counter.vue"]]);export{B as default}; +import{_ as c,q as n,k as p,l as u,B as o,M as s,x as a,u as d,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceAlphaessCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-alphaess-counter"},m={class:"small"};function b(e,t,h,g,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Alpha ESS Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/counter.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter-b2006d03.js b/web/settings/assets/counter-fbfd1073.js similarity index 94% rename from web/settings/assets/counter-b2006d03.js rename to web/settings/assets/counter-fbfd1073.js index 8c0ef20989..fbb206bc06 100644 --- a/web/settings/assets/counter-b2006d03.js +++ b/web/settings/assets/counter-fbfd1073.js @@ -1 +1 @@ -import{_ as d,q as t,k as c,l,B as n,M as p,x as m,u as _,y as g}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceHuaweiSmartLoggerCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},b={class:"device-huawei-smart-logger-counter"},v={class:"small"};function w(o,e,a,h,x,i){const s=t("openwb-base-heading"),u=t("openwb-base-number-input");return c(),l("div",b,[n(s,null,{default:p(()=>[m(" Einstellungen für Huawei SmartLogger Zähler "),_("span",v,"(Modul: "+g(o.$options.name)+")",1)]),_:1}),n(u,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>i.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const V=d(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/counter.vue"]]);export{V as default}; +import{_ as d,q as t,k as c,l,B as n,M as p,x as m,u as _,y as g}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceHuaweiSmartLoggerCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},b={class:"device-huawei-smart-logger-counter"},v={class:"small"};function w(o,e,a,h,x,i){const s=t("openwb-base-heading"),u=t("openwb-base-number-input");return c(),l("div",b,[n(s,null,{default:p(()=>[m(" Einstellungen für Huawei SmartLogger Zähler "),_("span",v,"(Modul: "+g(o.$options.name)+")",1)]),_:1}),n(u,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>i.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const V=d(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/counter.vue"]]);export{V as default}; diff --git a/web/settings/assets/counter-fd379a0c.js b/web/settings/assets/counter-ffc70f4e.js similarity index 87% rename from web/settings/assets/counter-fd379a0c.js rename to web/settings/assets/counter-ffc70f4e.js index 19a6de2c1c..bc23e4aa96 100644 --- a/web/settings/assets/counter-fd379a0c.js +++ b/web/settings/assets/counter-ffc70f4e.js @@ -1 +1 @@ -import{_ as r,q as o,k as c,l as p,B as t,M as l,x as m,u as _,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceDeyeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-batterx-counter"},v={class:"small"};function h(n,e,a,x,w,s){const i=o("openwb-base-heading"),u=o("openwb-base-number-input");return c(),p("div",g,[t(i,null,{default:l(()=>[m(" Einstellungen für Deye Zähler "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),t(u,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=d=>s.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const C=r(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/counter.vue"]]);export{C as default}; +import{_ as r,q as o,k as c,l as p,B as t,M as l,x as m,u as _,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceDeyeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-batterx-counter"},v={class:"small"};function h(n,e,a,x,w,s){const i=o("openwb-base-heading"),u=o("openwb-base-number-input");return c(),p("div",g,[t(i,null,{default:l(()=>[m(" Einstellungen für Deye Zähler "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),t(u,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=d=>s.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const C=r(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/counter.vue"]]);export{C as default}; diff --git a/web/settings/assets/counter_s0-4ae58f93.js b/web/settings/assets/counter_s0-5fd1354e.js similarity index 86% rename from web/settings/assets/counter_s0-4ae58f93.js rename to web/settings/assets/counter_s0-5fd1354e.js index 852edcbee6..6916a229f5 100644 --- a/web/settings/assets/counter_s0-4ae58f93.js +++ b/web/settings/assets/counter_s0-5fd1354e.js @@ -1 +1 @@ -import{_ as c,q as o,k as u,l as d,B as t,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceFroniusCounterS0",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fronius-counter-s0"},m={class:"small"};function b(e,n,g,h,v,w){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return u(),d("div",f,[t(i,null,{default:s(()=>[a(" Einstellungen für Fronius S0 Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),t(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/counter_s0.vue"]]);export{B as default}; +import{_ as c,q as o,k as u,l as d,B as t,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceFroniusCounterS0",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fronius-counter-s0"},m={class:"small"};function b(e,n,g,h,v,w){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return u(),d("div",f,[t(i,null,{default:s(()=>[a(" Einstellungen für Fronius S0 Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),t(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/counter_s0.vue"]]);export{B as default}; diff --git a/web/settings/assets/counter_sm-210294ef.js b/web/settings/assets/counter_sm-94145d92.js similarity index 92% rename from web/settings/assets/counter_sm-210294ef.js rename to web/settings/assets/counter_sm-94145d92.js index 4e5789f7cb..c9256b50c6 100644 --- a/web/settings/assets/counter_sm-210294ef.js +++ b/web/settings/assets/counter_sm-94145d92.js @@ -1 +1 @@ -import{_ as p,q as o,k as m,l as _,B as a,M as s,x as u,u as f,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceFroniusCounterSM",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-fronius-counter-sm"},h={class:"small"};function w(n,e,i,x,V,r){const l=o("openwb-base-heading"),d=o("openwb-base-number-input"),c=o("openwb-base-select-input");return m(),_("div",v,[a(l,null,{default:s(()=>[u(" Einstellungen für Fronius SmartMeter "),f("span",h,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),a(d,{title:"Meter ID",required:"",min:"0",max:"65535","model-value":i.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=t=>r.updateConfiguration(t,"configuration.meter_id"))},null,8,["model-value"]),a(c,{title:"Kompatibilitätsmodus",notSelected:"Bitte auswählen",options:[{value:0,text:"Aus"},{value:1,text:"Variante 1"},{value:2,text:"Variante 2"}],"model-value":i.configuration.variant,"onUpdate:modelValue":e[1]||(e[1]=t=>r.updateConfiguration(t,"configuration.variant"))},{help:s(()=>[u(" Gegebenenfalls auch für alte Modelle nach einem Softwareupdate erforderlich. Fronius hat derzeit keine Konsistente Schnittstelle. Speziell beim Gen24 kann Variante 1 oder 2 erforderlich sein. Nach speichern sollten nach etwa 10-20 Sekunden Daten angezeigt werden. Ist dies nicht der Fall die andere Variante ausprobieren. ")]),_:1},8,["model-value"])])}const B=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/counter_sm.vue"]]);export{B as default}; +import{_ as p,q as o,k as m,l as _,B as a,M as s,x as u,u as f,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceFroniusCounterSM",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-fronius-counter-sm"},h={class:"small"};function w(n,e,i,x,V,r){const l=o("openwb-base-heading"),d=o("openwb-base-number-input"),c=o("openwb-base-select-input");return m(),_("div",v,[a(l,null,{default:s(()=>[u(" Einstellungen für Fronius SmartMeter "),f("span",h,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),a(d,{title:"Meter ID",required:"",min:"0",max:"65535","model-value":i.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=t=>r.updateConfiguration(t,"configuration.meter_id"))},null,8,["model-value"]),a(c,{title:"Kompatibilitätsmodus",notSelected:"Bitte auswählen",options:[{value:0,text:"Aus"},{value:1,text:"Variante 1"},{value:2,text:"Variante 2"}],"model-value":i.configuration.variant,"onUpdate:modelValue":e[1]||(e[1]=t=>r.updateConfiguration(t,"configuration.variant"))},{help:s(()=>[u(" Gegebenenfalls auch für alte Modelle nach einem Softwareupdate erforderlich. Fronius hat derzeit keine Konsistente Schnittstelle. Speziell beim Gen24 kann Variante 1 oder 2 erforderlich sein. Nach speichern sollten nach etwa 10-20 Sekunden Daten angezeigt werden. Ist dies nicht der Fall die andere Variante ausprobieren. ")]),_:1},8,["model-value"])])}const B=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/counter_sm.vue"]]);export{B as default}; diff --git a/web/settings/assets/device-a817311d.js b/web/settings/assets/device-02db7f9c.js similarity index 89% rename from web/settings/assets/device-a817311d.js rename to web/settings/assets/device-02db7f9c.js index a8a4789690..db9b8e770e 100644 --- a/web/settings/assets/device-a817311d.js +++ b/web/settings/assets/device-02db7f9c.js @@ -1 +1 @@ -import{_ as r,q as u,k as l,l as p,B as n,M as c,x as m,u as _,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceSunways",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-sunways"},w={class:"small"};function b(t,e,s,y,x,a){const d=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),p("div",v,[n(d,null,{default:c(()=>[m(" Einstellungen für Sunways "),_("span",w,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":s.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const B=r(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sunways/device.vue"]]);export{B as default}; +import{_ as r,q as u,k as l,l as p,B as n,M as c,x as m,u as _,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceSunways",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-sunways"},w={class:"small"};function b(t,e,s,y,x,a){const d=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),p("div",v,[n(d,null,{default:c(()=>[m(" Einstellungen für Sunways "),_("span",w,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":s.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const B=r(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sunways/device.vue"]]);export{B as default}; diff --git a/web/settings/assets/device-2314e42d.js b/web/settings/assets/device-0578cae4.js similarity index 87% rename from web/settings/assets/device-2314e42d.js rename to web/settings/assets/device-0578cae4.js index 0eecb825f1..30910b9d80 100644 --- a/web/settings/assets/device-2314e42d.js +++ b/web/settings/assets/device-0578cae4.js @@ -1 +1 @@ -import{_ as u,q as n,k as p,l as c,B as o,M as l,x as _,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceJanitza",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-janitza"},v={class:"small"};function h(t,e,a,x,w,s){const i=n("openwb-base-heading"),d=n("openwb-base-text-input");return p(),c("div",g,[o(i,null,{default:l(()=>[_(" Einstellungen für Janitza "),m("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const q=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/janitza/device.vue"]]);export{q as default}; +import{_ as u,q as n,k as p,l as c,B as o,M as l,x as _,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceJanitza",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-janitza"},v={class:"small"};function h(t,e,a,x,w,s){const i=n("openwb-base-heading"),d=n("openwb-base-text-input");return p(),c("div",g,[o(i,null,{default:l(()=>[_(" Einstellungen für Janitza "),m("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const q=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/janitza/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-7cf62c11.js b/web/settings/assets/device-07a50ea9.js similarity index 89% rename from web/settings/assets/device-7cf62c11.js rename to web/settings/assets/device-07a50ea9.js index 1e76911c37..e9874ef12e 100644 --- a/web/settings/assets/device-7cf62c11.js +++ b/web/settings/assets/device-07a50ea9.js @@ -1 +1 @@ -import{_ as r,q as t,k as p,l as c,B as a,M as m,x as _,u as f,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceQCellls",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-qcells"},w={class:"small"};function x(n,e,s,C,h,i){const d=t("openwb-base-heading"),u=t("openwb-base-text-input"),l=t("openwb-base-number-input");return p(),c("div",v,[a(d,null,{default:m(()=>[_(" Einstellungen für QCells ESS "),f("span",w,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),a(l,{title:"Modbus ID","model-value":s.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o,"configuration.modbus_id"))},null,8,["model-value"])])}const V=r(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/device.vue"]]);export{V as default}; +import{_ as r,q as t,k as p,l as c,B as a,M as m,x as _,u as f,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceQCellls",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-qcells"},w={class:"small"};function x(n,e,s,C,h,i){const d=t("openwb-base-heading"),u=t("openwb-base-text-input"),l=t("openwb-base-number-input");return p(),c("div",v,[a(d,null,{default:m(()=>[_(" Einstellungen für QCells ESS "),f("span",w,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),a(l,{title:"Modbus ID","model-value":s.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o,"configuration.modbus_id"))},null,8,["model-value"])])}const V=r(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/device.vue"]]);export{V as default}; diff --git a/web/settings/assets/device-e0fdc9ea.js b/web/settings/assets/device-0983a48e.js similarity index 87% rename from web/settings/assets/device-e0fdc9ea.js rename to web/settings/assets/device-0983a48e.js index b981d327fe..c61c0b22ec 100644 --- a/web/settings/assets/device-e0fdc9ea.js +++ b/web/settings/assets/device-0983a48e.js @@ -1 +1 @@ -import{_ as c,q as o,k as u,l as p,B as n,M as l,x as _,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceVictron",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-victron"},g={class:"small"};function h(t,e,s,x,w,i){const a=o("openwb-base-heading"),r=o("openwb-base-text-input");return u(),p("div",b,[n(a,null,{default:l(()=>[_(" Einstellungen für Victron "),m("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.ip_address"))},null,8,["model-value"])])}const q=c(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/device.vue"]]);export{q as default}; +import{_ as c,q as o,k as u,l as p,B as n,M as l,x as _,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceVictron",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-victron"},g={class:"small"};function h(t,e,s,x,w,i){const a=o("openwb-base-heading"),r=o("openwb-base-text-input");return u(),p("div",b,[n(a,null,{default:l(()=>[_(" Einstellungen für Victron "),m("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.ip_address"))},null,8,["model-value"])])}const q=c(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-dc1669d7.js b/web/settings/assets/device-177c532a.js similarity index 91% rename from web/settings/assets/device-dc1669d7.js rename to web/settings/assets/device-177c532a.js index 270c385302..9998a0451d 100644 --- a/web/settings/assets/device-dc1669d7.js +++ b/web/settings/assets/device-177c532a.js @@ -1 +1 @@ -import{_ as m,q as o,k as _,l as b,B as i,M as u,x as a,u as d,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceHuawei",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-huawei"},h={class:"small"},w=d("br",null,null,-1);function x(n,e,s,D,I,r){const l=o("openwb-base-heading"),c=o("openwb-base-text-input"),p=o("openwb-base-number-input");return _(),b("div",v,[i(l,null,{default:u(()=>[a(" Einstellungen für Huawei "),d("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),i(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>r.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Modbus ID","model-value":s.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=t=>r.updateConfiguration(t,"configuration.modbus_id"))},{help:u(()=>[a(' Sind mehrere Huawei Wechselrichter als "Schwarm" verbunden, dann besitzt der Master vermutlich die ID "16". Über diese ID werden dann alle Daten in Summe zur Verfügung gestellt.'),w,a(" Die IDs 1 bis 15 sind für einzelne Wechselrichter reserviert. ")]),_:1},8,["model-value"])])}const C=m(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/device.vue"]]);export{C as default}; +import{_ as m,q as o,k as _,l as b,B as i,M as u,x as a,u as d,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceHuawei",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-huawei"},h={class:"small"},w=d("br",null,null,-1);function x(n,e,s,D,I,r){const l=o("openwb-base-heading"),c=o("openwb-base-text-input"),p=o("openwb-base-number-input");return _(),b("div",v,[i(l,null,{default:u(()=>[a(" Einstellungen für Huawei "),d("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),i(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>r.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Modbus ID","model-value":s.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=t=>r.updateConfiguration(t,"configuration.modbus_id"))},{help:u(()=>[a(' Sind mehrere Huawei Wechselrichter als "Schwarm" verbunden, dann besitzt der Master vermutlich die ID "16". Über diese ID werden dann alle Daten in Summe zur Verfügung gestellt.'),w,a(" Die IDs 1 bis 15 sind für einzelne Wechselrichter reserviert. ")]),_:1},8,["model-value"])])}const C=m(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/device.vue"]]);export{C as default}; diff --git a/web/settings/assets/device-be0069c5.js b/web/settings/assets/device-18e5e6a0.js similarity index 87% rename from web/settings/assets/device-be0069c5.js rename to web/settings/assets/device-18e5e6a0.js index 5ad0e8d1f0..43e5214015 100644 --- a/web/settings/assets/device-be0069c5.js +++ b/web/settings/assets/device-18e5e6a0.js @@ -1 +1 @@ -import{_ as u,q as t,k as c,l as p,B as a,M as l,x as _,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceCarloGavazzi",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-carlogavazzi"},b={class:"small"};function z(o,e,n,h,x,s){const i=t("openwb-base-heading"),r=t("openwb-base-text-input");return c(),p("div",g,[a(i,null,{default:l(()=>[_(" Einstellungen für Carlo Gavazzi "),m("span",b,"(Modul: "+f(o.$options.name)+")",1)]),_:1}),a(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=d=>s.updateConfiguration(d,"configuration.ip_address"))},null,8,["model-value"])])}const B=u(v,[["render",z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/carlo_gavazzi/device.vue"]]);export{B as default}; +import{_ as u,q as t,k as c,l as p,B as a,M as l,x as _,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceCarloGavazzi",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-carlogavazzi"},b={class:"small"};function z(o,e,n,h,x,s){const i=t("openwb-base-heading"),r=t("openwb-base-text-input");return c(),p("div",g,[a(i,null,{default:l(()=>[_(" Einstellungen für Carlo Gavazzi "),m("span",b,"(Modul: "+f(o.$options.name)+")",1)]),_:1}),a(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=d=>s.updateConfiguration(d,"configuration.ip_address"))},null,8,["model-value"])])}const B=u(v,[["render",z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/carlo_gavazzi/device.vue"]]);export{B as default}; diff --git a/web/settings/assets/device-41cad4e2.js b/web/settings/assets/device-2766d18c.js similarity index 87% rename from web/settings/assets/device-41cad4e2.js rename to web/settings/assets/device-2766d18c.js index 282d419d70..2a8f031832 100644 --- a/web/settings/assets/device-41cad4e2.js +++ b/web/settings/assets/device-2766d18c.js @@ -1 +1 @@ -import{_ as u,q as o,k as p,l as c,B as n,M as l,x as _,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceStuder",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-studer"},v={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für Studer "),m("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const y=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/device.vue"]]);export{y as default}; +import{_ as u,q as o,k as p,l as c,B as n,M as l,x as _,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceStuder",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-studer"},v={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für Studer "),m("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const y=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-03a9dd5f.js b/web/settings/assets/device-29da1454.js similarity index 87% rename from web/settings/assets/device-03a9dd5f.js rename to web/settings/assets/device-29da1454.js index e740018d2b..060c850639 100644 --- a/web/settings/assets/device-03a9dd5f.js +++ b/web/settings/assets/device-29da1454.js @@ -1 +1 @@ -import{_ as u,q as t,k as p,l as c,B as n,M as l,x as _,u as m,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceSmaWebbox",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-sma-webbox"},v={class:"small"};function x(o,e,s,w,h,a){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return p(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für SMA Webbox "),m("span",v,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const y=u(f,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_webbox/device.vue"]]);export{y as default}; +import{_ as u,q as t,k as p,l as c,B as n,M as l,x as _,u as m,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceSmaWebbox",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-sma-webbox"},v={class:"small"};function x(o,e,s,w,h,a){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return p(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für SMA Webbox "),m("span",v,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const y=u(f,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_webbox/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-d443d481.js b/web/settings/assets/device-2b003c1c.js similarity index 89% rename from web/settings/assets/device-d443d481.js rename to web/settings/assets/device-2b003c1c.js index 4e08e1797b..8b04e25e7c 100644 --- a/web/settings/assets/device-d443d481.js +++ b/web/settings/assets/device-2b003c1c.js @@ -1 +1 @@ -import{_ as p,q as t,k as l,l as c,B as a,M as _,x as m,u as f,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceOpenwbFlex",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-openwb-flex"},w={class:"small"};function x(o,e,i,B,h,s){const u=t("openwb-base-heading"),r=t("openwb-base-text-input"),d=t("openwb-base-number-input");return l(),c("div",v,[a(u,null,{default:_(()=>[m(" Einstellungen für openWB-Flex "),f("span",w,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),a(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(d,{title:"Port",required:"","model-value":i.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const V=p(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/device.vue"]]);export{V as default}; +import{_ as p,q as t,k as l,l as c,B as a,M as _,x as m,u as f,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceOpenwbFlex",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-openwb-flex"},w={class:"small"};function x(o,e,i,B,h,s){const u=t("openwb-base-heading"),r=t("openwb-base-text-input"),d=t("openwb-base-number-input");return l(),c("div",v,[a(u,null,{default:_(()=>[m(" Einstellungen für openWB-Flex "),f("span",w,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),a(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(d,{title:"Port",required:"","model-value":i.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const V=p(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/device.vue"]]);export{V as default}; diff --git a/web/settings/assets/device-bc1d9fef.js b/web/settings/assets/device-2bedae67.js similarity index 89% rename from web/settings/assets/device-bc1d9fef.js rename to web/settings/assets/device-2bedae67.js index 320ccf6201..2e5f28326e 100644 --- a/web/settings/assets/device-bc1d9fef.js +++ b/web/settings/assets/device-2bedae67.js @@ -1 +1 @@ -import{_ as p,q as n,k as _,l as f,B as o,M as s,x as a,u as m,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"DeviceKostalPiko",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-kostalpiko"},v={class:"small"};function k(t,e,i,w,x,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),c=n("openwb-base-text-input");return _(),f("div",g,[o(d,null,{default:s(()=>[a(" Einstellungen für Kostal Piko "),m("span",v,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:s(()=>[a(" Der Wechselrichter liefert Werte nur, solange er auch PV-Leistung liefert. Nachts geht er in den Standby. Die Hausanschlussüberwachung ist nur aktiv, wenn der Wechselrichter auch aktiv ist. ")]),_:1}),o(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=l=>r.updateConfiguration(l,"configuration.ip_address"))},null,8,["model-value"])])}const V=p(h,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko/device.vue"]]);export{V as default}; +import{_ as p,q as n,k as _,l as f,B as o,M as s,x as a,u as m,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"DeviceKostalPiko",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-kostalpiko"},v={class:"small"};function k(t,e,i,w,x,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),c=n("openwb-base-text-input");return _(),f("div",g,[o(d,null,{default:s(()=>[a(" Einstellungen für Kostal Piko "),m("span",v,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:s(()=>[a(" Der Wechselrichter liefert Werte nur, solange er auch PV-Leistung liefert. Nachts geht er in den Standby. Die Hausanschlussüberwachung ist nur aktiv, wenn der Wechselrichter auch aktiv ist. ")]),_:1}),o(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=l=>r.updateConfiguration(l,"configuration.ip_address"))},null,8,["model-value"])])}const V=p(h,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko/device.vue"]]);export{V as default}; diff --git a/web/settings/assets/device-589ff411.js b/web/settings/assets/device-303998e6.js similarity index 90% rename from web/settings/assets/device-589ff411.js rename to web/settings/assets/device-303998e6.js index cdc2e97800..da4538c2b4 100644 --- a/web/settings/assets/device-589ff411.js +++ b/web/settings/assets/device-303998e6.js @@ -1 +1 @@ -import{_ as r,q as u,k as l,l as p,B as o,M as c,x as m,u as f,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceBYD",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-byd"},b={class:"small"};function w(n,e,a,y,B,i){const d=u("openwb-base-heading"),s=u("openwb-base-text-input");return l(),p("div",v,[o(d,null,{default:c(()=>[m(" Einstellungen für BYD "),f("span",b,"(Modul: "+_(n.$options.name)+")",1)]),_:1}),o(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),o(s,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),o(s,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const V=r(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/byd/device.vue"]]);export{V as default}; +import{_ as r,q as u,k as l,l as p,B as o,M as c,x as m,u as f,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceBYD",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-byd"},b={class:"small"};function w(n,e,a,y,B,i){const d=u("openwb-base-heading"),s=u("openwb-base-text-input");return l(),p("div",v,[o(d,null,{default:c(()=>[m(" Einstellungen für BYD "),f("span",b,"(Modul: "+_(n.$options.name)+")",1)]),_:1}),o(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),o(s,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),o(s,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const V=r(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/byd/device.vue"]]);export{V as default}; diff --git a/web/settings/assets/device-2aa63639.js b/web/settings/assets/device-330cc021.js similarity index 89% rename from web/settings/assets/device-2aa63639.js rename to web/settings/assets/device-330cc021.js index e0825618f2..50bf394928 100644 --- a/web/settings/assets/device-2aa63639.js +++ b/web/settings/assets/device-330cc021.js @@ -1 +1 @@ -import{_ as l,q as n,k as _,l as m,B as o,M as a,x as s,u as f,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"DeviceEnphase",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-enphase"},g={class:"small"};function w(t,e,i,x,y,r){const p=n("openwb-base-heading"),u=n("openwb-base-alert"),d=n("openwb-base-text-input");return _(),m("div",v,[o(p,null,{default:a(()=>[s(" Einstellungen für Enphase Envoy / IQ Gateway "),f("span",g,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:a(()=>[s(" Geräte mit Firmware-Versionen 7.0 oder neuer werden derzeit nicht unterstützt. ")]),_:1}),o(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.hostname,"onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.hostname"))},null,8,["model-value"])])}const V=l(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/device.vue"]]);export{V as default}; +import{_ as l,q as n,k as _,l as m,B as o,M as a,x as s,u as f,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"DeviceEnphase",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-enphase"},g={class:"small"};function w(t,e,i,x,y,r){const p=n("openwb-base-heading"),u=n("openwb-base-alert"),d=n("openwb-base-text-input");return _(),m("div",v,[o(p,null,{default:a(()=>[s(" Einstellungen für Enphase Envoy / IQ Gateway "),f("span",g,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:a(()=>[s(" Geräte mit Firmware-Versionen 7.0 oder neuer werden derzeit nicht unterstützt. ")]),_:1}),o(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.hostname,"onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.hostname"))},null,8,["model-value"])])}const V=l(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/device.vue"]]);export{V as default}; diff --git a/web/settings/assets/device-cf590f01.js b/web/settings/assets/device-3a37f7bd.js similarity index 87% rename from web/settings/assets/device-cf590f01.js rename to web/settings/assets/device-3a37f7bd.js index 8909195c41..a1d537afd3 100644 --- a/web/settings/assets/device-cf590f01.js +++ b/web/settings/assets/device-3a37f7bd.js @@ -1 +1 @@ -import{_ as d,q as o,k as p,l as c,B as n,M as l,x as _,u as m,y as g}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceHuaweiSmartLogger",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-huawei-smart-logger"},v={class:"small"};function w(t,e,a,h,x,s){const i=o("openwb-base-heading"),r=o("openwb-base-text-input");return p(),c("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Huawei SmartLogger "),m("span",v,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),n(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>s.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const y=d(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/device.vue"]]);export{y as default}; +import{_ as d,q as o,k as p,l as c,B as n,M as l,x as _,u as m,y as g}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceHuaweiSmartLogger",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-huawei-smart-logger"},v={class:"small"};function w(t,e,a,h,x,s){const i=o("openwb-base-heading"),r=o("openwb-base-text-input");return p(),c("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Huawei SmartLogger "),m("span",v,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),n(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>s.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const y=d(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-a558d98d.js b/web/settings/assets/device-4a073ec7.js similarity index 85% rename from web/settings/assets/device-a558d98d.js rename to web/settings/assets/device-4a073ec7.js index f9a53059e5..5e5081445a 100644 --- a/web/settings/assets/device-a558d98d.js +++ b/web/settings/assets/device-4a073ec7.js @@ -1 +1 @@ -import{_ as c,q as n,k as p,l as u,B as o,M as s,x as a,u as d,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceVirtual",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-virtual"},m={class:"small"};function v(e,t,b,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für virtuelle Geräte "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/virtual/device.vue"]]);export{B as default}; +import{_ as c,q as n,k as p,l as u,B as o,M as s,x as a,u as d,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceVirtual",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-virtual"},m={class:"small"};function v(e,t,b,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für virtuelle Geräte "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/virtual/device.vue"]]);export{B as default}; diff --git a/web/settings/assets/device-4a505cab.js b/web/settings/assets/device-553acdbd.js similarity index 93% rename from web/settings/assets/device-4a505cab.js rename to web/settings/assets/device-553acdbd.js index 0b6ad2c7d2..f39d2e6de4 100644 --- a/web/settings/assets/device-4a505cab.js +++ b/web/settings/assets/device-553acdbd.js @@ -1 +1 @@ -import{_ as u,q as o,k as c,l,B as n,M as p,x as _,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceSolarmax",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-solarmax"},g={class:"small"};function x(t,e,a,h,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),l("div",b,[n(i,null,{default:p(()=>[_(" Einstellungen für Solarmax "),m("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(v,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/device.vue"]]);export{C as default}; +import{_ as u,q as o,k as c,l,B as n,M as p,x as _,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceSolarmax",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-solarmax"},g={class:"small"};function x(t,e,a,h,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),l("div",b,[n(i,null,{default:p(()=>[_(" Einstellungen für Solarmax "),m("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(v,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/device.vue"]]);export{C as default}; diff --git a/web/settings/assets/device-169f0a4f.js b/web/settings/assets/device-5951186e.js similarity index 96% rename from web/settings/assets/device-169f0a4f.js rename to web/settings/assets/device-5951186e.js index bae6c19d72..2a534286ef 100644 --- a/web/settings/assets/device-169f0a4f.js +++ b/web/settings/assets/device-5951186e.js @@ -1 +1 @@ -import{_,q as n,k as b,l as f,B as t,M as a,x as o,u,y as g}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"DeviceSolarEdge",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},v={class:"device-solaredge"},w={class:"small"},B=u("br",null,null,-1);function S(i,e,s,k,W,d){const l=n("openwb-base-heading"),p=n("openwb-base-alert"),c=n("openwb-base-text-input"),m=n("openwb-base-number-input");return b(),f("div",v,[t(l,null,{default:a(()=>[o(" Einstellungen für SolarEdge "),u("span",w,"(Modul: "+g(i.$options.name)+")",1)]),_:1}),t(p,{subtype:"info"},{default:a(()=>[o(" ModbusTCP muss im Wechselrichter aktiviert werden und der Wechselrichter per LAN angebunden sein."),B,o(" SolarEdge lässt nur eine ModbusTCP-Verbindung zu. Wenn Sie mit einem weiteren Smarthome-System, wie z.B. ioBroker oder openHAB, den SolarEdge-Wechselrichter abfragen, kann dies die Abfrage durch die openWB stören oder verhindern. ")]),_:1}),t(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>d.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"]),t(m,{title:"Port",required:"","model-value":s.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=r=>d.updateConfiguration(r,"configuration.port"))},{help:a(()=>[o(" Je nach Produktionsdatum und Softwareversion ist 502 oder 1502 ab Werk eingestellt. Bitte im Wechselrichter überprüfen. ")]),_:1},8,["model-value"])])}const y=_(h,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/device.vue"]]);export{y as default}; +import{_,q as n,k as b,l as f,B as t,M as a,x as o,u,y as g}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"DeviceSolarEdge",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},v={class:"device-solaredge"},w={class:"small"},B=u("br",null,null,-1);function S(i,e,s,k,W,d){const l=n("openwb-base-heading"),p=n("openwb-base-alert"),c=n("openwb-base-text-input"),m=n("openwb-base-number-input");return b(),f("div",v,[t(l,null,{default:a(()=>[o(" Einstellungen für SolarEdge "),u("span",w,"(Modul: "+g(i.$options.name)+")",1)]),_:1}),t(p,{subtype:"info"},{default:a(()=>[o(" ModbusTCP muss im Wechselrichter aktiviert werden und der Wechselrichter per LAN angebunden sein."),B,o(" SolarEdge lässt nur eine ModbusTCP-Verbindung zu. Wenn Sie mit einem weiteren Smarthome-System, wie z.B. ioBroker oder openHAB, den SolarEdge-Wechselrichter abfragen, kann dies die Abfrage durch die openWB stören oder verhindern. ")]),_:1}),t(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>d.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"]),t(m,{title:"Port",required:"","model-value":s.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=r=>d.updateConfiguration(r,"configuration.port"))},{help:a(()=>[o(" Je nach Produktionsdatum und Softwareversion ist 502 oder 1502 ab Werk eingestellt. Bitte im Wechselrichter überprüfen. ")]),_:1},8,["model-value"])])}const y=_(h,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-9830320e.js b/web/settings/assets/device-6191c124.js similarity index 93% rename from web/settings/assets/device-9830320e.js rename to web/settings/assets/device-6191c124.js index 0521aa210a..a753484835 100644 --- a/web/settings/assets/device-9830320e.js +++ b/web/settings/assets/device-6191c124.js @@ -1 +1 @@ -import{_ as u,q as o,k as c,l,B as n,M as p,x as _,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceKostalSEM",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-kostal-sem"},b={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),l("div",v,[n(i,null,{default:p(()=>[_(" Einstellungen für Kostal Smart Energy Meter oder TQ EM 410 "),m("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const B=u(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_sem/device.vue"]]);export{B as default}; +import{_ as u,q as o,k as c,l,B as n,M as p,x as _,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceKostalSEM",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-kostal-sem"},b={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),l("div",v,[n(i,null,{default:p(()=>[_(" Einstellungen für Kostal Smart Energy Meter oder TQ EM 410 "),m("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const B=u(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_sem/device.vue"]]);export{B as default}; diff --git a/web/settings/assets/device-180aca42.js b/web/settings/assets/device-6270186c.js similarity index 89% rename from web/settings/assets/device-180aca42.js rename to web/settings/assets/device-6270186c.js index 5db9502500..b668bd65c1 100644 --- a/web/settings/assets/device-180aca42.js +++ b/web/settings/assets/device-6270186c.js @@ -1 +1 @@ -import{_ as d,q as u,k as l,l as p,B as n,M as c,x as f,u as m,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DevicePowerfox",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-powerfox"},w={class:"small"};function b(o,e,a,x,B,s){const r=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),p("div",v,[n(r,null,{default:c(()=>[f(" Einstellungen für Powerfox "),m("span",w,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>s.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>s.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const V=d(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/device.vue"]]);export{V as default}; +import{_ as d,q as u,k as l,l as p,B as n,M as c,x as f,u as m,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DevicePowerfox",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-powerfox"},w={class:"small"};function b(o,e,a,x,B,s){const r=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),p("div",v,[n(r,null,{default:c(()=>[f(" Einstellungen für Powerfox "),m("span",w,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>s.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>s.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const V=d(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/device.vue"]]);export{V as default}; diff --git a/web/settings/assets/device-35723e49.js b/web/settings/assets/device-6bb1e8bb.js similarity index 88% rename from web/settings/assets/device-35723e49.js rename to web/settings/assets/device-6bb1e8bb.js index 3b99b169a2..c930a67acd 100644 --- a/web/settings/assets/device-35723e49.js +++ b/web/settings/assets/device-6bb1e8bb.js @@ -1 +1 @@ -import{_ as l,q as t,k as _,l as m,B as n,M as s,x as a,u as f,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DevicePowerdog",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-powerdog"},w={class:"small"};function h(o,e,i,x,y,d){const r=t("openwb-base-heading"),p=t("openwb-base-alert"),u=t("openwb-base-text-input");return _(),m("div",v,[n(r,null,{default:s(()=>[a(" Einstellungen für Powerdog "),f("span",w,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:s(()=>[a(" ModbusTCP muss aktiviert sein. ")]),_:1}),n(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>d.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const k=l(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/device.vue"]]);export{k as default}; +import{_ as l,q as t,k as _,l as m,B as n,M as s,x as a,u as f,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DevicePowerdog",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-powerdog"},w={class:"small"};function h(o,e,i,x,y,d){const r=t("openwb-base-heading"),p=t("openwb-base-alert"),u=t("openwb-base-text-input");return _(),m("div",v,[n(r,null,{default:s(()=>[a(" Einstellungen für Powerdog "),f("span",w,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:s(()=>[a(" ModbusTCP muss aktiviert sein. ")]),_:1}),n(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>d.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const k=l(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-594e24e2.js b/web/settings/assets/device-6f028d56.js similarity index 86% rename from web/settings/assets/device-594e24e2.js rename to web/settings/assets/device-6f028d56.js index e3bce6168d..b50d7b6471 100644 --- a/web/settings/assets/device-594e24e2.js +++ b/web/settings/assets/device-6f028d56.js @@ -1 +1 @@ -import{_ as u,q as o,k as c,l as p,B as n,M as l,x as _,u as f,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceRCT",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-rct"},g={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),p("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für RCT "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const y=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/device.vue"]]);export{y as default}; +import{_ as u,q as o,k as c,l as p,B as n,M as l,x as _,u as f,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceRCT",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-rct"},g={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),p("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für RCT "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const y=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-29380d8c.js b/web/settings/assets/device-7554d3ae.js similarity index 87% rename from web/settings/assets/device-29380d8c.js rename to web/settings/assets/device-7554d3ae.js index 76b898efa3..b04ff4a7e5 100644 --- a/web/settings/assets/device-29380d8c.js +++ b/web/settings/assets/device-7554d3ae.js @@ -1 +1 @@ -import{_ as u,q as o,k as c,l as p,B as n,M as l,x as _,u as f,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceBatterX",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-batterx"},g={class:"small"};function x(t,e,a,h,B,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),p("div",v,[n(i,null,{default:l(()=>[_(" Einstellungen für BatterX "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/device.vue"]]);export{C as default}; +import{_ as u,q as o,k as c,l as p,B as n,M as l,x as _,u as f,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceBatterX",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-batterx"},g={class:"small"};function x(t,e,a,h,B,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),p("div",v,[n(i,null,{default:l(()=>[_(" Einstellungen für BatterX "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/device.vue"]]);export{C as default}; diff --git a/web/settings/assets/device-047cfd82.js b/web/settings/assets/device-7a13076f.js similarity index 87% rename from web/settings/assets/device-047cfd82.js rename to web/settings/assets/device-7a13076f.js index 540a61c86b..c98ed762b2 100644 --- a/web/settings/assets/device-047cfd82.js +++ b/web/settings/assets/device-7a13076f.js @@ -1 +1 @@ -import{_ as p,q as t,k as u,l as c,B as n,M as l,x as _,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceSaxpower",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-saxpower"},v={class:"small"};function x(o,e,a,w,h,s){const i=t("openwb-base-heading"),r=t("openwb-base-text-input");return u(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für Saxpower "),m("span",v,"(Modul: "+f(o.$options.name)+")",1)]),_:1}),n(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=d=>s.updateConfiguration(d,"configuration.ip_address"))},null,8,["model-value"])])}const y=p(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/saxpower/device.vue"]]);export{y as default}; +import{_ as p,q as t,k as u,l as c,B as n,M as l,x as _,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceSaxpower",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-saxpower"},v={class:"small"};function x(o,e,a,w,h,s){const i=t("openwb-base-heading"),r=t("openwb-base-text-input");return u(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für Saxpower "),m("span",v,"(Modul: "+f(o.$options.name)+")",1)]),_:1}),n(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=d=>s.updateConfiguration(d,"configuration.ip_address"))},null,8,["model-value"])])}const y=p(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/saxpower/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-5881bcf2.js b/web/settings/assets/device-7ee1c66d.js similarity index 95% rename from web/settings/assets/device-5881bcf2.js rename to web/settings/assets/device-7ee1c66d.js index 851ee3be60..d8aa4d4965 100644 --- a/web/settings/assets/device-5881bcf2.js +++ b/web/settings/assets/device-7ee1c66d.js @@ -1 +1 @@ -import{_ as b,q as o,k as h,l as g,B as s,M as u,x as t,u as n,y as i}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const m={name:"DeviceSonnenbatterie",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},computed:{linkRestApi1(){return"http://"+this.configuration.ip_address+":7979/rest/devices/battery"},linkRestApi2(){return"http://"+this.configuration.ip_address+":7979/rest/devices/battery/M05"},linkJsonApi1(){return"http://"+this.configuration.ip_address+"/api/v1/status"},linkJsonApi2(){return"http://"+this.configuration.ip_address+"/api/v2/status"}},methods:{updateConfiguration(a,r=void 0){this.$emit("update:configuration",{value:a,object:r})}}},v={class:"device-sonnenbatterie"},A={class:"small"},k={style:{display:"block"}},w=n("br",null,null,-1),B=["href"],I=n("br",null,null,-1),J=["href"],R=n("br",null,null,-1),x=["href"],P=n("br",null,null,-1),O=["href"];function S(a,r,d,y,C,e){const p=o("openwb-base-heading"),c=o("openwb-base-alert"),_=o("openwb-base-text-input"),f=o("openwb-base-select-input");return h(),g("div",v,[s(p,null,{default:u(()=>[t(" Einstellungen für SonnenBatterie "),n("span",A,"(Modul: "+i(a.$options.name)+")",1)]),_:1}),s(c,{subtype:"info"},{default:u(()=>[t(' Die Leistung steht nur in den Varianten "Rest-API 2" und "JSON-API" zur Verfügung. ')]),_:1}),s(_,{title:"IP oder Hostname",subtype:"host",required:"","model-value":d.configuration.ip_address,"onUpdate:modelValue":r[0]||(r[0]=l=>e.updateConfiguration(l,"configuration.ip_address"))},null,8,["model-value"]),s(f,{title:"Datenverbindung",required:"",notSelected:"Bitte auswählen",options:[{value:0,text:"Rest-API 1 (z.B. ECO 4)"},{value:2,text:"Rest-API 2 (z.B. ECO 6)"},{value:1,text:"JSON-API v1(z.B. ECO 8 oder 10)"},{value:3,text:"JSON-API v2(z.B. ECO 8 oder 10)"}],"model-value":d.configuration.variant,"onUpdate:modelValue":r[1]||(r[1]=l=>e.updateConfiguration(l,"configuration.variant"))},{help:u(()=>[n("span",k,[t(" Je nach Sonnen Batterie muss die richtige Datenverbindung ausgewählt werden. Folgende URLs werden zum Abruf der Daten genutzt und können auch manuell über einen Browser abgefragt werden, um die richtige Einstellung zu finden:"),w,t(" Rest-API 1: "),n("a",{href:e.linkRestApi1,target:"_blank",rel:"noopener noreferrer"},i(e.linkRestApi1),9,B),I,t(" Rest-API 2: "),n("a",{href:e.linkRestApi2,target:"_blank",rel:"noopener noreferrer"},i(e.linkRestApi2),9,J),R,t(" JSON-API v1: "),n("a",{href:e.linkJsonApi1,target:"_blank",rel:"noopener noreferrer"},i(e.linkJsonApi1),9,x),P,t(" JSON-API v2: "),n("a",{href:e.linkJsonApi2,target:"_blank",rel:"noopener noreferrer"},i(e.linkJsonApi2),9,O)])]),_:1},8,["options","model-value"])])}const E=b(m,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/device.vue"]]);export{E as default}; +import{_ as b,q as o,k as h,l as g,B as s,M as u,x as t,u as n,y as i}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const m={name:"DeviceSonnenbatterie",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},computed:{linkRestApi1(){return"http://"+this.configuration.ip_address+":7979/rest/devices/battery"},linkRestApi2(){return"http://"+this.configuration.ip_address+":7979/rest/devices/battery/M05"},linkJsonApi1(){return"http://"+this.configuration.ip_address+"/api/v1/status"},linkJsonApi2(){return"http://"+this.configuration.ip_address+"/api/v2/status"}},methods:{updateConfiguration(a,r=void 0){this.$emit("update:configuration",{value:a,object:r})}}},v={class:"device-sonnenbatterie"},A={class:"small"},k={style:{display:"block"}},w=n("br",null,null,-1),B=["href"],I=n("br",null,null,-1),J=["href"],R=n("br",null,null,-1),x=["href"],P=n("br",null,null,-1),O=["href"];function S(a,r,d,y,C,e){const p=o("openwb-base-heading"),c=o("openwb-base-alert"),_=o("openwb-base-text-input"),f=o("openwb-base-select-input");return h(),g("div",v,[s(p,null,{default:u(()=>[t(" Einstellungen für SonnenBatterie "),n("span",A,"(Modul: "+i(a.$options.name)+")",1)]),_:1}),s(c,{subtype:"info"},{default:u(()=>[t(' Die Leistung steht nur in den Varianten "Rest-API 2" und "JSON-API" zur Verfügung. ')]),_:1}),s(_,{title:"IP oder Hostname",subtype:"host",required:"","model-value":d.configuration.ip_address,"onUpdate:modelValue":r[0]||(r[0]=l=>e.updateConfiguration(l,"configuration.ip_address"))},null,8,["model-value"]),s(f,{title:"Datenverbindung",required:"",notSelected:"Bitte auswählen",options:[{value:0,text:"Rest-API 1 (z.B. ECO 4)"},{value:2,text:"Rest-API 2 (z.B. ECO 6)"},{value:1,text:"JSON-API v1(z.B. ECO 8 oder 10)"},{value:3,text:"JSON-API v2(z.B. ECO 8 oder 10)"}],"model-value":d.configuration.variant,"onUpdate:modelValue":r[1]||(r[1]=l=>e.updateConfiguration(l,"configuration.variant"))},{help:u(()=>[n("span",k,[t(" Je nach Sonnen Batterie muss die richtige Datenverbindung ausgewählt werden. Folgende URLs werden zum Abruf der Daten genutzt und können auch manuell über einen Browser abgefragt werden, um die richtige Einstellung zu finden:"),w,t(" Rest-API 1: "),n("a",{href:e.linkRestApi1,target:"_blank",rel:"noopener noreferrer"},i(e.linkRestApi1),9,B),I,t(" Rest-API 2: "),n("a",{href:e.linkRestApi2,target:"_blank",rel:"noopener noreferrer"},i(e.linkRestApi2),9,J),R,t(" JSON-API v1: "),n("a",{href:e.linkJsonApi1,target:"_blank",rel:"noopener noreferrer"},i(e.linkJsonApi1),9,x),P,t(" JSON-API v2: "),n("a",{href:e.linkJsonApi2,target:"_blank",rel:"noopener noreferrer"},i(e.linkJsonApi2),9,O)])]),_:1},8,["options","model-value"])])}const E=b(m,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/device.vue"]]);export{E as default}; diff --git a/web/settings/assets/device-349196ec.js b/web/settings/assets/device-8106933c.js similarity index 92% rename from web/settings/assets/device-349196ec.js rename to web/settings/assets/device-8106933c.js index 85e08ab265..ad6db1e64e 100644 --- a/web/settings/assets/device-349196ec.js +++ b/web/settings/assets/device-8106933c.js @@ -1 +1 @@ -import{_ as p,q as n,k as r,l as d,B as o,M as s,x as a,u,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const l={name:"DeviceOpenwbEvuKit",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-openwb-evukit"},b={class:"small"};function m(e,t,v,g,w,h){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openWB EVU-Kit "),u("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const $=p(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/device.vue"]]);export{$ as default}; +import{_ as p,q as n,k as r,l as d,B as o,M as s,x as a,u,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const l={name:"DeviceOpenwbEvuKit",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-openwb-evukit"},b={class:"small"};function m(e,t,v,g,w,h){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openWB EVU-Kit "),u("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const $=p(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/device.vue"]]);export{$ as default}; diff --git a/web/settings/assets/device-d47ecb4c.js b/web/settings/assets/device-81b28430.js similarity index 89% rename from web/settings/assets/device-d47ecb4c.js rename to web/settings/assets/device-81b28430.js index 7dffa7d116..2fbc19bb4d 100644 --- a/web/settings/assets/device-d47ecb4c.js +++ b/web/settings/assets/device-81b28430.js @@ -1 +1 @@ -import{_ as c,q as o,k as _,l as m,B as i,M as r,x as n,u as a,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceHttp",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-http"},v={class:"small"},h=a("br",null,null,-1);function w(t,e,s,x,B,d){const u=o("openwb-base-heading"),p=o("openwb-base-text-input");return _(),m("div",b,[i(u,null,{default:r(()=>[n(" Einstellungen für Http "),a("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),i(p,{title:"Server-URL",subtype:"url",required:"","model-value":s.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=l=>d.updateConfiguration(l,"configuration.url"))},{help:r(()=>[n(" Hier sind die Verbindungsangaben für den Http-Server einzutragen. Der Pfad für die einzelnen Daten wird in der Komponente hinterlegt."),h,n(" Beispiel: http://mein.server:8080 ")]),_:1},8,["model-value"])])}const y=c(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/device.vue"]]);export{y as default}; +import{_ as c,q as o,k as _,l as m,B as i,M as r,x as n,u as a,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceHttp",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-http"},v={class:"small"},h=a("br",null,null,-1);function w(t,e,s,x,B,d){const u=o("openwb-base-heading"),p=o("openwb-base-text-input");return _(),m("div",b,[i(u,null,{default:r(()=>[n(" Einstellungen für Http "),a("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),i(p,{title:"Server-URL",subtype:"url",required:"","model-value":s.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=l=>d.updateConfiguration(l,"configuration.url"))},{help:r(()=>[n(" Hier sind die Verbindungsangaben für den Http-Server einzutragen. Der Pfad für die einzelnen Daten wird in der Komponente hinterlegt."),h,n(" Beispiel: http://mein.server:8080 ")]),_:1},8,["model-value"])])}const y=c(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-f42fac63.js b/web/settings/assets/device-83a90199.js similarity index 89% rename from web/settings/assets/device-f42fac63.js rename to web/settings/assets/device-83a90199.js index 1a3687a681..d2b1cc23d1 100644 --- a/web/settings/assets/device-f42fac63.js +++ b/web/settings/assets/device-83a90199.js @@ -1 +1 @@ -import{_ as l,q as n,k as _,l as m,B as o,M as s,x as a,u as f,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceSiemensSentron",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-siemens-sentron"},h={class:"small"};function w(t,e,i,x,y,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),p=n("openwb-base-text-input");return _(),m("div",v,[o(d,null,{default:s(()=>[a(" Einstellungen für Siemens Sentron "),f("span",h,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:s(()=>[a(' Derzeit werden nur Messgeräte vom Typ "7KM PAC2200" mit Ethernet-Schnittstelle unterstützt. ')]),_:1}),o(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const C=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens_sentron/device.vue"]]);export{C as default}; +import{_ as l,q as n,k as _,l as m,B as o,M as s,x as a,u as f,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceSiemensSentron",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-siemens-sentron"},h={class:"small"};function w(t,e,i,x,y,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),p=n("openwb-base-text-input");return _(),m("div",v,[o(d,null,{default:s(()=>[a(" Einstellungen für Siemens Sentron "),f("span",h,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:s(()=>[a(' Derzeit werden nur Messgeräte vom Typ "7KM PAC2200" mit Ethernet-Schnittstelle unterstützt. ')]),_:1}),o(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const C=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens_sentron/device.vue"]]);export{C as default}; diff --git a/web/settings/assets/device-ee846804.js b/web/settings/assets/device-8c110926.js similarity index 90% rename from web/settings/assets/device-ee846804.js rename to web/settings/assets/device-8c110926.js index cf5f112f2b..272c8985a4 100644 --- a/web/settings/assets/device-ee846804.js +++ b/web/settings/assets/device-8c110926.js @@ -1 +1 @@ -import{_ as p,q as o,k as r,l as c,B as a,M as _,x as m,u as f,y as g}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceShelly",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-shelly"},h={class:"small"};function y(t,e,i,w,x,s){const l=o("openwb-base-heading"),u=o("openwb-base-text-input"),d=o("openwb-base-select-input");return r(),c("div",b,[a(l,null,{default:_(()=>[m(" Einstellungen für Shelly "),f("span",h,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(d,{title:"Generation",notSelected:"Bitte auswählen",options:[{value:1,text:"Shelly 1pm"},{value:2,text:"Shelly 1pm plus"}],"model-value":i.configuration.generation,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.generation"))},null,8,["model-value"])])}const C=p(v,[["render",y],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/shelly/device.vue"]]);export{C as default}; +import{_ as p,q as o,k as r,l as c,B as a,M as _,x as m,u as f,y as g}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceShelly",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-shelly"},h={class:"small"};function y(t,e,i,w,x,s){const l=o("openwb-base-heading"),u=o("openwb-base-text-input"),d=o("openwb-base-select-input");return r(),c("div",b,[a(l,null,{default:_(()=>[m(" Einstellungen für Shelly "),f("span",h,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(d,{title:"Generation",notSelected:"Bitte auswählen",options:[{value:1,text:"Shelly 1pm"},{value:2,text:"Shelly 1pm plus"}],"model-value":i.configuration.generation,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.generation"))},null,8,["model-value"])])}const C=p(v,[["render",y],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/shelly/device.vue"]]);export{C as default}; diff --git a/web/settings/assets/device-f876c5f1.js b/web/settings/assets/device-8d4d93c6.js similarity index 91% rename from web/settings/assets/device-f876c5f1.js rename to web/settings/assets/device-8d4d93c6.js index 45df30e612..a48c51d6ae 100644 --- a/web/settings/assets/device-f876c5f1.js +++ b/web/settings/assets/device-8d4d93c6.js @@ -1 +1 @@ -import{_ as c,q as o,k as _,l as m,B as a,M as d,x as r,u as f,y as g}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceSolarwatt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-solarwatt"},w={class:"small"};function h(t,e,s,x,y,i){const l=o("openwb-base-heading"),u=o("openwb-base-text-input"),p=o("openwb-base-select-input");return _(),m("div",v,[a(l,null,{default:d(()=>[r(" Einstellungen für Solarwatt/My Reserve "),f("span",w,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(p,{title:"Abrufmethode",notSelected:"Bitte auswählen",options:[{value:0,text:"Gateway"},{value:1,text:"Energy Manager"}],"model-value":s.configuration.energy_manager,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n,"configuration.energy_manager"))},{help:d(()=>[r(" Wenn beide Abrufmethoden verwendet werden sollen, muss für jede Methode ein Gerät erstellt werden. ")]),_:1},8,["model-value"])])}const M=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/device.vue"]]);export{M as default}; +import{_ as c,q as o,k as _,l as m,B as a,M as d,x as r,u as f,y as g}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceSolarwatt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-solarwatt"},w={class:"small"};function h(t,e,s,x,y,i){const l=o("openwb-base-heading"),u=o("openwb-base-text-input"),p=o("openwb-base-select-input");return _(),m("div",v,[a(l,null,{default:d(()=>[r(" Einstellungen für Solarwatt/My Reserve "),f("span",w,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(p,{title:"Abrufmethode",notSelected:"Bitte auswählen",options:[{value:0,text:"Gateway"},{value:1,text:"Energy Manager"}],"model-value":s.configuration.energy_manager,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n,"configuration.energy_manager"))},{help:d(()=>[r(" Wenn beide Abrufmethoden verwendet werden sollen, muss für jede Methode ein Gerät erstellt werden. ")]),_:1},8,["model-value"])])}const M=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/device.vue"]]);export{M as default}; diff --git a/web/settings/assets/device-1505dace.js b/web/settings/assets/device-8f87ae55.js similarity index 87% rename from web/settings/assets/device-1505dace.js rename to web/settings/assets/device-8f87ae55.js index 73d9a28903..d71fcde52a 100644 --- a/web/settings/assets/device-1505dace.js +++ b/web/settings/assets/device-8f87ae55.js @@ -1 +1 @@ -import{_ as u,q as t,k as l,l as c,B as n,M as p,x as _,u as f,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceSolarLog",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-solar_log"},b={class:"small"};function h(o,e,a,x,w,s){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return l(),c("div",v,[n(i,null,{default:p(()=>[_(" Einstellungen für Solar-Log "),f("span",b,"(Modul: "+m(o.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/device.vue"]]);export{C as default}; +import{_ as u,q as t,k as l,l as c,B as n,M as p,x as _,u as f,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceSolarLog",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-solar_log"},b={class:"small"};function h(o,e,a,x,w,s){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return l(),c("div",v,[n(i,null,{default:p(()=>[_(" Einstellungen für Solar-Log "),f("span",b,"(Modul: "+m(o.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/device.vue"]]);export{C as default}; diff --git a/web/settings/assets/device-fb7bbbe8.js b/web/settings/assets/device-916ccb12.js similarity index 90% rename from web/settings/assets/device-fb7bbbe8.js rename to web/settings/assets/device-916ccb12.js index f8764cf40b..d21a7a55fa 100644 --- a/web/settings/assets/device-fb7bbbe8.js +++ b/web/settings/assets/device-916ccb12.js @@ -1 +1 @@ -import{_ as l,q as d,k as r,l as p,B as o,M as c,x as m,u as f,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceTesla",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-tesla"},b={class:"small"};function w(n,e,a,x,y,i){const u=d("openwb-base-heading"),s=d("openwb-base-text-input");return r(),p("div",v,[o(u,null,{default:c(()=>[m(" Einstellungen für Tesla "),f("span",b,"(Modul: "+_(n.$options.name)+")",1)]),_:1}),o(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),o(s,{title:"E-Mail",subtype:"email",required:"","model-value":a.configuration.email,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.email"))},null,8,["model-value"]),o(s,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const q=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/device.vue"]]);export{q as default}; +import{_ as l,q as d,k as r,l as p,B as o,M as c,x as m,u as f,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceTesla",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-tesla"},b={class:"small"};function w(n,e,a,x,y,i){const u=d("openwb-base-heading"),s=d("openwb-base-text-input");return r(),p("div",v,[o(u,null,{default:c(()=>[m(" Einstellungen für Tesla "),f("span",b,"(Modul: "+_(n.$options.name)+")",1)]),_:1}),o(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),o(s,{title:"E-Mail",subtype:"email",required:"","model-value":a.configuration.email,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.email"))},null,8,["model-value"]),o(s,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const q=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-5d5c7300.js b/web/settings/assets/device-938e7996.js similarity index 86% rename from web/settings/assets/device-5d5c7300.js rename to web/settings/assets/device-938e7996.js index 3244ad3162..b400c7876b 100644 --- a/web/settings/assets/device-5d5c7300.js +++ b/web/settings/assets/device-938e7996.js @@ -1 +1 @@ -import{_ as c,q as o,k as u,l as p,B as n,M as l,x as _,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceE3dc",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-e3dc"},v={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return u(),p("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für E3DC "),m("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.address"))},null,8,["model-value"])])}const q=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/device.vue"]]);export{q as default}; +import{_ as c,q as o,k as u,l as p,B as n,M as l,x as _,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceE3dc",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-e3dc"},v={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return u(),p("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für E3DC "),m("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.address"))},null,8,["model-value"])])}const q=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-27fe5065.js b/web/settings/assets/device-9a846fcc.js similarity index 87% rename from web/settings/assets/device-27fe5065.js rename to web/settings/assets/device-9a846fcc.js index 9373dce730..29a07de63f 100644 --- a/web/settings/assets/device-27fe5065.js +++ b/web/settings/assets/device-9a846fcc.js @@ -1 +1 @@ -import{_ as u,q as o,k as c,l as p,B as n,M as l,x as _,u as f,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceVarta",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-varta"},g={class:"small"};function h(t,e,a,x,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),p("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Varta "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const y=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/device.vue"]]);export{y as default}; +import{_ as u,q as o,k as c,l as p,B as n,M as l,x as _,u as f,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceVarta",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-varta"},g={class:"small"};function h(t,e,a,x,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),p("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Varta "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const y=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-fd6b8a54.js b/web/settings/assets/device-9bf0f664.js similarity index 92% rename from web/settings/assets/device-fd6b8a54.js rename to web/settings/assets/device-9bf0f664.js index 248b94aa07..d2e611ae59 100644 --- a/web/settings/assets/device-fd6b8a54.js +++ b/web/settings/assets/device-9bf0f664.js @@ -1 +1 @@ -import{_ as c,q as i,k as l,l as p,B as s,M as m,x as f,u as _,y as v,z as g,A as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const w={name:"DeviceAlphaess",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},x={class:"device-alphaess"},h={class:"small"};function V(n,e,o,S,B,a){const d=i("openwb-base-heading"),u=i("openwb-base-select-input"),r=i("openwb-base-text-input");return l(),p("div",x,[s(d,null,{default:m(()=>[f(" Einstellungen für Alpha ESS "),_("span",h,"(Modul: "+v(n.$options.name)+")",1)]),_:1}),s(u,{title:"Ausleseart",notSelected:"Bitte auswählen",options:[{value:0,text:"Alpha ESS-Kit"},{value:1,text:"Hi 5/10"}],"model-value":o.configuration.source,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.source"))},null,8,["model-value"]),o.configuration.source==1?(l(),g(r,{key:0,title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"])):b("",!0),s(u,{title:"Firmware Version",notSelected:"Bitte auswählen",options:[{value:0,text:"EMS älter als 1.23V"},{value:1,text:"EMS 1.23V oder neuer"}],"model-value":o.configuration.version,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.version"))},null,8,["model-value"])])}const k=c(w,[["render",V],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/device.vue"]]);export{k as default}; +import{_ as c,q as i,k as l,l as p,B as s,M as m,x as f,u as _,y as v,z as g,A as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const w={name:"DeviceAlphaess",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},x={class:"device-alphaess"},h={class:"small"};function V(n,e,o,S,B,a){const d=i("openwb-base-heading"),u=i("openwb-base-select-input"),r=i("openwb-base-text-input");return l(),p("div",x,[s(d,null,{default:m(()=>[f(" Einstellungen für Alpha ESS "),_("span",h,"(Modul: "+v(n.$options.name)+")",1)]),_:1}),s(u,{title:"Ausleseart",notSelected:"Bitte auswählen",options:[{value:0,text:"Alpha ESS-Kit"},{value:1,text:"Hi 5/10"}],"model-value":o.configuration.source,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.source"))},null,8,["model-value"]),o.configuration.source==1?(l(),g(r,{key:0,title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"])):b("",!0),s(u,{title:"Firmware Version",notSelected:"Bitte auswählen",options:[{value:0,text:"EMS älter als 1.23V"},{value:1,text:"EMS 1.23V oder neuer"}],"model-value":o.configuration.version,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.version"))},null,8,["model-value"])])}const k=c(w,[["render",V],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/device.vue"]]);export{k as default}; diff --git a/web/settings/assets/device-eda37dcc.js b/web/settings/assets/device-9e105631.js similarity index 90% rename from web/settings/assets/device-eda37dcc.js rename to web/settings/assets/device-9e105631.js index c6b35fb126..6f40e309d0 100644 --- a/web/settings/assets/device-eda37dcc.js +++ b/web/settings/assets/device-9e105631.js @@ -1 +1 @@ -import{_ as l,q as u,k as p,l as m,B as t,M as c,x as _,u as f,y as v}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceSolarView",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-solar-view"},w={class:"small"};function x(n,e,i,V,C,a){const s=u("openwb-base-heading"),r=u("openwb-base-text-input"),d=u("openwb-base-number-input");return p(),m("div",g,[t(s,null,{default:c(()=>[_(" Einstellungen für SolarView "),f("span",w,"(Modul: "+v(n.$options.name)+")",1)]),_:1}),t(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),t(d,{title:"Port",required:"",min:1,max:65535,"model-value":i.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.port"))},null,8,["model-value"]),t(d,{title:"Timeout",required:"","model-value":i.configuration.timeout,"onUpdate:modelValue":e[2]||(e[2]=o=>a.updateConfiguration(o,"configuration.timeout"))},null,8,["model-value"])])}const y=l(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/device.vue"]]);export{y as default}; +import{_ as l,q as u,k as p,l as m,B as t,M as c,x as _,u as f,y as v}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceSolarView",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-solar-view"},w={class:"small"};function x(n,e,i,V,C,a){const s=u("openwb-base-heading"),r=u("openwb-base-text-input"),d=u("openwb-base-number-input");return p(),m("div",g,[t(s,null,{default:c(()=>[_(" Einstellungen für SolarView "),f("span",w,"(Modul: "+v(n.$options.name)+")",1)]),_:1}),t(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),t(d,{title:"Port",required:"",min:1,max:65535,"model-value":i.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.port"))},null,8,["model-value"]),t(d,{title:"Timeout",required:"","model-value":i.configuration.timeout,"onUpdate:modelValue":e[2]||(e[2]=o=>a.updateConfiguration(o,"configuration.timeout"))},null,8,["model-value"])])}const y=l(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-e9b6c7e4.js b/web/settings/assets/device-9ec78fc6.js similarity index 87% rename from web/settings/assets/device-e9b6c7e4.js rename to web/settings/assets/device-9ec78fc6.js index 310ccc8262..87426be6d6 100644 --- a/web/settings/assets/device-e9b6c7e4.js +++ b/web/settings/assets/device-9ec78fc6.js @@ -1 +1 @@ -import{_ as l,q as t,k as u,l as c,B as n,M as p,x as _,u as f,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceSolarWorld",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},b={class:"device-solar_world"},g={class:"small"};function w(o,e,a,h,x,s){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return u(),c("div",b,[n(i,null,{default:p(()=>[_(" Einstellungen für SolarWorld "),f("span",g,"(Modul: "+m(o.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/device.vue"]]);export{C as default}; +import{_ as l,q as t,k as u,l as c,B as n,M as p,x as _,u as f,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceSolarWorld",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},b={class:"device-solar_world"},g={class:"small"};function w(o,e,a,h,x,s){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return u(),c("div",b,[n(i,null,{default:p(()=>[_(" Einstellungen für SolarWorld "),f("span",g,"(Modul: "+m(o.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/device.vue"]]);export{C as default}; diff --git a/web/settings/assets/device-501632ef.js b/web/settings/assets/device-9f2d29fa.js similarity index 91% rename from web/settings/assets/device-501632ef.js rename to web/settings/assets/device-9f2d29fa.js index 15c19e4030..8b960ee537 100644 --- a/web/settings/assets/device-501632ef.js +++ b/web/settings/assets/device-9f2d29fa.js @@ -1 +1 @@ -import{_ as p,q as r,k as c,l as m,B as o,M as u,x as l,u as f,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceKostalPikoOld",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-kostal-piko-old"},b={class:"small"};function w(n,e,a,k,h,i){const d=r("openwb-base-heading"),s=r("openwb-base-text-input");return c(),m("div",v,[o(d,null,{default:u(()=>[l(" Einstellungen für Kostal Piko (alte Generation) "),f("span",b,"(Modul: "+_(n.$options.name)+")",1)]),_:1}),o(s,{title:"URL",subtype:"url",required:"","model-value":a.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.url"))},{help:u(()=>[l(' Es wird eine komplette URL inklusive Protokoll erwartet. Normalerweise ist der Wechselrichter über "http://IP" zu erreichen. ')]),_:1},8,["model-value"]),o(s,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),o(s,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const B=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko_old/device.vue"]]);export{B as default}; +import{_ as p,q as r,k as c,l as m,B as o,M as u,x as l,u as f,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceKostalPikoOld",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-kostal-piko-old"},b={class:"small"};function w(n,e,a,k,h,i){const d=r("openwb-base-heading"),s=r("openwb-base-text-input");return c(),m("div",v,[o(d,null,{default:u(()=>[l(" Einstellungen für Kostal Piko (alte Generation) "),f("span",b,"(Modul: "+_(n.$options.name)+")",1)]),_:1}),o(s,{title:"URL",subtype:"url",required:"","model-value":a.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.url"))},{help:u(()=>[l(' Es wird eine komplette URL inklusive Protokoll erwartet. Normalerweise ist der Wechselrichter über "http://IP" zu erreichen. ')]),_:1},8,["model-value"]),o(s,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),o(s,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const B=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko_old/device.vue"]]);export{B as default}; diff --git a/web/settings/assets/device-d1f26139.js b/web/settings/assets/device-9f842a27.js similarity index 93% rename from web/settings/assets/device-d1f26139.js rename to web/settings/assets/device-9f842a27.js index fdebee418d..9260a997e1 100644 --- a/web/settings/assets/device-d1f26139.js +++ b/web/settings/assets/device-9f842a27.js @@ -1 +1 @@ -import{_ as r,q as o,k as c,l,B as n,M as p,x as _,u as f,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceYouless",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-youless"},g={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),l("div",b,[n(i,null,{default:p(()=>[_(" Einstellungen für Youless "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>a.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const C=r(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/youless/device.vue"]]);export{C as default}; +import{_ as r,q as o,k as c,l,B as n,M as p,x as _,u as f,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceYouless",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-youless"},g={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),l("div",b,[n(i,null,{default:p(()=>[_(" Einstellungen für Youless "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>a.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const C=r(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/youless/device.vue"]]);export{C as default}; diff --git a/web/settings/assets/device-cd327ae2.js b/web/settings/assets/device-a38cf0ab.js similarity index 91% rename from web/settings/assets/device-cd327ae2.js rename to web/settings/assets/device-a38cf0ab.js index ca3da86faa..7ded2f9695 100644 --- a/web/settings/assets/device-cd327ae2.js +++ b/web/settings/assets/device-a38cf0ab.js @@ -1 +1 @@ -import{_ as m,q as t,k as _,l as f,B as o,M as i,x as s,u as r,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceFronius",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"device-fronius"},v={class:"small"},w=r("br",null,null,-1);function y(n,e,a,S,x,d){const u=t("openwb-base-heading"),l=t("openwb-base-alert"),c=t("openwb-base-text-input");return _(),f("div",h,[o(u,null,{default:i(()=>[s(" Einstellungen für Fronius "),r("span",v,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),o(l,{subtype:"info"},{default:i(()=>[s(" Die Fronius API muss aktiviert sein."),w,s(" Sind nur Symos in Nutzung, welche über Fronius Solar Net / DATCOM miteinander verbunden sind, muss nur ein Gerät mit einer Komponente Wechselrichter angelegt werden. Sind aber z.B. Symo und Symo Hybrid im Einsatz, muss für jeden Wechselrichter ein Gerät mit einer Komponente Wechselrichter angelegt werden. Die Zähler-Komponente für das Smart-Meter wird in dem Gerät angelegt, dass den Wechselrichter enthält, an den das SmartMeter angeschlossen ist. ")]),_:1}),o(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.ip_address"))},null,8,["model-value"])])}const D=m(g,[["render",y],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/device.vue"]]);export{D as default}; +import{_ as m,q as t,k as _,l as f,B as o,M as i,x as s,u as r,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceFronius",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"device-fronius"},v={class:"small"},w=r("br",null,null,-1);function y(n,e,a,S,x,d){const u=t("openwb-base-heading"),l=t("openwb-base-alert"),c=t("openwb-base-text-input");return _(),f("div",h,[o(u,null,{default:i(()=>[s(" Einstellungen für Fronius "),r("span",v,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),o(l,{subtype:"info"},{default:i(()=>[s(" Die Fronius API muss aktiviert sein."),w,s(" Sind nur Symos in Nutzung, welche über Fronius Solar Net / DATCOM miteinander verbunden sind, muss nur ein Gerät mit einer Komponente Wechselrichter angelegt werden. Sind aber z.B. Symo und Symo Hybrid im Einsatz, muss für jeden Wechselrichter ein Gerät mit einer Komponente Wechselrichter angelegt werden. Die Zähler-Komponente für das Smart-Meter wird in dem Gerät angelegt, dass den Wechselrichter enthält, an den das SmartMeter angeschlossen ist. ")]),_:1}),o(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.ip_address"))},null,8,["model-value"])])}const D=m(g,[["render",y],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/device.vue"]]);export{D as default}; diff --git a/web/settings/assets/device-8baafb3f.js b/web/settings/assets/device-a645f400.js similarity index 87% rename from web/settings/assets/device-8baafb3f.js rename to web/settings/assets/device-a645f400.js index 3412a782be..6075eb79df 100644 --- a/web/settings/assets/device-8baafb3f.js +++ b/web/settings/assets/device-a645f400.js @@ -1 +1 @@ -import{_ as u,q as o,k as c,l as p,B as n,M as l,x as _,u as f,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceSmartfox",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-smartfox"},g={class:"small"};function x(t,e,a,h,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),p("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Smartfox "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(v,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smartfox/device.vue"]]);export{C as default}; +import{_ as u,q as o,k as c,l as p,B as n,M as l,x as _,u as f,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceSmartfox",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-smartfox"},g={class:"small"};function x(t,e,a,h,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),p("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Smartfox "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(v,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smartfox/device.vue"]]);export{C as default}; diff --git a/web/settings/assets/device-848b159b.js b/web/settings/assets/device-a7eca9a0.js similarity index 92% rename from web/settings/assets/device-848b159b.js rename to web/settings/assets/device-a7eca9a0.js index 30ee7ddea7..593e2cd6b8 100644 --- a/web/settings/assets/device-848b159b.js +++ b/web/settings/assets/device-a7eca9a0.js @@ -1 +1 @@ -import{_ as p,q as n,k as r,l as d,B as o,M as s,x as a,u,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const l={name:"DeviceOpenwbBatKit",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-openwb-batkit"},b={class:"small"};function m(e,t,v,g,h,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openWB Speicher-Kit "),u("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const $=p(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_bat_kit/device.vue"]]);export{$ as default}; +import{_ as p,q as n,k as r,l as d,B as o,M as s,x as a,u,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const l={name:"DeviceOpenwbBatKit",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-openwb-batkit"},b={class:"small"};function m(e,t,v,g,h,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openWB Speicher-Kit "),u("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const $=p(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_bat_kit/device.vue"]]);export{$ as default}; diff --git a/web/settings/assets/device-bff93d5a.js b/web/settings/assets/device-a9f1f1c1.js similarity index 93% rename from web/settings/assets/device-bff93d5a.js rename to web/settings/assets/device-a9f1f1c1.js index d424e29ac9..6c9c9b4c8d 100644 --- a/web/settings/assets/device-bff93d5a.js +++ b/web/settings/assets/device-a9f1f1c1.js @@ -1 +1 @@ -import{_ as r,q as o,k as u,l,B as n,M as p,x as _,u as f,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceKostalSteca",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-kostal-steca"},g={class:"small"};function h(t,e,a,x,k,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return u(),l("div",b,[n(i,null,{default:p(()=>[_(" Einstellungen für Kostal Piko MP oder Steca Grid Coolcept "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>s.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const C=r(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_steca/device.vue"]]);export{C as default}; +import{_ as r,q as o,k as u,l,B as n,M as p,x as _,u as f,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceKostalSteca",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-kostal-steca"},g={class:"small"};function h(t,e,a,x,k,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return u(),l("div",b,[n(i,null,{default:p(()=>[_(" Einstellungen für Kostal Piko MP oder Steca Grid Coolcept "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>s.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const C=r(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_steca/device.vue"]]);export{C as default}; diff --git a/web/settings/assets/device-99d0a385.js b/web/settings/assets/device-ab0fc13e.js similarity index 90% rename from web/settings/assets/device-99d0a385.js rename to web/settings/assets/device-ab0fc13e.js index 4e83d639cd..ee8dcc7b69 100644 --- a/web/settings/assets/device-99d0a385.js +++ b/web/settings/assets/device-ab0fc13e.js @@ -1 +1 @@ -import{_ as u,q as n,k as _,l as m,B as o,M as s,x as a,u as f,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceKostalPlenticore",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},h={class:"device-kostalplenticore"},v={class:"small"};function w(t,e,i,x,y,r){const l=n("openwb-base-heading"),d=n("openwb-base-alert"),c=n("openwb-base-text-input");return _(),m("div",h,[o(l,null,{default:s(()=>[a(" Einstellungen für Kostal Plenticore "),f("span",v,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(d,{subtype:"info"},{default:s(()=>[a(" Wenn am Kostal Plenticore-Wechselrichter ein EM300 oder Kostal Energy Smart Meter (KSEM) angeschlossen ist, muss eine Zähler-und eine Wechselrichter-Komponente angelegt werden. ")]),_:1}),o(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.ip_address"))},null,8,["model-value"])])}const B=u(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/device.vue"]]);export{B as default}; +import{_ as u,q as n,k as _,l as m,B as o,M as s,x as a,u as f,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceKostalPlenticore",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},h={class:"device-kostalplenticore"},v={class:"small"};function w(t,e,i,x,y,r){const l=n("openwb-base-heading"),d=n("openwb-base-alert"),c=n("openwb-base-text-input");return _(),m("div",h,[o(l,null,{default:s(()=>[a(" Einstellungen für Kostal Plenticore "),f("span",v,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(d,{subtype:"info"},{default:s(()=>[a(" Wenn am Kostal Plenticore-Wechselrichter ein EM300 oder Kostal Energy Smart Meter (KSEM) angeschlossen ist, muss eine Zähler-und eine Wechselrichter-Komponente angelegt werden. ")]),_:1}),o(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.ip_address"))},null,8,["model-value"])])}const B=u(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/device.vue"]]);export{B as default}; diff --git a/web/settings/assets/device-5d68a6d5.js b/web/settings/assets/device-ad4448a6.js similarity index 90% rename from web/settings/assets/device-5d68a6d5.js rename to web/settings/assets/device-ad4448a6.js index 247eb93117..6e8eb52955 100644 --- a/web/settings/assets/device-5d68a6d5.js +++ b/web/settings/assets/device-ad4448a6.js @@ -1 +1 @@ -import{_ as p,q as d,k as c,l as m,B as n,M as r,x as u,u as f,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceFems",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-fems"},b={class:"small"};function w(o,e,s,C,x,a){const l=d("openwb-base-heading"),i=d("openwb-base-text-input");return c(),m("div",v,[n(l,null,{default:r(()=>[u(" Einstellungen für openEMS, Fenecon FEMS, CENTURIO 10, Kaco Hy-Control "),f("span",b,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":s.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.password"))},{help:r(()=>[u(" Bei Nutzung von Fenecon FEMS ist das Passwort im Normalfall user, bei Kaco mit Hy-Control ist das Passwort meist admin. ")]),_:1},8,["model-value"])])}const B=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/device.vue"]]);export{B as default}; +import{_ as p,q as d,k as c,l as m,B as n,M as r,x as u,u as f,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceFems",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-fems"},b={class:"small"};function w(o,e,s,C,x,a){const l=d("openwb-base-heading"),i=d("openwb-base-text-input");return c(),m("div",v,[n(l,null,{default:r(()=>[u(" Einstellungen für openEMS, Fenecon FEMS, CENTURIO 10, Kaco Hy-Control "),f("span",b,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":s.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.password"))},{help:r(()=>[u(" Bei Nutzung von Fenecon FEMS ist das Passwort im Normalfall user, bei Kaco mit Hy-Control ist das Passwort meist admin. ")]),_:1},8,["model-value"])])}const B=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/device.vue"]]);export{B as default}; diff --git a/web/settings/assets/device-cdf1c8af.js b/web/settings/assets/device-bb1dd2b5.js similarity index 92% rename from web/settings/assets/device-cdf1c8af.js rename to web/settings/assets/device-bb1dd2b5.js index 0412d01fde..72423de439 100644 --- a/web/settings/assets/device-cdf1c8af.js +++ b/web/settings/assets/device-bb1dd2b5.js @@ -1 +1 @@ -import{_ as c,q as n,k as r,l as d,B as o,M as s,x as a,u,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const l={name:"DeviceOpenwbPvKit",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-openwb-pvkit"},b={class:"small"};function m(e,t,v,g,w,h){const i=n("openwb-base-heading"),p=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openWB PV-Kit "),u("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const $=c(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_pv_kit/device.vue"]]);export{$ as default}; +import{_ as c,q as n,k as r,l as d,B as o,M as s,x as a,u,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const l={name:"DeviceOpenwbPvKit",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-openwb-pvkit"},b={class:"small"};function m(e,t,v,g,w,h){const i=n("openwb-base-heading"),p=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openWB PV-Kit "),u("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const $=c(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_pv_kit/device.vue"]]);export{$ as default}; diff --git a/web/settings/assets/device-68b1cbc0.js b/web/settings/assets/device-c3561f59.js similarity index 89% rename from web/settings/assets/device-68b1cbc0.js rename to web/settings/assets/device-c3561f59.js index 16e17ec0b4..db225bbb9a 100644 --- a/web/settings/assets/device-68b1cbc0.js +++ b/web/settings/assets/device-c3561f59.js @@ -1 +1 @@ -import{_ as r,q as u,k as l,l as c,B as n,M as p,x as f,u as m,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceDiscovergy",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-discovergy"},b={class:"small"};function w(o,e,s,y,x,a){const d=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),c("div",v,[n(d,null,{default:p(()=>[f(" Einstellungen für Discovergy "),m("span",b,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":s.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":s.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const V=r(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/device.vue"]]);export{V as default}; +import{_ as r,q as u,k as l,l as c,B as n,M as p,x as f,u as m,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceDiscovergy",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-discovergy"},b={class:"small"};function w(o,e,s,y,x,a){const d=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),c("div",v,[n(d,null,{default:p(()=>[f(" Einstellungen für Discovergy "),m("span",b,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":s.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":s.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const V=r(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/device.vue"]]);export{V as default}; diff --git a/web/settings/assets/device-ddeaf6f7.js b/web/settings/assets/device-c79bc1c0.js similarity index 96% rename from web/settings/assets/device-ddeaf6f7.js rename to web/settings/assets/device-c79bc1c0.js index 023161514f..dfb224e958 100644 --- a/web/settings/assets/device-ddeaf6f7.js +++ b/web/settings/assets/device-c79bc1c0.js @@ -1 +1 @@ -import{_,q as n,k as g,l as m,B as o,M as r,x as u,u as b,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"DeviceDeye",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},v={class:"device-batterx"},w={class:"small"};function x(i,e,s,y,V,a){const d=n("openwb-base-heading"),l=n("openwb-base-text-input"),p=n("openwb-base-number-input"),c=n("openwb-base-select-input");return g(),m("div",v,[o(d,null,{default:r(()=>[u(" Einstellungen für Deye "),b("span",w,"(Modul: "+f(i.$options.name)+")",1)]),_:1}),o(l,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),o(p,{title:"Port",required:"","model-value":s.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.port"))},null,8,["model-value"]),o(c,{title:"Bauform",notSelected:"Bitte auswählen",options:[{value:"three_phase",text:"dreiphasiger Wechselrichter"},{value:"single_phase_string",text:"einphasiger String-Wechselrichter (ungetestet, Rückmeldung über Support erwünscht)"},{value:"single_phase_hybrid",text:"einphasiger Hybrid-Wechselrichter (ungetestet, Rückmeldung über Support erwünscht)"}],"model-value":s.configuration.device_type,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.device_type"))},{help:r(()=>[u(" Zwischen Version 1.7 und 1.10 hat sich das Register für die Speicherleistung geändert. Wenn die Speicherleistung nicht korrekt ausgelesen wird, bitte die andere Version testen. ")]),_:1},8,["options","model-value"])])}const S=_(h,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/device.vue"]]);export{S as default}; +import{_,q as n,k as g,l as m,B as o,M as r,x as u,u as b,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"DeviceDeye",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},v={class:"device-batterx"},w={class:"small"};function x(i,e,s,y,V,a){const d=n("openwb-base-heading"),l=n("openwb-base-text-input"),p=n("openwb-base-number-input"),c=n("openwb-base-select-input");return g(),m("div",v,[o(d,null,{default:r(()=>[u(" Einstellungen für Deye "),b("span",w,"(Modul: "+f(i.$options.name)+")",1)]),_:1}),o(l,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),o(p,{title:"Port",required:"","model-value":s.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.port"))},null,8,["model-value"]),o(c,{title:"Bauform",notSelected:"Bitte auswählen",options:[{value:"three_phase",text:"dreiphasiger Wechselrichter"},{value:"single_phase_string",text:"einphasiger String-Wechselrichter (ungetestet, Rückmeldung über Support erwünscht)"},{value:"single_phase_hybrid",text:"einphasiger Hybrid-Wechselrichter (ungetestet, Rückmeldung über Support erwünscht)"}],"model-value":s.configuration.device_type,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.device_type"))},{help:r(()=>[u(" Zwischen Version 1.7 und 1.10 hat sich das Register für die Speicherleistung geändert. Wenn die Speicherleistung nicht korrekt ausgelesen wird, bitte die andere Version testen. ")]),_:1},8,["options","model-value"])])}const S=_(h,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/device.vue"]]);export{S as default}; diff --git a/web/settings/assets/device-3c4260e6.js b/web/settings/assets/device-d364ade4.js similarity index 92% rename from web/settings/assets/device-3c4260e6.js rename to web/settings/assets/device-d364ade4.js index f3fca24a99..62f6e7c6e5 100644 --- a/web/settings/assets/device-3c4260e6.js +++ b/web/settings/assets/device-d364ade4.js @@ -1 +1 @@ -import{_ as c,q as t,k as _,l as b,B as o,M as s,x as d,u as f,y as g}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceSungrow",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(a,e=void 0){this.$emit("update:configuration",{value:a,object:e})}}},w={class:"device-sungrow"},x={class:"small"};function h(a,e,i,q,B,u){const l=t("openwb-base-heading"),p=t("openwb-base-alert"),m=t("openwb-base-text-input"),r=t("openwb-base-number-input");return _(),b("div",w,[o(l,null,{default:s(()=>[d(" Einstellungen für Sungrow "),f("span",x,"(Modul: "+g(a.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[d(" Bitte zur Fehlervermeidung die Firmware des Sungrow Wechselrichters und WiNet-S Dongels aktuell halten. ")]),_:1}),o(m,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),o(r,{title:"Port",required:"",min:1,max:65535,"model-value":i.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),o(r,{title:"Geräteadresse",required:"",min:1,max:255,"model-value":i.configuration.modbus_id,"onUpdate:modelValue":e[2]||(e[2]=n=>u.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const y=c(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/device.vue"]]);export{y as default}; +import{_ as c,q as t,k as _,l as b,B as o,M as s,x as d,u as f,y as g}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceSungrow",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(a,e=void 0){this.$emit("update:configuration",{value:a,object:e})}}},w={class:"device-sungrow"},x={class:"small"};function h(a,e,i,q,B,u){const l=t("openwb-base-heading"),p=t("openwb-base-alert"),m=t("openwb-base-text-input"),r=t("openwb-base-number-input");return _(),b("div",w,[o(l,null,{default:s(()=>[d(" Einstellungen für Sungrow "),f("span",x,"(Modul: "+g(a.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[d(" Bitte zur Fehlervermeidung die Firmware des Sungrow Wechselrichters und WiNet-S Dongels aktuell halten. ")]),_:1}),o(m,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),o(r,{title:"Port",required:"",min:1,max:65535,"model-value":i.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),o(r,{title:"Geräteadresse",required:"",min:1,max:255,"model-value":i.configuration.modbus_id,"onUpdate:modelValue":e[2]||(e[2]=n=>u.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const y=c(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-b6164308.js b/web/settings/assets/device-de25db23.js similarity index 88% rename from web/settings/assets/device-b6164308.js rename to web/settings/assets/device-de25db23.js index 85633fab39..fdd61cf117 100644 --- a/web/settings/assets/device-b6164308.js +++ b/web/settings/assets/device-de25db23.js @@ -1 +1 @@ -import{_ as l,q as s,k as c,l as p,B as o,M as a,x as n,u as i,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceMqtt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-mqtt"},f={class:"small"},b=i("br",null,null,-1);function g(e,t,v,h,w,k){const r=s("openwb-base-heading"),d=s("openwb-base-alert");return c(),p("div",m,[o(r,null,{default:a(()=>[n(" Einstellungen für MQTT "),i("span",f,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(d,{subtype:"info"},{default:a(()=>[n(" Das MQTT Modul stellt keine aktive Verbindung her, sondern erwartet, dass die Daten an spezielle Topics im Broker gesendet werden."),b,n(" Alle Daten sind als gültiges JSON zu senden! Zahlen mit Nachkommastellen (Float) müssen einen Punkt als Dezimaltrenner verwenden (internationales Format). ")]),_:1})])}const M=l(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/device.vue"]]);export{M as default}; +import{_ as l,q as s,k as c,l as p,B as o,M as a,x as n,u as i,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceMqtt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-mqtt"},f={class:"small"},b=i("br",null,null,-1);function g(e,t,v,h,w,k){const r=s("openwb-base-heading"),d=s("openwb-base-alert");return c(),p("div",m,[o(r,null,{default:a(()=>[n(" Einstellungen für MQTT "),i("span",f,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(d,{subtype:"info"},{default:a(()=>[n(" Das MQTT Modul stellt keine aktive Verbindung her, sondern erwartet, dass die Daten an spezielle Topics im Broker gesendet werden."),b,n(" Alle Daten sind als gültiges JSON zu senden! Zahlen mit Nachkommastellen (Float) müssen einen Punkt als Dezimaltrenner verwenden (internationales Format). ")]),_:1})])}const M=l(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/device.vue"]]);export{M as default}; diff --git a/web/settings/assets/device-e012caeb.js b/web/settings/assets/device-e0d7ec07.js similarity index 89% rename from web/settings/assets/device-e012caeb.js rename to web/settings/assets/device-e0d7ec07.js index 433f48981a..aa8d9ee90f 100644 --- a/web/settings/assets/device-e012caeb.js +++ b/web/settings/assets/device-e0d7ec07.js @@ -1 +1 @@ -import{_ as l,q as t,k as p,l as c,B as a,M as _,x as m,u as f,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceGoodWe",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-goodwe"},w={class:"small"};function x(o,e,i,h,B,s){const d=t("openwb-base-heading"),u=t("openwb-base-text-input"),r=t("openwb-base-number-input");return p(),c("div",v,[a(d,null,{default:_(()=>[m(" Einstellungen für GoodWe "),f("span",w,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(r,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const y=l(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/device.vue"]]);export{y as default}; +import{_ as l,q as t,k as p,l as c,B as a,M as _,x as m,u as f,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceGoodWe",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-goodwe"},w={class:"small"};function x(o,e,i,h,B,s){const d=t("openwb-base-heading"),u=t("openwb-base-text-input"),r=t("openwb-base-number-input");return p(),c("div",v,[a(d,null,{default:_(()=>[m(" Einstellungen für GoodWe "),f("span",w,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(r,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const y=l(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-6282b1ba.js b/web/settings/assets/device-e4abce5b.js similarity index 88% rename from web/settings/assets/device-6282b1ba.js rename to web/settings/assets/device-e4abce5b.js index 1cc93221cf..9e553607f4 100644 --- a/web/settings/assets/device-6282b1ba.js +++ b/web/settings/assets/device-e4abce5b.js @@ -1 +1 @@ -import{_ as c,q as o,k as l,l as _,B as n,M as s,x as a,u as g,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceVZLogger",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-vzlogger"},b={class:"small"};function h(t,e,i,w,x,d){const r=o("openwb-base-heading"),p=o("openwb-base-text-input");return l(),_("div",v,[n(r,null,{default:s(()=>[a(" Einstellungen für VZLogger "),g("span",b,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>d.updateConfiguration(u,"configuration.ip_address"))},{help:s(()=>[a(" Bei Angabe des Ports muss auch das Schema mit angegeben werden: http://ip:port ")]),_:1},8,["model-value"])])}const y=c(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/device.vue"]]);export{y as default}; +import{_ as c,q as o,k as l,l as _,B as n,M as s,x as a,u as g,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceVZLogger",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-vzlogger"},b={class:"small"};function h(t,e,i,w,x,d){const r=o("openwb-base-heading"),p=o("openwb-base-text-input");return l(),_("div",v,[n(r,null,{default:s(()=>[a(" Einstellungen für VZLogger "),g("span",b,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>d.updateConfiguration(u,"configuration.ip_address"))},{help:s(()=>[a(" Bei Angabe des Ports muss auch das Schema mit angegeben werden: http://ip:port ")]),_:1},8,["model-value"])])}const y=c(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-416f1bdf.js b/web/settings/assets/device-ed482a11.js similarity index 88% rename from web/settings/assets/device-416f1bdf.js rename to web/settings/assets/device-ed482a11.js index 8a8a687d55..048728fee3 100644 --- a/web/settings/assets/device-416f1bdf.js +++ b/web/settings/assets/device-ed482a11.js @@ -1 +1 @@ -import{_ as l,q as n,k as _,l as m,B as o,M as s,x as i,u as f,y as b}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceSiemens",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-siemens"},h={class:"small"};function w(t,e,a,x,B,d){const r=n("openwb-base-heading"),p=n("openwb-base-alert"),u=n("openwb-base-text-input");return _(),m("div",v,[o(r,null,{default:s(()=>[i(" Einstellungen für Siemens "),f("span",h,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[i(" Im Siemens-Speicher muss die Schnittstelle openWB gewählt werden. ")]),_:1}),o(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>d.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const q=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/device.vue"]]);export{q as default}; +import{_ as l,q as n,k as _,l as m,B as o,M as s,x as i,u as f,y as b}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceSiemens",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-siemens"},h={class:"small"};function w(t,e,a,x,B,d){const r=n("openwb-base-heading"),p=n("openwb-base-alert"),u=n("openwb-base-text-input");return _(),m("div",v,[o(r,null,{default:s(()=>[i(" Einstellungen für Siemens "),f("span",h,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[i(" Im Siemens-Speicher muss die Schnittstelle openWB gewählt werden. ")]),_:1}),o(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>d.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const q=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-be6d2347.js b/web/settings/assets/device-edb62875.js similarity index 89% rename from web/settings/assets/device-be6d2347.js rename to web/settings/assets/device-edb62875.js index 753543969a..e1183165a2 100644 --- a/web/settings/assets/device-be6d2347.js +++ b/web/settings/assets/device-edb62875.js @@ -1 +1 @@ -import{_ as l,q as n,k as _,l as m,B as o,M as s,x as a,u as b,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceSunnyBoy",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},y={class:"device-sunnyboy"},g={class:"small"};function w(t,e,i,h,x,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),p=n("openwb-base-text-input");return _(),m("div",y,[o(d,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy/Tripower "),b("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:s(()=>[a(' ModbusTCP muss entweder direkt am Wechselrichter, per Sunny Portal oder über das Tool "Sunny Explorer" aktiviert werden. Dies ist standardmäßig deaktiviert. ')]),_:1}),o(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const S=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/device.vue"]]);export{S as default}; +import{_ as l,q as n,k as _,l as m,B as o,M as s,x as a,u as b,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceSunnyBoy",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},y={class:"device-sunnyboy"},g={class:"small"};function w(t,e,i,h,x,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),p=n("openwb-base-text-input");return _(),m("div",y,[o(d,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy/Tripower "),b("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:s(()=>[a(' ModbusTCP muss entweder direkt am Wechselrichter, per Sunny Portal oder über das Tool "Sunny Explorer" aktiviert werden. Dies ist standardmäßig deaktiviert. ')]),_:1}),o(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const S=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/device.vue"]]);export{S as default}; diff --git a/web/settings/assets/device-749c6814.js b/web/settings/assets/device-f0a88111.js similarity index 91% rename from web/settings/assets/device-749c6814.js rename to web/settings/assets/device-f0a88111.js index fe975a259d..09fda2cb83 100644 --- a/web/settings/assets/device-749c6814.js +++ b/web/settings/assets/device-f0a88111.js @@ -1 +1 @@ -import{_ as c,q as o,k as m,l as _,B as i,M as d,x as u,u as b,y as g}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceSolax",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-solax"},x={class:"small"};function h(t,e,a,w,B,s){const r=o("openwb-base-heading"),l=o("openwb-base-text-input"),p=o("openwb-base-number-input");return m(),_("div",v,[i(r,null,{default:d(()=>[u(" Einstellungen für Solax "),b("span",x,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),i(l,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Modbus-ID",required:"",min:0,max:255,"model-value":a.configuration.modbus_id,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.modbus_id"))},{help:d(()=>[u(" Laut der Schnittstellenbeschreibung ist die ID bei Solax ab Werk auf 1 gesetzt. Entgegen der Beschreibung ist meist für Gen4 eine ID größer als 2 eingestellt. Bei Gen3 sogar (gegen jeglicher Modbus Standards) eine 0. ")]),_:1},8,["model-value"])])}const C=c(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/device.vue"]]);export{C as default}; +import{_ as c,q as o,k as m,l as _,B as i,M as d,x as u,u as b,y as g}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceSolax",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-solax"},x={class:"small"};function h(t,e,a,w,B,s){const r=o("openwb-base-heading"),l=o("openwb-base-text-input"),p=o("openwb-base-number-input");return m(),_("div",v,[i(r,null,{default:d(()=>[u(" Einstellungen für Solax "),b("span",x,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),i(l,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Modbus-ID",required:"",min:0,max:255,"model-value":a.configuration.modbus_id,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.modbus_id"))},{help:d(()=>[u(" Laut der Schnittstellenbeschreibung ist die ID bei Solax ab Werk auf 1 gesetzt. Entgegen der Beschreibung ist meist für Gen4 eine ID größer als 2 eingestellt. Bei Gen3 sogar (gegen jeglicher Modbus Standards) eine 0. ")]),_:1},8,["model-value"])])}const C=c(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/device.vue"]]);export{C as default}; diff --git a/web/settings/assets/device-eaf5a639.js b/web/settings/assets/device-f2f2ce7c.js similarity index 92% rename from web/settings/assets/device-eaf5a639.js rename to web/settings/assets/device-f2f2ce7c.js index f016974546..94693c49a5 100644 --- a/web/settings/assets/device-eaf5a639.js +++ b/web/settings/assets/device-f2f2ce7c.js @@ -1 +1 @@ -import{_ as r,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSmaHm",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-smahm"},f={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return d(),p("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für SMA Home Manager / Energy Meter "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät benötigt keine Einstellungen. ")]),_:1})])}const y=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_shm/device.vue"]]);export{y as default}; +import{_ as r,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSmaHm",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-smahm"},f={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return d(),p("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für SMA Home Manager / Energy Meter "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät benötigt keine Einstellungen. ")]),_:1})])}const y=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_shm/device.vue"]]);export{y as default}; diff --git a/web/settings/assets/device-8cebad75.js b/web/settings/assets/device-f5665908.js similarity index 89% rename from web/settings/assets/device-8cebad75.js rename to web/settings/assets/device-f5665908.js index b95cc834f9..cc75106b40 100644 --- a/web/settings/assets/device-8cebad75.js +++ b/web/settings/assets/device-f5665908.js @@ -1 +1 @@ -import{_ as d,q as u,k as l,l as p,B as n,M as c,x as m,u as f,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceSmartMe",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-smart-me"},b={class:"small"};function w(t,e,a,x,B,s){const r=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),p("div",v,[n(r,null,{default:c(()=>[m(" Einstellungen für smart-me "),f("span",b,"(Modul: "+_(t.$options.name)+")",1)]),_:1}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=o=>s.updateConfiguration(o,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>s.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const V=d(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/device.vue"]]);export{V as default}; +import{_ as d,q as u,k as l,l as p,B as n,M as c,x as m,u as f,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceSmartMe",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-smart-me"},b={class:"small"};function w(t,e,a,x,B,s){const r=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),p("div",v,[n(r,null,{default:c(()=>[m(" Einstellungen für smart-me "),f("span",b,"(Modul: "+_(t.$options.name)+")",1)]),_:1}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=o=>s.updateConfiguration(o,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>s.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const V=d(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/device.vue"]]);export{V as default}; diff --git a/web/settings/assets/device-76495c7e.js b/web/settings/assets/device-f9ca754c.js similarity index 87% rename from web/settings/assets/device-76495c7e.js rename to web/settings/assets/device-f9ca754c.js index c9ac0144c7..4ab677c9c0 100644 --- a/web/settings/assets/device-76495c7e.js +++ b/web/settings/assets/device-f9ca754c.js @@ -1 +1 @@ -import{_ as r,q as t,k as p,l as c,B as o,M as l,x as _,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceSunnyIsland",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-sunnyisland"},v={class:"small"};function y(n,e,s,h,x,a){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return p(),c("div",g,[o(i,null,{default:l(()=>[_(" Einstellungen für Sunny Island "),m("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>a.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const q=r(b,[["render",y],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_island/device.vue"]]);export{q as default}; +import{_ as r,q as t,k as p,l as c,B as o,M as l,x as _,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceSunnyIsland",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-sunnyisland"},v={class:"small"};function y(n,e,s,h,x,a){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return p(),c("div",g,[o(i,null,{default:l(()=>[_(" Einstellungen für Sunny Island "),m("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>a.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const q=r(b,[["render",y],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_island/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-fa25520b.js b/web/settings/assets/device-fb8cd3ef.js similarity index 89% rename from web/settings/assets/device-fa25520b.js rename to web/settings/assets/device-fb8cd3ef.js index c8b85842f6..86c114bfe6 100644 --- a/web/settings/assets/device-fa25520b.js +++ b/web/settings/assets/device-fb8cd3ef.js @@ -1 +1 @@ -import{_ as c,q as o,k as m,l as _,B as s,M as i,x as n,u as a,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceJson",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-json"},v={class:"small"},h=a("br",null,null,-1);function w(t,e,r,j,x,u){const d=o("openwb-base-heading"),l=o("openwb-base-text-input");return m(),_("div",g,[s(d,null,{default:i(()=>[n(" Einstellungen für JSON "),a("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),s(l,{title:"URL",subtype:"url",required:"","model-value":r.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=p=>u.updateConfiguration(p,"configuration.url"))},{help:i(()=>[n(" Es wird eine komplette URL erwartet mit Angaben zum Protokoll, IP oder Hostnamen, optional einem Port und einem Pfad. Die Antwort muss ein json-Objekt sein."),h,n(" Beispiel: http://192.168.1.1:8080/json?data=1 ")]),_:1},8,["model-value"])])}const q=c(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/device.vue"]]);export{q as default}; +import{_ as c,q as o,k as m,l as _,B as s,M as i,x as n,u as a,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceJson",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-json"},v={class:"small"},h=a("br",null,null,-1);function w(t,e,r,j,x,u){const d=o("openwb-base-heading"),l=o("openwb-base-text-input");return m(),_("div",g,[s(d,null,{default:i(()=>[n(" Einstellungen für JSON "),a("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),s(l,{title:"URL",subtype:"url",required:"","model-value":r.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=p=>u.updateConfiguration(p,"configuration.url"))},{help:i(()=>[n(" Es wird eine komplette URL erwartet mit Angaben zum Protokoll, IP oder Hostnamen, optional einem Port und einem Pfad. Die Antwort muss ein json-Objekt sein."),h,n(" Beispiel: http://192.168.1.1:8080/json?data=1 ")]),_:1},8,["model-value"])])}const q=c(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/device.vue"]]);export{q as default}; diff --git a/web/settings/assets/device-e20f82e0.js b/web/settings/assets/device-fc7d3de9.js similarity index 89% rename from web/settings/assets/device-e20f82e0.js rename to web/settings/assets/device-fc7d3de9.js index 50331bd2f2..2b30cc1c10 100644 --- a/web/settings/assets/device-e20f82e0.js +++ b/web/settings/assets/device-fc7d3de9.js @@ -1 +1 @@ -import{_ as r,q as d,k as l,l as p,B as n,M as c,x as f,u as m,y as _}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceLG",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-lg"},b={class:"small"};function w(t,e,a,x,V,s){const u=d("openwb-base-heading"),i=d("openwb-base-text-input");return l(),p("div",v,[n(u,null,{default:c(()=>[f(" Einstellungen für LG ESS V1.0 "),m("span",b,"(Modul: "+_(t.$options.name)+")",1)]),_:1}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>s.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>s.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const B=r(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/device.vue"]]);export{B as default}; +import{_ as r,q as d,k as l,l as p,B as n,M as c,x as f,u as m,y as _}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceLG",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-lg"},b={class:"small"};function w(t,e,a,x,V,s){const u=d("openwb-base-heading"),i=d("openwb-base-text-input");return l(),p("div",v,[n(u,null,{default:c(()=>[f(" Einstellungen für LG ESS V1.0 "),m("span",b,"(Modul: "+_(t.$options.name)+")",1)]),_:1}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>s.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>s.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const B=r(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/device.vue"]]);export{B as default}; diff --git a/web/settings/assets/displayTheme-f03291b1.js b/web/settings/assets/displayTheme-c9fd7a00.js similarity index 97% rename from web/settings/assets/displayTheme-f03291b1.js rename to web/settings/assets/displayTheme-c9fd7a00.js index 75615dda00..8571f7f717 100644 --- a/web/settings/assets/displayTheme-f03291b1.js +++ b/web/settings/assets/displayTheme-c9fd7a00.js @@ -1 +1 @@ -import{_ as g,q as c,k as o,l as f,B as l,M as s,x as i,z as d,A as r}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const p={name:"DisplayThemeCards",emits:["update:configuration"],props:{displayTheme:{type:Object,required:!0}},methods:{updateConfiguration(_,e=void 0){this.$emit("update:configuration",{value:_,object:e})}}},h={class:"display-theme-cards"};function v(_,e,a,y,V,n){const b=c("openwb-base-heading"),u=c("openwb-base-button-group-input"),m=c("openwb-base-text-input");return o(),f("div",h,[l(b,null,{default:s(()=>[i("Bediensperre")]),_:1}),l(u,{title:"Bedienung sperren","model-value":a.displayTheme.configuration.lock_changes,"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t,"configuration.lock_changes")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},{help:s(()=>[i(' Die Bedienung wird automatisch nach der eingestellten Ausschaltzeit (siehe "Display Standby") wieder gesperrt. ')]),_:1},8,["model-value"]),a.displayTheme.configuration.lock_changes?(o(),d(m,{key:0,title:"PIN zur Freigabe",subtype:"password",required:"",pattern:"[0-9]{4,10}","model-value":a.displayTheme.configuration.lock_changes_code,"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.lock_changes_code"))},{help:s(()=>[i(" Der PIN muss aus 4 bis 10 Zahlen bestehen. ")]),_:1},8,["model-value"])):r("",!0),l(b,null,{default:s(()=>[i('Ansicht "Übersicht"')]),_:1}),l(u,{title:"Übersicht anzeigen","model-value":a.displayTheme.configuration.enable_dashboard_view,"onUpdate:modelValue":e[2]||(e[2]=t=>n.updateConfiguration(t,"configuration.enable_dashboard_view")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"]),a.displayTheme.configuration.enable_dashboard_view?(o(),d(u,{key:1,title:"EVU anzeigen","model-value":a.displayTheme.configuration.enable_dashboard_card_grid,"onUpdate:modelValue":e[3]||(e[3]=t=>n.updateConfiguration(t,"configuration.enable_dashboard_card_grid")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):r("",!0),a.displayTheme.configuration.enable_dashboard_view?(o(),d(u,{key:2,title:"Hausverbrauch anzeigen","model-value":a.displayTheme.configuration.enable_dashboard_card_home_consumption,"onUpdate:modelValue":e[4]||(e[4]=t=>n.updateConfiguration(t,"configuration.enable_dashboard_card_home_consumption")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):r("",!0),a.displayTheme.configuration.enable_dashboard_view?(o(),d(u,{key:3,title:"Batteriespeicher anzeigen","model-value":a.displayTheme.configuration.enable_dashboard_card_battery_sum,"onUpdate:modelValue":e[5]||(e[5]=t=>n.updateConfiguration(t,"configuration.enable_dashboard_card_battery_sum")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):r("",!0),a.displayTheme.configuration.enable_dashboard_view?(o(),d(u,{key:4,title:"Ladepunkte anzeigen","model-value":a.displayTheme.configuration.enable_dashboard_card_charge_point_sum,"onUpdate:modelValue":e[6]||(e[6]=t=>n.updateConfiguration(t,"configuration.enable_dashboard_card_charge_point_sum")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):r("",!0),a.displayTheme.configuration.enable_dashboard_view?(o(),d(u,{key:5,title:"PV anzeigen","model-value":a.displayTheme.configuration.enable_dashboard_card_inverter_sum,"onUpdate:modelValue":e[7]||(e[7]=t=>n.updateConfiguration(t,"configuration.enable_dashboard_card_inverter_sum")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):r("",!0),l(b,null,{default:s(()=>[i('Ansicht "Ladepunkte"')]),_:1}),l(u,{title:"Ladepunkte anzeigen","model-value":a.displayTheme.configuration.enable_charge_points_view,"onUpdate:modelValue":e[8]||(e[8]=t=>n.updateConfiguration(t,"configuration.enable_charge_points_view")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"]),l(b,null,{default:s(()=>[i('Ansicht "Status"')]),_:1}),l(u,{title:"Status anzeigen","model-value":a.displayTheme.configuration.enable_status_view,"onUpdate:modelValue":e[9]||(e[9]=t=>n.updateConfiguration(t,"configuration.enable_status_view")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])])}const w=g(p,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/cards/displayTheme.vue"]]);export{w as default}; +import{_ as g,q as c,k as o,l as f,B as l,M as s,x as i,z as d,A as r}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const p={name:"DisplayThemeCards",emits:["update:configuration"],props:{displayTheme:{type:Object,required:!0}},methods:{updateConfiguration(_,e=void 0){this.$emit("update:configuration",{value:_,object:e})}}},h={class:"display-theme-cards"};function v(_,e,a,y,V,n){const b=c("openwb-base-heading"),u=c("openwb-base-button-group-input"),m=c("openwb-base-text-input");return o(),f("div",h,[l(b,null,{default:s(()=>[i("Bediensperre")]),_:1}),l(u,{title:"Bedienung sperren","model-value":a.displayTheme.configuration.lock_changes,"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t,"configuration.lock_changes")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},{help:s(()=>[i(' Die Bedienung wird automatisch nach der eingestellten Ausschaltzeit (siehe "Display Standby") wieder gesperrt. ')]),_:1},8,["model-value"]),a.displayTheme.configuration.lock_changes?(o(),d(m,{key:0,title:"PIN zur Freigabe",subtype:"password",required:"",pattern:"[0-9]{4,10}","model-value":a.displayTheme.configuration.lock_changes_code,"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.lock_changes_code"))},{help:s(()=>[i(" Der PIN muss aus 4 bis 10 Zahlen bestehen. ")]),_:1},8,["model-value"])):r("",!0),l(b,null,{default:s(()=>[i('Ansicht "Übersicht"')]),_:1}),l(u,{title:"Übersicht anzeigen","model-value":a.displayTheme.configuration.enable_dashboard_view,"onUpdate:modelValue":e[2]||(e[2]=t=>n.updateConfiguration(t,"configuration.enable_dashboard_view")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"]),a.displayTheme.configuration.enable_dashboard_view?(o(),d(u,{key:1,title:"EVU anzeigen","model-value":a.displayTheme.configuration.enable_dashboard_card_grid,"onUpdate:modelValue":e[3]||(e[3]=t=>n.updateConfiguration(t,"configuration.enable_dashboard_card_grid")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):r("",!0),a.displayTheme.configuration.enable_dashboard_view?(o(),d(u,{key:2,title:"Hausverbrauch anzeigen","model-value":a.displayTheme.configuration.enable_dashboard_card_home_consumption,"onUpdate:modelValue":e[4]||(e[4]=t=>n.updateConfiguration(t,"configuration.enable_dashboard_card_home_consumption")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):r("",!0),a.displayTheme.configuration.enable_dashboard_view?(o(),d(u,{key:3,title:"Batteriespeicher anzeigen","model-value":a.displayTheme.configuration.enable_dashboard_card_battery_sum,"onUpdate:modelValue":e[5]||(e[5]=t=>n.updateConfiguration(t,"configuration.enable_dashboard_card_battery_sum")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):r("",!0),a.displayTheme.configuration.enable_dashboard_view?(o(),d(u,{key:4,title:"Ladepunkte anzeigen","model-value":a.displayTheme.configuration.enable_dashboard_card_charge_point_sum,"onUpdate:modelValue":e[6]||(e[6]=t=>n.updateConfiguration(t,"configuration.enable_dashboard_card_charge_point_sum")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):r("",!0),a.displayTheme.configuration.enable_dashboard_view?(o(),d(u,{key:5,title:"PV anzeigen","model-value":a.displayTheme.configuration.enable_dashboard_card_inverter_sum,"onUpdate:modelValue":e[7]||(e[7]=t=>n.updateConfiguration(t,"configuration.enable_dashboard_card_inverter_sum")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):r("",!0),l(b,null,{default:s(()=>[i('Ansicht "Ladepunkte"')]),_:1}),l(u,{title:"Ladepunkte anzeigen","model-value":a.displayTheme.configuration.enable_charge_points_view,"onUpdate:modelValue":e[8]||(e[8]=t=>n.updateConfiguration(t,"configuration.enable_charge_points_view")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"]),l(b,null,{default:s(()=>[i('Ansicht "Status"')]),_:1}),l(u,{title:"Status anzeigen","model-value":a.displayTheme.configuration.enable_status_view,"onUpdate:modelValue":e[9]||(e[9]=t=>n.updateConfiguration(t,"configuration.enable_status_view")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])])}const w=g(p,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/cards/displayTheme.vue"]]);export{w as default}; diff --git a/web/settings/assets/electricity_tariff-e0822aff.js b/web/settings/assets/electricity_tariff-1414badc.js similarity index 98% rename from web/settings/assets/electricity_tariff-e0822aff.js rename to web/settings/assets/electricity_tariff-1414badc.js index ebc2bbfe18..c2026eb58f 100644 --- a/web/settings/assets/electricity_tariff-e0822aff.js +++ b/web/settings/assets/electricity_tariff-1414badc.js @@ -1 +1 @@ -import{_ as m,q as s,k as _,l as g,B as n,M as h,x as l,u as y}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const T={name:"ElectricityTariffTibber",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},data(){return{tibberAPI:"https://api.tibber.com/v1-beta/gql",tibberHomeList:[]}},methods:{updateConfiguration(o,t=void 0){this.$emit("update:configuration",{value:o,object:t})},async getTibberHomeList(){if(this.electricityTariff.configuration.token===null)return;const o='{ "query": "{viewer {homes{id address{address1 address2 address3 postalCode city country}}}}" }';try{const t=await this.axios.post(this.tibberAPI,o,{headers:{Authorization:"Bearer "+this.electricityTariff.configuration.token,"Content-Type":"application/json"}});this.tibberHomeList=t.data.data.viewer.homes.map(e=>{let i=e.address.address1;return e.address.address2&&(i=i+", "+e.address.address2),e.address.address3&&(i=i+", "+e.address.address3),i=i+`, ${e.address.postalCode} ${e.address.city}, ${e.address.country}`,{value:e.id,text:i}}),this.electricityTariff.configuration.home_id||this.updateConfiguration(this.tibberHomeList[0].value,"configuration.home_id"),this.$root.postClientMessage("Home IDs erfolgreich abgerufen.","success")}catch(t){console.error(t),this.$root.postClientMessage("Beim Abfragen der Tibber API ist ein Fehler aufgetreten!
"+t+"
","danger")}}}},k={class:"electricity-tariff-tibber"},v=y("a",{href:"https://developer.tibber.com/explorer",target:"_blank",rel:"noopener noreferrer"}," Tibber-Developer-Seite ",-1);function w(o,t,e,i,c,a){var u;const b=s("openwb-base-alert"),d=s("openwb-base-text-input"),f=s("openwb-base-button-input"),p=s("openwb-base-select-input");return _(),g("div",k,[n(b,{subtype:"info"},{default:h(()=>[l(" Ihren persönlichen Tibber-Token erhalten Sie über die "),v,l(" . Behandeln Sie Ihren Token wie ein Passwort, da sich darüber auch persönliche Daten aus Ihrem Tibber-Account abfragen lassen! Die Home-ID können Sie (wenn bekannt) in das Eingabefeld selbst eintragen oder nach Eingabe Ihres Token durch Klick auf den Button von der openWB ermitteln lassen. Unerlaubte Zeichen werden aus dem Token und der Home-ID automatisch gelöscht. ")]),_:1}),n(d,{title:"Token",required:"",ref:"tokenInput","model-value":e.electricityTariff.configuration.token,"onUpdate:modelValue":t[0]||(t[0]=r=>a.updateConfiguration(r,"configuration.token"))},null,8,["model-value"]),n(f,{title:"Home-IDs abrufen",buttonText:"Jetzt abrufen",subtype:"success",disabled:!((u=e.electricityTariff.configuration.token)!=null&&u.length),onButtonClicked:a.getTibberHomeList},null,8,["disabled","onButtonClicked"]),n(p,{title:"Verfügbare Home-IDs",required:"",options:c.tibberHomeList,"model-value":e.electricityTariff.configuration.home_id,"onUpdate:modelValue":t[1]||(t[1]=r=>a.updateConfiguration(r,"configuration.home_id"))},null,8,["options","model-value"]),n(d,{title:"Home-ID",required:"","model-value":e.electricityTariff.configuration.home_id,"onUpdate:modelValue":t[2]||(t[2]=r=>a.updateConfiguration(r,"configuration.home_id"))},null,8,["model-value"])])}const x=m(T,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/tibber/electricity_tariff.vue"]]);export{x as default}; +import{_ as m,q as s,k as _,l as g,B as n,M as h,x as l,u as y}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const T={name:"ElectricityTariffTibber",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},data(){return{tibberAPI:"https://api.tibber.com/v1-beta/gql",tibberHomeList:[]}},methods:{updateConfiguration(o,t=void 0){this.$emit("update:configuration",{value:o,object:t})},async getTibberHomeList(){if(this.electricityTariff.configuration.token===null)return;const o='{ "query": "{viewer {homes{id address{address1 address2 address3 postalCode city country}}}}" }';try{const t=await this.axios.post(this.tibberAPI,o,{headers:{Authorization:"Bearer "+this.electricityTariff.configuration.token,"Content-Type":"application/json"}});this.tibberHomeList=t.data.data.viewer.homes.map(e=>{let i=e.address.address1;return e.address.address2&&(i=i+", "+e.address.address2),e.address.address3&&(i=i+", "+e.address.address3),i=i+`, ${e.address.postalCode} ${e.address.city}, ${e.address.country}`,{value:e.id,text:i}}),this.electricityTariff.configuration.home_id||this.updateConfiguration(this.tibberHomeList[0].value,"configuration.home_id"),this.$root.postClientMessage("Home IDs erfolgreich abgerufen.","success")}catch(t){console.error(t),this.$root.postClientMessage("Beim Abfragen der Tibber API ist ein Fehler aufgetreten!
"+t+"
","danger")}}}},k={class:"electricity-tariff-tibber"},v=y("a",{href:"https://developer.tibber.com/explorer",target:"_blank",rel:"noopener noreferrer"}," Tibber-Developer-Seite ",-1);function w(o,t,e,i,c,a){var u;const b=s("openwb-base-alert"),d=s("openwb-base-text-input"),f=s("openwb-base-button-input"),p=s("openwb-base-select-input");return _(),g("div",k,[n(b,{subtype:"info"},{default:h(()=>[l(" Ihren persönlichen Tibber-Token erhalten Sie über die "),v,l(" . Behandeln Sie Ihren Token wie ein Passwort, da sich darüber auch persönliche Daten aus Ihrem Tibber-Account abfragen lassen! Die Home-ID können Sie (wenn bekannt) in das Eingabefeld selbst eintragen oder nach Eingabe Ihres Token durch Klick auf den Button von der openWB ermitteln lassen. Unerlaubte Zeichen werden aus dem Token und der Home-ID automatisch gelöscht. ")]),_:1}),n(d,{title:"Token",required:"",ref:"tokenInput","model-value":e.electricityTariff.configuration.token,"onUpdate:modelValue":t[0]||(t[0]=r=>a.updateConfiguration(r,"configuration.token"))},null,8,["model-value"]),n(f,{title:"Home-IDs abrufen",buttonText:"Jetzt abrufen",subtype:"success",disabled:!((u=e.electricityTariff.configuration.token)!=null&&u.length),onButtonClicked:a.getTibberHomeList},null,8,["disabled","onButtonClicked"]),n(p,{title:"Verfügbare Home-IDs",required:"",options:c.tibberHomeList,"model-value":e.electricityTariff.configuration.home_id,"onUpdate:modelValue":t[1]||(t[1]=r=>a.updateConfiguration(r,"configuration.home_id"))},null,8,["options","model-value"]),n(d,{title:"Home-ID",required:"","model-value":e.electricityTariff.configuration.home_id,"onUpdate:modelValue":t[2]||(t[2]=r=>a.updateConfiguration(r,"configuration.home_id"))},null,8,["model-value"])])}const x=m(T,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/tibber/electricity_tariff.vue"]]);export{x as default}; diff --git a/web/settings/assets/electricity_tariff-da77f6bf.js b/web/settings/assets/electricity_tariff-3cf75323.js similarity index 95% rename from web/settings/assets/electricity_tariff-da77f6bf.js rename to web/settings/assets/electricity_tariff-3cf75323.js index d309405e5a..12e4d44328 100644 --- a/web/settings/assets/electricity_tariff-da77f6bf.js +++ b/web/settings/assets/electricity_tariff-3cf75323.js @@ -1 +1 @@ -import{_ as s,q as l,k as u,l as d,B as i,M as f,x as p}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"ElectricityTariffVoltego",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},m={class:"electricity-tariff-voltego"};function g(n,e,o,b,v,a){const c=l("openwb-base-alert"),r=l("openwb-base-text-input");return u(),d("div",m,[i(c,{subtype:"info"},{default:f(()=>[p(" Ihre persönlichen Zugangsdaten (Client-ID und Client-Secret) erhalten Sie direkt von Voltego. Behandeln Sie diese Daten wie ein Passwort, da sich darüber auch persönliche Daten aus Ihrem Voltego-Account abfragen lassen! ")]),_:1}),i(r,{title:"Client-ID",subtype:"user",required:"","model-value":o.electricityTariff.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.client_id"))},null,8,["model-value"]),i(r,{title:"Client-Secret",subtype:"password",required:"","model-value":o.electricityTariff.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.client_secret"))},null,8,["model-value"])])}const w=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/voltego/electricity_tariff.vue"]]);export{w as default}; +import{_ as s,q as l,k as u,l as d,B as i,M as f,x as p}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"ElectricityTariffVoltego",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},m={class:"electricity-tariff-voltego"};function g(n,e,o,b,v,a){const c=l("openwb-base-alert"),r=l("openwb-base-text-input");return u(),d("div",m,[i(c,{subtype:"info"},{default:f(()=>[p(" Ihre persönlichen Zugangsdaten (Client-ID und Client-Secret) erhalten Sie direkt von Voltego. Behandeln Sie diese Daten wie ein Passwort, da sich darüber auch persönliche Daten aus Ihrem Voltego-Account abfragen lassen! ")]),_:1}),i(r,{title:"Client-ID",subtype:"user",required:"","model-value":o.electricityTariff.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.client_id"))},null,8,["model-value"]),i(r,{title:"Client-Secret",subtype:"password",required:"","model-value":o.electricityTariff.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.client_secret"))},null,8,["model-value"])])}const w=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/voltego/electricity_tariff.vue"]]);export{w as default}; diff --git a/web/settings/assets/electricity_tariff-4397bc3d.js b/web/settings/assets/electricity_tariff-889c07b8.js similarity index 94% rename from web/settings/assets/electricity_tariff-4397bc3d.js rename to web/settings/assets/electricity_tariff-889c07b8.js index c426a70844..ebfe836958 100644 --- a/web/settings/assets/electricity_tariff-4397bc3d.js +++ b/web/settings/assets/electricity_tariff-889c07b8.js @@ -1 +1 @@ -import{_ as o,q as c,k as s,l,B as u,M as d,x as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const p={name:"ElectricityTariffAwattar",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},_={class:"electricity-tariff-awattar"};function m(t,e,a,b,w,r){const i=c("openwb-base-select-input");return s(),l("div",_,[u(i,{title:"Land",notSelected:"Bitte auswählen",options:[{value:"de",text:"Deutschland"},{value:"at",text:"Österreich"}],"model-value":a.electricityTariff.configuration.country,"onUpdate:modelValue":e[0]||(e[0]=n=>r.updateConfiguration(n,"configuration.country"))},{help:d(()=>[f(" Es werden die abgefragten Börsenpreise verwendet, die aWATTar bereitstellt. aWATTar-Gebühren oder Steuern werden nicht berücksichtigt. ")]),_:1},8,["model-value"])])}const v=o(p,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/awattar/electricity_tariff.vue"]]);export{v as default}; +import{_ as o,q as c,k as s,l,B as u,M as d,x as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const p={name:"ElectricityTariffAwattar",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},_={class:"electricity-tariff-awattar"};function m(t,e,a,b,w,r){const i=c("openwb-base-select-input");return s(),l("div",_,[u(i,{title:"Land",notSelected:"Bitte auswählen",options:[{value:"de",text:"Deutschland"},{value:"at",text:"Österreich"}],"model-value":a.electricityTariff.configuration.country,"onUpdate:modelValue":e[0]||(e[0]=n=>r.updateConfiguration(n,"configuration.country"))},{help:d(()=>[f(" Es werden die abgefragten Börsenpreise verwendet, die aWATTar bereitstellt. aWATTar-Gebühren oder Steuern werden nicht berücksichtigt. ")]),_:1},8,["model-value"])])}const v=o(p,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/awattar/electricity_tariff.vue"]]);export{v as default}; diff --git a/web/settings/assets/external_inverter-b910463d.js b/web/settings/assets/external_inverter-1d50d371.js similarity index 86% rename from web/settings/assets/external_inverter-b910463d.js rename to web/settings/assets/external_inverter-1d50d371.js index f938c6bacc..cbb41483ea 100644 --- a/web/settings/assets/external_inverter-b910463d.js +++ b/web/settings/assets/external_inverter-1d50d371.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u as l,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceE3dcExternalInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-external-inverter"},m={class:"small"};function b(e,t,v,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für externe E3DC Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/external_inverter.vue"]]);export{$ as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u as l,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceE3dcExternalInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-external-inverter"},m={class:"small"};function b(e,t,v,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für externe E3DC Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/external_inverter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/external_inverter-3a8cee19.js b/web/settings/assets/external_inverter-2d7b8e72.js similarity index 92% rename from web/settings/assets/external_inverter-3a8cee19.js rename to web/settings/assets/external_inverter-2d7b8e72.js index 144a9ae58f..e4c8d48642 100644 --- a/web/settings/assets/external_inverter-3a8cee19.js +++ b/web/settings/assets/external_inverter-2d7b8e72.js @@ -1 +1 @@ -import{_ as c,q as i,k as p,l as _,B as n,M as u,x as d,u as f,y as g}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceSolarEdgeExternalInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-solaredge-external-inverter"},h={class:"small"};function x(t,e,a,w,B,r){const l=i("openwb-base-heading"),m=i("openwb-base-alert"),s=i("openwb-base-number-input");return p(),_("div",v,[n(l,null,{default:u(()=>[d(" Einstellungen für SolarEdge externen Wechselrichter "),f("span",h,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),n(m,{subtype:"info"},{default:u(()=>[d(' Diese Komponente nur konfigurieren, wenn ein weiteres Solaredge SmartMeter verbaut ist, welches z.B. die Leistung einer vorhandenen Bestands-PV-Anlage erfasst. Dieses zusätzliche SmartMeter muss dann als "Zähler 2" / "Position 2" im Wechselrichter-Konfigurationsmenü konfiguriert sein. ')]),_:1}),n(s,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=o=>r.updateConfiguration(o,"configuration.modbus_id"))},null,8,["model-value"]),n(s,{title:"Meter ID","model-value":a.configuration.meter_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=o=>r.updateConfiguration(o,"configuration.meter_id"))},null,8,["model-value"])])}const S=c(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/external_inverter.vue"]]);export{S as default}; +import{_ as c,q as i,k as p,l as _,B as n,M as u,x as d,u as f,y as g}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceSolarEdgeExternalInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-solaredge-external-inverter"},h={class:"small"};function x(t,e,a,w,B,r){const l=i("openwb-base-heading"),m=i("openwb-base-alert"),s=i("openwb-base-number-input");return p(),_("div",v,[n(l,null,{default:u(()=>[d(" Einstellungen für SolarEdge externen Wechselrichter "),f("span",h,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),n(m,{subtype:"info"},{default:u(()=>[d(' Diese Komponente nur konfigurieren, wenn ein weiteres Solaredge SmartMeter verbaut ist, welches z.B. die Leistung einer vorhandenen Bestands-PV-Anlage erfasst. Dieses zusätzliche SmartMeter muss dann als "Zähler 2" / "Position 2" im Wechselrichter-Konfigurationsmenü konfiguriert sein. ')]),_:1}),n(s,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=o=>r.updateConfiguration(o,"configuration.modbus_id"))},null,8,["model-value"]),n(s,{title:"Meter ID","model-value":a.configuration.meter_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=o=>r.updateConfiguration(o,"configuration.meter_id"))},null,8,["model-value"])])}const S=c(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/external_inverter.vue"]]);export{S as default}; diff --git a/web/settings/assets/external_inverter-1f5e49f5.js b/web/settings/assets/external_inverter-7839d657.js similarity index 86% rename from web/settings/assets/external_inverter-1f5e49f5.js rename to web/settings/assets/external_inverter-7839d657.js index 7c7c518760..7885465ffb 100644 --- a/web/settings/assets/external_inverter-1f5e49f5.js +++ b/web/settings/assets/external_inverter-7839d657.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as a,x as r,u as l,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceBatterXExternalInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-batterx-external-inverter"},m={class:"small"};function b(e,t,v,x,g,h){const s=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(s,null,{default:a(()=>[r(" Einstellungen für externen BatterX Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:a(()=>[r(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/external_inverter.vue"]]);export{$ as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as a,x as r,u as l,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceBatterXExternalInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-batterx-external-inverter"},m={class:"small"};function b(e,t,v,x,g,h){const s=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(s,null,{default:a(()=>[r(" Einstellungen für externen BatterX Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:a(()=>[r(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/external_inverter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/index-bed1470e.js b/web/settings/assets/index-e599db2d.js similarity index 86% rename from web/settings/assets/index-bed1470e.js rename to web/settings/assets/index-e599db2d.js index e3fc20661e..1127e3dd8d 100644 --- a/web/settings/assets/index-bed1470e.js +++ b/web/settings/assets/index-e599db2d.js @@ -1 +1 @@ -import{_ as v,k as r,l as d,m as w,p as y,q as _,u as o,x as m,y as f,z as b,A as u,B as p,D as C,E as x,F as S,G as Q,I as T,J as A,K as Y,L as Z,M as h,N as X,O as ee,T as N,P as te,Q as W,R as D,S as L,U as se,V as ne,W as oe,X as ae,Y as le,Z as ie,$ as re}from"./vendor-b03da118.js";import{l as B,f as V,a as M,b as de,c as ce,d as ue,e as pe,F as O,g as q,h as me,i as _e,j as he,k as fe,m as ge,n as be,o as ve,p as we,q as ye,r as ke,s as Se,t as Ce,u as Be,v as Oe,w as $e,x as Ie,y as xe,z as Te,A as Ve,B as Me,C as Pe,D as He,E as Ae,G as De,H as Le,I as qe,J as Ee}from"./vendor-fortawesome-cf9a975a.js";import"./vendor-bootstrap-ae747010.js";import{p as je,a as We}from"./vendor-axios-3d217103.js";import"./vendor-sortablejs-595f2e06.js";import"./vendor-jquery-9f6206bf.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))c(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&c(a)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function c(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();const Re={name:"OpenwbAlert",props:{subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}}};function Ne(e,t,n,c,l,s){return r(),d("div",{class:y(["card-text alert","alert-"+n.subtype])},[w(e.$slots,"default")],2)}const Fe=v(Re,[["render",Ne],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAlert.vue"]]),Ue=Object.freeze(Object.defineProperty({__proto__:null,default:Fe},Symbol.toStringTag,{value:"Module"}));B.add(V,M,de,ce,ue,pe);const ze={name:"OpenwbArrayInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Array,default:()=>[]},noElementsMessage:{type:String,default:()=>"Keine Elemente zugeordnet."}},emits:["update:modelValue"],data(){return{newTag:"",showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},newTagValid:{get(){return this.newTag.length>0&&this.value.indexOf(this.newTag)==-1}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},addTag(){if(this.newTagValid){let e=this.value;e.push(this.newTag),e.sort(),this.value=e,this.newTag=""}this.$refs.tagInput.focus()},removeTag(e){let t=this.value;t.splice(e,1),this.value=t}},components:{FontAwesomeIcon:O}},Ge={class:"form-row mb-1"},Je={class:"col-md-8"},Ke={class:"form-row"},Qe={class:"input-group"},Ye={class:"input-group-prepend"},Ze={class:"input-group-text"},Xe={class:"input-group-append"},et={class:"form-row tagList mt-1"},tt={key:0,class:"noTag"},st={key:0,class:"form-row alert alert-info my-1 small"};function nt(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Ge,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Je,[o("div",Ke,[o("div",Qe,[o("div",Ye,[o("div",Ze,[p(a,{"fixed-width":"",icon:["fas","tag"]})])]),C(o("input",S({ref:"tagInput",type:"text",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>l.newTag=i)},e.$attrs,{onKeyup:t[2]||(t[2]=Q((...i)=>s.addTag&&s.addTag(...i),["enter"]))}),null,16),[[x,l.newTag]]),o("div",Xe,[o("div",{class:y(["input-group-text",s.newTagValid?"bg-success clickable":"notClickable"]),onClick:t[3]||(t[3]=(...i)=>s.addTag&&s.addTag(...i))},[p(a,{"fixed-width":"",icon:["fas","plus"]})],2)])])]),o("div",et,[s.value.length==0?(r(),d("span",tt,[p(a,{icon:["fas","info-circle"]}),m(" "+f(n.noElementsMessage),1)])):u("",!0),(r(!0),d(T,null,A(s.value,(i,g)=>(r(),d("span",{class:"tag",key:g},[p(a,{icon:["fas","tag"]}),m(" "+f(i)+" ",1),p(a,{class:"clickable",icon:["fas","times-circle"],onClick:I=>s.removeTag(g)},null,8,["onClick"])]))),128))]),l.showHelp?(r(),d("span",st,[w(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const ot=v(ze,[["render",nt],["__scopeId","data-v-9de93d37"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseArrayInput.vue"]]),at=Object.freeze(Object.defineProperty({__proto__:null,default:ot},Symbol.toStringTag,{value:"Module"}));const lt={name:"OpenwbAvatar"},it={class:"avatar"};function rt(e,t,n,c,l,s){return r(),d("div",it,[w(e.$slots,"default",{},()=>[m("?")],!0)])}const dt=v(lt,[["render",rt],["__scopeId","data-v-06082a1a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAvatar.vue"]]),ct=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"}));B.add(V,M,q);const ut={name:"OpenwbButtonGroupInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Number,Boolean]},buttons:Object},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},pt={class:"form-row mb-1"},mt={class:"col-md-8"},_t={class:"form-row"},ht={class:"btn-group btn-block btn-group-toggle"},ft=["value"],gt={key:0,class:"form-row alert alert-info my-1 small"};function bt(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",pt,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",mt,[o("div",_t,[o("div",ht,[(r(!0),d(T,null,A(n.buttons,i=>(r(),d("label",{key:i.value,class:y(["btn",[s.value==i.buttonValue?"active":"",i.class?i.class:"btn-outline-info"]])},[C(o("input",S({type:"radio","onUpdate:modelValue":t[1]||(t[1]=g=>s.value=g),value:i.buttonValue},e.$attrs),null,16,ft),[[Y,s.value]]),m(" "+f(i.text)+" ",1),p(a,{icon:["fas","check"],style:Z([s.value==i.buttonValue?"visibility: visible":"visibility: hidden"])},null,8,["style"])],2))),128))])]),l.showHelp?(r(),d("span",gt,[w(e.$slots,"help")])):u("",!0)])])}const vt=v(ut,[["render",bt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonGroupInput.vue"]]),wt=Object.freeze(Object.defineProperty({__proto__:null,default:vt},Symbol.toStringTag,{value:"Module"}));B.add(V,M);const yt={name:"OpenwbButtonInput",inheritAttrs:!1,props:{title:String,buttonText:String,disabled:{type:Boolean,default:!1},subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}},data(){return{showHelp:!1}},emits:["buttonClicked"],methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},handleClick(e){this.$emit("buttonClicked",e)}},components:{FontAwesomeIcon:O}},kt={class:"form-row mb-1"},St={class:"col-md-8"},Ct={class:"form-row"},Bt={key:0,class:"form-row alert alert-info my-1 small"};function Ot(e,t,n,c,l,s){const a=_("font-awesome-icon"),i=_("openwb-base-click-button");return r(),d("div",kt,[o("label",{onClick:t[0]||(t[0]=(...g)=>s.toggleHelp&&s.toggleHelp(...g)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",St,[o("div",Ct,[p(i,S({class:(n.disabled?"btn-outline-":"btn-")+n.subtype,disabled:n.disabled},e.$attrs,{onButtonClicked:s.handleClick}),{default:h(()=>[w(e.$slots,"default",{},()=>[m(f(n.buttonText),1)])]),_:3},16,["class","disabled","onButtonClicked"])]),l.showHelp?(r(),d("span",Bt,[w(e.$slots,"help")])):u("",!0)])])}const $t=v(yt,[["render",Ot],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonInput.vue"]]),It=Object.freeze(Object.defineProperty({__proto__:null,default:$t},Symbol.toStringTag,{value:"Module"}));B.add(me,_e);const xt={name:"OpenwbCard",components:{FontAwesomeIcon:O},props:{title:{type:String,default:"# no title set #"},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark","pink"].indexOf(e)!==-1},default:"secondary"},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1}},data(){return{isCollapsed:this.collapsible&&this.collapsed}},methods:{toggleBody(){this.collapsible===!0&&(this.isCollapsed=!this.isCollapsed)}}},Tt={class:"form-group mb-0"},Vt={class:"form-row vaRow mb-0 py-2"},Mt={class:"col"},Pt={class:"card-actions ml-4"},Ht={key:0,class:"card-actions mr-4"},At={key:0,class:"card-body"},Dt={key:1,class:"card-footer"};function Lt(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",{class:y(["card","border-"+n.subtype])},[o("div",{class:y(["card-header py-1","bg-"+n.subtype]),onClick:t[0]||(t[0]=(...i)=>s.toggleBody&&s.toggleBody(...i))},[o("div",Tt,[o("div",Vt,[o("div",Mt,[w(e.$slots,"header",{collapsed:l.isCollapsed},()=>[m(f(n.title),1)])])])]),o("span",Pt,[e.$slots.actions?(r(),d("span",Ht,[w(e.$slots,"actions",{collapsed:l.isCollapsed})])):u("",!0),n.collapsible?(r(),b(a,{key:1,"fixed-width":"",icon:l.isCollapsed?["fas","chevron-right"]:["fas","chevron-down"]},null,8,["icon"])):u("",!0)])],2),l.isCollapsed===!1?(r(),d("div",At,[w(e.$slots,"default")])):u("",!0),e.$slots.footer&&l.isCollapsed===!1?(r(),d("div",Dt,[w(e.$slots,"footer")])):u("",!0)],2)}const qt=v(xt,[["render",Lt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCard.vue"]]),Et=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"}));B.add(V,M);const jt={name:"OpenwbCheckboxInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Boolean}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},Wt={class:"form-row mb-1"},Rt={class:"col-md-8"},Nt={class:"form-row"},Ft={key:0,class:"form-row alert alert-info my-1 small"};function Ut(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Wt,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Rt,[o("div",Nt,[C(o("input",S({class:"form-control",type:"checkbox","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16),[[X,s.value]])]),l.showHelp?(r(),d("span",Ft,[w(e.$slots,"help")])):u("",!0)])])}const zt=v(jt,[["render",Ut],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCheckboxInput.vue"]]),Gt=Object.freeze(Object.defineProperty({__proto__:null,default:zt},Symbol.toStringTag,{value:"Module"}));const Jt={name:"OpenwbClickButton",props:{title:String},emits:["buttonClicked"],methods:{click(e){this.$emit("buttonClicked",e)}}};function Kt(e,t,n,c,l,s){return r(),d("button",{type:"button",class:"btn btn-block",onClick:t[0]||(t[0]=ee((...a)=>s.click&&s.click(...a),["prevent"]))},[w(e.$slots,"default",{},()=>[m(f(n.title),1)],!0)])}const Qt=v(Jt,[["render",Kt],["__scopeId","data-v-2e9c095b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseClickButton.vue"]]),Yt=Object.freeze(Object.defineProperty({__proto__:null,default:Qt},Symbol.toStringTag,{value:"Module"}));B.add(he,fe);const Zt={name:"OpenwbCopyToClipboard",components:{FontAwesomeIcon:O},props:{tooltip:{type:String,default:"Wert kopieren"}},data(){return{clipboardApiAvailable:navigator.clipboard!=null,isCopied:!1}},methods:{click(){if(console.debug(this.$refs["slot-wrapper"].innerText),this.clipboardApiAvailable)navigator.clipboard.writeText(this.$refs["slot-wrapper"].innerText).then(()=>{this.isCopied=!0},()=>{console.error("copy to clipboard failed")});else{if(console.debug("clipboard api not supported/enabled, fallback to select"),window.getSelection){console.debug("using 'window.getSelection'");const e=window.getSelection(),t=document.createRange();t.selectNodeContents(this.$refs["slot-wrapper"]),e.removeAllRanges(),e.addRange(t);return}if(document.body.createTextRange){console.debug("using 'document.body.createTextRange'");const e=document.body.createTextRange();e.moveToElementText(this.$refs["slot-wrapper"]),e.select()}else console.warn("could not select text, unsupported browser")}}}},Xt=["title"];function es(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("span",{ref:"slot-wrapper",title:n.tooltip,class:"copy-me",onClick:t[0]||(t[0]=(...i)=>s.click&&s.click(...i))},[w(e.$slots,"default",{},void 0,!0),p(a,{"fixed-width":"",icon:l.isCopied?["fas","clipboard-check"]:["fas","clipboard"]},null,8,["icon"])],8,Xt)}const ts=v(Zt,[["render",es],["__scopeId","data-v-81826ebe"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCopyToClipboard.vue"]]),ss=Object.freeze(Object.defineProperty({__proto__:null,default:ts},Symbol.toStringTag,{value:"Module"}));B.add(V,M,q);const ns={name:"OpenwbHeading",inheritAttrs:!1,components:{FontAwesomeIcon:O},data(){return{showHelp:!1}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},os={key:0,class:"actions"},as={class:""},ls={key:0,class:"form-row alert alert-info small"};function is(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d(T,null,[o("div",S({class:"card-text card-text-heading"},e.$attrs),[o("div",{class:"heading-text",onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i))},[w(e.$slots,"default",{},void 0,!0),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),e.$slots.actions?(r(),d("span",os,[w(e.$slots,"actions",{},void 0,!0)])):u("",!0)],16),o("div",as,[l.showHelp?(r(),d("span",ls,[w(e.$slots,"help",{},void 0,!0)])):u("",!0)])],64)}const rs=v(ns,[["render",is],["__scopeId","data-v-cbe4e96e"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseHeading.vue"]]),ds=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"})),cs={name:"OpenwbModalDialog",emits:["modal-result"],props:{title:String,subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},buttons:{type:Array,default:void 0},footerAlignment:{type:String,validator:function(e){return["around","between","center","end","start"].indexOf(e)!==-1},default:"end"},preventClose:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},computed:{myButtons(){var e=[];return this.buttons!==void 0&&(e=this.buttons),this.preventClose||e.push({text:"Schließen",event:"close"}),e}},methods:{handleClick(e){e.stopPropagation();let t=e.target.getAttribute("data-event");t===null&&(t="close"),(t!="close"||!this.preventClose)&&this.$emit("modal-result",t)}}},us=o("div",{class:"modal-backdrop fade show"},null,-1),ps={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},ms={class:"modal-content"},_s={class:"modal-title"},hs={class:"modal-body"},fs=["data-event"];function gs(e,t,n,c,l,s){return n.show?(r(),b(N,{key:0,to:"body"},[us,o("div",{class:"modal fade d-block show",role:"dialog",onClick:t[2]||(t[2]=(...a)=>s.handleClick&&s.handleClick(...a))},[o("div",ps,[o("div",ms,[o("div",{class:y(["modal-header","bg-"+n.subtype])},[o("h4",_s,f(n.title),1),n.preventClose?u("",!0):(r(),d("button",{key:0,type:"button",class:"close",onClick:t[0]||(t[0]=(...a)=>s.handleClick&&s.handleClick(...a))}," × "))],2),o("div",hs,[w(e.$slots,"default",{},()=>[m("# Body #")])]),s.myButtons.length>0?(r(),d("div",{key:0,class:y(["modal-footer d-flex","justify-content-"+n.footerAlignment])},[(r(!0),d(T,null,A(s.myButtons,a=>(r(),d("button",{key:a.text,type:"button",class:y(["btn",a.subtype?"btn-"+a.subtype:"btn-secondary"]),"data-dismiss":"modal","data-event":a.event?a.event:"close",onClick:t[1]||(t[1]=(...i)=>s.handleClick&&s.handleClick(...i))},f(a.text),11,fs))),128))],2)):u("",!0)])])])])):u("",!0)}const bs=v(cs,[["render",gs],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseModalDialog.vue"]]),vs=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"}));B.add(V,M,ge);const ws={name:"OpenwbNumberInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Number},unit:String,precision:{type:Number,default:void 0},emptyValue:{required:!1,default:null}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.precision!==void 0?parseFloat(Math.round(this.modelValue*Math.pow(10,this.precision))/Math.pow(10,this.precision)):this.modelValue},set(e){(isNaN(e)||typeof e!="number")&&(e=this.emptyValue),this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},ys={class:"form-row mb-1"},ks={class:"col-md-8"},Ss={class:"form-row"},Cs={class:"input-group"},Bs={class:"input-group-prepend"},Os={class:"input-group-text"},$s={key:0,class:"input-group-append"},Is={class:"input-group-text"},xs={key:0,class:"form-row alert alert-info my-1 small"};function Ts(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",ys,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",ks,[o("div",Ss,[o("div",Cs,[o("div",Bs,[o("div",Os,[p(a,{"fixed-width":"",icon:["fas","calculator"]})])]),C(o("input",S({type:"number",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16),[[x,s.value,void 0,{number:!0}]]),n.unit?(r(),d("div",$s,[o("div",Is,f(n.unit),1)])):u("",!0)])]),l.showHelp?(r(),d("span",xs,[w(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const Vs=v(ws,[["render",Ts],["__scopeId","data-v-c2fb7eef"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseNumberInput.vue"]]),Ms=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"}));B.add(V,M,be,ve);const Ps={name:"OpenwbRangeInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Number},unit:String,min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},labels:{type:Array}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{label(){var e;return this.labels&&this.sliderValue!=null?this.sliderValues.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",As,[o("div",Ds,[s.label?(r(),d("label",Ls,f(s.label),1)):u("",!0),o("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[1]||(t[1]=(...i)=>s.decrement&&s.decrement(...i))},[p(a,{icon:["fas","step-backward"]})]),o("div",qs,[C(o("input",S({type:"range",class:"form-control-range rangeInput",min:n.min,max:n.max,step:n.step,"onUpdate:modelValue":t[2]||(t[2]=i=>s.sliderValue=i)},e.$attrs),null,16,Es),[[x,s.sliderValue,void 0,{number:!0}]])]),o("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[3]||(t[3]=(...i)=>s.increment&&s.increment(...i))},[p(a,{icon:["fas","step-forward"]})])]),l.showHelp?(r(),d("div",js,[o("div",Ws,[w(e.$slots,"help",{},void 0,!0)])])):u("",!0)])])}const Ns=v(Ps,[["render",Rs],["__scopeId","data-v-449fb0a5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseRangeInput.vue"]]),Fs=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"}));B.add(V,M);const Us={name:"OpenwbSelectInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Number,Array]},groups:Object,options:Object,notSelected:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},zs={class:"form-row mb-1"},Gs={class:"col-md-8"},Js={class:"form-row"},Ks={key:0,value:void 0,disabled:""},Qs=["value"],Ys=["label"],Zs=["value"],Xs={key:0,class:"form-row alert alert-info my-1 small"};function en(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",zs,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Gs,[o("div",Js,[C(o("select",S({class:"col form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),[n.notSelected!==void 0?(r(),d("option",Ks," -- "+f(n.notSelected)+" -- ",1)):u("",!0),(r(!0),d(T,null,A(n.options,i=>(r(),d("option",{key:i.value,value:i.value},f(i.text),9,Qs))),128)),(r(!0),d(T,null,A(n.groups,i=>(r(),d("optgroup",{key:i.label,label:i.label},[(r(!0),d(T,null,A(i.options,g=>(r(),d("option",{key:g.value,value:g.value},f(g.text),9,Zs))),128))],8,Ys))),128))],16),[[te,s.value]]),w(e.$slots,"append")]),l.showHelp?(r(),d("span",Xs,[w(e.$slots,"help")])):u("",!0)])])}const tn=v(Us,[["render",en],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSelectInput.vue"]]),sn=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"}));B.add(q,we,ye);const nn={name:"OpenwbSubmitButtons",components:{FontAwesomeIcon:O},props:{formName:{type:String,default:void 0},hideReset:{type:Boolean,default:!1},hideDefaults:{type:Boolean,default:!0}},data(){return{showModalReset:!1,showModalDefaults:!1}},emits:["reset","defaults","save"],computed:{showModalSave(){return this.$store.state.local.savingData}},methods:{showResetModal(){this.showModalReset=!0},handleModalReset(e){this.showModalReset=!1,e=="confirm"&&this.$emit("reset")},showDefaultsModal(){this.showModalDefaults=!0},handleModalDefaults(e){this.showModalDefaults=!1,e=="confirm"&&this.$emit("defaults")},saveSettings(){if(this.formName){if(!document.forms[this.formName].reportValidity()){console.debug("form invalid");return}}else console.debug("no form to validate");this.$emit("save")}}},on={class:"row justify-content-center mb-1"},an={class:"col-md-4 d-flex py-1 justify-content-center"},ln={key:0,class:"col-md-4 d-flex py-1 justify-content-center"},rn={key:1,class:"col-md-4 d-flex py-1 justify-content-center"};function dn(e,t,n,c,l,s){const a=_("openwb-base-modal-dialog"),i=_("font-awesome-icon");return r(),d(T,null,[p(a,{show:s.showModalSave,title:"Speichern",subtype:"success",preventClose:!0},{default:h(()=>[m(" Einstellungen werden gespeichert... ")]),_:1},8,["show"]),p(a,{show:l.showModalReset,title:"Änderungen verwerfen",subtype:"warning",buttons:[{text:"Ok",event:"confirm",subtype:"warning"}],onModalResult:s.handleModalReset},{default:h(()=>[m(" Wollen Sie die nicht gespeicherten Änderungen wirklich verwerfen? ")]),_:1},8,["show","onModalResult"]),p(a,{show:l.showModalDefaults,title:"Werkseinstellungen",subtype:"danger",buttons:[{text:"Ok",event:"confirm",subtype:"danger"}],onModalResult:s.handleModalDefaults},{default:h(()=>[m(" Wollen Sie wirklich alle Werte dieser Seite auf die Werkseinstellungen zurücksetzen? ")]),_:1},8,["show","onModalResult"]),o("div",on,[o("div",an,[o("button",{id:"saveSettingsBtn",type:"button",class:"btn btn-block btn-success",onClick:t[0]||(t[0]=(...g)=>s.saveSettings&&s.saveSettings(...g))},[m(" Speichern "),p(i,{"fixed-width":"",icon:["fas","check"]})])]),n.hideReset?u("",!0):(r(),d("div",ln,[o("button",{id:"modalResetBtn",type:"button",class:"btn btn-block btn-warning",onClick:t[1]||(t[1]=(...g)=>s.showResetModal&&s.showResetModal(...g))},[m(" Änderungen verwerfen "),p(i,{"fixed-width":"",icon:["fas","undo"]})])])),n.hideDefaults?u("",!0):(r(),d("div",rn,[o("button",{id:"modalDefaultsBtn",type:"button",class:"btn btn-block btn-danger",onClick:t[2]||(t[2]=(...g)=>s.showDefaultsModal&&s.showDefaultsModal(...g))},[m(" Werkseinstellungen "),p(i,{"fixed-width":"",icon:["fas","times"]})])]))])],64)}const cn=v(nn,[["render",dn],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSubmitButtons.vue"]]),un=Object.freeze(Object.defineProperty({__proto__:null,default:cn},Symbol.toStringTag,{value:"Module"}));B.add(V,M,ke,Se,Ce,Be,Oe,$e,Ie,xe,Te,Ve,Me,Pe);const pn={name:"OpenwbTextInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Object]},subtype:{validator:function(e){return["text","email","host","url","user","json","password","time","date","month","year"].indexOf(e)!==-1},default:"text"},pattern:String,unit:String,emptyValue:{required:!1,default:null},showQuickButtons:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{showHelp:!1,showPassword:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.warn("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch{console.error("parsing JSON failed: "+e),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else e==""&&(e=this.emptyValue),this.$emit("update:modelValue",e)}},inputRef(){switch(this.subtype){case"json":return this.$refs.jsonInput;case"password":return this.$refs.passwordInput;case"host":return this.$refs.hostInput;case"email":case"url":return this.$refs.urlInput;case"time":return this.$refs.timeInput;case"date":return this.$refs.dateInput;case"month":return this.$refs.monthInput;case"year":return this.$refs.yearInput}return this.$refs.textInput}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},togglePassword(){this.showPassword=!this.showPassword},modify(e){var t,n=new Date(this.modelValue);switch(this.subtype){case"date":n.setDate(n.getDate()+e),t=String(n.getFullYear())+"-"+String(n.getMonth()+1).padStart(2,"0")+"-"+String(n.getDate()).padStart(2,"0");break;case"month":n.setMonth(n.getMonth()+e),t=String(n.getFullYear())+"-"+String(n.getMonth()+1).padStart(2,"0");break;case"year":n.setYear(n.getFullYear()+e),t=String(n.getFullYear());break;default:console.warn(`cannot modify input of subtype '${this.subtype}'`);return}t>this.inputRef.max||t(D("data-v-6927d479"),e=e(),L(),e),mn={class:"form-row mb-1"},_n={class:"col-md-8"},hn={class:"form-row"},fn={class:"input-group"},gn={class:"input-group-prepend"},bn={class:"input-group-text"},vn=["pattern"],wn=["pattern"],yn=["type","pattern"],kn=["type"],Sn={key:9,class:"input-group-append"},Cn={class:"input-group-text"},Bn={class:"input-group-text"},On=F(()=>o("div",{class:"input-group-text"},"-",-1)),$n=[On],In=F(()=>o("div",{class:"input-group-text"},"+",-1)),xn=[In],Tn={key:0,class:"form-row alert alert-info my-1 small"};function Vn(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",mn,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",_n,[o("div",hn,[o("div",fn,[o("div",gn,[o("div",bn,[n.subtype=="text"?(r(),b(a,{key:0,"fixed-width":"",icon:["fas","keyboard"]})):u("",!0),n.subtype=="email"?(r(),b(a,{key:1,"fixed-width":"",icon:["fas","envelope"]})):u("",!0),n.subtype=="host"?(r(),b(a,{key:2,"fixed-width":"",icon:["fas","network-wired"]})):u("",!0),n.subtype=="url"?(r(),b(a,{key:3,"fixed-width":"",icon:["fas","globe"]})):u("",!0),n.subtype=="user"?(r(),b(a,{key:4,"fixed-width":"",icon:["fas","user"]})):u("",!0),n.subtype=="json"?(r(),b(a,{key:5,"fixed-width":"",icon:["fas","code"]})):u("",!0),n.subtype=="password"?(r(),b(a,{key:6,"fixed-width":"",icon:l.showPassword?["fas","unlock"]:["fas","lock"]},null,8,["icon"])):u("",!0),n.subtype=="time"?(r(),b(a,{key:7,"fixed-width":"",icon:["fas","clock"]})):u("",!0),n.subtype=="date"||n.subtype=="month"||n.subtype=="year"?(r(),b(a,{key:8,"fixed-width":"",icon:["fas","calendar-day"]})):u("",!0)])]),["text","user"].includes(n.subtype)?C((r(),d("input",S({key:0,ref:"textInput",type:"text",class:["form-control",{invalid:l.inputInvalid}],"onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs,{pattern:n.pattern}),null,16,vn)),[[x,s.value]]):u("",!0),n.subtype=="json"?C((r(),d("input",S({key:1,ref:"jsonInput",type:"text",class:"form-control","onUpdate:modelValue":t[2]||(t[2]=i=>s.value=i)},e.$attrs,{pattern:n.pattern}),null,16,wn)),[[x,s.value]]):u("",!0),n.subtype=="password"?C((r(),d("input",S({key:2,ref:"passwordInput",type:l.showPassword?"text":"password",class:"form-control","onUpdate:modelValue":t[3]||(t[3]=i=>s.value=i)},e.$attrs,{pattern:n.pattern}),null,16,yn)),[[W,s.value]]):u("",!0),n.subtype=="host"?C((r(),d("input",S({key:3,ref:"hostInput",type:"text",class:"form-control","onUpdate:modelValue":t[4]||(t[4]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value]]):u("",!0),["email","url"].includes(n.subtype)?C((r(),d("input",S({key:4,refs:"urlInput",type:n.subtype,class:"form-control","onUpdate:modelValue":t[5]||(t[5]=i=>s.value=i)},e.$attrs),null,16,kn)),[[W,s.value]]):u("",!0),n.subtype=="time"?C((r(),d("input",S({key:5,ref:"timeInput",type:"time",class:"form-control","onUpdate:modelValue":t[6]||(t[6]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value]]):u("",!0),n.subtype=="date"?C((r(),d("input",S({key:6,type:"date",ref:"dateInput",class:"form-control","onUpdate:modelValue":t[7]||(t[7]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value]]):u("",!0),n.subtype=="month"?C((r(),d("input",S({key:7,type:"month",ref:"monthInput",class:"form-control","onUpdate:modelValue":t[8]||(t[8]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value]]):u("",!0),n.subtype=="year"?C((r(),d("input",S({key:8,type:"number",ref:"yearInput",class:"form-control","onUpdate:modelValue":t[9]||(t[9]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value]]):u("",!0),n.unit?(r(),d("div",Sn,[o("div",Cn,f(n.unit),1)])):u("",!0),n.subtype=="password"?(r(),d("div",{key:10,class:"input-group-append clickable",onClick:t[10]||(t[10]=(...i)=>s.togglePassword&&s.togglePassword(...i))},[o("div",Bn,[p(a,{"fixed-width":"",icon:l.showPassword?["far","eye"]:["far","eye-slash"]},null,8,["icon"])])])):u("",!0),n.showQuickButtons&&(n.subtype=="date"||n.subtype=="month"||n.subtype=="year")?(r(),d("div",{key:11,class:"input-group-append clickable",onClick:t[11]||(t[11]=i=>s.modify(-1))},[...$n])):u("",!0),n.showQuickButtons&&(n.subtype=="date"||n.subtype=="month"||n.subtype=="year")?(r(),d("div",{key:12,class:"input-group-append clickable",onClick:t[12]||(t[12]=i=>s.modify(1))},[...xn])):u("",!0)])]),l.showHelp?(r(),d("span",Tn,[w(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const Mn=v(pn,[["render",Vn],["__scopeId","data-v-6927d479"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextInput.vue"]]),Pn=Object.freeze(Object.defineProperty({__proto__:null,default:Mn},Symbol.toStringTag,{value:"Module"}));B.add(V,M);const Hn={name:"OpenwbTextareaInput",inheritAttrs:!1,props:{title:String,modelValue:{String,Object},subtype:{validator:function(e){return["text","json"].indexOf(e)!==-1},default:"text"}},emits:["update:modelValue"],data(){return{showHelp:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.debug("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue,void 0,2):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch{console.warn("parsing JSON failed: "+e),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else this.$emit("update:modelValue",e)}},length:{get(){return this.value!==void 0?this.value.length:0}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},An={class:"form-row mb-1"},Dn={class:"col-md-8"},Ln={class:"form-row"},qn={class:"input-group"},En={class:"input-group-prepend"},jn={class:"input-group-text"},Wn={key:2,class:"input-group-append"},Rn={class:"input-group-text"},Nn={class:"form-text text-muted text-right"},Fn={key:0,class:"form-row alert alert-info my-1 small"};function Un(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",An,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Dn,[o("div",Ln,[o("div",qn,[o("div",En,[o("div",jn,[n.subtype=="text"?(r(),b(a,{key:0,"fixed-width":"",icon:["fas","keyboard"]})):u("",!0),n.subtype=="json"?(r(),b(a,{key:1,"fixed-width":"",icon:["fas","code"]})):u("",!0)])]),n.subtype==="json"?C((r(),d("textarea",S({key:0,ref:"jsonInput",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value,void 0,{lazy:!0}]]):C((r(),d("textarea",S({key:1,class:"form-control","onUpdate:modelValue":t[2]||(t[2]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value]]),e.$attrs.maxlength?(r(),d("div",Wn,[o("div",Rn,[o("small",Nn,f(s.length)+" / "+f(e.$attrs.maxlength),1)])])):u("",!0)])]),l.showHelp?(r(),d("span",Fn,[w(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const zn=v(Hn,[["render",Un],["__scopeId","data-v-3d93046b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextarea.vue"]]),Gn=Object.freeze(Object.defineProperty({__proto__:null,default:zn},Symbol.toStringTag,{value:"Module"}));const Jn={name:"OpenwbToast",emits:["dismiss","hide"],props:{topic:{type:String,required:!0},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},source:{validator:function(e){return["system","client","command"].indexOf(e)!==-1}},timestamp:{type:Number}},data(){return{handle:void 0,relativeTime:void 0,hidden:!1}},methods:{dismiss(){this.$emit("dismiss",{topic:this.topic})},updateRelativeTime(){const e={year:31536e6,month:2628e6,day:864e5,hour:36e5,minute:6e4,second:1e3};var t=new Intl.RelativeTimeFormat("de",{numeric:"auto"});const c=new Date-this.timestamp*1e3;for(var l in e)if(Math.abs(c)>e[l]){this.relativeTime=t.format(Math.round(c/e[l]),l);break}c>10*1e3&&!this.hidden&&(this.hidden=!0,this.$emit("hide",{topic:this.topic}))}},mounted(){this.handle=window.setInterval(this.updateRelativeTime,1e3)},unmounted(){window.clearInterval(this.handle)}},U=e=>(D("data-v-c51b5764"),e=e(),L(),e),Kn=U(()=>o("strong",{class:"pr-2 mr-auto"},"OpenWB",-1)),Qn={key:0,class:"time-diff"},Yn=U(()=>o("span",{"aria-hidden":"true"},"×",-1)),Zn=[Yn],Xn={class:"toast-body"};function eo(e,t,n,c,l,s){return r(),d("div",{class:y(["toast","border-"+n.subtype]),role:"alert"},[o("div",{class:y(["toast-header","bg-"+n.subtype])},[Kn,n.timestamp?(r(),d("small",Qn,f(l.relativeTime),1)):u("",!0),o("button",{type:"button",class:"ml-2 mb-1 close","data-dismiss":"toast","aria-label":"Close",onClick:t[0]||(t[0]=(...a)=>s.dismiss&&s.dismiss(...a))},[...Zn])],2),o("div",Xn,[w(e.$slots,"default",{},void 0,!0)])],2)}const to=v(Jn,[["render",eo],["__scopeId","data-v-c51b5764"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseToast.vue"]]),so=Object.freeze(Object.defineProperty({__proto__:null,default:to},Symbol.toStringTag,{value:"Module"}));B.add(He);const no={name:"OpenwbNavBar",components:{FontAwesomeIcon:O},computed:{nodeEnv(){return"development"}},watch:{$route(){this.$refs.collapsibleNavbar.classList.remove("show"),this.$refs.navbarButton.classList.add("collapsed"),this.$refs.navbarButton.setAttribute("aria-expanded",!1)}}},H=e=>(D("data-v-e7a6d0c0"),e=e(),L(),e),oo={class:"navbar navbar-expand-lg bg-dark navbar-dark fixed-top"},ao=H(()=>o("a",{class:"navbar-brand",href:"/openWB/web/"},[o("span",null,"openWB")],-1)),lo={class:"navbar-toggler mr-5",type:"button","data-toggle":"collapse","data-target":"#collapsibleNavbar",ref:"navbarButton"},io=H(()=>o("span",{class:"navbar-toggler-icon"},null,-1)),ro=[io],co={class:"collapse navbar-collapse navbar-nav-scroll",id:"collapsibleNavbar",ref:"collapsibleNavbar"},uo={class:"navbar-nav"},po={class:"nav-item"},mo={class:"nav-item dropdown nav-separator-after"},_o=H(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Auswertungen ",-1)),ho={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},fo={class:"nav-item dropdown"},go=H(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Einstellungen ",-1)),bo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},vo={class:"nav-item dropdown"},wo=H(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Ladeeinstellungen ",-1)),yo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},ko={class:"nav-item dropdown"},So=H(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Konfiguration ",-1)),Co={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},Bo=H(()=>o("div",{class:"dropdown-divider"},null,-1)),Oo=H(()=>o("a",{href:"modules/legacy_smart_home/smarthomeconfig.php",class:"dropdown-item",target:"_blank"}," SmartHome ",-1)),$o={class:"nav-item dropdown"},Io=H(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," System ",-1)),xo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},To={class:"nav-item nav-separator-before"},Vo={class:"nav-link",href:"https://github.com/openWB/core/wiki",target:"_blank"};function Mo(e,t,n,c,l,s){const a=_("router-link"),i=_("font-awesome-icon");return r(),d("nav",oo,[ao,o("button",lo,[...ro],512),o("div",co,[o("ul",uo,[o("li",po,[p(a,{to:"/Status",class:"nav-link","active-class":"active disabled"},{default:h(()=>[m(" Status ")]),_:1})]),o("li",mo,[_o,o("div",ho,[p(a,{to:"/Logging/ChargeLog",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Ladeprotokoll ")]),_:1}),p(a,{to:"/Logging/Chart",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Diagramme ")]),_:1})])]),o("li",fo,[go,o("div",bo,[p(a,{to:"/GeneralConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Allgemein ")]),_:1}),p(a,{to:"/OptionalComponents",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Optionale Hardware ")]),_:1})])]),o("li",vo,[wo,o("div",yo,[p(a,{to:"/GeneralChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Übergreifendes ")]),_:1}),p(a,{to:"/InstantChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Sofortladen ")]),_:1}),p(a,{to:"/PVChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" PV-Laden ")]),_:1}),p(a,{to:"/TimeChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Zeitladen ")]),_:1}),p(a,{to:"/ScheduledChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Zielladen ")]),_:1})])]),o("li",ko,[So,o("div",Co,[p(a,{to:"/HardwareInstallation",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Geräte und Komponenten ")]),_:1}),p(a,{to:"/LoadManagementConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Lastmanagement ")]),_:1}),p(a,{to:"/ChargePointInstallation",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Ladepunkte ")]),_:1}),p(a,{to:"/VehicleConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Fahrzeuge ")]),_:1}),Bo,Oo])]),o("li",$o,[Io,o("div",xo,[p(a,{to:"/System/CloudConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" openWB Cloud ")]),_:1}),p(a,{to:"/System/MqttBridgeConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" MQTT-Brücken ")]),_:1}),p(a,{to:"/System/DebugConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Fehlersuche ")]),_:1}),p(a,{to:"/System/Support",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Support ")]),_:1}),p(a,{to:"/System/DataManagement",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Datenverwaltung ")]),_:1}),p(a,{to:"/System/SystemConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" System ")]),_:1}),p(a,{to:"/System/LegalSettings",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Rechtliches ")]),_:1})])]),o("li",To,[o("a",Vo,[m(" Wiki "),p(i,{"fixed-width":"",icon:["fas","external-link-alt"]})])])])],512)])}const Po=v(no,[["render",Mo],["__scopeId","data-v-e7a6d0c0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageNavbar.vue"]]);const Ho={name:"OpenwbPageFooter"},Ao={id:"footer",class:"footer bg-dark text-light font-small"},Do={class:"container text-center"};function Lo(e,t,n,c,l,s){return r(),d("footer",Ao,[o("div",Do,[o("small",null," Sie befinden sich hier: Einstellungen / "+f(e.$route.meta.heading),1)])])}const qo=v(Ho,[["render",Lo],["__scopeId","data-v-3c9a239a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageFooter.vue"]]);B.add(Ae);const Eo={name:"OpenwbDonationBanner",components:{FontAwesomeIcon:O}},jo={class:"mt-3 alert alert-dark text-center"},Wo=o("br",null,null,-1),Ro=o("br",null,null,-1),No={action:"https://www.paypal.com/cgi-bin/webscr",method:"post",target:"_blank"},Fo=o("input",{type:"hidden",name:"cmd",value:"_s-xclick"},null,-1),Uo=o("input",{type:"hidden",name:"hosted_button_id",value:"2K8C4Y2JTGH7U"},null,-1),zo={type:"submit",class:"btn btn-primary"};function Go(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",jo,[m(" Open Source made with love!"),Wo,m(" Jede Spende hilft die Weiterentwicklung von openWB voranzutreiben"),Ro,o("form",No,[Fo,Uo,o("button",zo,[m(" Spenden "),p(a,{icon:["fab","paypal"]})])])])}const Jo=v(Eo,[["render",Go],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageDonationBanner.vue"]]),Ko={name:"ComponentState",data(){return{mqttTopicsToSubscribe:[]}},emits:["reset","defaults","save"],computed:{weekdays(){return["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"]},chargeModes(){return["instant_charging","pv_charging","scheduled_charging","time_charging","standby","stop"]},mqttClientId(){return this.$root.mqttClientId}},methods:{updateState(e,t,n=void 0){console.debug("updateState:",e,t,n),this.$store.commit({type:"updateTopic",topic:e,objectPath:n,payload:t})},getWildcardIndexList(e,t=!1){let n=e;t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$");let c=Object.keys(this.$store.state.mqtt).filter(l=>l.match(n));return c.forEach((l,s,a)=>{a[s]=parseInt(l.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,""))}),c},getWildcardTopics(e,t=!1){let n=e;return t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$"),Object.keys(this.$store.state.mqtt).filter(c=>c.match(n)).reduce((c,l)=>({...c,[l]:this.$store.state.mqtt[l]}),{})},formatDate(e,t={year:"numeric",month:"2-digit",day:"2-digit"}){return new Date(e).toLocaleDateString(void 0,t)},formatNumber(e,t=0,n=t,c=1){return(e*c).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:n})},formatNumberTopic(e,t=0,n=t,c=1){return this.$store.state.mqtt[e]?this.formatNumber(this.$store.state.mqtt[e],t,n,c):"-"},formatPhaseArrayNumberTopic(e,t=0,n=t,c=1){return this.$store.state.mqtt[e]?this.$store.state.mqtt[e].map(l=>this.formatNumber(l,t,n,c)).join(" / "):"- / - / -"},translateChargeMode(e){switch(e){case"instant_charging":return"Sofort";case"pv_charging":return"PV";case"scheduled_charging":return"Zielladen";case"time_charging":return"Zeitladen";case"standby":return"Standby";case"stop":return"Stop";default:return console.warn("unknown charge mode:",e),e}}},mounted(){`openWB/log/${this.mqttClientId}/data`in this.$store.state.mqtt||this.mqttTopicsToSubscribe.push("openWB/log/"+this.mqttClientId+"/data"),this.mqttTopicsToSubscribe.forEach(e=>{e.includes("#")||e.includes("+")?console.debug("skipping init of wildcard topic:",e):Object.keys(this.$store.state.mqtt).includes(e)?console.error("multiple subscriptions of topic!",e):this.$store.commit("addTopic",{topic:e,payload:void 0})}),this.$root.doSubscribe(this.mqttTopicsToSubscribe)},unmounted(){this.$root.doUnsubscribe(this.mqttTopicsToSubscribe),this.mqttTopicsToSubscribe.forEach(e=>{e.includes("#")||e.includes("+")?(console.debug("expanding wildcard topic:",e),Object.keys(this.getWildcardTopics(e)).forEach(t=>{console.debug("removing wildcardTopic:",t),this.$store.commit("removeTopic",t)})):this.$store.commit("removeTopic",e)})}},z=v(Ko,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/mixins/ComponentState.vue"]]);B.add(De,Le);const Qo={name:"OpenwbPageMessages",mixins:[z],components:{FontAwesomeIcon:O,FontAwesomeLayers:qe,FontAwesomeLayersText:Ee},data(){return{mqttTopicsToSubscribe:["openWB/system/messages/+","openWB/command/"+this.$root.mqttClientId+"/messages/+","openWB/command/"+this.$root.mqttClientId+"/error"],showAllMessages:!1,hiddenMessages:[]}},computed:{alertLevel(){return this.messages.reduce((t,n)=>((t=="light"&&["info","success","warning","danger"].includes(n.type)||t=="info"&&["success","warning","danger"].includes(n.type)||t=="success"&&["warning","danger"].includes(n.type)||t=="warning"&&n.type=="danger")&&(t=n.type),t),"light")},messages(){const e=[];return this.alertData&&e.push({topic:"openWB/command/"+this.$root.mqttClientId+"/error",source:"command",type:"danger",message:`Bei der Verarbeitung des Befehls '`+this.alertData.command+`' mit den Parametern '`+this.alertData.data+"' ist ein Fehler aufgetreten:
"+this.alertData.error+"
"}),this.systemMessages.forEach(t=>{e.push(t)}),this.clientMessages.forEach(t=>{e.push(t)}),e.sort(this.compareMessagesByTimestamp),e},recentMessages(){return this.showAllMessages?this.messages:this.messages.filter(e=>!this.hiddenMessages.includes(e.topic))},messageIndicatorClass(){return"text-"+this.alertLevel},alertData(){return this.$store.state.mqtt["openWB/command/"+this.$root.mqttClientId+"/error"]},systemMessages(){let e=this.getWildcardTopics("openWB/system/messages/+");var t=[];for(const[n,c]of Object.entries(e))t.push({topic:n,...c});return t},clientMessages(){let e=this.getWildcardTopics("openWB/command/"+this.$root.mqttClientId+"/messages/+");var t=[];for(const[n,c]of Object.entries(e))t.push({topic:n,...c});return t}},methods:{toggleAllMessages(){this.showAllMessages=!this.showAllMessages},compareMessagesByTimestamp(e,t){return t.timestamp-e.timestamp},clearTopic(e){this.$root.doPublish(e,void 0)},dismissError(){this.clearTopic("openWB/command/"+this.$root.mqttClientId+"/error")},dismissMessage(e){this.clearTopic(e.topic);var t=this.hiddenMessages.indexOf(e.topic);t>-1&&this.hiddenMessages.splice(t,1)},hideMessage(e){this.hiddenMessages.includes(e.topic)||this.hiddenMessages.push(e.topic)}}},Yo=["innerHTML"];function Zo(e,t,n,c,l,s){const a=_("font-awesome-icon"),i=_("font-awesome-layers-text"),g=_("font-awesome-layers"),I=_("openwb-base-alert"),P=_("openwb-base-toast");return r(),d(T,null,[(r(),b(N,{to:"body"},[o("div",{id:"message-indicator",class:y(["text-light mt-1 p-2 mr-1 clickable",l.showAllMessages?"active":""]),onClick:t[0]||(t[0]=(...$)=>s.toggleAllMessages&&s.toggleAllMessages(...$))},[p(g,{"full-width":"",style:{"font-size":"175%"}},{default:h(()=>[p(a,{"fixed-width":"",icon:l.showAllMessages?["fas","bell"]:["far","bell"],class:y(s.messageIndicatorClass)},null,8,["icon","class"]),s.messages.length>0?(r(),b(i,{key:0,counter:"",value:s.messages.length,position:"top-right",class:"message-counter bg-light text-dark"},null,8,["value"])):u("",!0)]),_:1})],2)])),s.recentMessages.length>0||l.showAllMessages?(r(),d("div",{key:0,class:y(["openwb-toast-container",l.showAllMessages?"full-height":""])},[s.recentMessages.length==0?(r(),b(I,{key:0,subtype:"info"},{default:h(()=>[m(" Keine Nachrichten vorhanden. ")]),_:1})):u("",!0),(r(!0),d(T,null,A(s.recentMessages,$=>(r(),b(P,{key:$.topic,topic:$.topic,source:$.source,subtype:$.type,timestamp:$.timestamp,onDismiss:s.dismissMessage,onHide:s.hideMessage},{default:h(()=>[o("span",{innerHTML:$.message},null,8,Yo)]),_:2},1032,["topic","source","subtype","timestamp","onDismiss","onHide"]))),128))],2)):u("",!0)],64)}const Xo=v(Qo,[["render",Zo],["__scopeId","data-v-2c25f0d0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageMessages.vue"]]),ea={name:"OpenwbPageBlocker",mixins:[z],data(){return{mqttTopicsToSubscribe:["openWB/system/boot_done","openWB/system/update_in_progress"]}},computed:{title(){return this.bootInProgress||this.updateInProgress?"openWB ist noch nicht bereit":this.reloadRequired?"Neues Laden der Seite erforderlich":"???"},myButtons(){return!(this.bootInProgress||this.updateInProgress)&&this.reloadRequired?[{text:"Jetzt neu laden",subtype:"success",event:"reload"}]:[]},bootInProgress(){return this.$store.state.mqtt["openWB/system/boot_done"]==null?!0:!this.$store.state.mqtt["openWB/system/boot_done"]},updateInProgress(){return this.$store.state.mqtt["openWB/system/update_in_progress"]==null?!1:this.$store.state.mqtt["openWB/system/update_in_progress"]},reloadRequired(){return this.$store.state.local.reloadRequired},showModalBlocker(){return this.bootInProgress||this.updateInProgress||this.reloadRequired}},methods:{handleModalResult(e){e=="reload"?location.reload():console.warn("unknown event",e)}}},ta={class:"openwb-blocker"},sa={key:0},na={key:1},oa={key:2},aa={key:3};function la(e,t,n,c,l,s){const a=_("openwb-base-modal-dialog");return r(),d("div",ta,[p(a,{show:s.showModalBlocker,title:s.title,subtype:"dark",preventClose:!0,buttons:s.myButtons,onModalResult:t[0]||(t[0]=i=>s.handleModalResult(i))},{default:h(()=>[s.bootInProgress?(r(),d("p",sa," Der Systemstart ist noch nicht abgeschlossen. ")):u("",!0),s.updateInProgress?(r(),d("p",na," Es wird eine Systemaktualisierung ausgeführt. ")):u("",!0),!(s.bootInProgress||s.updateInProgress)&&s.reloadRequired?(r(),d("p",oa," Bitte die Seite neu laden. ")):(r(),d("p",aa,"Bitte warten..."))]),_:1},8,["show","title","buttons"])])}const ia=v(ea,[["render",la],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageBlocker.vue"]]);const ra={name:"settings-app",components:{NavBar:Po,PageFooter:qo,DonationBanner:Jo,Messages:Xo,Blocker:ia},data(){return{client:{connected:!1},connection:{protocol:location.protocol=="https:"?"wss":"ws",host:location.hostname,port:parseInt(location.port)||(location.protocol=="https:"?443:80),endpoint:"/ws",connectTimeout:4e3,reconnectPeriod:4e3}}},computed:{mqttClientId(){try{return this.client.options.clientId}catch{return}},topicList(){return Object.keys(this.$store.state.mqtt)}},methods:{async saveValues(e=void 0){function t(c){return new Promise(l=>setTimeout(l,c))}console.debug("saving values..."),this.$store.state.local.savingData=!0;let n={};e===void 0?n=this.$store.state.mqtt:Array.isArray(e)?e.forEach(c=>{n[c]=this.$store.state.mqtt[c]}):console.error("expected array, got ",typeof e);for(const[c,l]of Object.entries(n)){let s=c.replace("openWB/","openWB/set/");console.debug("saving data:",s,l),this.doPublish(s,l),await t(100)}console.debug("done saving data"),this.$store.state.local.savingData=!1},resetValues(e=this.topicList){console.debug("resetting values..."),console.debug("topics: ",e),this.doUnsubscribe(e),this.doSubscribe(e)},setDefaultValues(){console.debug("setting default values... (ToDo)")},sendCommand(e){this.doPublish("openWB/set/command/"+this.client.options.clientId+"/todo",e,!1)},createConnection(){const{protocol:e,host:t,port:n,endpoint:c,...l}=this.connection,s=`${e}://${t}:${n}${c}`;console.debug("connecting to broker:",s);try{this.client=se.connect(s,l)}catch(a){console.error("mqtt.connect error",a)}this.client.on("connect",()=>{console.debug("Connection succeeded! ClientId: ",this.client.options.clientId),this.doSubscribe(["openWB/system/usage_terms_acknowledged"])}),this.client.on("error",a=>{console.error("Connection failed",a)}),this.client.on("message",(a,i)=>{if(i.toString().length>0){let g;try{g=JSON.parse(i.toString())}catch{console.debug("Json parsing failed, fallback to string: ",a),g=i.toString()}this.$store.commit("addTopic",{topic:a,payload:g})}else this.$store.commit("removeTopic",a)})},doSubscribe(e){this.client.subscribe(e,{},t=>{if(t){console.error("Subscribe to topics error",t);return}})},doUnsubscribe(e){this.client.unsubscribe(e,t=>{t&&console.error("Unsubscribe error",t)})},doPublish(e,t,n=!0,c=2){let l={qos:c,retain:n};this.client.publish(e,JSON.stringify(t),l,s=>{s&&console.error("Publish error",s)})},postClientMessage(e,t="secondary"){console.debug("postMessage:",e,t);const n=Date.now(),c="openWB/command/"+this.mqttClientId+"/messages/"+n;this.$store.commit({type:"addTopic",topic:c,payload:{message:e,type:t,source:"client",timestamp:Math.floor(n/1e3)}})}},created(){this.createConnection()}},da={role:"main",class:"container"},ca={id:"content"};function ua(e,t,n,c,l,s){const a=_("nav-bar"),i=_("router-view"),g=_("donation-banner"),I=_("page-footer"),P=_("messages"),$=_("blocker");return r(),d(T,null,[o("header",null,[p(a)]),o("div",da,[o("div",ca,[o("h1",null,f(e.$route.meta.heading),1),p(i,{onSave:s.saveValues,onReset:s.resetValues,onDefaults:s.setDefaultValues,onSendCommand:s.sendCommand},null,8,["onSave","onReset","onDefaults","onSendCommand"])]),p(g)]),p(I),p(P),p($)],64)}const pa=v(ra,[["render",ua],["__file","/opt/openWB-dev/openwb-ui-settings/src/App.vue"]]),ma="modulepreload",_a=function(e){return"/openWB/web/settings/"+e},R={},k=function(t,n,c){if(!n||n.length===0)return t();const l=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=_a(s),s in R)return;R[s]=!0;const a=s.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(!!c)for(let P=l.length-1;P>=0;P--){const $=l[P];if($.href===s&&(!a||$.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const I=document.createElement("link");if(I.rel=a?"stylesheet":ma,a||(I.as="script",I.crossOrigin=""),I.href=s,document.head.appendChild(I),a)return new Promise((P,$)=>{I.addEventListener("load",P),I.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s})};let G={mqtt:{},local:{reloadRequired:!1,savingData:!1},text:{rfidWiki:'Bitte auch hiervon abhängige Einstellungen beachten. Eine Übersicht gibt es im Wiki.'}};G.examples={text1:"Text...",text2:"mail@domain.com",text3:"openwb.local",text4:"http://www.openwb.de",text5:"Benutzername",text6:"12:34",text7:"2021-10-31",number1:5,number2:10,number3:28e-5,password1:"GeHeiM!",textarea1:"Langer Text...",range1:6,range2:10,select1:1,select2:"three",buttonGroup1:1,checkbox1:!0,json1:{text:"Text",number:123},hierarchy1:[{id:0,type:"counter",children:[{id:3,type:"inverter",children:[]},{id:4,type:"bat",children:[]},{id:1,type:"cp",children:[]},{id:2,type:"cp",children:[]}]}],hierarchy1Labels:{0:"EVU",1:"Ladepunkt 1",2:"Ladepunkt 2",3:"Wechselrichter",4:"Batteriespeicher"},tags:["1234","2345","3456"]};const J=ne({state:G,mutations:{storeLocal(e,t){e.local[t.name]=t.value},addTopic(e,t){e.mqtt[t.topic]=t.payload},removeTopic(e,t){delete e.mqtt[t]},updateTopic(e,t){const n=(c,l,s)=>l.split(".").reduce((a,i,g)=>a[i]=l.split(".").length===++g?s:a[i]||{},c);t.topic in e.mqtt?t.objectPath!=null?n(e.mqtt[t.topic],t.objectPath,t.payload):e.mqtt[t.topic]=t.payload:(console.debug("topic not found in state.mqtt: ",t.topic),t.topic in e.examples?t.objectPath!=null?n(e.examples[t.topic],t.objectPath,t.payload):e.examples[t.topic]=t.payload:console.warn("topic not found in state: ",t.topic," giving up"))}},actions:{},modules:{},getters:{usageTermsAcknowledged(e){return new Promise(t=>{if(e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0)t(e.mqtt["openWB/system/usage_terms_acknowledged"]);else{var n,c;n=setTimeout(()=>{clearInterval(c),t(!1)},5e3),c=setInterval(()=>{e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0&&(clearTimeout(n),clearInterval(c),t(e.mqtt["openWB/system/usage_terms_acknowledged"]))},100)}})}}}),K=[{path:"/",redirect:"/GeneralConfig"},{path:"/Status",name:"Status",meta:{heading:"Status"},component:()=>k(()=>import("./Status-daa90944.js"),["assets/Status-daa90944.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-chartjs-f4053bf0.js","assets/vendor-luxon-78deadb9.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js","assets/Status-6557de7c.css"])},{path:"/Logging/ChargeLog",name:"ChargeLog",meta:{heading:"Auswertungen - Ladeprotokoll"},component:()=>k(()=>import("./ChargeLog-543068b9.js"),["assets/ChargeLog-543068b9.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js","assets/ChargeLog-298377e5.css"])},{path:"/Logging/Chart/:chartRange?/:initialDate?",name:"DailyChart",meta:{heading:"Auswertungen - Diagramme"},component:()=>k(()=>import("./Chart-94685b11.js"),["assets/Chart-94685b11.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-chartjs-f4053bf0.js","assets/vendor-luxon-78deadb9.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js","assets/Chart-e20451b4.css"])},{path:"/GeneralConfig",name:"GeneralConfig",meta:{heading:"Einstellungen - Allgemein"},component:()=>k(()=>import("./GeneralConfig-698ad319.js"),["assets/GeneralConfig-698ad319.js","assets/dynamic-import-helper-be004503.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])},{path:"/OptionalComponents",name:"OptionalComponents",meta:{heading:"Einstellungen - Optionale Hardware"},component:()=>k(()=>import("./OptionalComponents-c2ad0b5a.js"),["assets/OptionalComponents-c2ad0b5a.js","assets/dynamic-import-helper-be004503.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])},{path:"/GeneralChargeConfig",name:"GeneralChargeConfig",meta:{heading:"Ladeeinstellungen - Übergreifendes"},component:()=>k(()=>import("./GeneralChargeConfig-ab52c68b.js"),["assets/GeneralChargeConfig-ab52c68b.js","assets/dynamic-import-helper-be004503.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])},{path:"/InstantChargeConfig",name:"InstantChargeConfig",meta:{heading:"Ladeeinstellungen - Sofortladen"},component:()=>k(()=>import("./InstantChargeConfig-13d5dc31.js"),["assets/InstantChargeConfig-13d5dc31.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])},{path:"/PVChargeConfig",name:"PVChargeConfig",meta:{heading:"Ladeeinstellungen - PV-Laden"},component:()=>k(()=>import("./PVChargeConfig-6a57d3e5.js"),["assets/PVChargeConfig-6a57d3e5.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])},{path:"/TimeChargeConfig",name:"TimeChargeConfig",meta:{heading:"Ladeeinstellungen - Zeitladen"},component:()=>k(()=>import("./TimeChargeConfig-a6736c02.js"),["assets/TimeChargeConfig-a6736c02.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])},{path:"/ScheduledChargeConfig",name:"ScheduledChargeConfig",meta:{heading:"Ladeeinstellungen - Zielladen"},component:()=>k(()=>import("./ScheduledChargeConfig-972842ce.js"),["assets/ScheduledChargeConfig-972842ce.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])},{path:"/HardwareInstallation",name:"HardwareInstallation",meta:{heading:"Konfiguration - Geräte und Komponenten"},component:()=>k(()=>import("./HardwareInstallation-c47cb1ac.js"),["assets/HardwareInstallation-c47cb1ac.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js","assets/HardwareInstallation-1ee9693f.css"])},{path:"/LoadManagementConfiguration",name:"LoadManagementConfiguration",meta:{heading:"Konfiguration - Lastmanagement"},component:()=>k(()=>import("./LoadManagementConfig-90ace50d.js"),["assets/LoadManagementConfig-90ace50d.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/OpenwbSortableList-947b5132.js","assets/OpenwbSortableList-7ba533e4.css","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])},{path:"/ChargePointInstallation",name:"ChargePointInstallation",meta:{heading:"Konfiguration - Ladepunkte"},component:()=>k(()=>import("./ChargePointInstallation-141989e3.js"),["assets/ChargePointInstallation-141989e3.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js","assets/ChargePointInstallation-ed6a5c7e.css"])},{path:"/VehicleConfiguration/:section?/:section_index?/:section_part?/:action?",name:"VehicleConfiguration",meta:{heading:"Konfiguration - Fahrzeuge"},component:()=>k(()=>import("./VehicleConfig-926199e1.js"),["assets/VehicleConfig-926199e1.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js","assets/VehicleConfig-4aeda6ca.css"])},{path:"/System/CloudConfiguration",name:"CloudConfig",meta:{heading:"System - openWB Cloud"},component:()=>k(()=>import("./CloudConfig-2f8b7404.js"),["assets/CloudConfig-2f8b7404.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])},{path:"/System/MqttBridgeConfiguration",name:"MqttBridgeConfig",meta:{heading:"System - MQTT-Brücken"},component:()=>k(()=>import("./MqttBridgeConfig-65ad8973.js"),["assets/MqttBridgeConfig-65ad8973.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js","assets/MqttBridgeConfig-3471079a.css"])},{path:"/System/DebugConfiguration",name:"Debugging",meta:{heading:"System - Fehlersuche"},component:()=>k(()=>import("./DebugConfig-cb4ae028.js"),["assets/DebugConfig-cb4ae028.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])},{path:"/System/Support",name:"Support",meta:{heading:"System - Support"},component:()=>k(()=>import("./Support-f4d59b40.js"),["assets/Support-f4d59b40.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])},{path:"/System/LegalSettings",name:"LegalSettings",meta:{heading:"System - Rechtliches"},component:()=>k(()=>import("./LegalSettings-4590b97e.js"),["assets/LegalSettings-4590b97e.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])},{path:"/System/SystemConfiguration",name:"SystemConfig",meta:{heading:"System - System"},component:()=>k(()=>import("./System-0add4c7f.js"),["assets/System-0add4c7f.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js","assets/System-0f1d217b.css"])},{path:"/System/DataManagement",name:"DataManagement",meta:{heading:"System - Datenverwaltung"},component:()=>k(()=>import("./DataManagement-7613727f.js"),["assets/DataManagement-7613727f.js","assets/vendor-fortawesome-cf9a975a.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])}];K.push({path:"/TestingStore",name:"VUEX Store",meta:{heading:"Beispiele - VUEX Store"},component:()=>k(()=>import("./TestingStore-e9639256.js"),["assets/TestingStore-e9639256.js","assets/OpenwbSortableList-947b5132.js","assets/vendor-b03da118.js","assets/vendor-sortablejs-595f2e06.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-cf9a975a.js","assets/OpenwbSortableList-7ba533e4.css","assets/vendor-bootstrap-ae747010.js","assets/vendor-jquery-9f6206bf.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-3d217103.js"])});const E=oe({history:ae(),routes:K});E.beforeEach(async e=>{if(e.name!=="LegalSettings"&&!await J.getters.usageTermsAcknowledged)return{name:"LegalSettings"}});E.afterEach(e=>{e.meta.heading?document.title="openWB | "+e.meta.heading:document.title="openWB"});const j=le(pa);j.use(J).use(E).use(je,We);const ha=Object.assign({"./components/OpenwbBaseAlert.vue":Ue,"./components/OpenwbBaseArrayInput.vue":at,"./components/OpenwbBaseAvatar.vue":ct,"./components/OpenwbBaseButtonGroupInput.vue":wt,"./components/OpenwbBaseButtonInput.vue":It,"./components/OpenwbBaseCard.vue":Et,"./components/OpenwbBaseCheckboxInput.vue":Gt,"./components/OpenwbBaseClickButton.vue":Yt,"./components/OpenwbBaseCopyToClipboard.vue":ss,"./components/OpenwbBaseHeading.vue":ds,"./components/OpenwbBaseModalDialog.vue":vs,"./components/OpenwbBaseNumberInput.vue":Ms,"./components/OpenwbBaseRangeInput.vue":Fs,"./components/OpenwbBaseSelectInput.vue":sn,"./components/OpenwbBaseSubmitButtons.vue":un,"./components/OpenwbBaseTextInput.vue":Pn,"./components/OpenwbBaseTextarea.vue":Gn,"./components/OpenwbBaseToast.vue":so});Object.entries(ha).forEach(([e,t])=>{const n=ie(re(e.split("/").pop().replace(/\.\w+$/,"")));j.component(n,t.default)});j.mount("#app");export{z as C,k as _}; +import{_ as v,k as r,l as d,m as w,p as y,q as _,u as o,x as m,y as f,z as b,A as u,B as p,D as C,E as x,F as S,G as Q,I as T,J as A,K as Y,L as Z,M as h,N as X,O as ee,T as N,P as te,Q as W,R as D,S as L,U as se,V as ne,W as oe,X as ae,Y as le,Z as ie,$ as re}from"./vendor-72da2ec6.js";import{l as B,f as V,a as M,b as de,c as ce,d as ue,e as pe,F as O,g as q,h as me,i as _e,j as he,k as fe,m as ge,n as be,o as ve,p as we,q as ye,r as ke,s as Se,t as Ce,u as Be,v as Oe,w as $e,x as Ie,y as xe,z as Te,A as Ve,B as Me,C as Pe,D as He,E as Ae,G as De,H as Le,I as qe,J as Ee}from"./vendor-fortawesome-0685c9c0.js";import"./vendor-bootstrap-4136d1d1.js";import{p as je,a as We}from"./vendor-axios-a313c26e.js";import"./vendor-sortablejs-bc651bf7.js";import"./vendor-jquery-d6fd430e.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))c(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&c(a)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function c(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();const Re={name:"OpenwbAlert",props:{subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}}};function Ne(e,t,n,c,l,s){return r(),d("div",{class:y(["card-text alert","alert-"+n.subtype])},[w(e.$slots,"default")],2)}const Fe=v(Re,[["render",Ne],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAlert.vue"]]),Ue=Object.freeze(Object.defineProperty({__proto__:null,default:Fe},Symbol.toStringTag,{value:"Module"}));B.add(V,M,de,ce,ue,pe);const ze={name:"OpenwbArrayInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Array,default:()=>[]},noElementsMessage:{type:String,default:()=>"Keine Elemente zugeordnet."}},emits:["update:modelValue"],data(){return{newTag:"",showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},newTagValid:{get(){return this.newTag.length>0&&this.value.indexOf(this.newTag)==-1}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},addTag(){if(this.newTagValid){let e=this.value;e.push(this.newTag),e.sort(),this.value=e,this.newTag=""}this.$refs.tagInput.focus()},removeTag(e){let t=this.value;t.splice(e,1),this.value=t}},components:{FontAwesomeIcon:O}},Ge={class:"form-row mb-1"},Je={class:"col-md-8"},Ke={class:"form-row"},Qe={class:"input-group"},Ye={class:"input-group-prepend"},Ze={class:"input-group-text"},Xe={class:"input-group-append"},et={class:"form-row tagList mt-1"},tt={key:0,class:"noTag"},st={key:0,class:"form-row alert alert-info my-1 small"};function nt(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Ge,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Je,[o("div",Ke,[o("div",Qe,[o("div",Ye,[o("div",Ze,[p(a,{"fixed-width":"",icon:["fas","tag"]})])]),C(o("input",S({ref:"tagInput",type:"text",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>l.newTag=i)},e.$attrs,{onKeyup:t[2]||(t[2]=Q((...i)=>s.addTag&&s.addTag(...i),["enter"]))}),null,16),[[x,l.newTag]]),o("div",Xe,[o("div",{class:y(["input-group-text",s.newTagValid?"bg-success clickable":"notClickable"]),onClick:t[3]||(t[3]=(...i)=>s.addTag&&s.addTag(...i))},[p(a,{"fixed-width":"",icon:["fas","plus"]})],2)])])]),o("div",et,[s.value.length==0?(r(),d("span",tt,[p(a,{icon:["fas","info-circle"]}),m(" "+f(n.noElementsMessage),1)])):u("",!0),(r(!0),d(T,null,A(s.value,(i,g)=>(r(),d("span",{class:"tag",key:g},[p(a,{icon:["fas","tag"]}),m(" "+f(i)+" ",1),p(a,{class:"clickable",icon:["fas","times-circle"],onClick:I=>s.removeTag(g)},null,8,["onClick"])]))),128))]),l.showHelp?(r(),d("span",st,[w(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const ot=v(ze,[["render",nt],["__scopeId","data-v-9de93d37"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseArrayInput.vue"]]),at=Object.freeze(Object.defineProperty({__proto__:null,default:ot},Symbol.toStringTag,{value:"Module"}));const lt={name:"OpenwbAvatar"},it={class:"avatar"};function rt(e,t,n,c,l,s){return r(),d("div",it,[w(e.$slots,"default",{},()=>[m("?")],!0)])}const dt=v(lt,[["render",rt],["__scopeId","data-v-06082a1a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAvatar.vue"]]),ct=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"}));B.add(V,M,q);const ut={name:"OpenwbButtonGroupInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Number,Boolean]},buttons:Object},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},pt={class:"form-row mb-1"},mt={class:"col-md-8"},_t={class:"form-row"},ht={class:"btn-group btn-block btn-group-toggle"},ft=["value"],gt={key:0,class:"form-row alert alert-info my-1 small"};function bt(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",pt,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",mt,[o("div",_t,[o("div",ht,[(r(!0),d(T,null,A(n.buttons,i=>(r(),d("label",{key:i.value,class:y(["btn",[s.value==i.buttonValue?"active":"",i.class?i.class:"btn-outline-info"]])},[C(o("input",S({type:"radio","onUpdate:modelValue":t[1]||(t[1]=g=>s.value=g),value:i.buttonValue},e.$attrs),null,16,ft),[[Y,s.value]]),m(" "+f(i.text)+" ",1),p(a,{icon:["fas","check"],style:Z([s.value==i.buttonValue?"visibility: visible":"visibility: hidden"])},null,8,["style"])],2))),128))])]),l.showHelp?(r(),d("span",gt,[w(e.$slots,"help")])):u("",!0)])])}const vt=v(ut,[["render",bt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonGroupInput.vue"]]),wt=Object.freeze(Object.defineProperty({__proto__:null,default:vt},Symbol.toStringTag,{value:"Module"}));B.add(V,M);const yt={name:"OpenwbButtonInput",inheritAttrs:!1,props:{title:String,buttonText:String,disabled:{type:Boolean,default:!1},subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}},data(){return{showHelp:!1}},emits:["buttonClicked"],methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},handleClick(e){this.$emit("buttonClicked",e)}},components:{FontAwesomeIcon:O}},kt={class:"form-row mb-1"},St={class:"col-md-8"},Ct={class:"form-row"},Bt={key:0,class:"form-row alert alert-info my-1 small"};function Ot(e,t,n,c,l,s){const a=_("font-awesome-icon"),i=_("openwb-base-click-button");return r(),d("div",kt,[o("label",{onClick:t[0]||(t[0]=(...g)=>s.toggleHelp&&s.toggleHelp(...g)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",St,[o("div",Ct,[p(i,S({class:(n.disabled?"btn-outline-":"btn-")+n.subtype,disabled:n.disabled},e.$attrs,{onButtonClicked:s.handleClick}),{default:h(()=>[w(e.$slots,"default",{},()=>[m(f(n.buttonText),1)])]),_:3},16,["class","disabled","onButtonClicked"])]),l.showHelp?(r(),d("span",Bt,[w(e.$slots,"help")])):u("",!0)])])}const $t=v(yt,[["render",Ot],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonInput.vue"]]),It=Object.freeze(Object.defineProperty({__proto__:null,default:$t},Symbol.toStringTag,{value:"Module"}));B.add(me,_e);const xt={name:"OpenwbCard",components:{FontAwesomeIcon:O},props:{title:{type:String,default:"# no title set #"},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark","pink"].indexOf(e)!==-1},default:"secondary"},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1}},data(){return{isCollapsed:this.collapsible&&this.collapsed}},methods:{toggleBody(){this.collapsible===!0&&(this.isCollapsed=!this.isCollapsed)}}},Tt={class:"form-group mb-0"},Vt={class:"form-row vaRow mb-0 py-2"},Mt={class:"col"},Pt={class:"card-actions ml-4"},Ht={key:0,class:"card-actions mr-4"},At={key:0,class:"card-body"},Dt={key:1,class:"card-footer"};function Lt(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",{class:y(["card","border-"+n.subtype])},[o("div",{class:y(["card-header py-1","bg-"+n.subtype]),onClick:t[0]||(t[0]=(...i)=>s.toggleBody&&s.toggleBody(...i))},[o("div",Tt,[o("div",Vt,[o("div",Mt,[w(e.$slots,"header",{collapsed:l.isCollapsed},()=>[m(f(n.title),1)])])])]),o("span",Pt,[e.$slots.actions?(r(),d("span",Ht,[w(e.$slots,"actions",{collapsed:l.isCollapsed})])):u("",!0),n.collapsible?(r(),b(a,{key:1,"fixed-width":"",icon:l.isCollapsed?["fas","chevron-right"]:["fas","chevron-down"]},null,8,["icon"])):u("",!0)])],2),l.isCollapsed===!1?(r(),d("div",At,[w(e.$slots,"default")])):u("",!0),e.$slots.footer&&l.isCollapsed===!1?(r(),d("div",Dt,[w(e.$slots,"footer")])):u("",!0)],2)}const qt=v(xt,[["render",Lt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCard.vue"]]),Et=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"}));B.add(V,M);const jt={name:"OpenwbCheckboxInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Boolean}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},Wt={class:"form-row mb-1"},Rt={class:"col-md-8"},Nt={class:"form-row"},Ft={key:0,class:"form-row alert alert-info my-1 small"};function Ut(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Wt,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Rt,[o("div",Nt,[C(o("input",S({class:"form-control",type:"checkbox","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16),[[X,s.value]])]),l.showHelp?(r(),d("span",Ft,[w(e.$slots,"help")])):u("",!0)])])}const zt=v(jt,[["render",Ut],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCheckboxInput.vue"]]),Gt=Object.freeze(Object.defineProperty({__proto__:null,default:zt},Symbol.toStringTag,{value:"Module"}));const Jt={name:"OpenwbClickButton",props:{title:String},emits:["buttonClicked"],methods:{click(e){this.$emit("buttonClicked",e)}}};function Kt(e,t,n,c,l,s){return r(),d("button",{type:"button",class:"btn btn-block",onClick:t[0]||(t[0]=ee((...a)=>s.click&&s.click(...a),["prevent"]))},[w(e.$slots,"default",{},()=>[m(f(n.title),1)],!0)])}const Qt=v(Jt,[["render",Kt],["__scopeId","data-v-2e9c095b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseClickButton.vue"]]),Yt=Object.freeze(Object.defineProperty({__proto__:null,default:Qt},Symbol.toStringTag,{value:"Module"}));B.add(he,fe);const Zt={name:"OpenwbCopyToClipboard",components:{FontAwesomeIcon:O},props:{tooltip:{type:String,default:"Wert kopieren"}},data(){return{clipboardApiAvailable:navigator.clipboard!=null,isCopied:!1}},methods:{click(){if(console.debug(this.$refs["slot-wrapper"].innerText),this.clipboardApiAvailable)navigator.clipboard.writeText(this.$refs["slot-wrapper"].innerText).then(()=>{this.isCopied=!0},()=>{console.error("copy to clipboard failed")});else{if(console.debug("clipboard api not supported/enabled, fallback to select"),window.getSelection){console.debug("using 'window.getSelection'");const e=window.getSelection(),t=document.createRange();t.selectNodeContents(this.$refs["slot-wrapper"]),e.removeAllRanges(),e.addRange(t);return}if(document.body.createTextRange){console.debug("using 'document.body.createTextRange'");const e=document.body.createTextRange();e.moveToElementText(this.$refs["slot-wrapper"]),e.select()}else console.warn("could not select text, unsupported browser")}}}},Xt=["title"];function es(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("span",{ref:"slot-wrapper",title:n.tooltip,class:"copy-me",onClick:t[0]||(t[0]=(...i)=>s.click&&s.click(...i))},[w(e.$slots,"default",{},void 0,!0),p(a,{"fixed-width":"",icon:l.isCopied?["fas","clipboard-check"]:["fas","clipboard"]},null,8,["icon"])],8,Xt)}const ts=v(Zt,[["render",es],["__scopeId","data-v-81826ebe"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCopyToClipboard.vue"]]),ss=Object.freeze(Object.defineProperty({__proto__:null,default:ts},Symbol.toStringTag,{value:"Module"}));B.add(V,M,q);const ns={name:"OpenwbHeading",inheritAttrs:!1,components:{FontAwesomeIcon:O},data(){return{showHelp:!1}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},os={key:0,class:"actions"},as={class:""},ls={key:0,class:"form-row alert alert-info small"};function is(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d(T,null,[o("div",S({class:"card-text card-text-heading"},e.$attrs),[o("div",{class:"heading-text",onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i))},[w(e.$slots,"default",{},void 0,!0),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),e.$slots.actions?(r(),d("span",os,[w(e.$slots,"actions",{},void 0,!0)])):u("",!0)],16),o("div",as,[l.showHelp?(r(),d("span",ls,[w(e.$slots,"help",{},void 0,!0)])):u("",!0)])],64)}const rs=v(ns,[["render",is],["__scopeId","data-v-cbe4e96e"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseHeading.vue"]]),ds=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"})),cs={name:"OpenwbModalDialog",emits:["modal-result"],props:{title:String,subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},buttons:{type:Array,default:void 0},footerAlignment:{type:String,validator:function(e){return["around","between","center","end","start"].indexOf(e)!==-1},default:"end"},preventClose:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},computed:{myButtons(){var e=[];return this.buttons!==void 0&&(e=this.buttons),this.preventClose||e.push({text:"Schließen",event:"close"}),e}},methods:{handleClick(e){e.stopPropagation();let t=e.target.getAttribute("data-event");t===null&&(t="close"),(t!="close"||!this.preventClose)&&this.$emit("modal-result",t)}}},us=o("div",{class:"modal-backdrop fade show"},null,-1),ps={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},ms={class:"modal-content"},_s={class:"modal-title"},hs={class:"modal-body"},fs=["data-event"];function gs(e,t,n,c,l,s){return n.show?(r(),b(N,{key:0,to:"body"},[us,o("div",{class:"modal fade d-block show",role:"dialog",onClick:t[2]||(t[2]=(...a)=>s.handleClick&&s.handleClick(...a))},[o("div",ps,[o("div",ms,[o("div",{class:y(["modal-header","bg-"+n.subtype])},[o("h4",_s,f(n.title),1),n.preventClose?u("",!0):(r(),d("button",{key:0,type:"button",class:"close",onClick:t[0]||(t[0]=(...a)=>s.handleClick&&s.handleClick(...a))}," × "))],2),o("div",hs,[w(e.$slots,"default",{},()=>[m("# Body #")])]),s.myButtons.length>0?(r(),d("div",{key:0,class:y(["modal-footer d-flex","justify-content-"+n.footerAlignment])},[(r(!0),d(T,null,A(s.myButtons,a=>(r(),d("button",{key:a.text,type:"button",class:y(["btn",a.subtype?"btn-"+a.subtype:"btn-secondary"]),"data-dismiss":"modal","data-event":a.event?a.event:"close",onClick:t[1]||(t[1]=(...i)=>s.handleClick&&s.handleClick(...i))},f(a.text),11,fs))),128))],2)):u("",!0)])])])])):u("",!0)}const bs=v(cs,[["render",gs],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseModalDialog.vue"]]),vs=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"}));B.add(V,M,ge);const ws={name:"OpenwbNumberInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Number},unit:String,precision:{type:Number,default:void 0},emptyValue:{required:!1,default:null}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.precision!==void 0?parseFloat(Math.round(this.modelValue*Math.pow(10,this.precision))/Math.pow(10,this.precision)):this.modelValue},set(e){(isNaN(e)||typeof e!="number")&&(e=this.emptyValue),this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},ys={class:"form-row mb-1"},ks={class:"col-md-8"},Ss={class:"form-row"},Cs={class:"input-group"},Bs={class:"input-group-prepend"},Os={class:"input-group-text"},$s={key:0,class:"input-group-append"},Is={class:"input-group-text"},xs={key:0,class:"form-row alert alert-info my-1 small"};function Ts(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",ys,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",ks,[o("div",Ss,[o("div",Cs,[o("div",Bs,[o("div",Os,[p(a,{"fixed-width":"",icon:["fas","calculator"]})])]),C(o("input",S({type:"number",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16),[[x,s.value,void 0,{number:!0}]]),n.unit?(r(),d("div",$s,[o("div",Is,f(n.unit),1)])):u("",!0)])]),l.showHelp?(r(),d("span",xs,[w(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const Vs=v(ws,[["render",Ts],["__scopeId","data-v-c2fb7eef"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseNumberInput.vue"]]),Ms=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"}));B.add(V,M,be,ve);const Ps={name:"OpenwbRangeInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Number},unit:String,min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},labels:{type:Array}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{label(){var e;return this.labels&&this.sliderValue!=null?this.sliderValues.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",As,[o("div",Ds,[s.label?(r(),d("label",Ls,f(s.label),1)):u("",!0),o("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[1]||(t[1]=(...i)=>s.decrement&&s.decrement(...i))},[p(a,{icon:["fas","step-backward"]})]),o("div",qs,[C(o("input",S({type:"range",class:"form-control-range rangeInput",min:n.min,max:n.max,step:n.step,"onUpdate:modelValue":t[2]||(t[2]=i=>s.sliderValue=i)},e.$attrs),null,16,Es),[[x,s.sliderValue,void 0,{number:!0}]])]),o("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[3]||(t[3]=(...i)=>s.increment&&s.increment(...i))},[p(a,{icon:["fas","step-forward"]})])]),l.showHelp?(r(),d("div",js,[o("div",Ws,[w(e.$slots,"help",{},void 0,!0)])])):u("",!0)])])}const Ns=v(Ps,[["render",Rs],["__scopeId","data-v-449fb0a5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseRangeInput.vue"]]),Fs=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"}));B.add(V,M);const Us={name:"OpenwbSelectInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Number,Array]},groups:Object,options:Object,notSelected:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},zs={class:"form-row mb-1"},Gs={class:"col-md-8"},Js={class:"form-row"},Ks={key:0,value:void 0,disabled:""},Qs=["value"],Ys=["label"],Zs=["value"],Xs={key:0,class:"form-row alert alert-info my-1 small"};function en(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",zs,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Gs,[o("div",Js,[C(o("select",S({class:"col form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),[n.notSelected!==void 0?(r(),d("option",Ks," -- "+f(n.notSelected)+" -- ",1)):u("",!0),(r(!0),d(T,null,A(n.options,i=>(r(),d("option",{key:i.value,value:i.value},f(i.text),9,Qs))),128)),(r(!0),d(T,null,A(n.groups,i=>(r(),d("optgroup",{key:i.label,label:i.label},[(r(!0),d(T,null,A(i.options,g=>(r(),d("option",{key:g.value,value:g.value},f(g.text),9,Zs))),128))],8,Ys))),128))],16),[[te,s.value]]),w(e.$slots,"append")]),l.showHelp?(r(),d("span",Xs,[w(e.$slots,"help")])):u("",!0)])])}const tn=v(Us,[["render",en],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSelectInput.vue"]]),sn=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"}));B.add(q,we,ye);const nn={name:"OpenwbSubmitButtons",components:{FontAwesomeIcon:O},props:{formName:{type:String,default:void 0},hideReset:{type:Boolean,default:!1},hideDefaults:{type:Boolean,default:!0}},data(){return{showModalReset:!1,showModalDefaults:!1}},emits:["reset","defaults","save"],computed:{showModalSave(){return this.$store.state.local.savingData}},methods:{showResetModal(){this.showModalReset=!0},handleModalReset(e){this.showModalReset=!1,e=="confirm"&&this.$emit("reset")},showDefaultsModal(){this.showModalDefaults=!0},handleModalDefaults(e){this.showModalDefaults=!1,e=="confirm"&&this.$emit("defaults")},saveSettings(){if(this.formName){if(!document.forms[this.formName].reportValidity()){console.debug("form invalid");return}}else console.debug("no form to validate");this.$emit("save")}}},on={class:"row justify-content-center mb-1"},an={class:"col-md-4 d-flex py-1 justify-content-center"},ln={key:0,class:"col-md-4 d-flex py-1 justify-content-center"},rn={key:1,class:"col-md-4 d-flex py-1 justify-content-center"};function dn(e,t,n,c,l,s){const a=_("openwb-base-modal-dialog"),i=_("font-awesome-icon");return r(),d(T,null,[p(a,{show:s.showModalSave,title:"Speichern",subtype:"success",preventClose:!0},{default:h(()=>[m(" Einstellungen werden gespeichert... ")]),_:1},8,["show"]),p(a,{show:l.showModalReset,title:"Änderungen verwerfen",subtype:"warning",buttons:[{text:"Ok",event:"confirm",subtype:"warning"}],onModalResult:s.handleModalReset},{default:h(()=>[m(" Wollen Sie die nicht gespeicherten Änderungen wirklich verwerfen? ")]),_:1},8,["show","onModalResult"]),p(a,{show:l.showModalDefaults,title:"Werkseinstellungen",subtype:"danger",buttons:[{text:"Ok",event:"confirm",subtype:"danger"}],onModalResult:s.handleModalDefaults},{default:h(()=>[m(" Wollen Sie wirklich alle Werte dieser Seite auf die Werkseinstellungen zurücksetzen? ")]),_:1},8,["show","onModalResult"]),o("div",on,[o("div",an,[o("button",{id:"saveSettingsBtn",type:"button",class:"btn btn-block btn-success",onClick:t[0]||(t[0]=(...g)=>s.saveSettings&&s.saveSettings(...g))},[m(" Speichern "),p(i,{"fixed-width":"",icon:["fas","check"]})])]),n.hideReset?u("",!0):(r(),d("div",ln,[o("button",{id:"modalResetBtn",type:"button",class:"btn btn-block btn-warning",onClick:t[1]||(t[1]=(...g)=>s.showResetModal&&s.showResetModal(...g))},[m(" Änderungen verwerfen "),p(i,{"fixed-width":"",icon:["fas","undo"]})])])),n.hideDefaults?u("",!0):(r(),d("div",rn,[o("button",{id:"modalDefaultsBtn",type:"button",class:"btn btn-block btn-danger",onClick:t[2]||(t[2]=(...g)=>s.showDefaultsModal&&s.showDefaultsModal(...g))},[m(" Werkseinstellungen "),p(i,{"fixed-width":"",icon:["fas","times"]})])]))])],64)}const cn=v(nn,[["render",dn],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSubmitButtons.vue"]]),un=Object.freeze(Object.defineProperty({__proto__:null,default:cn},Symbol.toStringTag,{value:"Module"}));B.add(V,M,ke,Se,Ce,Be,Oe,$e,Ie,xe,Te,Ve,Me,Pe);const pn={name:"OpenwbTextInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Object]},subtype:{validator:function(e){return["text","email","host","url","user","json","password","time","date","month","year"].indexOf(e)!==-1},default:"text"},pattern:String,unit:String,emptyValue:{required:!1,default:null},showQuickButtons:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{showHelp:!1,showPassword:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.warn("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch{console.error("parsing JSON failed: "+e),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else e==""&&(e=this.emptyValue),this.$emit("update:modelValue",e)}},inputRef(){switch(this.subtype){case"json":return this.$refs.jsonInput;case"password":return this.$refs.passwordInput;case"host":return this.$refs.hostInput;case"email":case"url":return this.$refs.urlInput;case"time":return this.$refs.timeInput;case"date":return this.$refs.dateInput;case"month":return this.$refs.monthInput;case"year":return this.$refs.yearInput}return this.$refs.textInput}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},togglePassword(){this.showPassword=!this.showPassword},modify(e){var t,n=new Date(this.modelValue);switch(this.subtype){case"date":n.setDate(n.getDate()+e),t=String(n.getFullYear())+"-"+String(n.getMonth()+1).padStart(2,"0")+"-"+String(n.getDate()).padStart(2,"0");break;case"month":n.setMonth(n.getMonth()+e),t=String(n.getFullYear())+"-"+String(n.getMonth()+1).padStart(2,"0");break;case"year":n.setYear(n.getFullYear()+e),t=String(n.getFullYear());break;default:console.warn(`cannot modify input of subtype '${this.subtype}'`);return}t>this.inputRef.max||t(D("data-v-6927d479"),e=e(),L(),e),mn={class:"form-row mb-1"},_n={class:"col-md-8"},hn={class:"form-row"},fn={class:"input-group"},gn={class:"input-group-prepend"},bn={class:"input-group-text"},vn=["pattern"],wn=["pattern"],yn=["type","pattern"],kn=["type"],Sn={key:9,class:"input-group-append"},Cn={class:"input-group-text"},Bn={class:"input-group-text"},On=F(()=>o("div",{class:"input-group-text"},"-",-1)),$n=[On],In=F(()=>o("div",{class:"input-group-text"},"+",-1)),xn=[In],Tn={key:0,class:"form-row alert alert-info my-1 small"};function Vn(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",mn,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",_n,[o("div",hn,[o("div",fn,[o("div",gn,[o("div",bn,[n.subtype=="text"?(r(),b(a,{key:0,"fixed-width":"",icon:["fas","keyboard"]})):u("",!0),n.subtype=="email"?(r(),b(a,{key:1,"fixed-width":"",icon:["fas","envelope"]})):u("",!0),n.subtype=="host"?(r(),b(a,{key:2,"fixed-width":"",icon:["fas","network-wired"]})):u("",!0),n.subtype=="url"?(r(),b(a,{key:3,"fixed-width":"",icon:["fas","globe"]})):u("",!0),n.subtype=="user"?(r(),b(a,{key:4,"fixed-width":"",icon:["fas","user"]})):u("",!0),n.subtype=="json"?(r(),b(a,{key:5,"fixed-width":"",icon:["fas","code"]})):u("",!0),n.subtype=="password"?(r(),b(a,{key:6,"fixed-width":"",icon:l.showPassword?["fas","unlock"]:["fas","lock"]},null,8,["icon"])):u("",!0),n.subtype=="time"?(r(),b(a,{key:7,"fixed-width":"",icon:["fas","clock"]})):u("",!0),n.subtype=="date"||n.subtype=="month"||n.subtype=="year"?(r(),b(a,{key:8,"fixed-width":"",icon:["fas","calendar-day"]})):u("",!0)])]),["text","user"].includes(n.subtype)?C((r(),d("input",S({key:0,ref:"textInput",type:"text",class:["form-control",{invalid:l.inputInvalid}],"onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs,{pattern:n.pattern}),null,16,vn)),[[x,s.value]]):u("",!0),n.subtype=="json"?C((r(),d("input",S({key:1,ref:"jsonInput",type:"text",class:"form-control","onUpdate:modelValue":t[2]||(t[2]=i=>s.value=i)},e.$attrs,{pattern:n.pattern}),null,16,wn)),[[x,s.value]]):u("",!0),n.subtype=="password"?C((r(),d("input",S({key:2,ref:"passwordInput",type:l.showPassword?"text":"password",class:"form-control","onUpdate:modelValue":t[3]||(t[3]=i=>s.value=i)},e.$attrs,{pattern:n.pattern}),null,16,yn)),[[W,s.value]]):u("",!0),n.subtype=="host"?C((r(),d("input",S({key:3,ref:"hostInput",type:"text",class:"form-control","onUpdate:modelValue":t[4]||(t[4]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value]]):u("",!0),["email","url"].includes(n.subtype)?C((r(),d("input",S({key:4,refs:"urlInput",type:n.subtype,class:"form-control","onUpdate:modelValue":t[5]||(t[5]=i=>s.value=i)},e.$attrs),null,16,kn)),[[W,s.value]]):u("",!0),n.subtype=="time"?C((r(),d("input",S({key:5,ref:"timeInput",type:"time",class:"form-control","onUpdate:modelValue":t[6]||(t[6]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value]]):u("",!0),n.subtype=="date"?C((r(),d("input",S({key:6,type:"date",ref:"dateInput",class:"form-control","onUpdate:modelValue":t[7]||(t[7]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value]]):u("",!0),n.subtype=="month"?C((r(),d("input",S({key:7,type:"month",ref:"monthInput",class:"form-control","onUpdate:modelValue":t[8]||(t[8]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value]]):u("",!0),n.subtype=="year"?C((r(),d("input",S({key:8,type:"number",ref:"yearInput",class:"form-control","onUpdate:modelValue":t[9]||(t[9]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value]]):u("",!0),n.unit?(r(),d("div",Sn,[o("div",Cn,f(n.unit),1)])):u("",!0),n.subtype=="password"?(r(),d("div",{key:10,class:"input-group-append clickable",onClick:t[10]||(t[10]=(...i)=>s.togglePassword&&s.togglePassword(...i))},[o("div",Bn,[p(a,{"fixed-width":"",icon:l.showPassword?["far","eye"]:["far","eye-slash"]},null,8,["icon"])])])):u("",!0),n.showQuickButtons&&(n.subtype=="date"||n.subtype=="month"||n.subtype=="year")?(r(),d("div",{key:11,class:"input-group-append clickable",onClick:t[11]||(t[11]=i=>s.modify(-1))},[...$n])):u("",!0),n.showQuickButtons&&(n.subtype=="date"||n.subtype=="month"||n.subtype=="year")?(r(),d("div",{key:12,class:"input-group-append clickable",onClick:t[12]||(t[12]=i=>s.modify(1))},[...xn])):u("",!0)])]),l.showHelp?(r(),d("span",Tn,[w(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const Mn=v(pn,[["render",Vn],["__scopeId","data-v-6927d479"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextInput.vue"]]),Pn=Object.freeze(Object.defineProperty({__proto__:null,default:Mn},Symbol.toStringTag,{value:"Module"}));B.add(V,M);const Hn={name:"OpenwbTextareaInput",inheritAttrs:!1,props:{title:String,modelValue:{String,Object},subtype:{validator:function(e){return["text","json"].indexOf(e)!==-1},default:"text"}},emits:["update:modelValue"],data(){return{showHelp:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.debug("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue,void 0,2):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch{console.warn("parsing JSON failed: "+e),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else this.$emit("update:modelValue",e)}},length:{get(){return this.value!==void 0?this.value.length:0}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},An={class:"form-row mb-1"},Dn={class:"col-md-8"},Ln={class:"form-row"},qn={class:"input-group"},En={class:"input-group-prepend"},jn={class:"input-group-text"},Wn={key:2,class:"input-group-append"},Rn={class:"input-group-text"},Nn={class:"form-text text-muted text-right"},Fn={key:0,class:"form-row alert alert-info my-1 small"};function Un(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",An,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[m(f(n.title)+" ",1),e.$slots.help?(r(),b(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Dn,[o("div",Ln,[o("div",qn,[o("div",En,[o("div",jn,[n.subtype=="text"?(r(),b(a,{key:0,"fixed-width":"",icon:["fas","keyboard"]})):u("",!0),n.subtype=="json"?(r(),b(a,{key:1,"fixed-width":"",icon:["fas","code"]})):u("",!0)])]),n.subtype==="json"?C((r(),d("textarea",S({key:0,ref:"jsonInput",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value,void 0,{lazy:!0}]]):C((r(),d("textarea",S({key:1,class:"form-control","onUpdate:modelValue":t[2]||(t[2]=i=>s.value=i)},e.$attrs),null,16)),[[x,s.value]]),e.$attrs.maxlength?(r(),d("div",Wn,[o("div",Rn,[o("small",Nn,f(s.length)+" / "+f(e.$attrs.maxlength),1)])])):u("",!0)])]),l.showHelp?(r(),d("span",Fn,[w(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const zn=v(Hn,[["render",Un],["__scopeId","data-v-3d93046b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextarea.vue"]]),Gn=Object.freeze(Object.defineProperty({__proto__:null,default:zn},Symbol.toStringTag,{value:"Module"}));const Jn={name:"OpenwbToast",emits:["dismiss","hide"],props:{topic:{type:String,required:!0},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},source:{validator:function(e){return["system","client","command"].indexOf(e)!==-1}},timestamp:{type:Number}},data(){return{handle:void 0,relativeTime:void 0,hidden:!1}},methods:{dismiss(){this.$emit("dismiss",{topic:this.topic})},updateRelativeTime(){const e={year:31536e6,month:2628e6,day:864e5,hour:36e5,minute:6e4,second:1e3};var t=new Intl.RelativeTimeFormat("de",{numeric:"auto"});const c=new Date-this.timestamp*1e3;for(var l in e)if(Math.abs(c)>e[l]){this.relativeTime=t.format(Math.round(c/e[l]),l);break}c>10*1e3&&!this.hidden&&(this.hidden=!0,this.$emit("hide",{topic:this.topic}))}},mounted(){this.handle=window.setInterval(this.updateRelativeTime,1e3)},unmounted(){window.clearInterval(this.handle)}},U=e=>(D("data-v-c51b5764"),e=e(),L(),e),Kn=U(()=>o("strong",{class:"pr-2 mr-auto"},"OpenWB",-1)),Qn={key:0,class:"time-diff"},Yn=U(()=>o("span",{"aria-hidden":"true"},"×",-1)),Zn=[Yn],Xn={class:"toast-body"};function eo(e,t,n,c,l,s){return r(),d("div",{class:y(["toast","border-"+n.subtype]),role:"alert"},[o("div",{class:y(["toast-header","bg-"+n.subtype])},[Kn,n.timestamp?(r(),d("small",Qn,f(l.relativeTime),1)):u("",!0),o("button",{type:"button",class:"ml-2 mb-1 close","data-dismiss":"toast","aria-label":"Close",onClick:t[0]||(t[0]=(...a)=>s.dismiss&&s.dismiss(...a))},[...Zn])],2),o("div",Xn,[w(e.$slots,"default",{},void 0,!0)])],2)}const to=v(Jn,[["render",eo],["__scopeId","data-v-c51b5764"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseToast.vue"]]),so=Object.freeze(Object.defineProperty({__proto__:null,default:to},Symbol.toStringTag,{value:"Module"}));B.add(He);const no={name:"OpenwbNavBar",components:{FontAwesomeIcon:O},computed:{nodeEnv(){return"development"}},watch:{$route(){this.$refs.collapsibleNavbar.classList.remove("show"),this.$refs.navbarButton.classList.add("collapsed"),this.$refs.navbarButton.setAttribute("aria-expanded",!1)}}},H=e=>(D("data-v-e7a6d0c0"),e=e(),L(),e),oo={class:"navbar navbar-expand-lg bg-dark navbar-dark fixed-top"},ao=H(()=>o("a",{class:"navbar-brand",href:"/openWB/web/"},[o("span",null,"openWB")],-1)),lo={class:"navbar-toggler mr-5",type:"button","data-toggle":"collapse","data-target":"#collapsibleNavbar",ref:"navbarButton"},io=H(()=>o("span",{class:"navbar-toggler-icon"},null,-1)),ro=[io],co={class:"collapse navbar-collapse navbar-nav-scroll",id:"collapsibleNavbar",ref:"collapsibleNavbar"},uo={class:"navbar-nav"},po={class:"nav-item"},mo={class:"nav-item dropdown nav-separator-after"},_o=H(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Auswertungen ",-1)),ho={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},fo={class:"nav-item dropdown"},go=H(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Einstellungen ",-1)),bo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},vo={class:"nav-item dropdown"},wo=H(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Ladeeinstellungen ",-1)),yo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},ko={class:"nav-item dropdown"},So=H(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Konfiguration ",-1)),Co={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},Bo=H(()=>o("div",{class:"dropdown-divider"},null,-1)),Oo=H(()=>o("a",{href:"modules/legacy_smart_home/smarthomeconfig.php",class:"dropdown-item",target:"_blank"}," SmartHome ",-1)),$o={class:"nav-item dropdown"},Io=H(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," System ",-1)),xo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},To={class:"nav-item nav-separator-before"},Vo={class:"nav-link",href:"https://github.com/openWB/core/wiki",target:"_blank"};function Mo(e,t,n,c,l,s){const a=_("router-link"),i=_("font-awesome-icon");return r(),d("nav",oo,[ao,o("button",lo,[...ro],512),o("div",co,[o("ul",uo,[o("li",po,[p(a,{to:"/Status",class:"nav-link","active-class":"active disabled"},{default:h(()=>[m(" Status ")]),_:1})]),o("li",mo,[_o,o("div",ho,[p(a,{to:"/Logging/ChargeLog",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Ladeprotokoll ")]),_:1}),p(a,{to:"/Logging/Chart",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Diagramme ")]),_:1})])]),o("li",fo,[go,o("div",bo,[p(a,{to:"/GeneralConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Allgemein ")]),_:1}),p(a,{to:"/OptionalComponents",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Optionale Hardware ")]),_:1})])]),o("li",vo,[wo,o("div",yo,[p(a,{to:"/GeneralChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Übergreifendes ")]),_:1}),p(a,{to:"/InstantChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Sofortladen ")]),_:1}),p(a,{to:"/PVChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" PV-Laden ")]),_:1}),p(a,{to:"/TimeChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Zeitladen ")]),_:1}),p(a,{to:"/ScheduledChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Zielladen ")]),_:1})])]),o("li",ko,[So,o("div",Co,[p(a,{to:"/HardwareInstallation",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Geräte und Komponenten ")]),_:1}),p(a,{to:"/LoadManagementConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Lastmanagement ")]),_:1}),p(a,{to:"/ChargePointInstallation",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Ladepunkte ")]),_:1}),p(a,{to:"/VehicleConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Fahrzeuge ")]),_:1}),Bo,Oo])]),o("li",$o,[Io,o("div",xo,[p(a,{to:"/System/CloudConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" openWB Cloud ")]),_:1}),p(a,{to:"/System/MqttBridgeConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" MQTT-Brücken ")]),_:1}),p(a,{to:"/System/DebugConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Fehlersuche ")]),_:1}),p(a,{to:"/System/Support",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Support ")]),_:1}),p(a,{to:"/System/DataManagement",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Datenverwaltung ")]),_:1}),p(a,{to:"/System/SystemConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" System ")]),_:1}),p(a,{to:"/System/LegalSettings",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[m(" Rechtliches ")]),_:1})])]),o("li",To,[o("a",Vo,[m(" Wiki "),p(i,{"fixed-width":"",icon:["fas","external-link-alt"]})])])])],512)])}const Po=v(no,[["render",Mo],["__scopeId","data-v-e7a6d0c0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageNavbar.vue"]]);const Ho={name:"OpenwbPageFooter"},Ao={id:"footer",class:"footer bg-dark text-light font-small"},Do={class:"container text-center"};function Lo(e,t,n,c,l,s){return r(),d("footer",Ao,[o("div",Do,[o("small",null," Sie befinden sich hier: Einstellungen / "+f(e.$route.meta.heading),1)])])}const qo=v(Ho,[["render",Lo],["__scopeId","data-v-3c9a239a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageFooter.vue"]]);B.add(Ae);const Eo={name:"OpenwbDonationBanner",components:{FontAwesomeIcon:O}},jo={class:"mt-3 alert alert-dark text-center"},Wo=o("br",null,null,-1),Ro=o("br",null,null,-1),No={action:"https://www.paypal.com/cgi-bin/webscr",method:"post",target:"_blank"},Fo=o("input",{type:"hidden",name:"cmd",value:"_s-xclick"},null,-1),Uo=o("input",{type:"hidden",name:"hosted_button_id",value:"2K8C4Y2JTGH7U"},null,-1),zo={type:"submit",class:"btn btn-primary"};function Go(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",jo,[m(" Open Source made with love!"),Wo,m(" Jede Spende hilft die Weiterentwicklung von openWB voranzutreiben"),Ro,o("form",No,[Fo,Uo,o("button",zo,[m(" Spenden "),p(a,{icon:["fab","paypal"]})])])])}const Jo=v(Eo,[["render",Go],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageDonationBanner.vue"]]),Ko={name:"ComponentState",data(){return{mqttTopicsToSubscribe:[]}},emits:["reset","defaults","save"],computed:{weekdays(){return["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"]},chargeModes(){return["instant_charging","pv_charging","scheduled_charging","time_charging","standby","stop"]},mqttClientId(){return this.$root.mqttClientId}},methods:{updateState(e,t,n=void 0){console.debug("updateState:",e,t,n),this.$store.commit({type:"updateTopic",topic:e,objectPath:n,payload:t})},getWildcardIndexList(e,t=!1){let n=e;t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$");let c=Object.keys(this.$store.state.mqtt).filter(l=>l.match(n));return c.forEach((l,s,a)=>{a[s]=parseInt(l.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,""))}),c},getWildcardTopics(e,t=!1){let n=e;return t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$"),Object.keys(this.$store.state.mqtt).filter(c=>c.match(n)).reduce((c,l)=>({...c,[l]:this.$store.state.mqtt[l]}),{})},formatDate(e,t={year:"numeric",month:"2-digit",day:"2-digit"}){return new Date(e).toLocaleDateString(void 0,t)},formatNumber(e,t=0,n=t,c=1){return(e*c).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:n})},formatNumberTopic(e,t=0,n=t,c=1){return this.$store.state.mqtt[e]?this.formatNumber(this.$store.state.mqtt[e],t,n,c):"-"},formatPhaseArrayNumberTopic(e,t=0,n=t,c=1){return this.$store.state.mqtt[e]?this.$store.state.mqtt[e].map(l=>this.formatNumber(l,t,n,c)).join(" / "):"- / - / -"},translateChargeMode(e){switch(e){case"instant_charging":return"Sofort";case"pv_charging":return"PV";case"scheduled_charging":return"Zielladen";case"time_charging":return"Zeitladen";case"standby":return"Standby";case"stop":return"Stop";default:return console.warn("unknown charge mode:",e),e}}},mounted(){`openWB/log/${this.mqttClientId}/data`in this.$store.state.mqtt||this.mqttTopicsToSubscribe.push("openWB/log/"+this.mqttClientId+"/data"),this.mqttTopicsToSubscribe.forEach(e=>{e.includes("#")||e.includes("+")?console.debug("skipping init of wildcard topic:",e):Object.keys(this.$store.state.mqtt).includes(e)?console.error("multiple subscriptions of topic!",e):this.$store.commit("addTopic",{topic:e,payload:void 0})}),this.$root.doSubscribe(this.mqttTopicsToSubscribe)},unmounted(){this.$root.doUnsubscribe(this.mqttTopicsToSubscribe),this.mqttTopicsToSubscribe.forEach(e=>{e.includes("#")||e.includes("+")?(console.debug("expanding wildcard topic:",e),Object.keys(this.getWildcardTopics(e)).forEach(t=>{console.debug("removing wildcardTopic:",t),this.$store.commit("removeTopic",t)})):this.$store.commit("removeTopic",e)})}},z=v(Ko,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/mixins/ComponentState.vue"]]);B.add(De,Le);const Qo={name:"OpenwbPageMessages",mixins:[z],components:{FontAwesomeIcon:O,FontAwesomeLayers:qe,FontAwesomeLayersText:Ee},data(){return{mqttTopicsToSubscribe:["openWB/system/messages/+","openWB/command/"+this.$root.mqttClientId+"/messages/+","openWB/command/"+this.$root.mqttClientId+"/error"],showAllMessages:!1,hiddenMessages:[]}},computed:{alertLevel(){return this.messages.reduce((t,n)=>((t=="light"&&["info","success","warning","danger"].includes(n.type)||t=="info"&&["success","warning","danger"].includes(n.type)||t=="success"&&["warning","danger"].includes(n.type)||t=="warning"&&n.type=="danger")&&(t=n.type),t),"light")},messages(){const e=[];return this.alertData&&e.push({topic:"openWB/command/"+this.$root.mqttClientId+"/error",source:"command",type:"danger",message:`Bei der Verarbeitung des Befehls '`+this.alertData.command+`' mit den Parametern '`+this.alertData.data+"' ist ein Fehler aufgetreten:
"+this.alertData.error+"
"}),this.systemMessages.forEach(t=>{e.push(t)}),this.clientMessages.forEach(t=>{e.push(t)}),e.sort(this.compareMessagesByTimestamp),e},recentMessages(){return this.showAllMessages?this.messages:this.messages.filter(e=>!this.hiddenMessages.includes(e.topic))},messageIndicatorClass(){return"text-"+this.alertLevel},alertData(){return this.$store.state.mqtt["openWB/command/"+this.$root.mqttClientId+"/error"]},systemMessages(){let e=this.getWildcardTopics("openWB/system/messages/+");var t=[];for(const[n,c]of Object.entries(e))t.push({topic:n,...c});return t},clientMessages(){let e=this.getWildcardTopics("openWB/command/"+this.$root.mqttClientId+"/messages/+");var t=[];for(const[n,c]of Object.entries(e))t.push({topic:n,...c});return t}},methods:{toggleAllMessages(){this.showAllMessages=!this.showAllMessages},compareMessagesByTimestamp(e,t){return t.timestamp-e.timestamp},clearTopic(e){this.$root.doPublish(e,void 0)},dismissError(){this.clearTopic("openWB/command/"+this.$root.mqttClientId+"/error")},dismissMessage(e){this.clearTopic(e.topic);var t=this.hiddenMessages.indexOf(e.topic);t>-1&&this.hiddenMessages.splice(t,1)},hideMessage(e){this.hiddenMessages.includes(e.topic)||this.hiddenMessages.push(e.topic)}}},Yo=["innerHTML"];function Zo(e,t,n,c,l,s){const a=_("font-awesome-icon"),i=_("font-awesome-layers-text"),g=_("font-awesome-layers"),I=_("openwb-base-alert"),P=_("openwb-base-toast");return r(),d(T,null,[(r(),b(N,{to:"body"},[o("div",{id:"message-indicator",class:y(["text-light mt-1 p-2 mr-1 clickable",l.showAllMessages?"active":""]),onClick:t[0]||(t[0]=(...$)=>s.toggleAllMessages&&s.toggleAllMessages(...$))},[p(g,{"full-width":"",style:{"font-size":"175%"}},{default:h(()=>[p(a,{"fixed-width":"",icon:l.showAllMessages?["fas","bell"]:["far","bell"],class:y(s.messageIndicatorClass)},null,8,["icon","class"]),s.messages.length>0?(r(),b(i,{key:0,counter:"",value:s.messages.length,position:"top-right",class:"message-counter bg-light text-dark"},null,8,["value"])):u("",!0)]),_:1})],2)])),s.recentMessages.length>0||l.showAllMessages?(r(),d("div",{key:0,class:y(["openwb-toast-container",l.showAllMessages?"full-height":""])},[s.recentMessages.length==0?(r(),b(I,{key:0,subtype:"info"},{default:h(()=>[m(" Keine Nachrichten vorhanden. ")]),_:1})):u("",!0),(r(!0),d(T,null,A(s.recentMessages,$=>(r(),b(P,{key:$.topic,topic:$.topic,source:$.source,subtype:$.type,timestamp:$.timestamp,onDismiss:s.dismissMessage,onHide:s.hideMessage},{default:h(()=>[o("span",{innerHTML:$.message},null,8,Yo)]),_:2},1032,["topic","source","subtype","timestamp","onDismiss","onHide"]))),128))],2)):u("",!0)],64)}const Xo=v(Qo,[["render",Zo],["__scopeId","data-v-2c25f0d0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageMessages.vue"]]),ea={name:"OpenwbPageBlocker",mixins:[z],data(){return{mqttTopicsToSubscribe:["openWB/system/boot_done","openWB/system/update_in_progress"]}},computed:{title(){return this.bootInProgress||this.updateInProgress?"openWB ist noch nicht bereit":this.reloadRequired?"Neues Laden der Seite erforderlich":"???"},myButtons(){return!(this.bootInProgress||this.updateInProgress)&&this.reloadRequired?[{text:"Jetzt neu laden",subtype:"success",event:"reload"}]:[]},bootInProgress(){return this.$store.state.mqtt["openWB/system/boot_done"]==null?!0:!this.$store.state.mqtt["openWB/system/boot_done"]},updateInProgress(){return this.$store.state.mqtt["openWB/system/update_in_progress"]==null?!1:this.$store.state.mqtt["openWB/system/update_in_progress"]},reloadRequired(){return this.$store.state.local.reloadRequired},showModalBlocker(){return this.bootInProgress||this.updateInProgress||this.reloadRequired}},methods:{handleModalResult(e){e=="reload"?location.reload():console.warn("unknown event",e)}}},ta={class:"openwb-blocker"},sa={key:0},na={key:1},oa={key:2},aa={key:3};function la(e,t,n,c,l,s){const a=_("openwb-base-modal-dialog");return r(),d("div",ta,[p(a,{show:s.showModalBlocker,title:s.title,subtype:"dark",preventClose:!0,buttons:s.myButtons,onModalResult:t[0]||(t[0]=i=>s.handleModalResult(i))},{default:h(()=>[s.bootInProgress?(r(),d("p",sa," Der Systemstart ist noch nicht abgeschlossen. ")):u("",!0),s.updateInProgress?(r(),d("p",na," Es wird eine Systemaktualisierung ausgeführt. ")):u("",!0),!(s.bootInProgress||s.updateInProgress)&&s.reloadRequired?(r(),d("p",oa," Bitte die Seite neu laden. ")):(r(),d("p",aa,"Bitte warten..."))]),_:1},8,["show","title","buttons"])])}const ia=v(ea,[["render",la],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageBlocker.vue"]]);const ra={name:"settings-app",components:{NavBar:Po,PageFooter:qo,DonationBanner:Jo,Messages:Xo,Blocker:ia},data(){return{client:{connected:!1},connection:{protocol:location.protocol=="https:"?"wss":"ws",host:location.hostname,port:parseInt(location.port)||(location.protocol=="https:"?443:80),endpoint:"/ws",connectTimeout:4e3,reconnectPeriod:4e3}}},computed:{mqttClientId(){try{return this.client.options.clientId}catch{return}},topicList(){return Object.keys(this.$store.state.mqtt)}},methods:{async saveValues(e=void 0){function t(c){return new Promise(l=>setTimeout(l,c))}console.debug("saving values..."),this.$store.state.local.savingData=!0;let n={};e===void 0?n=this.$store.state.mqtt:Array.isArray(e)?e.forEach(c=>{n[c]=this.$store.state.mqtt[c]}):console.error("expected array, got ",typeof e);for(const[c,l]of Object.entries(n)){let s=c.replace("openWB/","openWB/set/");console.debug("saving data:",s,l),this.doPublish(s,l),await t(100)}console.debug("done saving data"),this.$store.state.local.savingData=!1},resetValues(e=this.topicList){console.debug("resetting values..."),console.debug("topics: ",e),this.doUnsubscribe(e),this.doSubscribe(e)},setDefaultValues(){console.debug("setting default values... (ToDo)")},sendCommand(e){this.doPublish("openWB/set/command/"+this.client.options.clientId+"/todo",e,!1)},createConnection(){const{protocol:e,host:t,port:n,endpoint:c,...l}=this.connection,s=`${e}://${t}:${n}${c}`;console.debug("connecting to broker:",s);try{this.client=se.connect(s,l)}catch(a){console.error("mqtt.connect error",a)}this.client.on("connect",()=>{console.debug("Connection succeeded! ClientId: ",this.client.options.clientId),this.doSubscribe(["openWB/system/usage_terms_acknowledged"])}),this.client.on("error",a=>{console.error("Connection failed",a)}),this.client.on("message",(a,i)=>{if(i.toString().length>0){let g;try{g=JSON.parse(i.toString())}catch{console.debug("Json parsing failed, fallback to string: ",a),g=i.toString()}this.$store.commit("addTopic",{topic:a,payload:g})}else this.$store.commit("removeTopic",a)})},doSubscribe(e){this.client.subscribe(e,{},t=>{if(t){console.error("Subscribe to topics error",t);return}})},doUnsubscribe(e){this.client.unsubscribe(e,t=>{t&&console.error("Unsubscribe error",t)})},doPublish(e,t,n=!0,c=2){let l={qos:c,retain:n};this.client.publish(e,JSON.stringify(t),l,s=>{s&&console.error("Publish error",s)})},postClientMessage(e,t="secondary"){console.debug("postMessage:",e,t);const n=Date.now(),c="openWB/command/"+this.mqttClientId+"/messages/"+n;this.$store.commit({type:"addTopic",topic:c,payload:{message:e,type:t,source:"client",timestamp:Math.floor(n/1e3)}})}},created(){this.createConnection()}},da={role:"main",class:"container"},ca={id:"content"};function ua(e,t,n,c,l,s){const a=_("nav-bar"),i=_("router-view"),g=_("donation-banner"),I=_("page-footer"),P=_("messages"),$=_("blocker");return r(),d(T,null,[o("header",null,[p(a)]),o("div",da,[o("div",ca,[o("h1",null,f(e.$route.meta.heading),1),p(i,{onSave:s.saveValues,onReset:s.resetValues,onDefaults:s.setDefaultValues,onSendCommand:s.sendCommand},null,8,["onSave","onReset","onDefaults","onSendCommand"])]),p(g)]),p(I),p(P),p($)],64)}const pa=v(ra,[["render",ua],["__file","/opt/openWB-dev/openwb-ui-settings/src/App.vue"]]),ma="modulepreload",_a=function(e){return"/openWB/web/settings/"+e},R={},k=function(t,n,c){if(!n||n.length===0)return t();const l=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=_a(s),s in R)return;R[s]=!0;const a=s.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(!!c)for(let P=l.length-1;P>=0;P--){const $=l[P];if($.href===s&&(!a||$.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const I=document.createElement("link");if(I.rel=a?"stylesheet":ma,a||(I.as="script",I.crossOrigin=""),I.href=s,document.head.appendChild(I),a)return new Promise((P,$)=>{I.addEventListener("load",P),I.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s})};let G={mqtt:{},local:{reloadRequired:!1,savingData:!1},text:{rfidWiki:'Bitte auch hiervon abhängige Einstellungen beachten. Eine Übersicht gibt es im Wiki.'}};G.examples={text1:"Text...",text2:"mail@domain.com",text3:"openwb.local",text4:"http://www.openwb.de",text5:"Benutzername",text6:"12:34",text7:"2021-10-31",number1:5,number2:10,number3:28e-5,password1:"GeHeiM!",textarea1:"Langer Text...",range1:6,range2:10,select1:1,select2:"three",buttonGroup1:1,checkbox1:!0,json1:{text:"Text",number:123},hierarchy1:[{id:0,type:"counter",children:[{id:3,type:"inverter",children:[]},{id:4,type:"bat",children:[]},{id:1,type:"cp",children:[]},{id:2,type:"cp",children:[]}]}],hierarchy1Labels:{0:"EVU",1:"Ladepunkt 1",2:"Ladepunkt 2",3:"Wechselrichter",4:"Batteriespeicher"},tags:["1234","2345","3456"]};const J=ne({state:G,mutations:{storeLocal(e,t){e.local[t.name]=t.value},addTopic(e,t){e.mqtt[t.topic]=t.payload},removeTopic(e,t){delete e.mqtt[t]},updateTopic(e,t){const n=(c,l,s)=>l.split(".").reduce((a,i,g)=>a[i]=l.split(".").length===++g?s:a[i]||{},c);t.topic in e.mqtt?t.objectPath!=null?n(e.mqtt[t.topic],t.objectPath,t.payload):e.mqtt[t.topic]=t.payload:(console.debug("topic not found in state.mqtt: ",t.topic),t.topic in e.examples?t.objectPath!=null?n(e.examples[t.topic],t.objectPath,t.payload):e.examples[t.topic]=t.payload:console.warn("topic not found in state: ",t.topic," giving up"))}},actions:{},modules:{},getters:{usageTermsAcknowledged(e){return new Promise(t=>{if(e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0)t(e.mqtt["openWB/system/usage_terms_acknowledged"]);else{var n,c;n=setTimeout(()=>{clearInterval(c),t(!1)},5e3),c=setInterval(()=>{e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0&&(clearTimeout(n),clearInterval(c),t(e.mqtt["openWB/system/usage_terms_acknowledged"]))},100)}})}}}),K=[{path:"/",redirect:"/GeneralConfig"},{path:"/Status",name:"Status",meta:{heading:"Status"},component:()=>k(()=>import("./Status-98bf3042.js"),["assets/Status-98bf3042.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-chartjs-181c0e44.js","assets/vendor-luxon-78deadb9.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js","assets/Status-6557de7c.css"])},{path:"/Logging/ChargeLog",name:"ChargeLog",meta:{heading:"Auswertungen - Ladeprotokoll"},component:()=>k(()=>import("./ChargeLog-7d6b1f1d.js"),["assets/ChargeLog-7d6b1f1d.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js","assets/ChargeLog-298377e5.css"])},{path:"/Logging/Chart/:chartRange?/:initialDate?",name:"DailyChart",meta:{heading:"Auswertungen - Diagramme"},component:()=>k(()=>import("./Chart-75c04643.js"),["assets/Chart-75c04643.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-chartjs-181c0e44.js","assets/vendor-luxon-78deadb9.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js","assets/Chart-e20451b4.css"])},{path:"/GeneralConfig",name:"GeneralConfig",meta:{heading:"Einstellungen - Allgemein"},component:()=>k(()=>import("./GeneralConfig-e93f78e1.js"),["assets/GeneralConfig-e93f78e1.js","assets/dynamic-import-helper-be004503.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])},{path:"/OptionalComponents",name:"OptionalComponents",meta:{heading:"Einstellungen - Optionale Hardware"},component:()=>k(()=>import("./OptionalComponents-bf1ba816.js"),["assets/OptionalComponents-bf1ba816.js","assets/dynamic-import-helper-be004503.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])},{path:"/GeneralChargeConfig",name:"GeneralChargeConfig",meta:{heading:"Ladeeinstellungen - Übergreifendes"},component:()=>k(()=>import("./GeneralChargeConfig-ef9019d1.js"),["assets/GeneralChargeConfig-ef9019d1.js","assets/dynamic-import-helper-be004503.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])},{path:"/InstantChargeConfig",name:"InstantChargeConfig",meta:{heading:"Ladeeinstellungen - Sofortladen"},component:()=>k(()=>import("./InstantChargeConfig-14fcae69.js"),["assets/InstantChargeConfig-14fcae69.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])},{path:"/PVChargeConfig",name:"PVChargeConfig",meta:{heading:"Ladeeinstellungen - PV-Laden"},component:()=>k(()=>import("./PVChargeConfig-c306ea3a.js"),["assets/PVChargeConfig-c306ea3a.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])},{path:"/TimeChargeConfig",name:"TimeChargeConfig",meta:{heading:"Ladeeinstellungen - Zeitladen"},component:()=>k(()=>import("./TimeChargeConfig-a9cc0249.js"),["assets/TimeChargeConfig-a9cc0249.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])},{path:"/ScheduledChargeConfig",name:"ScheduledChargeConfig",meta:{heading:"Ladeeinstellungen - Zielladen"},component:()=>k(()=>import("./ScheduledChargeConfig-ea419a87.js"),["assets/ScheduledChargeConfig-ea419a87.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])},{path:"/HardwareInstallation",name:"HardwareInstallation",meta:{heading:"Konfiguration - Geräte und Komponenten"},component:()=>k(()=>import("./HardwareInstallation-1809f433.js"),["assets/HardwareInstallation-1809f433.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js","assets/HardwareInstallation-1ee9693f.css"])},{path:"/LoadManagementConfiguration",name:"LoadManagementConfiguration",meta:{heading:"Konfiguration - Lastmanagement"},component:()=>k(()=>import("./LoadManagementConfig-ca5dc1e1.js"),["assets/LoadManagementConfig-ca5dc1e1.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/OpenwbSortableList-2c36b1d6.js","assets/OpenwbSortableList-7ba533e4.css","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])},{path:"/ChargePointInstallation",name:"ChargePointInstallation",meta:{heading:"Konfiguration - Ladepunkte"},component:()=>k(()=>import("./ChargePointInstallation-4f14e501.js"),["assets/ChargePointInstallation-4f14e501.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js","assets/ChargePointInstallation-ed6a5c7e.css"])},{path:"/VehicleConfiguration/:section?/:section_index?/:section_part?/:action?",name:"VehicleConfiguration",meta:{heading:"Konfiguration - Fahrzeuge"},component:()=>k(()=>import("./VehicleConfig-86c73ee1.js"),["assets/VehicleConfig-86c73ee1.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js","assets/VehicleConfig-4aeda6ca.css"])},{path:"/System/CloudConfiguration",name:"CloudConfig",meta:{heading:"System - openWB Cloud"},component:()=>k(()=>import("./CloudConfig-dd3e132c.js"),["assets/CloudConfig-dd3e132c.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])},{path:"/System/MqttBridgeConfiguration",name:"MqttBridgeConfig",meta:{heading:"System - MQTT-Brücken"},component:()=>k(()=>import("./MqttBridgeConfig-175315b3.js"),["assets/MqttBridgeConfig-175315b3.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js","assets/MqttBridgeConfig-3471079a.css"])},{path:"/System/DebugConfiguration",name:"Debugging",meta:{heading:"System - Fehlersuche"},component:()=>k(()=>import("./DebugConfig-cbc48303.js"),["assets/DebugConfig-cbc48303.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])},{path:"/System/Support",name:"Support",meta:{heading:"System - Support"},component:()=>k(()=>import("./Support-e315c047.js"),["assets/Support-e315c047.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])},{path:"/System/LegalSettings",name:"LegalSettings",meta:{heading:"System - Rechtliches"},component:()=>k(()=>import("./LegalSettings-1baa74af.js"),["assets/LegalSettings-1baa74af.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])},{path:"/System/SystemConfiguration",name:"SystemConfig",meta:{heading:"System - System"},component:()=>k(()=>import("./System-8bd350eb.js"),["assets/System-8bd350eb.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js","assets/System-0f1d217b.css"])},{path:"/System/DataManagement",name:"DataManagement",meta:{heading:"System - Datenverwaltung"},component:()=>k(()=>import("./DataManagement-ea46bf5c.js"),["assets/DataManagement-ea46bf5c.js","assets/vendor-fortawesome-0685c9c0.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])}];K.push({path:"/TestingStore",name:"VUEX Store",meta:{heading:"Beispiele - VUEX Store"},component:()=>k(()=>import("./TestingStore-1e43b491.js"),["assets/TestingStore-1e43b491.js","assets/OpenwbSortableList-2c36b1d6.js","assets/vendor-72da2ec6.js","assets/vendor-sortablejs-bc651bf7.js","assets/vendor-941e092d.css","assets/vendor-fortawesome-0685c9c0.js","assets/OpenwbSortableList-7ba533e4.css","assets/vendor-bootstrap-4136d1d1.js","assets/vendor-jquery-d6fd430e.js","assets/vendor-bootstrap-0cf52758.css","assets/vendor-axios-a313c26e.js"])});const E=oe({history:ae(),routes:K});E.beforeEach(async e=>{if(e.name!=="LegalSettings"&&!await J.getters.usageTermsAcknowledged)return{name:"LegalSettings"}});E.afterEach(e=>{e.meta.heading?document.title="openWB | "+e.meta.heading:document.title="openWB"});const j=le(pa);j.use(J).use(E).use(je,We);const ha=Object.assign({"./components/OpenwbBaseAlert.vue":Ue,"./components/OpenwbBaseArrayInput.vue":at,"./components/OpenwbBaseAvatar.vue":ct,"./components/OpenwbBaseButtonGroupInput.vue":wt,"./components/OpenwbBaseButtonInput.vue":It,"./components/OpenwbBaseCard.vue":Et,"./components/OpenwbBaseCheckboxInput.vue":Gt,"./components/OpenwbBaseClickButton.vue":Yt,"./components/OpenwbBaseCopyToClipboard.vue":ss,"./components/OpenwbBaseHeading.vue":ds,"./components/OpenwbBaseModalDialog.vue":vs,"./components/OpenwbBaseNumberInput.vue":Ms,"./components/OpenwbBaseRangeInput.vue":Fs,"./components/OpenwbBaseSelectInput.vue":sn,"./components/OpenwbBaseSubmitButtons.vue":un,"./components/OpenwbBaseTextInput.vue":Pn,"./components/OpenwbBaseTextarea.vue":Gn,"./components/OpenwbBaseToast.vue":so});Object.entries(ha).forEach(([e,t])=>{const n=ie(re(e.split("/").pop().replace(/\.\w+$/,"")));j.component(n,t.default)});j.mount("#app");export{z as C,k as _}; diff --git a/web/settings/assets/inverter-d1fb30fb.js b/web/settings/assets/inverter-00420369.js similarity index 93% rename from web/settings/assets/inverter-d1fb30fb.js rename to web/settings/assets/inverter-00420369.js index eae42f4259..49402c4935 100644 --- a/web/settings/assets/inverter-d1fb30fb.js +++ b/web/settings/assets/inverter-00420369.js @@ -1 +1 @@ -import{_ as c,q as o,k as d,l,B as n,M as s,x as a,u as p,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceKostalPikoOldInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-kostal-piko-old-inverter"},m={class:"small"};function b(e,t,v,g,h,k){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return d(),l("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für Kostal Piko Wechselrichter (alte Generation) "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko_old/inverter.vue"]]);export{x as default}; +import{_ as c,q as o,k as d,l,B as n,M as s,x as a,u as p,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceKostalPikoOldInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-kostal-piko-old-inverter"},m={class:"small"};function b(e,t,v,g,h,k){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return d(),l("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für Kostal Piko Wechselrichter (alte Generation) "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko_old/inverter.vue"]]);export{x as default}; diff --git a/web/settings/assets/inverter-4f3bbe22.js b/web/settings/assets/inverter-04ea3529.js similarity index 88% rename from web/settings/assets/inverter-4f3bbe22.js rename to web/settings/assets/inverter-04ea3529.js index 3d0e210877..7f02bcf5bf 100644 --- a/web/settings/assets/inverter-4f3bbe22.js +++ b/web/settings/assets/inverter-04ea3529.js @@ -1 +1 @@ -import{_ as u,q as n,k as d,l as p,B as o,M as c,x as v,u as _,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceOpenwbPvkitInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-pvkit-inverter"},g={class:"small"};function h(t,e,i,w,x,a){const s=n("openwb-base-heading"),r=n("openwb-base-select-input");return d(),p("div",b,[o(s,null,{default:c(()=>[v(" Einstellungen für openWB PV-Kit Wechselrichter "),_("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),o(r,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>a.updateConfiguration(l,"configuration.version"))},null,8,["model-value"])])}const k=u(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_pv_kit/inverter.vue"]]);export{k as default}; +import{_ as u,q as n,k as d,l as p,B as o,M as c,x as v,u as _,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceOpenwbPvkitInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-pvkit-inverter"},g={class:"small"};function h(t,e,i,w,x,a){const s=n("openwb-base-heading"),r=n("openwb-base-select-input");return d(),p("div",b,[o(s,null,{default:c(()=>[v(" Einstellungen für openWB PV-Kit Wechselrichter "),_("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),o(r,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>a.updateConfiguration(l,"configuration.version"))},null,8,["model-value"])])}const k=u(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_pv_kit/inverter.vue"]]);export{k as default}; diff --git a/web/settings/assets/inverter-6203ae41.js b/web/settings/assets/inverter-0aae8d01.js similarity index 91% rename from web/settings/assets/inverter-6203ae41.js rename to web/settings/assets/inverter-0aae8d01.js index fef369fd8a..337ca0f210 100644 --- a/web/settings/assets/inverter-6203ae41.js +++ b/web/settings/assets/inverter-0aae8d01.js @@ -1 +1 @@ -import{_ as p,q as o,k as _,l as m,B as a,M as i,x as s,u as b,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceStuderInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-studer-inverter"},V={class:"small"};function S(t,e,r,T,h,u){const d=o("openwb-base-heading"),l=o("openwb-base-button-group-input"),c=o("openwb-base-number-input");return _(),m("div",v,[a(d,null,{default:i(()=>[s(" Einstellungen für Studer Wechselrichter "),b("span",V,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),a(l,{title:"Typ der MPPT Solarladeregler",buttons:[{buttonValue:"VT",text:"Variotrack (VT-40/VT-65/VT-80)"},{buttonValue:"VS",text:"VarioString (VS-70/VS-120)"}],"model-value":r.configuration.vc_type,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.vc_type"))},null,8,["buttons","model-value"]),a(c,{title:"Anzahl MPPT Solarladeregler",required:"",min:1,max:9,"model-value":r.configuration.vc_count,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.vc_count"))},{help:i(()=>[s(" Anzahl (1-9) der Studer MPPT Solarladeregler im System (VS/VT) ")]),_:1},8,["model-value"])])}const y=p(g,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/inverter.vue"]]);export{y as default}; +import{_ as p,q as o,k as _,l as m,B as a,M as i,x as s,u as b,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceStuderInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-studer-inverter"},V={class:"small"};function S(t,e,r,T,h,u){const d=o("openwb-base-heading"),l=o("openwb-base-button-group-input"),c=o("openwb-base-number-input");return _(),m("div",v,[a(d,null,{default:i(()=>[s(" Einstellungen für Studer Wechselrichter "),b("span",V,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),a(l,{title:"Typ der MPPT Solarladeregler",buttons:[{buttonValue:"VT",text:"Variotrack (VT-40/VT-65/VT-80)"},{buttonValue:"VS",text:"VarioString (VS-70/VS-120)"}],"model-value":r.configuration.vc_type,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.vc_type"))},null,8,["buttons","model-value"]),a(c,{title:"Anzahl MPPT Solarladeregler",required:"",min:1,max:9,"model-value":r.configuration.vc_count,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.vc_count"))},{help:i(()=>[s(" Anzahl (1-9) der Studer MPPT Solarladeregler im System (VS/VT) ")]),_:1},8,["model-value"])])}const y=p(g,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/inverter.vue"]]);export{y as default}; diff --git a/web/settings/assets/inverter-6547365c.js b/web/settings/assets/inverter-16362c01.js similarity index 93% rename from web/settings/assets/inverter-6547365c.js rename to web/settings/assets/inverter-16362c01.js index 42d552983e..eafb32292a 100644 --- a/web/settings/assets/inverter-6547365c.js +++ b/web/settings/assets/inverter-16362c01.js @@ -1 +1 @@ -import{_ as c,q as t,k as d,l as p,B as o,M as s,x as i,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSiemensInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-siemens-inverter"},f={class:"small"};function v(e,n,b,g,h,w){const a=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),p("div",m,[o(a,null,{default:s(()=>[i(" Einstellungen für Siemens Wechselrichter "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[i(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/inverter.vue"]]);export{B as default}; +import{_ as c,q as t,k as d,l as p,B as o,M as s,x as i,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSiemensInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-siemens-inverter"},f={class:"small"};function v(e,n,b,g,h,w){const a=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),p("div",m,[o(a,null,{default:s(()=>[i(" Einstellungen für Siemens Wechselrichter "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[i(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-6ad52a85.js b/web/settings/assets/inverter-188e1ec1.js similarity index 92% rename from web/settings/assets/inverter-6ad52a85.js rename to web/settings/assets/inverter-188e1ec1.js index a35f1520d1..7fda302658 100644 --- a/web/settings/assets/inverter-6ad52a85.js +++ b/web/settings/assets/inverter-188e1ec1.js @@ -1 +1 @@ -import{_ as c,q as o,k as _,l as m,B as a,M as s,x as u,u as b,y as v}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceSunnyBoyInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},y={class:"device-sunnyboy-inverter"},g={class:"small"};function h(t,e,i,w,S,r){const d=o("openwb-base-heading"),l=o("openwb-base-button-group-input"),p=o("openwb-base-select-input");return _(),m("div",y,[a(d,null,{default:s(()=>[u(" Einstellungen für SMA Sunny Boy/Tripower Wechselrichter "),b("span",g,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),a(l,{title:"Hybrid-System",buttons:[{buttonValue:!1,text:"nicht vorhanden"},{buttonValue:!0,text:"vorhanden"}],"model-value":i.configuration.hybrid,"onUpdate:modelValue":e[0]||(e[0]=n=>r.updateConfiguration(n,"configuration.hybrid"))},{help:s(()=>[u(" Diese Option aktivieren, wenn ein Tripower Smart Energy, Sunny Boy Smart Energy oder ein anderes Hybrid-System verbaut ist. ")]),_:1},8,["model-value"]),a(p,{title:"Version",notSelected:"Bitte auswählen",options:[{value:0,text:"Standard"},{value:1,text:"Core-2"},{value:2,text:"Data Manager/Cluster Controller"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[1]||(e[1]=n=>r.updateConfiguration(n,"configuration.version"))},null,8,["model-value"])])}const C=c(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/inverter.vue"]]);export{C as default}; +import{_ as c,q as o,k as _,l as m,B as a,M as s,x as u,u as b,y as v}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceSunnyBoyInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},y={class:"device-sunnyboy-inverter"},g={class:"small"};function h(t,e,i,w,S,r){const d=o("openwb-base-heading"),l=o("openwb-base-button-group-input"),p=o("openwb-base-select-input");return _(),m("div",y,[a(d,null,{default:s(()=>[u(" Einstellungen für SMA Sunny Boy/Tripower Wechselrichter "),b("span",g,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),a(l,{title:"Hybrid-System",buttons:[{buttonValue:!1,text:"nicht vorhanden"},{buttonValue:!0,text:"vorhanden"}],"model-value":i.configuration.hybrid,"onUpdate:modelValue":e[0]||(e[0]=n=>r.updateConfiguration(n,"configuration.hybrid"))},{help:s(()=>[u(" Diese Option aktivieren, wenn ein Tripower Smart Energy, Sunny Boy Smart Energy oder ein anderes Hybrid-System verbaut ist. ")]),_:1},8,["model-value"]),a(p,{title:"Version",notSelected:"Bitte auswählen",options:[{value:0,text:"Standard"},{value:1,text:"Core-2"},{value:2,text:"Data Manager/Cluster Controller"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[1]||(e[1]=n=>r.updateConfiguration(n,"configuration.version"))},null,8,["model-value"])])}const C=c(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/inverter.vue"]]);export{C as default}; diff --git a/web/settings/assets/inverter-38ff630d.js b/web/settings/assets/inverter-24b26b24.js similarity index 90% rename from web/settings/assets/inverter-38ff630d.js rename to web/settings/assets/inverter-24b26b24.js index 071457c63b..aeae0e9080 100644 --- a/web/settings/assets/inverter-38ff630d.js +++ b/web/settings/assets/inverter-24b26b24.js @@ -1 +1 @@ -import{_ as l,q as o,k as p,l as c,B as i,M as m,x as _,u as b,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceVictronInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-victron-inverter"},V={class:"small"};function w(t,e,a,x,h,u){const r=o("openwb-base-heading"),s=o("openwb-base-number-input"),d=o("openwb-base-button-group-input");return p(),c("div",g,[i(r,null,{default:m(()=>[_(" Einstellungen für Victron Wechselrichter "),b("span",V,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),i(s,{title:"Modbus-ID",min:1,max:255,required:"","model-value":a.configuration.modbus_id,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),i(d,{title:"MPPT",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":a.configuration.mppt,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.mppt"))},null,8,["model-value"])])}const q=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/inverter.vue"]]);export{q as default}; +import{_ as l,q as o,k as p,l as c,B as i,M as m,x as _,u as b,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceVictronInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-victron-inverter"},V={class:"small"};function w(t,e,a,x,h,u){const r=o("openwb-base-heading"),s=o("openwb-base-number-input"),d=o("openwb-base-button-group-input");return p(),c("div",g,[i(r,null,{default:m(()=>[_(" Einstellungen für Victron Wechselrichter "),b("span",V,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),i(s,{title:"Modbus-ID",min:1,max:255,required:"","model-value":a.configuration.modbus_id,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),i(d,{title:"MPPT",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":a.configuration.mppt,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.mppt"))},null,8,["model-value"])])}const q=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/inverter.vue"]]);export{q as default}; diff --git a/web/settings/assets/inverter-ef7aca41.js b/web/settings/assets/inverter-29e69ffd.js similarity index 86% rename from web/settings/assets/inverter-ef7aca41.js rename to web/settings/assets/inverter-29e69ffd.js index 139e55b915..ddb3c71d04 100644 --- a/web/settings/assets/inverter-ef7aca41.js +++ b/web/settings/assets/inverter-29e69ffd.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u as l,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSolaxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solax-inverter"},m={class:"small"};function v(e,t,b,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Solax Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/inverter.vue"]]);export{B as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u as l,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSolaxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solax-inverter"},m={class:"small"};function v(e,t,b,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Solax Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-e2c9751e.js b/web/settings/assets/inverter-2c9728e1.js similarity index 87% rename from web/settings/assets/inverter-e2c9751e.js rename to web/settings/assets/inverter-2c9728e1.js index 63b1b47b55..8c183a0f87 100644 --- a/web/settings/assets/inverter-e2c9751e.js +++ b/web/settings/assets/inverter-2c9728e1.js @@ -1 +1 @@ -import{_ as u,q as n,k as c,l as p,B as o,M as l,x as m,u as _,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceSmartMeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-smart-me-inverter"},b={class:"small"};function h(t,e,a,x,w,i){const r=n("openwb-base-heading"),s=n("openwb-base-text-input");return c(),p("div",g,[o(r,null,{default:l(()=>[m(" Einstellungen für smart-me Wechselrichter "),_("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(s,{title:"Geräte-ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.id"))},null,8,["model-value"])])}const C=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/inverter.vue"]]);export{C as default}; +import{_ as u,q as n,k as c,l as p,B as o,M as l,x as m,u as _,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceSmartMeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-smart-me-inverter"},b={class:"small"};function h(t,e,a,x,w,i){const r=n("openwb-base-heading"),s=n("openwb-base-text-input");return c(),p("div",g,[o(r,null,{default:l(()=>[m(" Einstellungen für smart-me Wechselrichter "),_("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(s,{title:"Geräte-ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.id"))},null,8,["model-value"])])}const C=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/inverter.vue"]]);export{C as default}; diff --git a/web/settings/assets/inverter-ce926548.js b/web/settings/assets/inverter-2d337983.js similarity index 87% rename from web/settings/assets/inverter-ce926548.js rename to web/settings/assets/inverter-2d337983.js index df3698b3c5..1921703b3a 100644 --- a/web/settings/assets/inverter-ce926548.js +++ b/web/settings/assets/inverter-2d337983.js @@ -1 +1 @@ -import{_ as u,q as t,k as c,l as p,B as o,M as l,x as m,u as _,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceDeyeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-batterx-inverter"},g={class:"small"};function h(n,e,i,x,w,a){const s=t("openwb-base-heading"),r=t("openwb-base-number-input");return c(),p("div",v,[o(s,null,{default:l(()=>[m(" Einstellungen für Deye Wechselrichter "),_("span",g,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(r,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=d=>a.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const D=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/inverter.vue"]]);export{D as default}; +import{_ as u,q as t,k as c,l as p,B as o,M as l,x as m,u as _,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceDeyeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-batterx-inverter"},g={class:"small"};function h(n,e,i,x,w,a){const s=t("openwb-base-heading"),r=t("openwb-base-number-input");return c(),p("div",v,[o(s,null,{default:l(()=>[m(" Einstellungen für Deye Wechselrichter "),_("span",g,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(r,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=d=>a.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const D=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/deye/inverter.vue"]]);export{D as default}; diff --git a/web/settings/assets/inverter-713d7962.js b/web/settings/assets/inverter-3aeac733.js similarity index 86% rename from web/settings/assets/inverter-713d7962.js rename to web/settings/assets/inverter-3aeac733.js index a3124e32ec..aa9aebcd95 100644 --- a/web/settings/assets/inverter-713d7962.js +++ b/web/settings/assets/inverter-3aeac733.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u as l,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSolarwattInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solarwatt-inverter"},m={class:"small"};function v(e,t,b,g,h,w){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Solarwatt/My Reserve Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const y=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/inverter.vue"]]);export{y as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u as l,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSolarwattInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solarwatt-inverter"},m={class:"small"};function v(e,t,b,g,h,w){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Solarwatt/My Reserve Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const y=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/inverter.vue"]]);export{y as default}; diff --git a/web/settings/assets/inverter-02f1a349.js b/web/settings/assets/inverter-4538e239.js similarity index 93% rename from web/settings/assets/inverter-02f1a349.js rename to web/settings/assets/inverter-4538e239.js index 9b95933ac0..15a0b19636 100644 --- a/web/settings/assets/inverter-02f1a349.js +++ b/web/settings/assets/inverter-4538e239.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l,B as o,M as s,x as a,u as p,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSolarLogInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solar_log-inverter"},m={class:"small"};function g(e,t,b,v,h,w){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),l("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Solar-Log Wechselrichter "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/inverter.vue"]]);export{B as default}; +import{_ as c,q as n,k as d,l,B as o,M as s,x as a,u as p,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSolarLogInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solar_log-inverter"},m={class:"small"};function g(e,t,b,v,h,w){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),l("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Solar-Log Wechselrichter "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-47bdd702.js b/web/settings/assets/inverter-469a3dc4.js similarity index 90% rename from web/settings/assets/inverter-47bdd702.js rename to web/settings/assets/inverter-469a3dc4.js index 4de746f59b..b75f57d63a 100644 --- a/web/settings/assets/inverter-47bdd702.js +++ b/web/settings/assets/inverter-469a3dc4.js @@ -1 +1 @@ -import{_ as d,q as o,k as p,l as c,B as i,M as m,x as _,u as f,y as v}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceOpenwbFlexInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-openwb-flex-inverter"},x={class:"small"};function w(t,e,a,M,h,s){const u=o("openwb-base-heading"),l=o("openwb-base-select-input"),r=o("openwb-base-number-input");return p(),c("div",g,[i(u,null,{default:m(()=>[_(" Einstellungen für openWB-Flex Wechselrichter "),f("span",x,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),i(l,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"},{value:3,text:"SDM120"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.version"))},null,8,["model-value"]),i(r,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":a.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.id"))},null,8,["model-value"])])}const C=d(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/inverter.vue"]]);export{C as default}; +import{_ as d,q as o,k as p,l as c,B as i,M as m,x as _,u as f,y as v}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceOpenwbFlexInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-openwb-flex-inverter"},x={class:"small"};function w(t,e,a,M,h,s){const u=o("openwb-base-heading"),l=o("openwb-base-select-input"),r=o("openwb-base-number-input");return p(),c("div",g,[i(u,null,{default:m(()=>[_(" Einstellungen für openWB-Flex Wechselrichter "),f("span",x,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),i(l,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"},{value:3,text:"SDM120"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.version"))},null,8,["model-value"]),i(r,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":a.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.id"))},null,8,["model-value"])])}const C=d(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/inverter.vue"]]);export{C as default}; diff --git a/web/settings/assets/inverter-afc0ebb2.js b/web/settings/assets/inverter-4ac1cf30.js similarity index 86% rename from web/settings/assets/inverter-afc0ebb2.js rename to web/settings/assets/inverter-4ac1cf30.js index ff47804d0f..a0fdf91f61 100644 --- a/web/settings/assets/inverter-afc0ebb2.js +++ b/web/settings/assets/inverter-4ac1cf30.js @@ -1 +1 @@ -import{_ as c,q as t,k as d,l as u,B as o,M as s,x as r,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSungrowInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sungrow-inverter"},m={class:"small"};function g(e,n,v,b,h,w){const a=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),u("div",f,[o(a,null,{default:s(()=>[r(" Einstellungen für Sungrow Wechselrichter "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[r(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/inverter.vue"]]);export{B as default}; +import{_ as c,q as t,k as d,l as u,B as o,M as s,x as r,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSungrowInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sungrow-inverter"},m={class:"small"};function g(e,n,v,b,h,w){const a=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),u("div",f,[o(a,null,{default:s(()=>[r(" Einstellungen für Sungrow Wechselrichter "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[r(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-1a73d92c.js b/web/settings/assets/inverter-50115261.js similarity index 89% rename from web/settings/assets/inverter-1a73d92c.js rename to web/settings/assets/inverter-50115261.js index 13ab417b29..4445afe391 100644 --- a/web/settings/assets/inverter-1a73d92c.js +++ b/web/settings/assets/inverter-50115261.js @@ -1 +1 @@ -import{_ as l,q as n,k as d,l as c,B as o,M as p,x as v,u as _,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceOpenwbEvukitInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-evukit-inverter"},g={class:"small"};function h(t,e,i,w,x,a){const s=n("openwb-base-heading"),r=n("openwb-base-select-input");return d(),c("div",b,[o(s,null,{default:p(()=>[v(" Einstellungen für openWB EVU-Kit Wechselrichter "),_("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),o(r,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=u=>a.updateConfiguration(u,"configuration.version"))},null,8,["model-value"])])}const k=l(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/inverter.vue"]]);export{k as default}; +import{_ as l,q as n,k as d,l as c,B as o,M as p,x as v,u as _,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceOpenwbEvukitInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-evukit-inverter"},g={class:"small"};function h(t,e,i,w,x,a){const s=n("openwb-base-heading"),r=n("openwb-base-select-input");return d(),c("div",b,[o(s,null,{default:p(()=>[v(" Einstellungen für openWB EVU-Kit Wechselrichter "),_("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),o(r,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=u=>a.updateConfiguration(u,"configuration.version"))},null,8,["model-value"])])}const k=l(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/inverter.vue"]]);export{k as default}; diff --git a/web/settings/assets/inverter-169484de.js b/web/settings/assets/inverter-513066b0.js similarity index 91% rename from web/settings/assets/inverter-169484de.js rename to web/settings/assets/inverter-513066b0.js index b27bdb6613..380ce4bebc 100644 --- a/web/settings/assets/inverter-169484de.js +++ b/web/settings/assets/inverter-513066b0.js @@ -1 +1 @@ -import{_ as c,q as r,k as g,l as _,B as n,M as s,x as u,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceVZLoggerInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-vzlogger-inverter"},h={class:"small"};function w(t,e,i,x,V,a){const d=r("openwb-base-heading"),p=r("openwb-base-alert"),l=r("openwb-base-number-input");return g(),_("div",b,[n(d,null,{default:s(()=>[u(" Einstellungen für VZLogger Wechselrichter "),m("span",h,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:s(()=>[u(' Bitte auf der Shell ausführen: "curl -s IPdesVZLogger:Port | jq .|cat -n" Zählen, in welcher Zeile der gesuchte Wert steht. Bei der ersten Zeile mit 1 anfangen zu zählen. ')]),_:1}),n(l,{title:"Zeile der Leistung",required:"",min:0,"model-value":i.configuration.line_power,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.line_power"))},null,8,["model-value"]),n(l,{title:"Zeile der exportierten Energie (Ertrag)",min:0,"model-value":i.configuration.line_exported,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.line_exported"))},null,8,["model-value"])])}const q=c(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/inverter.vue"]]);export{q as default}; +import{_ as c,q as r,k as g,l as _,B as n,M as s,x as u,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceVZLoggerInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-vzlogger-inverter"},h={class:"small"};function w(t,e,i,x,V,a){const d=r("openwb-base-heading"),p=r("openwb-base-alert"),l=r("openwb-base-number-input");return g(),_("div",b,[n(d,null,{default:s(()=>[u(" Einstellungen für VZLogger Wechselrichter "),m("span",h,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:s(()=>[u(' Bitte auf der Shell ausführen: "curl -s IPdesVZLogger:Port | jq .|cat -n" Zählen, in welcher Zeile der gesuchte Wert steht. Bei der ersten Zeile mit 1 anfangen zu zählen. ')]),_:1}),n(l,{title:"Zeile der Leistung",required:"",min:0,"model-value":i.configuration.line_power,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.line_power"))},null,8,["model-value"]),n(l,{title:"Zeile der exportierten Energie (Ertrag)",min:0,"model-value":i.configuration.line_exported,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.line_exported"))},null,8,["model-value"])])}const q=c(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/inverter.vue"]]);export{q as default}; diff --git a/web/settings/assets/inverter-e1654178.js b/web/settings/assets/inverter-55abb9a1.js similarity index 90% rename from web/settings/assets/inverter-e1654178.js rename to web/settings/assets/inverter-55abb9a1.js index 24e2a1bbff..4ab426a4c0 100644 --- a/web/settings/assets/inverter-e1654178.js +++ b/web/settings/assets/inverter-55abb9a1.js @@ -1 +1 @@ -import{_ as p,q as t,k as m,l as _,B as o,M as s,x as i,u as f,y as h}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceSmahmInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-smahm-inverter"},v={class:"small"};function w(n,e,r,M,y,a){const u=t("openwb-base-heading"),d=t("openwb-base-alert"),c=t("openwb-base-number-input");return m(),_("div",g,[o(u,null,{default:s(()=>[i(" Einstellungen für SMA-HM/EM Wechselrichter "),f("span",v,"(Modul: "+h(n.$options.name)+")",1)]),_:1}),o(d,{subtype:"info"},{default:s(()=>[i(' Dies ist nur die richtige Komponente, wenn ein extra EnergyMeter ausschließlich für die PV-Messung vorhanden ist. Wenn nur ein HomeManager vorhanden ist, muss ein Gerät "SMA Sunny Boy" mit der entsprechenden Wechselrichter-Komponente angelegt werden. ')]),_:1}),o(c,{title:"Seriennummer",required:"","model-value":r.configuration.serials,"onUpdate:modelValue":e[0]||(e[0]=l=>a.updateConfiguration(l,"configuration.serials"))},null,8,["model-value"])])}const S=p(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_shm/inverter.vue"]]);export{S as default}; +import{_ as p,q as t,k as m,l as _,B as o,M as s,x as i,u as f,y as h}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceSmahmInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-smahm-inverter"},v={class:"small"};function w(n,e,r,M,y,a){const u=t("openwb-base-heading"),d=t("openwb-base-alert"),c=t("openwb-base-number-input");return m(),_("div",g,[o(u,null,{default:s(()=>[i(" Einstellungen für SMA-HM/EM Wechselrichter "),f("span",v,"(Modul: "+h(n.$options.name)+")",1)]),_:1}),o(d,{subtype:"info"},{default:s(()=>[i(' Dies ist nur die richtige Komponente, wenn ein extra EnergyMeter ausschließlich für die PV-Messung vorhanden ist. Wenn nur ein HomeManager vorhanden ist, muss ein Gerät "SMA Sunny Boy" mit der entsprechenden Wechselrichter-Komponente angelegt werden. ')]),_:1}),o(c,{title:"Seriennummer",required:"","model-value":r.configuration.serials,"onUpdate:modelValue":e[0]||(e[0]=l=>a.updateConfiguration(l,"configuration.serials"))},null,8,["model-value"])])}const S=p(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_shm/inverter.vue"]]);export{S as default}; diff --git a/web/settings/assets/inverter-d66f1e10.js b/web/settings/assets/inverter-654fd8a8.js similarity index 94% rename from web/settings/assets/inverter-d66f1e10.js rename to web/settings/assets/inverter-654fd8a8.js index 942226308d..b6c57d1aa8 100644 --- a/web/settings/assets/inverter-d66f1e10.js +++ b/web/settings/assets/inverter-654fd8a8.js @@ -1 +1 @@ -import{_ as p,q as u,k as m,l as h,B as a,M as o,x as t,u as n,y as g}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceHttpInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},f={class:"device-http-inverter"},b={class:"small"},v=n("br",null,null,-1),w=n("br",null,null,-1),z=n("br",null,null,-1);function x(i,e,s,k,y,l){const c=u("openwb-base-heading"),d=u("openwb-base-text-input");return m(),h("div",f,[a(c,null,{default:o(()=>[t(" Einstellungen für Http Wechselrichter "),n("span",b,"(Modul: "+g(i.$options.name)+")",1)]),_:1}),a(d,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":s.configuration.power_path,"onUpdate:modelValue":e[0]||(e[0]=r=>l.updateConfiguration(r,"configuration.power_path"))},{help:o(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),v,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) ")]),_:1},8,["model-value"]),a(d,{title:"Pfad für Zählerstand Erzeugung",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":s.configuration.exported_path,"onUpdate:modelValue":e[1]||(e[1]=r=>l.updateConfiguration(r,"configuration.exported_path"))},{help:o(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),w,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),z,t(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ")]),_:1},8,["model-value"])])}const Z=p(_,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/inverter.vue"]]);export{Z as default}; +import{_ as p,q as u,k as m,l as h,B as a,M as o,x as t,u as n,y as g}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceHttpInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},f={class:"device-http-inverter"},b={class:"small"},v=n("br",null,null,-1),w=n("br",null,null,-1),z=n("br",null,null,-1);function x(i,e,s,k,y,l){const c=u("openwb-base-heading"),d=u("openwb-base-text-input");return m(),h("div",f,[a(c,null,{default:o(()=>[t(" Einstellungen für Http Wechselrichter "),n("span",b,"(Modul: "+g(i.$options.name)+")",1)]),_:1}),a(d,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":s.configuration.power_path,"onUpdate:modelValue":e[0]||(e[0]=r=>l.updateConfiguration(r,"configuration.power_path"))},{help:o(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),v,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) ")]),_:1},8,["model-value"]),a(d,{title:"Pfad für Zählerstand Erzeugung",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":s.configuration.exported_path,"onUpdate:modelValue":e[1]||(e[1]=r=>l.updateConfiguration(r,"configuration.exported_path"))},{help:o(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),w,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),z,t(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ")]),_:1},8,["model-value"])])}const Z=p(_,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/inverter.vue"]]);export{Z as default}; diff --git a/web/settings/assets/inverter-f8197224.js b/web/settings/assets/inverter-74209556.js similarity index 93% rename from web/settings/assets/inverter-f8197224.js rename to web/settings/assets/inverter-74209556.js index 54006a6ce6..618f2585ea 100644 --- a/web/settings/assets/inverter-f8197224.js +++ b/web/settings/assets/inverter-74209556.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceRCTInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-rct-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für RCT Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/inverter.vue"]]);export{B as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceRCTInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-rct-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für RCT Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-37fe91f0.js b/web/settings/assets/inverter-7427efd6.js similarity index 86% rename from web/settings/assets/inverter-37fe91f0.js rename to web/settings/assets/inverter-7427efd6.js index 1981738734..a2a0cb3747 100644 --- a/web/settings/assets/inverter-37fe91f0.js +++ b/web/settings/assets/inverter-7427efd6.js @@ -1 +1 @@ -import{_ as c,q as n,k as p,l as d,B as o,M as s,x as a,u as l,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceAlphaessInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-alphaess-inverter"},m={class:"small"};function h(e,t,b,v,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Alpha ESS Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/inverter.vue"]]);export{B as default}; +import{_ as c,q as n,k as p,l as d,B as o,M as s,x as a,u as l,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceAlphaessInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-alphaess-inverter"},m={class:"small"};function h(e,t,b,v,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Alpha ESS Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-9a70308e.js b/web/settings/assets/inverter-7512a76a.js similarity index 93% rename from web/settings/assets/inverter-9a70308e.js rename to web/settings/assets/inverter-7512a76a.js index 5e9b337f62..7f06f8d174 100644 --- a/web/settings/assets/inverter-9a70308e.js +++ b/web/settings/assets/inverter-7512a76a.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceGoodWeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-goodwe-inverter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für GoodWe Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/inverter.vue"]]);export{B as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceGoodWeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-goodwe-inverter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für GoodWe Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-aa380c55.js b/web/settings/assets/inverter-7f68ae47.js similarity index 93% rename from web/settings/assets/inverter-aa380c55.js rename to web/settings/assets/inverter-7f68ae47.js index f4065e2104..c7931f755a 100644 --- a/web/settings/assets/inverter-aa380c55.js +++ b/web/settings/assets/inverter-7f68ae47.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l,B as o,M as s,x as r,u as p,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSolarWorldInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solar_world-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const a=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),l("div",f,[o(a,null,{default:s(()=>[r(" Einstellungen für SolarWorld Wechselrichter "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[r(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/inverter.vue"]]);export{B as default}; +import{_ as c,q as n,k as d,l,B as o,M as s,x as r,u as p,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSolarWorldInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solar_world-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const a=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),l("div",f,[o(a,null,{default:s(()=>[r(" Einstellungen für SolarWorld Wechselrichter "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[r(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-be6894d5.js b/web/settings/assets/inverter-86fe5ee3.js similarity index 93% rename from web/settings/assets/inverter-be6894d5.js rename to web/settings/assets/inverter-86fe5ee3.js index 92abb26fd6..f2114bc826 100644 --- a/web/settings/assets/inverter-be6894d5.js +++ b/web/settings/assets/inverter-86fe5ee3.js @@ -1 +1 @@ -import{_ as u,q as s,k as _,l as m,B as t,M as o,x as n,u as e,y as a}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"DeviceMqttInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(i,l=void 0){this.$emit("update:configuration",{value:i,object:l})}}},b={class:"device-mqtt-inverter"},f={class:"small"},g=e("br",null,null,-1),v=e("span",{class:"text-info"},"-123",-1),w=e("br",null,null,-1),x=e("br",null,null,-1),z=e("span",{class:"text-info"},"123.45",-1);function B(i,l,r,k,y,I){const p=s("openwb-base-heading"),c=s("openwb-base-copy-to-clipboard"),d=s("openwb-base-alert");return _(),m("div",b,[t(p,null,{default:o(()=>[n(" Einstellungen für MQTT Wechselrichter "),e("span",f,"(Modul: "+a(i.$options.name)+")",1)]),_:1}),t(d,{subtype:"info"},{default:o(()=>[e("ul",null,[e("li",null,[t(c,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[n("openWB/set/pv/"+a(r.componentId)+"/get/power",1)]),_:1}),g,n(" PV-Leistung in Watt als Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) Beispiel: "),v]),e("li",null,[t(c,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[n("openWB/set/pv/"+a(r.componentId)+"/get/exported",1)]),_:1}),w,n(" Erzeugte Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),x,n(" Beispiel: "),z])])]),_:1})])}const V=u(h,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/inverter.vue"]]);export{V as default}; +import{_ as u,q as s,k as _,l as m,B as t,M as o,x as n,u as e,y as a}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"DeviceMqttInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(i,l=void 0){this.$emit("update:configuration",{value:i,object:l})}}},b={class:"device-mqtt-inverter"},f={class:"small"},g=e("br",null,null,-1),v=e("span",{class:"text-info"},"-123",-1),w=e("br",null,null,-1),x=e("br",null,null,-1),z=e("span",{class:"text-info"},"123.45",-1);function B(i,l,r,k,y,I){const p=s("openwb-base-heading"),c=s("openwb-base-copy-to-clipboard"),d=s("openwb-base-alert");return _(),m("div",b,[t(p,null,{default:o(()=>[n(" Einstellungen für MQTT Wechselrichter "),e("span",f,"(Modul: "+a(i.$options.name)+")",1)]),_:1}),t(d,{subtype:"info"},{default:o(()=>[e("ul",null,[e("li",null,[t(c,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[n("openWB/set/pv/"+a(r.componentId)+"/get/power",1)]),_:1}),g,n(" PV-Leistung in Watt als Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) Beispiel: "),v]),e("li",null,[t(c,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[n("openWB/set/pv/"+a(r.componentId)+"/get/exported",1)]),_:1}),w,n(" Erzeugte Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),x,n(" Beispiel: "),z])])]),_:1})])}const V=u(h,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/inverter.vue"]]);export{V as default}; diff --git a/web/settings/assets/inverter-aad4e4cb.js b/web/settings/assets/inverter-8b791a36.js similarity index 94% rename from web/settings/assets/inverter-aad4e4cb.js rename to web/settings/assets/inverter-8b791a36.js index 0c9a5ca311..970ade3cb9 100644 --- a/web/settings/assets/inverter-aad4e4cb.js +++ b/web/settings/assets/inverter-8b791a36.js @@ -1 +1 @@ -import{_ as d,q as o,k as c,l,B as n,M as p,x as _,u as f,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceKostalPikoInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-kostalpiko-inverter"},g={class:"small"};function h(t,e,a,k,x,i){const s=o("openwb-base-heading"),r=o("openwb-base-button-group-input");return c(),l("div",v,[n(s,null,{default:p(()=>[_(" Einstellungen für Kostal Piko Wechselrichter "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(r,{title:"Speicher",buttons:[{buttonValue:!1,text:"nicht vorhanden"},{buttonValue:!0,text:"vorhanden"}],"model-value":a.configuration.bat_configured,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.bat_configured"))},null,8,["model-value"])])}const B=d(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko/inverter.vue"]]);export{B as default}; +import{_ as d,q as o,k as c,l,B as n,M as p,x as _,u as f,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceKostalPikoInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-kostalpiko-inverter"},g={class:"small"};function h(t,e,a,k,x,i){const s=o("openwb-base-heading"),r=o("openwb-base-button-group-input");return c(),l("div",v,[n(s,null,{default:p(()=>[_(" Einstellungen für Kostal Piko Wechselrichter "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(r,{title:"Speicher",buttons:[{buttonValue:!1,text:"nicht vorhanden"},{buttonValue:!0,text:"vorhanden"}],"model-value":a.configuration.bat_configured,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.bat_configured"))},null,8,["model-value"])])}const B=d(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-7b979942.js b/web/settings/assets/inverter-92598d9b.js similarity index 86% rename from web/settings/assets/inverter-7b979942.js rename to web/settings/assets/inverter-92598d9b.js index f3e8fe9dae..556a76ef83 100644 --- a/web/settings/assets/inverter-7b979942.js +++ b/web/settings/assets/inverter-92598d9b.js @@ -1 +1 @@ -import{_ as c,q as t,k as d,l as u,B as o,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSunwaysInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sunways-inverter"},m={class:"small"};function v(e,n,b,g,h,w){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),u("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Sunways Wechselrichter "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sunways/inverter.vue"]]);export{x as default}; +import{_ as c,q as t,k as d,l as u,B as o,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSunwaysInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sunways-inverter"},m={class:"small"};function v(e,n,b,g,h,w){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),u("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Sunways Wechselrichter "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sunways/inverter.vue"]]);export{x as default}; diff --git a/web/settings/assets/inverter-e1e9f4fe.js b/web/settings/assets/inverter-9ab8fe39.js similarity index 93% rename from web/settings/assets/inverter-e1e9f4fe.js rename to web/settings/assets/inverter-9ab8fe39.js index 1b71a2ac47..3de1432a04 100644 --- a/web/settings/assets/inverter-e1e9f4fe.js +++ b/web/settings/assets/inverter-9ab8fe39.js @@ -1 +1 @@ -import{_ as u,q as o,k as c,l,B as t,M as p,x as m,u as _,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceSolarEdgeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-solaredge-inverter"},v={class:"small"};function h(n,e,a,w,x,i){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),l("div",g,[t(s,null,{default:p(()=>[m(" Einstellungen für SolarEdge Wechselrichter "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),t(r,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const E=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/inverter.vue"]]);export{E as default}; +import{_ as u,q as o,k as c,l,B as t,M as p,x as m,u as _,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceSolarEdgeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-solaredge-inverter"},v={class:"small"};function h(n,e,a,w,x,i){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),l("div",g,[t(s,null,{default:p(()=>[m(" Einstellungen für SolarEdge Wechselrichter "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),t(r,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const E=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/inverter.vue"]]);export{E as default}; diff --git a/web/settings/assets/inverter-c6d11928.js b/web/settings/assets/inverter-9bedc919.js similarity index 93% rename from web/settings/assets/inverter-c6d11928.js rename to web/settings/assets/inverter-9bedc919.js index 7594cab7bc..6c91488af4 100644 --- a/web/settings/assets/inverter-c6d11928.js +++ b/web/settings/assets/inverter-9bedc919.js @@ -1 +1 @@ -import{_ as c,q as t,k as p,l as d,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceFemsInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fems-inverter"},m={class:"small"};function b(e,n,v,g,h,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openEMS, Fenecon FEMS, CENTURIO 10, Kaco Hy-Control Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/inverter.vue"]]);export{x as default}; +import{_ as c,q as t,k as p,l as d,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceFemsInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fems-inverter"},m={class:"small"};function b(e,n,v,g,h,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openEMS, Fenecon FEMS, CENTURIO 10, Kaco Hy-Control Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/inverter.vue"]]);export{x as default}; diff --git a/web/settings/assets/inverter-6e20d272.js b/web/settings/assets/inverter-a261c598.js similarity index 93% rename from web/settings/assets/inverter-6e20d272.js rename to web/settings/assets/inverter-a261c598.js index 1542ded40d..eaf77e1144 100644 --- a/web/settings/assets/inverter-6e20d272.js +++ b/web/settings/assets/inverter-a261c598.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSmaWebboxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-sma-webbox-inverter"},m={class:"small"};function f(e,t,v,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",b,[o(r,null,{default:s(()=>[a(" Einstellungen für SMA Webbox Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_webbox/inverter.vue"]]);export{B as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSmaWebboxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-sma-webbox-inverter"},m={class:"small"};function f(e,t,v,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",b,[o(r,null,{default:s(()=>[a(" Einstellungen für SMA Webbox Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_webbox/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-e24bc29c.js b/web/settings/assets/inverter-aa581ced.js similarity index 93% rename from web/settings/assets/inverter-e24bc29c.js rename to web/settings/assets/inverter-aa581ced.js index 298867d81b..390fa22f4a 100644 --- a/web/settings/assets/inverter-e24bc29c.js +++ b/web/settings/assets/inverter-aa581ced.js @@ -1 +1 @@ -import{_ as d,q as t,k as c,l as p,B as n,M as s,x as r,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DevicePowerdogInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-powerdog-inverter"},m={class:"small"};function g(e,o,v,b,h,w){const a=t("openwb-base-heading"),i=t("openwb-base-alert");return c(),p("div",f,[n(a,null,{default:s(()=>[r(" Einstellungen für Powerdog Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(i,{subtype:"info"},{default:s(()=>[r(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=d(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/inverter.vue"]]);export{B as default}; +import{_ as d,q as t,k as c,l as p,B as n,M as s,x as r,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DevicePowerdogInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-powerdog-inverter"},m={class:"small"};function g(e,o,v,b,h,w){const a=t("openwb-base-heading"),i=t("openwb-base-alert");return c(),p("div",f,[n(a,null,{default:s(()=>[r(" Einstellungen für Powerdog Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(i,{subtype:"info"},{default:s(()=>[r(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=d(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-e4b7a1ff.js b/web/settings/assets/inverter-ad5b0fde.js similarity index 86% rename from web/settings/assets/inverter-e4b7a1ff.js rename to web/settings/assets/inverter-ad5b0fde.js index a7f445d9fd..4fde55e0c6 100644 --- a/web/settings/assets/inverter-e4b7a1ff.js +++ b/web/settings/assets/inverter-ad5b0fde.js @@ -1 +1 @@ -import{_ as c,q as n,k as l,l as p,B as o,M as s,x as a,u as d,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceKostalPlenticoreInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-kostalplenticore-inverter"},m={class:"small"};function b(e,t,v,g,h,k){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return l(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Kostal Plenticore Wechselrichter "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/inverter.vue"]]);export{x as default}; +import{_ as c,q as n,k as l,l as p,B as o,M as s,x as a,u as d,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceKostalPlenticoreInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-kostalplenticore-inverter"},m={class:"small"};function b(e,t,v,g,h,k){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return l(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Kostal Plenticore Wechselrichter "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/inverter.vue"]]);export{x as default}; diff --git a/web/settings/assets/inverter-21574d2a.js b/web/settings/assets/inverter-b7f85103.js similarity index 93% rename from web/settings/assets/inverter-21574d2a.js rename to web/settings/assets/inverter-b7f85103.js index b90904be1d..f101559c30 100644 --- a/web/settings/assets/inverter-21574d2a.js +++ b/web/settings/assets/inverter-b7f85103.js @@ -1 +1 @@ -import{_ as u,q as o,k as c,l,B as t,M as p,x as m,u as _,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceSolarmaxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-solarmax-inverter"},g={class:"small"};function x(n,e,a,h,w,i){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),l("div",v,[t(s,null,{default:p(()=>[m(" Einstellungen für Solarmax Wechselrichter "),_("span",g,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),t(r,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const I=u(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/inverter.vue"]]);export{I as default}; +import{_ as u,q as o,k as c,l,B as t,M as p,x as m,u as _,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceSolarmaxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-solarmax-inverter"},g={class:"small"};function x(n,e,a,h,w,i){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),l("div",v,[t(s,null,{default:p(()=>[m(" Einstellungen für Solarmax Wechselrichter "),_("span",g,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),t(r,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const I=u(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/inverter.vue"]]);export{I as default}; diff --git a/web/settings/assets/inverter-484e99a3.js b/web/settings/assets/inverter-bad1c2bc.js similarity index 90% rename from web/settings/assets/inverter-484e99a3.js rename to web/settings/assets/inverter-bad1c2bc.js index 148475ffcf..c26cb26cba 100644 --- a/web/settings/assets/inverter-484e99a3.js +++ b/web/settings/assets/inverter-bad1c2bc.js @@ -1 +1 @@ -import{_ as l,q as o,k as m,l as _,B as r,M as i,x as n,u as s,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceDiscovergyInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-discovergy-inverter"},b={class:"small"},h=s("a",{href:"https://api.discovergy.com/public/v1/meters",target:"_blank",rel:"noopener noreferrer"}," https://api.discovergy.com/public/v1/meters ",-1);function w(t,e,a,y,x,d){const u=o("openwb-base-heading"),c=o("openwb-base-text-input");return m(),_("div",g,[r(u,null,{default:i(()=>[n(" Einstellungen für Discovergy Wechselrichter "),s("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),r(c,{title:"Meter-ID",required:"","model-value":a.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.meter_id"))},{help:i(()=>[n(" Um die ID herauszufinden mit dem Browser die Adresse "),h,n(" aufrufen und dort Benutzername und Passwort eingeben. Hier wird nun u.a. die ID des Zählers angezeigt. ")]),_:1},8,["model-value"])])}const I=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/inverter.vue"]]);export{I as default}; +import{_ as l,q as o,k as m,l as _,B as r,M as i,x as n,u as s,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceDiscovergyInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-discovergy-inverter"},b={class:"small"},h=s("a",{href:"https://api.discovergy.com/public/v1/meters",target:"_blank",rel:"noopener noreferrer"}," https://api.discovergy.com/public/v1/meters ",-1);function w(t,e,a,y,x,d){const u=o("openwb-base-heading"),c=o("openwb-base-text-input");return m(),_("div",g,[r(u,null,{default:i(()=>[n(" Einstellungen für Discovergy Wechselrichter "),s("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),r(c,{title:"Meter-ID",required:"","model-value":a.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.meter_id"))},{help:i(()=>[n(" Um die ID herauszufinden mit dem Browser die Adresse "),h,n(" aufrufen und dort Benutzername und Passwort eingeben. Hier wird nun u.a. die ID des Zählers angezeigt. ")]),_:1},8,["model-value"])])}const I=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/inverter.vue"]]);export{I as default}; diff --git a/web/settings/assets/inverter-4db3ad1c.js b/web/settings/assets/inverter-bb103ee5.js similarity index 88% rename from web/settings/assets/inverter-4db3ad1c.js rename to web/settings/assets/inverter-bb103ee5.js index c1c65c6211..b2bcb3e5f3 100644 --- a/web/settings/assets/inverter-4db3ad1c.js +++ b/web/settings/assets/inverter-bb103ee5.js @@ -1 +1 @@ -import{_ as l,q as n,k as c,l as d,B as o,M as p,x as _,u as f,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceYoulessInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-youless-inverter"},v={class:"small"};function h(t,e,s,x,w,a){const u=n("openwb-base-heading"),i=n("openwb-base-button-group-input");return c(),d("div",g,[o(u,null,{default:p(()=>[_(" Einstellungen für Youless LS120 Wechselrichter "),f("span",v,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),o(i,{title:"S0-Eingang auslesen",buttons:[{buttonValue:!1,text:"nein"},{buttonValue:!0,text:"ja"}],"model-value":s.configuration.source_s0,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.source_s0"))},null,8,["model-value"])])}const B=l(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/youless/inverter.vue"]]);export{B as default}; +import{_ as l,q as n,k as c,l as d,B as o,M as p,x as _,u as f,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceYoulessInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-youless-inverter"},v={class:"small"};function h(t,e,s,x,w,a){const u=n("openwb-base-heading"),i=n("openwb-base-button-group-input");return c(),d("div",g,[o(u,null,{default:p(()=>[_(" Einstellungen für Youless LS120 Wechselrichter "),f("span",v,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),o(i,{title:"S0-Eingang auslesen",buttons:[{buttonValue:!1,text:"nein"},{buttonValue:!0,text:"ja"}],"model-value":s.configuration.source_s0,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.source_s0"))},null,8,["model-value"])])}const B=l(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/youless/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-dde61b61.js b/web/settings/assets/inverter-bf8c35b9.js similarity index 88% rename from web/settings/assets/inverter-dde61b61.js rename to web/settings/assets/inverter-bf8c35b9.js index 8d6549ca45..5b2a43d1ba 100644 --- a/web/settings/assets/inverter-dde61b61.js +++ b/web/settings/assets/inverter-bf8c35b9.js @@ -1 +1 @@ -import{_ as c,q as t,k as l,l as _,B as o,M as a,x as i,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceEnphaseInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},b={class:"device-enphase-inverter"},h={class:"small"};function g(n,e,s,w,E,r){const d=t("openwb-base-heading"),u=t("openwb-base-number-input");return l(),_("div",b,[o(d,null,{default:a(()=>[i(" Einstellungen für Enphase Envoy / IQ Gateway Wechselrichter "),m("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(u,{title:"EID",required:"","model-value":s.configuration.eid,"onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.eid"))},{help:a(()=>[i(' EID für "production" ')]),_:1},8,["model-value"])])}const y=c(v,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/inverter.vue"]]);export{y as default}; +import{_ as c,q as t,k as l,l as _,B as o,M as a,x as i,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceEnphaseInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},b={class:"device-enphase-inverter"},h={class:"small"};function g(n,e,s,w,E,r){const d=t("openwb-base-heading"),u=t("openwb-base-number-input");return l(),_("div",b,[o(d,null,{default:a(()=>[i(" Einstellungen für Enphase Envoy / IQ Gateway Wechselrichter "),m("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(u,{title:"EID",required:"","model-value":s.configuration.eid,"onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.eid"))},{help:a(()=>[i(' EID für "production" ')]),_:1},8,["model-value"])])}const y=c(v,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/inverter.vue"]]);export{y as default}; diff --git a/web/settings/assets/inverter-2d1fa8ff.js b/web/settings/assets/inverter-c1925bfa.js similarity index 93% rename from web/settings/assets/inverter-2d1fa8ff.js rename to web/settings/assets/inverter-c1925bfa.js index 67c4a19429..26f309e0ad 100644 --- a/web/settings/assets/inverter-2d1fa8ff.js +++ b/web/settings/assets/inverter-c1925bfa.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceBatterXInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-batterx-inverter"},m={class:"small"};function b(e,t,v,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für BatterX Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/inverter.vue"]]);export{$ as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceBatterXInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-batterx-inverter"},m={class:"small"};function b(e,t,v,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für BatterX Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/inverter.vue"]]);export{$ as default}; diff --git a/web/settings/assets/inverter-5919785e.js b/web/settings/assets/inverter-c83755ed.js similarity index 94% rename from web/settings/assets/inverter-5919785e.js rename to web/settings/assets/inverter-c83755ed.js index 55071c0aab..945fde3dd8 100644 --- a/web/settings/assets/inverter-5919785e.js +++ b/web/settings/assets/inverter-c83755ed.js @@ -1 +1 @@ -import{_ as d,q as n,k as c,l,B as o,M as p,x as m,u as _,y as g}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"DeviceHuaweiSmartLoggerInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-huawei-smart-logger-inverter"},v={class:"small"};function h(t,e,a,w,x,i){const r=n("openwb-base-heading"),s=n("openwb-base-number-input");return c(),l("div",b,[o(r,null,{default:p(()=>[m(" Einstellungen für Huawei SmartLogger Wechselrichter "),_("span",v,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),o(s,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.modbus_id"))},null,8,["model-value"])])}const I=d(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/inverter.vue"]]);export{I as default}; +import{_ as d,q as n,k as c,l,B as o,M as p,x as m,u as _,y as g}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"DeviceHuaweiSmartLoggerInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-huawei-smart-logger-inverter"},v={class:"small"};function h(t,e,a,w,x,i){const r=n("openwb-base-heading"),s=n("openwb-base-number-input");return c(),l("div",b,[o(r,null,{default:p(()=>[m(" Einstellungen für Huawei SmartLogger Wechselrichter "),_("span",v,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),o(s,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.modbus_id"))},null,8,["model-value"])])}const I=d(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/inverter.vue"]]);export{I as default}; diff --git a/web/settings/assets/inverter-9fbef86f.js b/web/settings/assets/inverter-c8396ce9.js similarity index 93% rename from web/settings/assets/inverter-9fbef86f.js rename to web/settings/assets/inverter-c8396ce9.js index c0c227f066..dc56166e73 100644 --- a/web/settings/assets/inverter-9fbef86f.js +++ b/web/settings/assets/inverter-c8396ce9.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceE3dcInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für E3DC Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/inverter.vue"]]);export{B as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceE3dcInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für E3DC Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-512d5fe6.js b/web/settings/assets/inverter-cde319bd.js similarity index 86% rename from web/settings/assets/inverter-512d5fe6.js rename to web/settings/assets/inverter-cde319bd.js index 5b441410f7..75e8be147d 100644 --- a/web/settings/assets/inverter-512d5fe6.js +++ b/web/settings/assets/inverter-cde319bd.js @@ -1 +1 @@ -import{_ as c,q as n,k as l,l as d,B as o,M as s,x as a,u as p,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceShellyInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-shelly-inverter"},m={class:"small"};function h(e,t,b,v,g,y){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return l(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Shelly Wechselrichter "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/shelly/inverter.vue"]]);export{x as default}; +import{_ as c,q as n,k as l,l as d,B as o,M as s,x as a,u as p,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceShellyInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-shelly-inverter"},m={class:"small"};function h(e,t,b,v,g,y){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return l(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Shelly Wechselrichter "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/shelly/inverter.vue"]]);export{x as default}; diff --git a/web/settings/assets/inverter-52c73615.js b/web/settings/assets/inverter-cfccace6.js similarity index 96% rename from web/settings/assets/inverter-52c73615.js rename to web/settings/assets/inverter-cfccace6.js index 94ed1620d7..ec44dbb36a 100644 --- a/web/settings/assets/inverter-52c73615.js +++ b/web/settings/assets/inverter-cfccace6.js @@ -1 +1 @@ -import{_ as p,q as l,k as m,l as _,B as i,M as r,x as t,u,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const g={name:"DeviceJsonInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"device-json-inverter"},w={class:"small"},b=u("br",null,null,-1);function v(n,e,s,j,x,a){const c=l("openwb-base-heading"),d=l("openwb-base-text-input");return m(),_("div",h,[i(c,null,{default:r(()=>[t(" Einstellungen für JSON Wechselrichter "),u("span",w,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),i(d,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":s.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.jq_power"))},{help:r(()=>[t(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. '),b,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) ")]),_:1},8,["model-value"]),i(d,{title:"Abfrage für Zählerstand",subtype:"text","model-value":s.configuration.jq_exported,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.jq_exported"))},{help:r(()=>[t(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"])])}const P=p(g,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/inverter.vue"]]);export{P as default}; +import{_ as p,q as l,k as m,l as _,B as i,M as r,x as t,u,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const g={name:"DeviceJsonInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"device-json-inverter"},w={class:"small"},b=u("br",null,null,-1);function v(n,e,s,j,x,a){const c=l("openwb-base-heading"),d=l("openwb-base-text-input");return m(),_("div",h,[i(c,null,{default:r(()=>[t(" Einstellungen für JSON Wechselrichter "),u("span",w,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),i(d,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":s.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.jq_power"))},{help:r(()=>[t(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. '),b,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) ")]),_:1},8,["model-value"]),i(d,{title:"Abfrage für Zählerstand",subtype:"text","model-value":s.configuration.jq_exported,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.jq_exported"))},{help:r(()=>[t(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"])])}const P=p(g,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/inverter.vue"]]);export{P as default}; diff --git a/web/settings/assets/inverter-f385d2a9.js b/web/settings/assets/inverter-da82c753.js similarity index 89% rename from web/settings/assets/inverter-f385d2a9.js rename to web/settings/assets/inverter-da82c753.js index ec13f5a828..c650857627 100644 --- a/web/settings/assets/inverter-f385d2a9.js +++ b/web/settings/assets/inverter-da82c753.js @@ -1 +1 @@ -import{_ as c,q as o,k as l,l as d,B as n,M as p,x as _,u as f,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const b={name:"DeviceKostalStecaInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-kostal-steca-inverter"},g={class:"small"};function h(t,e,a,k,x,s){const i=o("openwb-base-heading"),r=o("openwb-base-button-group-input");return l(),d("div",v,[n(i,null,{default:p(()=>[_(" Einstellungen für Kostal Piko MP oder Steca Grid Coolcept Wechselrichter "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(r,{title:"Variante",buttons:[{buttonValue:!1,text:"Kostal Piko MP (non-plus)"},{buttonValue:!0,text:"Kostal Piko MP oder Steca Grid Coolcept"}],"model-value":a.configuration.variant_steca,"onUpdate:modelValue":e[0]||(e[0]=u=>s.updateConfiguration(u,"configuration.variant_steca"))},null,8,["buttons","model-value"])])}const C=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_steca/inverter.vue"]]);export{C as default}; +import{_ as c,q as o,k as l,l as d,B as n,M as p,x as _,u as f,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const b={name:"DeviceKostalStecaInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-kostal-steca-inverter"},g={class:"small"};function h(t,e,a,k,x,s){const i=o("openwb-base-heading"),r=o("openwb-base-button-group-input");return l(),d("div",v,[n(i,null,{default:p(()=>[_(" Einstellungen für Kostal Piko MP oder Steca Grid Coolcept Wechselrichter "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(r,{title:"Variante",buttons:[{buttonValue:!1,text:"Kostal Piko MP (non-plus)"},{buttonValue:!0,text:"Kostal Piko MP oder Steca Grid Coolcept"}],"model-value":a.configuration.variant_steca,"onUpdate:modelValue":e[0]||(e[0]=u=>s.updateConfiguration(u,"configuration.variant_steca"))},null,8,["buttons","model-value"])])}const C=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_steca/inverter.vue"]]);export{C as default}; diff --git a/web/settings/assets/inverter-7a5c177b.js b/web/settings/assets/inverter-dd6b4286.js similarity index 93% rename from web/settings/assets/inverter-7a5c177b.js rename to web/settings/assets/inverter-dd6b4286.js index f30fd46fee..e5f7796f2b 100644 --- a/web/settings/assets/inverter-7a5c177b.js +++ b/web/settings/assets/inverter-dd6b4286.js @@ -1 +1 @@ -import{_ as c,q as t,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceSonnenbatterieInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sonnenbatterie-inverter"},m={class:"small"};function b(e,n,v,g,h,w){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für SonnenBatterie Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/inverter.vue"]]);export{x as default}; +import{_ as c,q as t,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceSonnenbatterieInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sonnenbatterie-inverter"},m={class:"small"};function b(e,n,v,g,h,w){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für SonnenBatterie Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/inverter.vue"]]);export{x as default}; diff --git a/web/settings/assets/inverter-6f1e2eeb.js b/web/settings/assets/inverter-e1644fe1.js similarity index 89% rename from web/settings/assets/inverter-6f1e2eeb.js rename to web/settings/assets/inverter-e1644fe1.js index 5f7a9c02c5..5494c1c5c4 100644 --- a/web/settings/assets/inverter-6f1e2eeb.js +++ b/web/settings/assets/inverter-e1644fe1.js @@ -1 +1 @@ -import{_ as u,q as o,k as p,l as m,B as n,M as a,x as i,u as _,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceSolarViewInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-solar-view-inverter"},h={class:"small"};function b(t,e,r,w,x,s){const d=o("openwb-base-heading"),c=o("openwb-base-text-input");return p(),m("div",g,[n(d,null,{default:a(()=>[i(" Einstellungen für SolarView Wechselrichter "),_("span",h,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(c,{title:"Kommando für die Abfrage",required:"","model-value":r.configuration.command,"onUpdate:modelValue":e[0]||(e[0]=l=>s.updateConfiguration(l,"configuration.command"))},{help:a(()=>[i(" Kommandos gemäß SolarView-Dokumentation, z.B.: 00* (gesamte Anlage), 01* (Wechselrichter 1), 02* (Wechselrichter 2) ")]),_:1},8,["model-value"])])}const k=u(v,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/inverter.vue"]]);export{k as default}; +import{_ as u,q as o,k as p,l as m,B as n,M as a,x as i,u as _,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceSolarViewInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-solar-view-inverter"},h={class:"small"};function b(t,e,r,w,x,s){const d=o("openwb-base-heading"),c=o("openwb-base-text-input");return p(),m("div",g,[n(d,null,{default:a(()=>[i(" Einstellungen für SolarView Wechselrichter "),_("span",h,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(c,{title:"Kommando für die Abfrage",required:"","model-value":r.configuration.command,"onUpdate:modelValue":e[0]||(e[0]=l=>s.updateConfiguration(l,"configuration.command"))},{help:a(()=>[i(" Kommandos gemäß SolarView-Dokumentation, z.B.: 00* (gesamte Anlage), 01* (Wechselrichter 1), 02* (Wechselrichter 2) ")]),_:1},8,["model-value"])])}const k=u(v,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/inverter.vue"]]);export{k as default}; diff --git a/web/settings/assets/inverter-abecfa92.js b/web/settings/assets/inverter-e38481bd.js similarity index 86% rename from web/settings/assets/inverter-abecfa92.js rename to web/settings/assets/inverter-e38481bd.js index 42d72a3142..3df3b75105 100644 --- a/web/settings/assets/inverter-abecfa92.js +++ b/web/settings/assets/inverter-e38481bd.js @@ -1 +1 @@ -import{_ as c,q as n,k as l,l as d,B as o,M as s,x as a,u as p,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceQCelllsInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-qcells-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return l(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für QCells ESS Wechselrichter "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/inverter.vue"]]);export{x as default}; +import{_ as c,q as n,k as l,l as d,B as o,M as s,x as a,u as p,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceQCelllsInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-qcells-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return l(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für QCells ESS Wechselrichter "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/inverter.vue"]]);export{x as default}; diff --git a/web/settings/assets/inverter-dc2aff6c.js b/web/settings/assets/inverter-eb3d559c.js similarity index 92% rename from web/settings/assets/inverter-dc2aff6c.js rename to web/settings/assets/inverter-eb3d559c.js index 4abcc685d3..8457fe006d 100644 --- a/web/settings/assets/inverter-dc2aff6c.js +++ b/web/settings/assets/inverter-eb3d559c.js @@ -1 +1 @@ -import{_ as l,q as i,k as f,l as _,B as r,M as s,x as n,u as o,y as m}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"DevicePowerfoxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-powerfox-inverter"},b={class:"small"},v=o("a",{href:"https://backend.powerfox.energy/api/2.0/my/all/devices",target:"_blank",rel:"noopener noreferrer"}," https://backend.powerfox.energy/api/2.0/my/all/devices ",-1),w=o("span",{class:"font-weight-bold text-monospace",style:{display:"contents"}},' "DeviceID" ',-1);function x(t,e,a,D,k,d){const u=i("openwb-base-heading"),c=i("openwb-base-text-input");return f(),_("div",g,[r(u,null,{default:s(()=>[n(" Einstellungen für Powerfox Wechselrichter "),o("span",b,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),r(c,{title:"ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.id"))},{help:s(()=>[n(" Um die ID herauszufinden mit dem Browser die Adresse "),v,n(" aufrufen und dort Benutzername und Passwort eingeben. Die DeviceID ist exakt so einzutragen, wie in der Antwort des Servers. Das bedeutet insbesondere auch, die Groß-/Kleinschreibung ist zu beachten! In dem Feld ist nur die Zeichenfolge direkt hinter "),w,n(" ohne den Doppelpunkt und Anführungszeichen einzutragen. ")]),_:1},8,["model-value"])])}const B=l(h,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/inverter.vue"]]);export{B as default}; +import{_ as l,q as i,k as f,l as _,B as r,M as s,x as n,u as o,y as m}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"DevicePowerfoxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-powerfox-inverter"},b={class:"small"},v=o("a",{href:"https://backend.powerfox.energy/api/2.0/my/all/devices",target:"_blank",rel:"noopener noreferrer"}," https://backend.powerfox.energy/api/2.0/my/all/devices ",-1),w=o("span",{class:"font-weight-bold text-monospace",style:{display:"contents"}},' "DeviceID" ',-1);function x(t,e,a,D,k,d){const u=i("openwb-base-heading"),c=i("openwb-base-text-input");return f(),_("div",g,[r(u,null,{default:s(()=>[n(" Einstellungen für Powerfox Wechselrichter "),o("span",b,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),r(c,{title:"ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.id"))},{help:s(()=>[n(" Um die ID herauszufinden mit dem Browser die Adresse "),v,n(" aufrufen und dort Benutzername und Passwort eingeben. Die DeviceID ist exakt so einzutragen, wie in der Antwort des Servers. Das bedeutet insbesondere auch, die Groß-/Kleinschreibung ist zu beachten! In dem Feld ist nur die Zeichenfolge direkt hinter "),w,n(" ohne den Doppelpunkt und Anführungszeichen einzutragen. ")]),_:1},8,["model-value"])])}const B=l(h,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-b1b0e3c7.js b/web/settings/assets/inverter-ef0ca8f4.js similarity index 86% rename from web/settings/assets/inverter-b1b0e3c7.js rename to web/settings/assets/inverter-ef0ca8f4.js index ae0f3390f2..2f37440cb4 100644 --- a/web/settings/assets/inverter-b1b0e3c7.js +++ b/web/settings/assets/inverter-ef0ca8f4.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u as l,y as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceTeslaInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-tesla-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Tesla Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/inverter.vue"]]);export{B as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u as l,y as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceTeslaInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-tesla-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Tesla Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-16cb3358.js b/web/settings/assets/inverter-efeb3461.js similarity index 93% rename from web/settings/assets/inverter-16cb3358.js rename to web/settings/assets/inverter-efeb3461.js index 28798a99a0..d35a8d12d6 100644 --- a/web/settings/assets/inverter-16cb3358.js +++ b/web/settings/assets/inverter-efeb3461.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceLGInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-lg-inverter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für LG ESS V1.0 Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/inverter.vue"]]);export{B as default}; +import{_ as c,q as n,k as d,l as p,B as o,M as s,x as a,u,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceLGInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-lg-inverter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für LG ESS V1.0 Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-0b4d964e.js b/web/settings/assets/inverter-f57cf39b.js similarity index 86% rename from web/settings/assets/inverter-0b4d964e.js rename to web/settings/assets/inverter-f57cf39b.js index ee0ce26494..b93cb9621d 100644 --- a/web/settings/assets/inverter-0b4d964e.js +++ b/web/settings/assets/inverter-f57cf39b.js @@ -1 +1 @@ -import{_ as c,q as t,k as d,l as u,B as o,M as s,x as r,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceFroniusInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fronius-inverter"},m={class:"small"};function v(e,n,b,g,h,w){const i=t("openwb-base-heading"),a=t("openwb-base-alert");return d(),u("div",f,[o(i,null,{default:s(()=>[r(" Einstellungen für Fronius Wechselrichter "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(a,{subtype:"info"},{default:s(()=>[r(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/inverter.vue"]]);export{B as default}; +import{_ as c,q as t,k as d,l as u,B as o,M as s,x as r,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceFroniusInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fronius-inverter"},m={class:"small"};function v(e,n,b,g,h,w){const i=t("openwb-base-heading"),a=t("openwb-base-alert");return d(),u("div",f,[o(i,null,{default:s(()=>[r(" Einstellungen für Fronius Wechselrichter "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(a,{subtype:"info"},{default:s(()=>[r(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter-98bd7e3f.js b/web/settings/assets/inverter-f5e3ac96.js similarity index 86% rename from web/settings/assets/inverter-98bd7e3f.js rename to web/settings/assets/inverter-f5e3ac96.js index 865199a82f..028d6e84c1 100644 --- a/web/settings/assets/inverter-98bd7e3f.js +++ b/web/settings/assets/inverter-f5e3ac96.js @@ -1 +1 @@ -import{_ as c,q as n,k as d,l as u,B as o,M as s,x as a,u as p,y as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const _={name:"DeviceHuaweiInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-huawei-inverter"},m={class:"small"};function v(e,t,b,h,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Huawei Wechselrichter "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/inverter.vue"]]);export{B as default}; +import{_ as c,q as n,k as d,l as u,B as o,M as s,x as a,u as p,y as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const _={name:"DeviceHuaweiInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-huawei-inverter"},m={class:"small"};function v(e,t,b,h,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Huawei Wechselrichter "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/inverter.vue"]]);export{B as default}; diff --git a/web/settings/assets/inverter_secondary-2a8b0172.js b/web/settings/assets/inverter_secondary-e04ca018.js similarity index 87% rename from web/settings/assets/inverter_secondary-2a8b0172.js rename to web/settings/assets/inverter_secondary-e04ca018.js index 9a69240b93..6ec4110722 100644 --- a/web/settings/assets/inverter_secondary-2a8b0172.js +++ b/web/settings/assets/inverter_secondary-e04ca018.js @@ -1 +1 @@ -import{_ as u,q as o,k as c,l as p,B as t,M as l,x as _,u as m,y as f}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"DeviceFroniusSecondaryInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},b={class:"device-fronius-inverter-secondary"},g={class:"small"};function h(n,e,i,y,w,s){const a=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),p("div",b,[t(a,null,{default:l(()=>[_(" Einstellungen für einen sekundären Wechselrichter "),m("span",g,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),t(r,{title:"ID","model-value":i.configuration.id,min:"0","onUpdate:modelValue":e[0]||(e[0]=d=>s.updateConfiguration(d,"configuration.id"))},null,8,["model-value"])])}const k=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/inverter_secondary.vue"]]);export{k as default}; +import{_ as u,q as o,k as c,l as p,B as t,M as l,x as _,u as m,y as f}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"DeviceFroniusSecondaryInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},b={class:"device-fronius-inverter-secondary"},g={class:"small"};function h(n,e,i,y,w,s){const a=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),p("div",b,[t(a,null,{default:l(()=>[_(" Einstellungen für einen sekundären Wechselrichter "),m("span",g,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),t(r,{title:"ID","model-value":i.configuration.id,min:"0","onUpdate:modelValue":e[0]||(e[0]=d=>s.updateConfiguration(d,"configuration.id"))},null,8,["model-value"])])}const k=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/inverter_secondary.vue"]]);export{k as default}; diff --git a/web/settings/assets/vehicle-0f314a94.js b/web/settings/assets/vehicle-0b875c05.js similarity index 96% rename from web/settings/assets/vehicle-0f314a94.js rename to web/settings/assets/vehicle-0b875c05.js index fe81cc5083..65b58fcb46 100644 --- a/web/settings/assets/vehicle-0f314a94.js +++ b/web/settings/assets/vehicle-0b875c05.js @@ -1 +1 @@ -import{_ as d,q as s,k as c,l as m,B as u,M as r,x as i}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const p={name:"VehicleSocRenault",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(l,e=void 0){this.$emit("update:configuration",{value:l,object:e})}}},v={class:"vehicle-soc-renault"};function f(l,e,t,g,h,o){const a=s("openwb-base-text-input");return c(),m("div",v,[u(a,{title:"Benutzername",required:"",subtype:"user","model-value":t.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.user_id"))},{help:r(()=>[i(" Der Benutzername für die Anmeldung an den Renault-Servern. ")]),_:1},8,["model-value"]),u(a,{title:"Kennwort",required:"",subtype:"password","model-value":t.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},{help:r(()=>[i(" Das Passwort für die Anmeldung an den Renault-Servern. ")]),_:1},8,["model-value"]),u(a,{title:"Land",required:"","model-value":t.vehicle.configuration.country,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.country"))},{help:r(()=>[i(" Land des Fahrzeugs, z.b. DE für Deutschland. ")]),_:1},8,["model-value"]),u(a,{title:"VIN","model-value":t.vehicle.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.vin"))},{help:r(()=>[i(" Die Fahrgestellnummer des Fahrzeugs falls mehrere Fahrzeuge im Account vorhanden sind. ")]),_:1},8,["model-value"])])}const w=d(p,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/renault/vehicle.vue"]]);export{w as default}; +import{_ as d,q as s,k as c,l as m,B as u,M as r,x as i}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const p={name:"VehicleSocRenault",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(l,e=void 0){this.$emit("update:configuration",{value:l,object:e})}}},v={class:"vehicle-soc-renault"};function f(l,e,t,g,h,o){const a=s("openwb-base-text-input");return c(),m("div",v,[u(a,{title:"Benutzername",required:"",subtype:"user","model-value":t.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.user_id"))},{help:r(()=>[i(" Der Benutzername für die Anmeldung an den Renault-Servern. ")]),_:1},8,["model-value"]),u(a,{title:"Kennwort",required:"",subtype:"password","model-value":t.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},{help:r(()=>[i(" Das Passwort für die Anmeldung an den Renault-Servern. ")]),_:1},8,["model-value"]),u(a,{title:"Land",required:"","model-value":t.vehicle.configuration.country,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.country"))},{help:r(()=>[i(" Land des Fahrzeugs, z.b. DE für Deutschland. ")]),_:1},8,["model-value"]),u(a,{title:"VIN","model-value":t.vehicle.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>o.updateConfiguration(n,"configuration.vin"))},{help:r(()=>[i(" Die Fahrgestellnummer des Fahrzeugs falls mehrere Fahrzeuge im Account vorhanden sind. ")]),_:1},8,["model-value"])])}const w=d(p,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/renault/vehicle.vue"]]);export{w as default}; diff --git a/web/settings/assets/vehicle-5551211d.js b/web/settings/assets/vehicle-169d9f6a.js similarity index 96% rename from web/settings/assets/vehicle-5551211d.js rename to web/settings/assets/vehicle-169d9f6a.js index 91d07a196e..5934433470 100644 --- a/web/settings/assets/vehicle-5551211d.js +++ b/web/settings/assets/vehicle-169d9f6a.js @@ -1 +1 @@ -import{_ as l,q as s,k as p,l as m,B as r,M as a,x as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const c={name:"VehicleSocKia",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},v={class:"vehicle-soc-kia"};function f(d,e,t,g,_,i){const o=s("openwb-base-text-input");return p(),m("div",v,[r(o,{title:"Benutzername",required:"",subtype:"user","model-value":t.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"configuration.user_id"))},{help:a(()=>[u(" Der Benutzername für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),r(o,{title:"Kennwort",required:"",subtype:"password","model-value":t.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n,"configuration.password"))},{help:a(()=>[u(" Das Passwort für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),r(o,{title:"PIN",required:"",subtype:"password","model-value":t.vehicle.configuration.pin,"onUpdate:modelValue":e[2]||(e[2]=n=>i.updateConfiguration(n,"configuration.pin"))},{help:a(()=>[u(" Die PIN für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),r(o,{title:"VIN",required:"","model-value":t.vehicle.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>i.updateConfiguration(n,"configuration.vin"))},{help:a(()=>[u(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const w=l(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/kia/vehicle.vue"]]);export{w as default}; +import{_ as l,q as s,k as p,l as m,B as r,M as a,x as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const c={name:"VehicleSocKia",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},v={class:"vehicle-soc-kia"};function f(d,e,t,g,_,i){const o=s("openwb-base-text-input");return p(),m("div",v,[r(o,{title:"Benutzername",required:"",subtype:"user","model-value":t.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"configuration.user_id"))},{help:a(()=>[u(" Der Benutzername für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),r(o,{title:"Kennwort",required:"",subtype:"password","model-value":t.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n,"configuration.password"))},{help:a(()=>[u(" Das Passwort für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),r(o,{title:"PIN",required:"",subtype:"password","model-value":t.vehicle.configuration.pin,"onUpdate:modelValue":e[2]||(e[2]=n=>i.updateConfiguration(n,"configuration.pin"))},{help:a(()=>[u(" Die PIN für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),r(o,{title:"VIN",required:"","model-value":t.vehicle.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>i.updateConfiguration(n,"configuration.vin"))},{help:a(()=>[u(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const w=l(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/kia/vehicle.vue"]]);export{w as default}; diff --git a/web/settings/assets/vehicle-b65a9e8f.js b/web/settings/assets/vehicle-28dd95f3.js similarity index 95% rename from web/settings/assets/vehicle-b65a9e8f.js rename to web/settings/assets/vehicle-28dd95f3.js index ffdc5eeb3f..90342bec0c 100644 --- a/web/settings/assets/vehicle-b65a9e8f.js +++ b/web/settings/assets/vehicle-28dd95f3.js @@ -1 +1 @@ -import{_ as l,q as s,k as m,l as p,B as i,M as a,x as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const c={name:"VehicleSocSmarteq",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},v={class:"vehicle-soc-smarteq"};function f(d,e,n,g,_,o){const r=s("openwb-base-text-input");return m(),p("div",v,[i(r,{title:"Benutzername",required:"",subtype:"user","model-value":n.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user_id"))},{help:a(()=>[u(" Der Benutzername für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),i(r,{title:"Kennwort",required:"",subtype:"password","model-value":n.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},{help:a(()=>[u(" Das Passwort für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),i(r,{title:"VIN",required:"","model-value":n.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.vin"))},{help:a(()=>[u(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const q=l(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/smarteq/vehicle.vue"]]);export{q as default}; +import{_ as l,q as s,k as m,l as p,B as i,M as a,x as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const c={name:"VehicleSocSmarteq",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},v={class:"vehicle-soc-smarteq"};function f(d,e,n,g,_,o){const r=s("openwb-base-text-input");return m(),p("div",v,[i(r,{title:"Benutzername",required:"",subtype:"user","model-value":n.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user_id"))},{help:a(()=>[u(" Der Benutzername für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),i(r,{title:"Kennwort",required:"",subtype:"password","model-value":n.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},{help:a(()=>[u(" Das Passwort für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),i(r,{title:"VIN",required:"","model-value":n.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.vin"))},{help:a(()=>[u(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const q=l(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/smarteq/vehicle.vue"]]);export{q as default}; diff --git a/web/settings/assets/vehicle-1278d0cd.js b/web/settings/assets/vehicle-28ef5348.js similarity index 94% rename from web/settings/assets/vehicle-1278d0cd.js rename to web/settings/assets/vehicle-28ef5348.js index 49e019f2ae..c1f7a0704c 100644 --- a/web/settings/assets/vehicle-1278d0cd.js +++ b/web/settings/assets/vehicle-28ef5348.js @@ -1 +1 @@ -import{_ as m,a5 as p,a6 as g,a7 as f,q as l,k as b,l as k,B as a,M as s,x as r,u as v}from"./vendor-b03da118.js";import{a as w}from"./vendor-axios-3d217103.js";import{C as y}from"./index-bed1470e.js";import"./vendor-sortablejs-595f2e06.js";import"./vendor-fortawesome-cf9a975a.js";import"./vendor-bootstrap-ae747010.js";import"./vendor-jquery-9f6206bf.js";const C={name:"VehicleSocTesla",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{tesla_api_oauth2:"https://auth.tesla.com/oauth2/v3",tesla_api_redirect:"https://auth.tesla.com/void/callback",tesla_api_owners:"https://owner-api.teslamotors.com/oauth/token",user_agent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",code_challenge:null,code_verifier:null,page_not_found_url:null}},mixins:[y],methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})},tesla_login_window(){this.tesla_gen_challenge();var e=window.open(this.tesla_gen_url(),"TeslaLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");e.focus()},tesla_gen_challenge(){this.code_verifier=p.encode(g.randomBytes(86)).replace(/[^a-zA-Z0-9]/gi,"").substring(0,86);const e=g.createHash("sha256").update(this.code_verifier).digest();this.code_challenge=p.encode(e),console.debug(this.code_verifier,this.code_verifier.length,this.code_challenge,this.code_challenge.length)},tesla_gen_url(){const e=new URL(this.tesla_api_oauth2+"/authorize/");return e.searchParams.append("client_id","ownerapi"),e.searchParams.append("code_challenge",this.code_challenge),e.searchParams.append("code_challenge_method","S256"),e.searchParams.append("redirect_uri",this.tesla_api_redirect),e.searchParams.append("response_type","code"),e.searchParams.append("scope","openid email offline_access"),e.searchParams.append("state","myteslaapp"),e},async tesla_login(){const e=f.parse(this.page_not_found_url,!0).query;if(console.debug("queryObject",e),!e.code){console.error("Something is wrong... Code does not exist in URL"),this.$root.postClientMessage("Die eingegebene URL ist ungültig.","danger");return}const n={url:this.tesla_api_owners,user_agent:this.user_agent,data:{grant_type:"authorization_code",client_id:"ownerapi",code:e.code,code_verifier:this.code_verifier,redirect_uri:this.tesla_api_redirect}};try{const t=await w.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/vehicles/tesla/tesla.php",JSON.parse(JSON.stringify(n)),{headers:{"Content-Type":"application/json",Accept:"application/json"}});console.debug("response",t),this.updateConfiguration({access_token:t.data.access_token,refresh_token:t.data.refresh_token,created_at:t.data.created_at,expires_in:t.data.expires_in},"configuration.token"),this.$root.postClientMessage("Token erfolgreich abgerufen.","success")}catch(t){console.error(t),this.$root.postClientMessage("Beim Abruf der Token ist ein Fehler aufgetreten!
"+t+"
","danger")}}}},T={class:"vehicle-soc-tesla"},x=v("hr",null,null,-1);function B(e,n,t,U,u,i){const d=l("openwb-base-number-input"),h=l("openwb-base-heading"),_=l("openwb-base-button-input"),c=l("openwb-base-text-input");return b(),k("div",T,[a(d,{title:"Fahrzeug-ID",required:"",min:0,"model-value":t.vehicle.configuration.tesla_ev_num,"onUpdate:modelValue":n[0]||(n[0]=o=>i.updateConfiguration(o,"configuration.tesla_ev_num"))},{help:s(()=>[r(' Die ID des Fahrzeugs bei Tesla. Normalerweise "0" bei nur einem Fahrzeug im Konto. ')]),_:1},8,["model-value"]),a(h,null,{default:s(()=>[r("Token abrufen oder eingeben")]),_:1}),a(_,{title:"1. Anmelden",buttonText:"Bei Tesla Anmelden",subtype:"success",onButtonClicked:i.tesla_login_window},{help:s(()=>[r(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Tesla mit Ihren Zugangsdaten anmelden können. ")]),_:1},8,["onButtonClicked"]),a(c,{title:"2. URL kopieren und einfügen",subtype:"url",emptyValue:null,modelValue:u.page_not_found_url,"onUpdate:modelValue":n[1]||(n[1]=o=>u.page_not_found_url=o)},{help:s(()=>[r(' Hier die komplette URL (Text in der Adresszeile) aus dem geöffneten Browserfenster einfügen, wenn dort "Page Not Found" angezeigt wird. ')]),_:1},8,["modelValue"]),a(_,{title:"3. Token abrufen",buttonText:"Jetzt abrufen",subtype:"success",disabled:u.page_not_found_url===null,onButtonClicked:i.tesla_login},{help:s(()=>[r(" Der in der eingegebenen URL enthaltene Code wird genutzt, um ein Anmeldetoken bei Tesla abzurufen. Ist dies erfolgreich, so werden die Daten des Token in den weiteren Feldern automatisch eingegeben. ")]),_:1},8,["disabled","onButtonClicked"]),x,a(c,{title:"Access Token",pattern:"^(ey).*",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.access_token:"","onUpdate:modelValue":n[2]||(n[2]=o=>i.updateConfiguration(o,"configuration.token.access_token"))},null,8,["model-value"]),a(c,{title:"Refresh Token",pattern:"^(ey).*",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.refresh_token:"","onUpdate:modelValue":n[3]||(n[3]=o=>i.updateConfiguration(o,"configuration.token.refresh_token"))},null,8,["model-value"]),a(d,{title:"Erstellt um",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.created_at:0,"onUpdate:modelValue":n[4]||(n[4]=o=>i.updateConfiguration(o,"configuration.token.created_at"))},{help:s(()=>[r(" Unix Timestamp des Zeitpunktes, an dem das Token erzeugt wurde. ")]),_:1},8,["model-value"]),a(d,{title:"Ungültig in",unit:"s",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.expires_in:0,"onUpdate:modelValue":n[5]||(n[5]=o=>i.updateConfiguration(o,"configuration.token.expires_in"))},{help:s(()=>[r(" Zeitspanne in Sekunden, nach der das Token ungültig wird. ")]),_:1},8,["model-value"])])}const M=m(C,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/tesla/vehicle.vue"]]);export{M as default}; +import{_ as m,a5 as p,a6 as g,a7 as f,q as l,k as b,l as k,B as a,M as s,x as r,u as v}from"./vendor-72da2ec6.js";import{a as w}from"./vendor-axios-a313c26e.js";import{C as y}from"./index-e599db2d.js";import"./vendor-sortablejs-bc651bf7.js";import"./vendor-fortawesome-0685c9c0.js";import"./vendor-bootstrap-4136d1d1.js";import"./vendor-jquery-d6fd430e.js";const C={name:"VehicleSocTesla",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{tesla_api_oauth2:"https://auth.tesla.com/oauth2/v3",tesla_api_redirect:"https://auth.tesla.com/void/callback",tesla_api_owners:"https://owner-api.teslamotors.com/oauth/token",user_agent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",code_challenge:null,code_verifier:null,page_not_found_url:null}},mixins:[y],methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})},tesla_login_window(){this.tesla_gen_challenge();var e=window.open(this.tesla_gen_url(),"TeslaLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");e.focus()},tesla_gen_challenge(){this.code_verifier=p.encode(g.randomBytes(86)).replace(/[^a-zA-Z0-9]/gi,"").substring(0,86);const e=g.createHash("sha256").update(this.code_verifier).digest();this.code_challenge=p.encode(e),console.debug(this.code_verifier,this.code_verifier.length,this.code_challenge,this.code_challenge.length)},tesla_gen_url(){const e=new URL(this.tesla_api_oauth2+"/authorize/");return e.searchParams.append("client_id","ownerapi"),e.searchParams.append("code_challenge",this.code_challenge),e.searchParams.append("code_challenge_method","S256"),e.searchParams.append("redirect_uri",this.tesla_api_redirect),e.searchParams.append("response_type","code"),e.searchParams.append("scope","openid email offline_access"),e.searchParams.append("state","myteslaapp"),e},async tesla_login(){const e=f.parse(this.page_not_found_url,!0).query;if(console.debug("queryObject",e),!e.code){console.error("Something is wrong... Code does not exist in URL"),this.$root.postClientMessage("Die eingegebene URL ist ungültig.","danger");return}const n={url:this.tesla_api_owners,user_agent:this.user_agent,data:{grant_type:"authorization_code",client_id:"ownerapi",code:e.code,code_verifier:this.code_verifier,redirect_uri:this.tesla_api_redirect}};try{const t=await w.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/vehicles/tesla/tesla.php",JSON.parse(JSON.stringify(n)),{headers:{"Content-Type":"application/json",Accept:"application/json"}});console.debug("response",t),this.updateConfiguration({access_token:t.data.access_token,refresh_token:t.data.refresh_token,created_at:t.data.created_at,expires_in:t.data.expires_in},"configuration.token"),this.$root.postClientMessage("Token erfolgreich abgerufen.","success")}catch(t){console.error(t),this.$root.postClientMessage("Beim Abruf der Token ist ein Fehler aufgetreten!
"+t+"
","danger")}}}},T={class:"vehicle-soc-tesla"},x=v("hr",null,null,-1);function B(e,n,t,U,u,i){const d=l("openwb-base-number-input"),h=l("openwb-base-heading"),_=l("openwb-base-button-input"),c=l("openwb-base-text-input");return b(),k("div",T,[a(d,{title:"Fahrzeug-ID",required:"",min:0,"model-value":t.vehicle.configuration.tesla_ev_num,"onUpdate:modelValue":n[0]||(n[0]=o=>i.updateConfiguration(o,"configuration.tesla_ev_num"))},{help:s(()=>[r(' Die ID des Fahrzeugs bei Tesla. Normalerweise "0" bei nur einem Fahrzeug im Konto. ')]),_:1},8,["model-value"]),a(h,null,{default:s(()=>[r("Token abrufen oder eingeben")]),_:1}),a(_,{title:"1. Anmelden",buttonText:"Bei Tesla Anmelden",subtype:"success",onButtonClicked:i.tesla_login_window},{help:s(()=>[r(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Tesla mit Ihren Zugangsdaten anmelden können. ")]),_:1},8,["onButtonClicked"]),a(c,{title:"2. URL kopieren und einfügen",subtype:"url",emptyValue:null,modelValue:u.page_not_found_url,"onUpdate:modelValue":n[1]||(n[1]=o=>u.page_not_found_url=o)},{help:s(()=>[r(' Hier die komplette URL (Text in der Adresszeile) aus dem geöffneten Browserfenster einfügen, wenn dort "Page Not Found" angezeigt wird. ')]),_:1},8,["modelValue"]),a(_,{title:"3. Token abrufen",buttonText:"Jetzt abrufen",subtype:"success",disabled:u.page_not_found_url===null,onButtonClicked:i.tesla_login},{help:s(()=>[r(" Der in der eingegebenen URL enthaltene Code wird genutzt, um ein Anmeldetoken bei Tesla abzurufen. Ist dies erfolgreich, so werden die Daten des Token in den weiteren Feldern automatisch eingegeben. ")]),_:1},8,["disabled","onButtonClicked"]),x,a(c,{title:"Access Token",pattern:"^(ey).*",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.access_token:"","onUpdate:modelValue":n[2]||(n[2]=o=>i.updateConfiguration(o,"configuration.token.access_token"))},null,8,["model-value"]),a(c,{title:"Refresh Token",pattern:"^(ey).*",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.refresh_token:"","onUpdate:modelValue":n[3]||(n[3]=o=>i.updateConfiguration(o,"configuration.token.refresh_token"))},null,8,["model-value"]),a(d,{title:"Erstellt um",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.created_at:0,"onUpdate:modelValue":n[4]||(n[4]=o=>i.updateConfiguration(o,"configuration.token.created_at"))},{help:s(()=>[r(" Unix Timestamp des Zeitpunktes, an dem das Token erzeugt wurde. ")]),_:1},8,["model-value"]),a(d,{title:"Ungültig in",unit:"s",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.expires_in:0,"onUpdate:modelValue":n[5]||(n[5]=o=>i.updateConfiguration(o,"configuration.token.expires_in"))},{help:s(()=>[r(" Zeitspanne in Sekunden, nach der das Token ungültig wird. ")]),_:1},8,["model-value"])])}const M=m(C,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/tesla/vehicle.vue"]]);export{M as default}; diff --git a/web/settings/assets/vehicle-ef39dee6.js b/web/settings/assets/vehicle-2f0805c0.js similarity index 97% rename from web/settings/assets/vehicle-ef39dee6.js rename to web/settings/assets/vehicle-2f0805c0.js index 0b2aebed1e..89e5430ab4 100644 --- a/web/settings/assets/vehicle-ef39dee6.js +++ b/web/settings/assets/vehicle-2f0805c0.js @@ -1 +1 @@ -import{_ as b,q as r,k as m,l as h,B as i,M as o,x as t,y as g,u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const v={name:"VehicleSocMercedesEq",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},computed:{callback_url(){return`${location.origin}/openWB/web/settings/modules/vehicles/mercedeseq/callback_vehicle.php`},login_url(){return`https://ssoalpha.dvb.corpinter.net/v1/auth?response_type=code&state=${this.vehicleId}&client_id=${this.vehicle.configuration.client_id}&redirect_uri=${this.callback_url}&scope=mb:vehicle:mbdata:evstatus%20offline_access%20openid`},input_complete(){return this.vehicle.configuration.client_id&&this.vehicle.configuration.client_secret&&this.vehicle.configuration.vin}},methods:{updateConfiguration(s,e=void 0){this.$emit("update:configuration",{value:s,object:e})},login_window(){console.debug("callback url",this.callback_url),console.debug("login url",this.login_url);var s=window.open(this.login_url,"MercedesLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");s.focus()}}},f={class:"vehicle-soc-mercedeseq"},w=u("br",null,null,-1),k=u("br",null,null,-1),y=u("br",null,null,-1);function C(s,e,a,q,x,n){const c=r("openwb-base-text-input"),d=r("openwb-base-copy-to-clipboard"),p=r("openwb-base-alert"),_=r("openwb-base-button-input");return m(),h("div",f,[i(c,{title:"Client-ID",required:"",subtype:"user","model-value":a.vehicle.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=l=>n.updateConfiguration(l,"configuration.client_id"))},{help:o(()=>[t(" Die im Developer Portal angelegte Client-ID. ")]),_:1},8,["model-value"]),i(c,{title:"Client Secret",required:"",subtype:"password","model-value":a.vehicle.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=l=>n.updateConfiguration(l,"configuration.client_secret"))},{help:o(()=>[t(" Das im Developer Portal angelegte Client Secret. ")]),_:1},8,["model-value"]),i(c,{title:"VIN",required:"","model-value":a.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=l=>n.updateConfiguration(l,"configuration.vin"))},{help:o(()=>[t(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"]),i(p,{subtype:"info"},{default:o(()=>[t(" Vor dem Anmelden bitte die Angaben speichern."),w,t(" Die Callback-URL für die Anmeldung lautet:"),k,i(d,{class:"text-info",tooltip:"URL kopieren"},{default:o(()=>[t(g(n.callback_url),1)]),_:1})]),_:1}),i(_,{title:"Anmelden",buttonText:"Bei Mercedes Anmelden",subtype:"success",disabled:!n.input_complete,onButtonClicked:n.login_window},{help:o(()=>[t(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Mercedes mit Ihren Zugangsdaten anmelden können."),y]),_:1},8,["disabled","onButtonClicked"])])}const V=b(v,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/mercedeseq/vehicle.vue"]]);export{V as default}; +import{_ as b,q as r,k as m,l as h,B as i,M as o,x as t,y as g,u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const v={name:"VehicleSocMercedesEq",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},computed:{callback_url(){return`${location.origin}/openWB/web/settings/modules/vehicles/mercedeseq/callback_vehicle.php`},login_url(){return`https://ssoalpha.dvb.corpinter.net/v1/auth?response_type=code&state=${this.vehicleId}&client_id=${this.vehicle.configuration.client_id}&redirect_uri=${this.callback_url}&scope=mb:vehicle:mbdata:evstatus%20offline_access%20openid`},input_complete(){return this.vehicle.configuration.client_id&&this.vehicle.configuration.client_secret&&this.vehicle.configuration.vin}},methods:{updateConfiguration(s,e=void 0){this.$emit("update:configuration",{value:s,object:e})},login_window(){console.debug("callback url",this.callback_url),console.debug("login url",this.login_url);var s=window.open(this.login_url,"MercedesLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");s.focus()}}},f={class:"vehicle-soc-mercedeseq"},w=u("br",null,null,-1),k=u("br",null,null,-1),y=u("br",null,null,-1);function C(s,e,a,q,x,n){const c=r("openwb-base-text-input"),d=r("openwb-base-copy-to-clipboard"),p=r("openwb-base-alert"),_=r("openwb-base-button-input");return m(),h("div",f,[i(c,{title:"Client-ID",required:"",subtype:"user","model-value":a.vehicle.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=l=>n.updateConfiguration(l,"configuration.client_id"))},{help:o(()=>[t(" Die im Developer Portal angelegte Client-ID. ")]),_:1},8,["model-value"]),i(c,{title:"Client Secret",required:"",subtype:"password","model-value":a.vehicle.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=l=>n.updateConfiguration(l,"configuration.client_secret"))},{help:o(()=>[t(" Das im Developer Portal angelegte Client Secret. ")]),_:1},8,["model-value"]),i(c,{title:"VIN",required:"","model-value":a.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=l=>n.updateConfiguration(l,"configuration.vin"))},{help:o(()=>[t(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"]),i(p,{subtype:"info"},{default:o(()=>[t(" Vor dem Anmelden bitte die Angaben speichern."),w,t(" Die Callback-URL für die Anmeldung lautet:"),k,i(d,{class:"text-info",tooltip:"URL kopieren"},{default:o(()=>[t(g(n.callback_url),1)]),_:1})]),_:1}),i(_,{title:"Anmelden",buttonText:"Bei Mercedes Anmelden",subtype:"success",disabled:!n.input_complete,onButtonClicked:n.login_window},{help:o(()=>[t(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Mercedes mit Ihren Zugangsdaten anmelden können."),y]),_:1},8,["disabled","onButtonClicked"])])}const V=b(v,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/mercedeseq/vehicle.vue"]]);export{V as default}; diff --git a/web/settings/assets/vehicle-4151f79c.js b/web/settings/assets/vehicle-531b6be7.js similarity index 95% rename from web/settings/assets/vehicle-4151f79c.js rename to web/settings/assets/vehicle-531b6be7.js index 78e344bbae..0c5b26bf9d 100644 --- a/web/settings/assets/vehicle-4151f79c.js +++ b/web/settings/assets/vehicle-531b6be7.js @@ -1 +1 @@ -import{_ as l,q as s,k as p,l as c,B as r,M as a,x as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const m={name:"VehicleSocVwid",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},v={class:"vehicle-soc-vwid"};function f(d,e,n,g,_,o){const i=s("openwb-base-text-input");return p(),c("div",v,[r(i,{title:"Benutzername",required:"",subtype:"user","model-value":n.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user_id"))},{help:a(()=>[u(" Der Benutzername für die Anmeldung an den VW-Servern. ")]),_:1},8,["model-value"]),r(i,{title:"Kennwort",required:"",subtype:"password","model-value":n.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},{help:a(()=>[u(" Das Passwort für die Anmeldung an den VW-Servern. ")]),_:1},8,["model-value"]),r(i,{title:"VIN",required:"","model-value":n.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.vin"))},{help:a(()=>[u(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const b=l(m,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/vwid/vehicle.vue"]]);export{b as default}; +import{_ as l,q as s,k as p,l as c,B as r,M as a,x as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const m={name:"VehicleSocVwid",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},v={class:"vehicle-soc-vwid"};function f(d,e,n,g,_,o){const i=s("openwb-base-text-input");return p(),c("div",v,[r(i,{title:"Benutzername",required:"",subtype:"user","model-value":n.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user_id"))},{help:a(()=>[u(" Der Benutzername für die Anmeldung an den VW-Servern. ")]),_:1},8,["model-value"]),r(i,{title:"Kennwort",required:"",subtype:"password","model-value":n.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},{help:a(()=>[u(" Das Passwort für die Anmeldung an den VW-Servern. ")]),_:1},8,["model-value"]),r(i,{title:"VIN",required:"","model-value":n.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.vin"))},{help:a(()=>[u(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const b=l(m,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/vwid/vehicle.vue"]]);export{b as default}; diff --git a/web/settings/assets/vehicle-a9ee8a77.js b/web/settings/assets/vehicle-69fc4aee.js similarity index 95% rename from web/settings/assets/vehicle-a9ee8a77.js rename to web/settings/assets/vehicle-69fc4aee.js index 152326160b..bc38384c08 100644 --- a/web/settings/assets/vehicle-a9ee8a77.js +++ b/web/settings/assets/vehicle-69fc4aee.js @@ -1 +1 @@ -import{_ as s,q as c,k as d,l as p,B as a,M as l,x as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const m={name:"VehicleSocHttp",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"vehicle-soc-http"};function v(n,e,i,_,f,o){const r=c("openwb-base-text-input");return d(),p("div",h,[a(r,{title:"SoC URL",subtype:"url",required:"","model-value":i.vehicle.configuration.soc_url,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.soc_url"))},{help:l(()=>[u(" Es wird vom Server eine Zahl (Float mit Punkt als Dezimaltrennzeichen oder Integer) erwartet, welche den aktuellen Ladestand in Prozent (0 bis 100) zurückgibt. ")]),_:1},8,["model-value"]),a(r,{title:"Reichweiten URL",subtype:"url","model-value":i.vehicle.configuration.range_url,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.range_url"))},{help:l(()=>[u(" Es wird vom Server eine Zahl (Float mit Punkt als Dezimaltrennzeichen oder Integer) erwartet, welche die aktuelle Reichweite in Kilometern darstellt. Diese Angabe ist optional. ")]),_:1},8,["model-value"])])}const w=s(m,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/http/vehicle.vue"]]);export{w as default}; +import{_ as s,q as c,k as d,l as p,B as a,M as l,x as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const m={name:"VehicleSocHttp",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"vehicle-soc-http"};function v(n,e,i,_,f,o){const r=c("openwb-base-text-input");return d(),p("div",h,[a(r,{title:"SoC URL",subtype:"url",required:"","model-value":i.vehicle.configuration.soc_url,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.soc_url"))},{help:l(()=>[u(" Es wird vom Server eine Zahl (Float mit Punkt als Dezimaltrennzeichen oder Integer) erwartet, welche den aktuellen Ladestand in Prozent (0 bis 100) zurückgibt. ")]),_:1},8,["model-value"]),a(r,{title:"Reichweiten URL",subtype:"url","model-value":i.vehicle.configuration.range_url,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.range_url"))},{help:l(()=>[u(" Es wird vom Server eine Zahl (Float mit Punkt als Dezimaltrennzeichen oder Integer) erwartet, welche die aktuelle Reichweite in Kilometern darstellt. Diese Angabe ist optional. ")]),_:1},8,["model-value"])])}const w=s(m,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/http/vehicle.vue"]]);export{w as default}; diff --git a/web/settings/assets/vehicle-86bfc22f.js b/web/settings/assets/vehicle-6cddf1ff.js similarity index 95% rename from web/settings/assets/vehicle-86bfc22f.js rename to web/settings/assets/vehicle-6cddf1ff.js index b0516b82ca..ece24bc7d1 100644 --- a/web/settings/assets/vehicle-86bfc22f.js +++ b/web/settings/assets/vehicle-6cddf1ff.js @@ -1 +1 @@ -import{_ as l,q as s,k as c,l as p,B as i,M as r,x as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const m={name:"VehicleSocSkodaconnect",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},v={class:"vehicle-soc-skodaconnect"};function f(d,e,t,g,_,o){const a=s("openwb-base-text-input");return c(),p("div",v,[i(a,{title:"Benutzername",required:"",subtype:"user","model-value":t.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.user_id"))},{help:r(()=>[u(" Der Benutzername für die Anmeldung an den SkodaConnect-Servern. ")]),_:1},8,["model-value"]),i(a,{title:"Kennwort",required:"",subtype:"password","model-value":t.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},{help:r(()=>[u(" Das Passwort für die Anmeldung an den SkodaConnect-Servern. ")]),_:1},8,["model-value"]),i(a,{title:"VIN",required:"","model-value":t.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.vin"))},{help:r(()=>[u(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const w=l(m,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/skodaconnect/vehicle.vue"]]);export{w as default}; +import{_ as l,q as s,k as c,l as p,B as i,M as r,x as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const m={name:"VehicleSocSkodaconnect",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},v={class:"vehicle-soc-skodaconnect"};function f(d,e,t,g,_,o){const a=s("openwb-base-text-input");return c(),p("div",v,[i(a,{title:"Benutzername",required:"",subtype:"user","model-value":t.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>o.updateConfiguration(n,"configuration.user_id"))},{help:r(()=>[u(" Der Benutzername für die Anmeldung an den SkodaConnect-Servern. ")]),_:1},8,["model-value"]),i(a,{title:"Kennwort",required:"",subtype:"password","model-value":t.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>o.updateConfiguration(n,"configuration.password"))},{help:r(()=>[u(" Das Passwort für die Anmeldung an den SkodaConnect-Servern. ")]),_:1},8,["model-value"]),i(a,{title:"VIN",required:"","model-value":t.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>o.updateConfiguration(n,"configuration.vin"))},{help:r(()=>[u(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const w=l(m,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/skodaconnect/vehicle.vue"]]);export{w as default}; diff --git a/web/settings/assets/vehicle-a31d5a49.js b/web/settings/assets/vehicle-92e18a5a.js similarity index 96% rename from web/settings/assets/vehicle-a31d5a49.js rename to web/settings/assets/vehicle-92e18a5a.js index baaa536336..b59ec8062d 100644 --- a/web/settings/assets/vehicle-a31d5a49.js +++ b/web/settings/assets/vehicle-92e18a5a.js @@ -1 +1 @@ -import{_ as d,q as s,k as c,l as p,B as l,M as r,x as a}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"VehicleSocTronity",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(u,e=void 0){this.$emit("update:configuration",{value:u,object:e})}}},g={class:"vehicle-soc-tronity"};function m(u,e,i,v,_,n){const o=s("openwb-base-text-input");return c(),p("div",g,[l(o,{title:"Vehicle ID",subtype:"text",required:"","model-value":i.vehicle.configuration.vehicle_id,"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t,"configuration.vehicle_id"))},{help:r(()=>[a(' Vehicle ID aus Tronity angeben. Diese ist in den "Assigned Vehicles" zu finden. ')]),_:1},8,["model-value"]),l(o,{title:"Client ID",subtype:"text",required:"","model-value":i.vehicle.configuration.client_id,"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.client_id"))},{help:r(()=>[a(' Client ID aus Tronity angeben. Diese ist in den "Application Settings" zu finden. ')]),_:1},8,["model-value"]),l(o,{title:"Client Secret",subtype:"password",required:"","model-value":i.vehicle.configuration.client_secret,"onUpdate:modelValue":e[2]||(e[2]=t=>n.updateConfiguration(t,"configuration.client_secret"))},{help:r(()=>[a(' Client Secret aus Tronity angeben. Diese ist in den "Application Settings" zu finden. Das Client Secret kann nur einmalig abgerufen werden. Ggf. neu erzeugen, womit frühere Client Secrets ungültig werden. ')]),_:1},8,["model-value"])])}const C=d(f,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/tronity/vehicle.vue"]]);export{C as default}; +import{_ as d,q as s,k as c,l as p,B as l,M as r,x as a}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"VehicleSocTronity",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(u,e=void 0){this.$emit("update:configuration",{value:u,object:e})}}},g={class:"vehicle-soc-tronity"};function m(u,e,i,v,_,n){const o=s("openwb-base-text-input");return c(),p("div",g,[l(o,{title:"Vehicle ID",subtype:"text",required:"","model-value":i.vehicle.configuration.vehicle_id,"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateConfiguration(t,"configuration.vehicle_id"))},{help:r(()=>[a(' Vehicle ID aus Tronity angeben. Diese ist in den "Assigned Vehicles" zu finden. ')]),_:1},8,["model-value"]),l(o,{title:"Client ID",subtype:"text",required:"","model-value":i.vehicle.configuration.client_id,"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateConfiguration(t,"configuration.client_id"))},{help:r(()=>[a(' Client ID aus Tronity angeben. Diese ist in den "Application Settings" zu finden. ')]),_:1},8,["model-value"]),l(o,{title:"Client Secret",subtype:"password",required:"","model-value":i.vehicle.configuration.client_secret,"onUpdate:modelValue":e[2]||(e[2]=t=>n.updateConfiguration(t,"configuration.client_secret"))},{help:r(()=>[a(' Client Secret aus Tronity angeben. Diese ist in den "Application Settings" zu finden. Das Client Secret kann nur einmalig abgerufen werden. Ggf. neu erzeugen, womit frühere Client Secrets ungültig werden. ')]),_:1},8,["model-value"])])}const C=d(f,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/tronity/vehicle.vue"]]);export{C as default}; diff --git a/web/settings/assets/vehicle-b77f08de.js b/web/settings/assets/vehicle-9ff932ad.js similarity index 92% rename from web/settings/assets/vehicle-b77f08de.js rename to web/settings/assets/vehicle-9ff932ad.js index 87f504ca54..c6e7c70f11 100644 --- a/web/settings/assets/vehicle-b77f08de.js +++ b/web/settings/assets/vehicle-9ff932ad.js @@ -1 +1 @@ -import{_ as p,q as c,k as u,l as _,B as o,M as n,x as t,u as e,y as r}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const h={name:"VehicleSocMqtt",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(i,l=void 0){this.$emit("update:configuration",{value:i,object:l})}}},m={class:"vehicle-soc-mqtt"},f=e("br",null,null,-1),b=e("br",null,null,-1),v=e("span",{class:"text-info"},"89.5",-1),g=e("br",null,null,-1),w=e("br",null,null,-1),k=e("br",null,null,-1),x=e("span",{class:"text-info"},"356.5",-1);function B(i,l,s,y,q,z){const a=c("openwb-base-copy-to-clipboard"),d=c("openwb-base-alert");return u(),_("div",m,[o(d,{subtype:"info"},{default:n(()=>[t(" Die Daten werden immer dann aktualisiert, wenn das Topic veröffentlicht wird. Die Abfrageintervalle werden nicht berücksichtigt, da das Intervall vom sendenden Client festgelegt wird. "),e("ul",null,[e("li",null,[o(a,{class:"text-info",tooltip:"Topic kopieren"},{default:n(()=>[t("openWB/set/vehicle/"+r(s.vehicleId)+"/get/soc",1)]),_:1}),f,t(" Fahrzeug-SoC mit Nachkommastellen (Float) oder Ganzzahl"),b,t(" Beispiel: "),v]),e("li",null,[o(a,{class:"text-info",tooltip:"Topic kopieren"},{default:n(()=>[t("openWB/set/vehicle/"+r(s.vehicleId)+"/get/range",1)]),_:1}),g,t(" Reichweite des Fahrzeugs in km mit Nachkommastellen (Float) oder Ganzzahl"),w,t(" Diese Info ist optional."),k,t(" Beispiel: "),x])])]),_:1})])}const D=p(h,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/mqtt/vehicle.vue"]]);export{D as default}; +import{_ as p,q as c,k as u,l as _,B as o,M as n,x as t,u as e,y as r}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const h={name:"VehicleSocMqtt",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(i,l=void 0){this.$emit("update:configuration",{value:i,object:l})}}},m={class:"vehicle-soc-mqtt"},f=e("br",null,null,-1),b=e("br",null,null,-1),v=e("span",{class:"text-info"},"89.5",-1),g=e("br",null,null,-1),w=e("br",null,null,-1),k=e("br",null,null,-1),x=e("span",{class:"text-info"},"356.5",-1);function B(i,l,s,y,q,z){const a=c("openwb-base-copy-to-clipboard"),d=c("openwb-base-alert");return u(),_("div",m,[o(d,{subtype:"info"},{default:n(()=>[t(" Die Daten werden immer dann aktualisiert, wenn das Topic veröffentlicht wird. Die Abfrageintervalle werden nicht berücksichtigt, da das Intervall vom sendenden Client festgelegt wird. "),e("ul",null,[e("li",null,[o(a,{class:"text-info",tooltip:"Topic kopieren"},{default:n(()=>[t("openWB/set/vehicle/"+r(s.vehicleId)+"/get/soc",1)]),_:1}),f,t(" Fahrzeug-SoC mit Nachkommastellen (Float) oder Ganzzahl"),b,t(" Beispiel: "),v]),e("li",null,[o(a,{class:"text-info",tooltip:"Topic kopieren"},{default:n(()=>[t("openWB/set/vehicle/"+r(s.vehicleId)+"/get/range",1)]),_:1}),g,t(" Reichweite des Fahrzeugs in km mit Nachkommastellen (Float) oder Ganzzahl"),w,t(" Diese Info ist optional."),k,t(" Beispiel: "),x])])]),_:1})])}const D=p(h,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/mqtt/vehicle.vue"]]);export{D as default}; diff --git a/web/settings/assets/vehicle-e4d616a2.js b/web/settings/assets/vehicle-b4e137a0.js similarity index 93% rename from web/settings/assets/vehicle-e4d616a2.js rename to web/settings/assets/vehicle-b4e137a0.js index bd50f8f95a..653cf68853 100644 --- a/web/settings/assets/vehicle-e4d616a2.js +++ b/web/settings/assets/vehicle-b4e137a0.js @@ -1 +1 @@ -import{_ as a,q as s,k as r,l as i,B as o,M as d,x as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const c={name:"VehicleSocManual",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},l={class:"vehicle-soc-tesla"};function p(e,t,h,m,_,f){const n=s("openwb-base-alert");return r(),i("div",l,[o(n,{subtype:"info"},{default:d(()=>[u(' Beim Anstecken des Fahrzeugs muss der aktuelle SoC über die Hauptseite angegeben werden. Anhand des Zählers im Ladepunkt wird dann der aktuelle SoC errechnet. Ausschlaggebend für die Qualität dieses Moduls sind die beiden Einstellungen "Kapazität der Batterie" in dem Fahrzeug-Profil und "Wirkungsgrad der Ladeelektronik". ')]),_:1})])}const v=a(c,[["render",p],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/manual/vehicle.vue"]]);export{v as default}; +import{_ as a,q as s,k as r,l as i,B as o,M as d,x as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const c={name:"VehicleSocManual",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},l={class:"vehicle-soc-tesla"};function p(e,t,h,m,_,f){const n=s("openwb-base-alert");return r(),i("div",l,[o(n,{subtype:"info"},{default:d(()=>[u(' Beim Anstecken des Fahrzeugs muss der aktuelle SoC über die Hauptseite angegeben werden. Anhand des Zählers im Ladepunkt wird dann der aktuelle SoC errechnet. Ausschlaggebend für die Qualität dieses Moduls sind die beiden Einstellungen "Kapazität der Batterie" in dem Fahrzeug-Profil und "Wirkungsgrad der Ladeelektronik". ')]),_:1})])}const v=a(c,[["render",p],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/manual/vehicle.vue"]]);export{v as default}; diff --git a/web/settings/assets/vehicle-0707afd6.js b/web/settings/assets/vehicle-dd10f333.js similarity index 95% rename from web/settings/assets/vehicle-0707afd6.js rename to web/settings/assets/vehicle-dd10f333.js index 176d9f168b..9a2e7db84d 100644 --- a/web/settings/assets/vehicle-0707afd6.js +++ b/web/settings/assets/vehicle-dd10f333.js @@ -1 +1 @@ -import{_ as l,q as s,k as m,l as p,B as r,M as a,x as u}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const c={name:"VehicleSocBmw",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},v={class:"vehicle-soc-bmw"};function f(d,e,n,g,_,o){const i=s("openwb-base-text-input");return m(),p("div",v,[r(i,{title:"Benutzername",required:"",subtype:"user","model-value":n.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user_id"))},{help:a(()=>[u(" Der Benutzername für die Anmeldung an den BMW-Servern. ")]),_:1},8,["model-value"]),r(i,{title:"Kennwort",required:"",subtype:"password","model-value":n.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},{help:a(()=>[u(" Das Passwort für die Anmeldung an den BMW-Servern. ")]),_:1},8,["model-value"]),r(i,{title:"VIN",required:"","model-value":n.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.vin"))},{help:a(()=>[u(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const w=l(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/bmw/vehicle.vue"]]);export{w as default}; +import{_ as l,q as s,k as m,l as p,B as r,M as a,x as u}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const c={name:"VehicleSocBmw",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},v={class:"vehicle-soc-bmw"};function f(d,e,n,g,_,o){const i=s("openwb-base-text-input");return m(),p("div",v,[r(i,{title:"Benutzername",required:"",subtype:"user","model-value":n.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user_id"))},{help:a(()=>[u(" Der Benutzername für die Anmeldung an den BMW-Servern. ")]),_:1},8,["model-value"]),r(i,{title:"Kennwort",required:"",subtype:"password","model-value":n.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},{help:a(()=>[u(" Das Passwort für die Anmeldung an den BMW-Servern. ")]),_:1},8,["model-value"]),r(i,{title:"VIN",required:"","model-value":n.vehicle.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.vin"))},{help:a(()=>[u(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const w=l(c,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/bmw/vehicle.vue"]]);export{w as default}; diff --git a/web/settings/assets/vehicle-0ae9100e.js b/web/settings/assets/vehicle-f97de3a1.js similarity index 89% rename from web/settings/assets/vehicle-0ae9100e.js rename to web/settings/assets/vehicle-f97de3a1.js index 0d57fec9fa..58233d618f 100644 --- a/web/settings/assets/vehicle-0ae9100e.js +++ b/web/settings/assets/vehicle-f97de3a1.js @@ -1 +1 @@ -import{_ as d,q as l,k as c,l as s,B as i}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const p={name:"VehicleSocEvnotify",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(u,e=void 0){this.$emit("update:configuration",{value:u,object:e})}}},m={class:"vehicle-soc-evnotify"};function f(u,e,n,v,_,o){const r=l("openwb-base-number-input"),a=l("openwb-base-text-input");return c(),s("div",m,[i(r,{title:"ID",required:"",min:0,"model-value":n.vehicle.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.id"))},null,8,["model-value"]),i(a,{title:"AKey",required:"","model-value":n.vehicle.configuration.akey,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.akey"))},null,8,["model-value"]),i(a,{title:"Token",required:"","model-value":n.vehicle.configuration.token,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.token"))},null,8,["model-value"])])}const h=d(p,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/evnotify/vehicle.vue"]]);export{h as default}; +import{_ as d,q as l,k as c,l as s,B as i}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const p={name:"VehicleSocEvnotify",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(u,e=void 0){this.$emit("update:configuration",{value:u,object:e})}}},m={class:"vehicle-soc-evnotify"};function f(u,e,n,v,_,o){const r=l("openwb-base-number-input"),a=l("openwb-base-text-input");return c(),s("div",m,[i(r,{title:"ID",required:"",min:0,"model-value":n.vehicle.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.id"))},null,8,["model-value"]),i(a,{title:"AKey",required:"","model-value":n.vehicle.configuration.akey,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.akey"))},null,8,["model-value"]),i(a,{title:"Token",required:"","model-value":n.vehicle.configuration.token,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.token"))},null,8,["model-value"])])}const h=d(p,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/evnotify/vehicle.vue"]]);export{h as default}; diff --git a/web/settings/assets/vehicle-0b361e30.js b/web/settings/assets/vehicle-fd3076cf.js similarity index 97% rename from web/settings/assets/vehicle-0b361e30.js rename to web/settings/assets/vehicle-fd3076cf.js index 0e91b8f4ee..67373dc82c 100644 --- a/web/settings/assets/vehicle-0b361e30.js +++ b/web/settings/assets/vehicle-fd3076cf.js @@ -1 +1 @@ -import{_ as p,q as r,k as m,l as v,B as n,M as a,x as l}from"./vendor-b03da118.js";import"./vendor-sortablejs-595f2e06.js";const f={name:"VehicleSocPSA",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},g={class:"vehicle-soc-psa"};function _(d,e,i,b,h,o){const u=r("openwb-base-text-input"),s=r("openwb-base-select-input"),c=r("openwb-base-card");return m(),v("div",g,[n(u,{title:"Benutzername",required:"",subtype:"user","model-value":i.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user_id"))},{help:a(()=>[l(" Der Benutzername für die Anmeldung an den PSA-Servern. ")]),_:1},8,["model-value"]),n(u,{title:"Kennwort",required:"",subtype:"password","model-value":i.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},{help:a(()=>[l(" Das Passwort für die Anmeldung an den PSA-Servern. ")]),_:1},8,["model-value"]),n(s,{title:"Marke",required:"",notSelected:"Bitte auswählen",options:[{value:"Peugeot",text:"Peugeot"},{value:"Citroen",text:"Citroen"},{value:"DS",text:"DS"},{value:"Opel",text:"Opel"},{value:"Vauxhall",text:"Vauxhall"}],"model-value":i.vehicle.configuration.manufacturer,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.manufacturer"))},{help:a(()=>[l(" Marke aus des Fahrzeugs.")]),_:1},8,["model-value"]),n(u,{title:"VIN","model-value":i.vehicle.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=t=>o.updateConfiguration(t,"configuration.vin"))},{help:a(()=>[l(" Die Fahrgestellnummer des Fahrzeugs. Nur notwendig falls mehrere Fahrzeuge im selben Account vorhanden sind. ")]),_:1},8,["model-value"]),n(c,{title:"Erweiterte Einstellungen",subtype:"info",collapsible:!0,collapsed:!0},{default:a(()=>[n(u,{title:"Client ID",subtype:"user","model-value":i.vehicle.configuration.client_id,"onUpdate:modelValue":e[4]||(e[4]=t=>o.updateConfiguration(t,"configuration.client_id"))},{help:a(()=>[l(" Die Client-ID für die Anmeldung an den PSA-Servern, muss normalerweise nicht angegeben werden. ")]),_:1},8,["model-value"]),n(u,{title:"Client Secret",subtype:"password","model-value":i.vehicle.configuration.client_secret,"onUpdate:modelValue":e[5]||(e[5]=t=>o.updateConfiguration(t,"configuration.client_secret"))},{help:a(()=>[l(" Das Client-Secret für die Anmeldung an den PSA-Servern, muss normalerweise nicht angegeben werden. ")]),_:1},8,["model-value"])]),_:1})])}const C=p(f,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/psa/vehicle.vue"]]);export{C as default}; +import{_ as p,q as r,k as m,l as v,B as n,M as a,x as l}from"./vendor-72da2ec6.js";import"./vendor-sortablejs-bc651bf7.js";const f={name:"VehicleSocPSA",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},g={class:"vehicle-soc-psa"};function _(d,e,i,b,h,o){const u=r("openwb-base-text-input"),s=r("openwb-base-select-input"),c=r("openwb-base-card");return m(),v("div",g,[n(u,{title:"Benutzername",required:"",subtype:"user","model-value":i.vehicle.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=t=>o.updateConfiguration(t,"configuration.user_id"))},{help:a(()=>[l(" Der Benutzername für die Anmeldung an den PSA-Servern. ")]),_:1},8,["model-value"]),n(u,{title:"Kennwort",required:"",subtype:"password","model-value":i.vehicle.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>o.updateConfiguration(t,"configuration.password"))},{help:a(()=>[l(" Das Passwort für die Anmeldung an den PSA-Servern. ")]),_:1},8,["model-value"]),n(s,{title:"Marke",required:"",notSelected:"Bitte auswählen",options:[{value:"Peugeot",text:"Peugeot"},{value:"Citroen",text:"Citroen"},{value:"DS",text:"DS"},{value:"Opel",text:"Opel"},{value:"Vauxhall",text:"Vauxhall"}],"model-value":i.vehicle.configuration.manufacturer,"onUpdate:modelValue":e[2]||(e[2]=t=>o.updateConfiguration(t,"configuration.manufacturer"))},{help:a(()=>[l(" Marke aus des Fahrzeugs.")]),_:1},8,["model-value"]),n(u,{title:"VIN","model-value":i.vehicle.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=t=>o.updateConfiguration(t,"configuration.vin"))},{help:a(()=>[l(" Die Fahrgestellnummer des Fahrzeugs. Nur notwendig falls mehrere Fahrzeuge im selben Account vorhanden sind. ")]),_:1},8,["model-value"]),n(c,{title:"Erweiterte Einstellungen",subtype:"info",collapsible:!0,collapsed:!0},{default:a(()=>[n(u,{title:"Client ID",subtype:"user","model-value":i.vehicle.configuration.client_id,"onUpdate:modelValue":e[4]||(e[4]=t=>o.updateConfiguration(t,"configuration.client_id"))},{help:a(()=>[l(" Die Client-ID für die Anmeldung an den PSA-Servern, muss normalerweise nicht angegeben werden. ")]),_:1},8,["model-value"]),n(u,{title:"Client Secret",subtype:"password","model-value":i.vehicle.configuration.client_secret,"onUpdate:modelValue":e[5]||(e[5]=t=>o.updateConfiguration(t,"configuration.client_secret"))},{help:a(()=>[l(" Das Client-Secret für die Anmeldung an den PSA-Servern, muss normalerweise nicht angegeben werden. ")]),_:1},8,["model-value"])]),_:1})])}const C=p(f,[["render",_],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/psa/vehicle.vue"]]);export{C as default}; diff --git a/web/settings/assets/vendor-72da2ec6.js b/web/settings/assets/vendor-72da2ec6.js new file mode 100644 index 0000000000..374121162e --- /dev/null +++ b/web/settings/assets/vendor-72da2ec6.js @@ -0,0 +1,106 @@ +import{r as fE}from"./vendor-sortablejs-bc651bf7.js";var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Do(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var ke={},dh={};dh.byteLength=hE;dh.toByteArray=dE;dh.fromByteArray=gE;var en=[],li=[],lE=typeof Uint8Array<"u"?Uint8Array:Array,Lc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var $a=0,uE=Lc.length;$a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function hE(e){var t=u2(e),r=t[0],i=t[1];return(r+i)*3/4-i}function cE(e,t,r){return(t+r)*3/4-r}function dE(e){var t,r=u2(e),i=r[0],a=r[1],n=new lE(cE(e,i,a)),l=0,c=a>0?i-4:i,d;for(d=0;d>16&255,n[l++]=t>>8&255,n[l++]=t&255;return a===2&&(t=li[e.charCodeAt(d)]<<2|li[e.charCodeAt(d+1)]>>4,n[l++]=t&255),a===1&&(t=li[e.charCodeAt(d)]<<10|li[e.charCodeAt(d+1)]<<4|li[e.charCodeAt(d+2)]>>2,n[l++]=t>>8&255,n[l++]=t&255),n}function pE(e){return en[e>>18&63]+en[e>>12&63]+en[e>>6&63]+en[e&63]}function vE(e,t,r){for(var i,a=[],n=t;nc?c:l+n));return i===1?(t=e[r-1],a.push(en[t>>2]+en[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],a.push(en[t>>10]+en[t>>4&63]+en[t<<2&63]+"=")),a.join("")}var cv={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */cv.read=function(e,t,r,i,a){var n,l,c=a*8-i-1,d=(1<>1,M=-7,S=r?a-1:0,R=r?-1:1,C=e[t+S];for(S+=R,n=C&(1<<-M)-1,C>>=-M,M+=c;M>0;n=n*256+e[t+S],S+=R,M-=8);for(l=n&(1<<-M)-1,n>>=-M,M+=i;M>0;l=l*256+e[t+S],S+=R,M-=8);if(n===0)n=1-m;else{if(n===d)return l?NaN:(C?-1:1)*(1/0);l=l+Math.pow(2,i),n=n-m}return(C?-1:1)*l*Math.pow(2,n-i)};cv.write=function(e,t,r,i,a,n){var l,c,d,m=n*8-a-1,M=(1<>1,R=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:n-1,P=i?1:-1,$=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,l=M):(l=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-l))<1&&(l--,d*=2),l+S>=1?t+=R/d:t+=R*Math.pow(2,1-S),t*d>=2&&(l++,d/=2),l+S>=M?(c=0,l=M):l+S>=1?(c=(t*d-1)*Math.pow(2,a),l=l+S):(c=t*Math.pow(2,S-1)*Math.pow(2,a),l=0));a>=8;e[r+C]=c&255,C+=P,c/=256,a-=8);for(l=l<0;e[r+C]=l&255,C+=P,l/=256,m-=8);e[r+C-P]|=$*128};/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */(function(e){var t=dh,r=cv,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=B,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=n(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function n(){try{var j=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(j,k),j.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function l(j){if(j>a)throw new RangeError('The value "'+j+'" is invalid for option "size"');var k=new Uint8Array(j);return Object.setPrototypeOf(k,c.prototype),k}function c(j,k,U){if(typeof j=="number"){if(typeof k=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(j)}return d(j,k,U)}c.poolSize=8192;function d(j,k,U){if(typeof j=="string")return R(j,k);if(ArrayBuffer.isView(j))return P(j);if(j==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j);if(O(j,ArrayBuffer)||j&&O(j.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(j,SharedArrayBuffer)||j&&O(j.buffer,SharedArrayBuffer)))return $(j,k,U);if(typeof j=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var z=j.valueOf&&j.valueOf();if(z!=null&&z!==j)return c.from(z,k,U);var ae=N(j);if(ae)return ae;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof j[Symbol.toPrimitive]=="function")return c.from(j[Symbol.toPrimitive]("string"),k,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j)}c.from=function(j,k,U){return d(j,k,U)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function m(j){if(typeof j!="number")throw new TypeError('"size" argument must be of type number');if(j<0)throw new RangeError('The value "'+j+'" is invalid for option "size"')}function M(j,k,U){return m(j),j<=0?l(j):k!==void 0?typeof U=="string"?l(j).fill(k,U):l(j).fill(k):l(j)}c.alloc=function(j,k,U){return M(j,k,U)};function S(j){return m(j),l(j<0?0:I(j)|0)}c.allocUnsafe=function(j){return S(j)},c.allocUnsafeSlow=function(j){return S(j)};function R(j,k){if((typeof k!="string"||k==="")&&(k="utf8"),!c.isEncoding(k))throw new TypeError("Unknown encoding: "+k);var U=F(j,k)|0,z=l(U),ae=z.write(j,k);return ae!==U&&(z=z.slice(0,ae)),z}function C(j){for(var k=j.length<0?0:I(j.length)|0,U=l(k),z=0;z=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return j|0}function B(j){return+j!=j&&(j=0),c.alloc(+j)}c.isBuffer=function(k){return k!=null&&k._isBuffer===!0&&k!==c.prototype},c.compare=function(k,U){if(O(k,Uint8Array)&&(k=c.from(k,k.offset,k.byteLength)),O(U,Uint8Array)&&(U=c.from(U,U.offset,U.byteLength)),!c.isBuffer(k)||!c.isBuffer(U))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(k===U)return 0;for(var z=k.length,ae=U.length,te=0,ne=Math.min(z,ae);teae.length?c.from(ne).copy(ae,te):Uint8Array.prototype.set.call(ae,ne,te);else if(c.isBuffer(ne))ne.copy(ae,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=ne.length}return ae};function F(j,k){if(c.isBuffer(j))return j.length;if(ArrayBuffer.isView(j)||O(j,ArrayBuffer))return j.byteLength;if(typeof j!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof j);var U=j.length,z=arguments.length>2&&arguments[2]===!0;if(!z&&U===0)return 0;for(var ae=!1;;)switch(k){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return H(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U*2;case"hex":return U>>>1;case"base64":return b(j).length;default:if(ae)return z?-1:H(j).length;k=(""+k).toLowerCase(),ae=!0}}c.byteLength=F;function L(j,k,U){var z=!1;if((k===void 0||k<0)&&(k=0),k>this.length||((U===void 0||U>this.length)&&(U=this.length),U<=0)||(U>>>=0,k>>>=0,U<=k))return"";for(j||(j="utf8");;)switch(j){case"hex":return g(this,k,U);case"utf8":case"utf-8":return u(this,k,U);case"ascii":return w(this,k,U);case"latin1":case"binary":return x(this,k,U);case"base64":return f(this,k,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s(this,k,U);default:if(z)throw new TypeError("Unknown encoding: "+j);j=(j+"").toLowerCase(),z=!0}}c.prototype._isBuffer=!0;function K(j,k,U){var z=j[k];j[k]=j[U],j[U]=z}c.prototype.swap16=function(){var k=this.length;if(k%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var U=0;UU&&(k+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(k,U,z,ae,te){if(O(k,Uint8Array)&&(k=c.from(k,k.offset,k.byteLength)),!c.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(U===void 0&&(U=0),z===void 0&&(z=k?k.length:0),ae===void 0&&(ae=0),te===void 0&&(te=this.length),U<0||z>k.length||ae<0||te>this.length)throw new RangeError("out of range index");if(ae>=te&&U>=z)return 0;if(ae>=te)return-1;if(U>=z)return 1;if(U>>>=0,z>>>=0,ae>>>=0,te>>>=0,this===k)return 0;for(var ne=te-ae,xe=z-U,Q=Math.min(ne,xe),fe=this.slice(ae,te),le=k.slice(U,z),he=0;he2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),U=+U,q(U)&&(U=ae?0:j.length-1),U<0&&(U=j.length+U),U>=j.length){if(ae)return-1;U=j.length-1}else if(U<0)if(ae)U=0;else return-1;if(typeof k=="string"&&(k=c.from(k,z)),c.isBuffer(k))return k.length===0?-1:re(j,k,U,z,ae);if(typeof k=="number")return k=k&255,typeof Uint8Array.prototype.indexOf=="function"?ae?Uint8Array.prototype.indexOf.call(j,k,U):Uint8Array.prototype.lastIndexOf.call(j,k,U):re(j,[k],U,z,ae);throw new TypeError("val must be string, number or Buffer")}function re(j,k,U,z,ae){var te=1,ne=j.length,xe=k.length;if(z!==void 0&&(z=String(z).toLowerCase(),z==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le")){if(j.length<2||k.length<2)return-1;te=2,ne/=2,xe/=2,U/=2}function Q(pe,oe){return te===1?pe[oe]:pe.readUInt16BE(oe*te)}var fe;if(ae){var le=-1;for(fe=U;fene&&(U=ne-xe),fe=U;fe>=0;fe--){for(var he=!0,de=0;deae&&(z=ae)):z=ae;var te=k.length;z>te/2&&(z=te/2);for(var ne=0;ne>>0,isFinite(z)?(z=z>>>0,ae===void 0&&(ae="utf8")):(ae=z,z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var te=this.length-U;if((z===void 0||z>te)&&(z=te),k.length>0&&(z<0||U<0)||U>this.length)throw new RangeError("Attempt to write outside buffer bounds");ae||(ae="utf8");for(var ne=!1;;)switch(ae){case"hex":return J(this,k,U,z);case"utf8":case"utf-8":return V(this,k,U,z);case"ascii":case"latin1":case"binary":return ce(this,k,U,z);case"base64":return _(this,k,U,z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o(this,k,U,z);default:if(ne)throw new TypeError("Unknown encoding: "+ae);ae=(""+ae).toLowerCase(),ne=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function f(j,k,U){return k===0&&U===j.length?t.fromByteArray(j):t.fromByteArray(j.slice(k,U))}function u(j,k,U){U=Math.min(j.length,U);for(var z=[],ae=k;ae239?4:te>223?3:te>191?2:1;if(ae+xe<=U){var Q,fe,le,he;switch(xe){case 1:te<128&&(ne=te);break;case 2:Q=j[ae+1],(Q&192)===128&&(he=(te&31)<<6|Q&63,he>127&&(ne=he));break;case 3:Q=j[ae+1],fe=j[ae+2],(Q&192)===128&&(fe&192)===128&&(he=(te&15)<<12|(Q&63)<<6|fe&63,he>2047&&(he<55296||he>57343)&&(ne=he));break;case 4:Q=j[ae+1],fe=j[ae+2],le=j[ae+3],(Q&192)===128&&(fe&192)===128&&(le&192)===128&&(he=(te&15)<<18|(Q&63)<<12|(fe&63)<<6|le&63,he>65535&&he<1114112&&(ne=he))}}ne===null?(ne=65533,xe=1):ne>65535&&(ne-=65536,z.push(ne>>>10&1023|55296),ne=56320|ne&1023),z.push(ne),ae+=xe}return p(z)}var h=4096;function p(j){var k=j.length;if(k<=h)return String.fromCharCode.apply(String,j);for(var U="",z=0;zz)&&(U=z);for(var ae="",te=k;tez&&(k=z),U<0?(U+=z,U<0&&(U=0)):U>z&&(U=z),UU)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(k,U,z){k=k>>>0,U=U>>>0,z||v(k,U,this.length);for(var ae=this[k],te=1,ne=0;++ne>>0,U=U>>>0,z||v(k,U,this.length);for(var ae=this[k+--U],te=1;U>0&&(te*=256);)ae+=this[k+--U]*te;return ae},c.prototype.readUint8=c.prototype.readUInt8=function(k,U){return k=k>>>0,U||v(k,1,this.length),this[k]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(k,U){return k=k>>>0,U||v(k,2,this.length),this[k]|this[k+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(k,U){return k=k>>>0,U||v(k,2,this.length),this[k]<<8|this[k+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(k,U){return k=k>>>0,U||v(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+this[k+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(k,U){return k=k>>>0,U||v(k,4,this.length),this[k]*16777216+(this[k+1]<<16|this[k+2]<<8|this[k+3])},c.prototype.readIntLE=function(k,U,z){k=k>>>0,U=U>>>0,z||v(k,U,this.length);for(var ae=this[k],te=1,ne=0;++ne=te&&(ae-=Math.pow(2,8*U)),ae},c.prototype.readIntBE=function(k,U,z){k=k>>>0,U=U>>>0,z||v(k,U,this.length);for(var ae=U,te=1,ne=this[k+--ae];ae>0&&(te*=256);)ne+=this[k+--ae]*te;return te*=128,ne>=te&&(ne-=Math.pow(2,8*U)),ne},c.prototype.readInt8=function(k,U){return k=k>>>0,U||v(k,1,this.length),this[k]&128?(255-this[k]+1)*-1:this[k]},c.prototype.readInt16LE=function(k,U){k=k>>>0,U||v(k,2,this.length);var z=this[k]|this[k+1]<<8;return z&32768?z|4294901760:z},c.prototype.readInt16BE=function(k,U){k=k>>>0,U||v(k,2,this.length);var z=this[k+1]|this[k]<<8;return z&32768?z|4294901760:z},c.prototype.readInt32LE=function(k,U){return k=k>>>0,U||v(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},c.prototype.readInt32BE=function(k,U){return k=k>>>0,U||v(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},c.prototype.readFloatLE=function(k,U){return k=k>>>0,U||v(k,4,this.length),r.read(this,k,!0,23,4)},c.prototype.readFloatBE=function(k,U){return k=k>>>0,U||v(k,4,this.length),r.read(this,k,!1,23,4)},c.prototype.readDoubleLE=function(k,U){return k=k>>>0,U||v(k,8,this.length),r.read(this,k,!0,52,8)},c.prototype.readDoubleBE=function(k,U){return k=k>>>0,U||v(k,8,this.length),r.read(this,k,!1,52,8)};function T(j,k,U,z,ae,te){if(!c.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>ae||kj.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(k,U,z,ae){if(k=+k,U=U>>>0,z=z>>>0,!ae){var te=Math.pow(2,8*z)-1;T(this,k,U,z,te,0)}var ne=1,xe=0;for(this[U]=k&255;++xe>>0,z=z>>>0,!ae){var te=Math.pow(2,8*z)-1;T(this,k,U,z,te,0)}var ne=z-1,xe=1;for(this[U+ne]=k&255;--ne>=0&&(xe*=256);)this[U+ne]=k/xe&255;return U+z},c.prototype.writeUint8=c.prototype.writeUInt8=function(k,U,z){return k=+k,U=U>>>0,z||T(this,k,U,1,255,0),this[U]=k&255,U+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(k,U,z){return k=+k,U=U>>>0,z||T(this,k,U,2,65535,0),this[U]=k&255,this[U+1]=k>>>8,U+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(k,U,z){return k=+k,U=U>>>0,z||T(this,k,U,2,65535,0),this[U]=k>>>8,this[U+1]=k&255,U+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(k,U,z){return k=+k,U=U>>>0,z||T(this,k,U,4,4294967295,0),this[U+3]=k>>>24,this[U+2]=k>>>16,this[U+1]=k>>>8,this[U]=k&255,U+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(k,U,z){return k=+k,U=U>>>0,z||T(this,k,U,4,4294967295,0),this[U]=k>>>24,this[U+1]=k>>>16,this[U+2]=k>>>8,this[U+3]=k&255,U+4},c.prototype.writeIntLE=function(k,U,z,ae){if(k=+k,U=U>>>0,!ae){var te=Math.pow(2,8*z-1);T(this,k,U,z,te-1,-te)}var ne=0,xe=1,Q=0;for(this[U]=k&255;++ne>0)-Q&255;return U+z},c.prototype.writeIntBE=function(k,U,z,ae){if(k=+k,U=U>>>0,!ae){var te=Math.pow(2,8*z-1);T(this,k,U,z,te-1,-te)}var ne=z-1,xe=1,Q=0;for(this[U+ne]=k&255;--ne>=0&&(xe*=256);)k<0&&Q===0&&this[U+ne+1]!==0&&(Q=1),this[U+ne]=(k/xe>>0)-Q&255;return U+z},c.prototype.writeInt8=function(k,U,z){return k=+k,U=U>>>0,z||T(this,k,U,1,127,-128),k<0&&(k=255+k+1),this[U]=k&255,U+1},c.prototype.writeInt16LE=function(k,U,z){return k=+k,U=U>>>0,z||T(this,k,U,2,32767,-32768),this[U]=k&255,this[U+1]=k>>>8,U+2},c.prototype.writeInt16BE=function(k,U,z){return k=+k,U=U>>>0,z||T(this,k,U,2,32767,-32768),this[U]=k>>>8,this[U+1]=k&255,U+2},c.prototype.writeInt32LE=function(k,U,z){return k=+k,U=U>>>0,z||T(this,k,U,4,2147483647,-2147483648),this[U]=k&255,this[U+1]=k>>>8,this[U+2]=k>>>16,this[U+3]=k>>>24,U+4},c.prototype.writeInt32BE=function(k,U,z){return k=+k,U=U>>>0,z||T(this,k,U,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[U]=k>>>24,this[U+1]=k>>>16,this[U+2]=k>>>8,this[U+3]=k&255,U+4};function D(j,k,U,z,ae,te){if(U+z>j.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function G(j,k,U,z,ae){return k=+k,U=U>>>0,ae||D(j,k,U,4),r.write(j,k,U,z,23,4),U+4}c.prototype.writeFloatLE=function(k,U,z){return G(this,k,U,!0,z)},c.prototype.writeFloatBE=function(k,U,z){return G(this,k,U,!1,z)};function ee(j,k,U,z,ae){return k=+k,U=U>>>0,ae||D(j,k,U,8),r.write(j,k,U,z,52,8),U+8}c.prototype.writeDoubleLE=function(k,U,z){return ee(this,k,U,!0,z)},c.prototype.writeDoubleBE=function(k,U,z){return ee(this,k,U,!1,z)},c.prototype.copy=function(k,U,z,ae){if(!c.isBuffer(k))throw new TypeError("argument should be a Buffer");if(z||(z=0),!ae&&ae!==0&&(ae=this.length),U>=k.length&&(U=k.length),U||(U=0),ae>0&&ae=this.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("sourceEnd out of bounds");ae>this.length&&(ae=this.length),k.length-U>>0,z=z===void 0?this.length:z>>>0,k||(k=0);var ne;if(typeof k=="number")for(ne=U;ne55295&&U<57344){if(!ae){if(U>56319){(k-=3)>-1&&te.push(239,191,189);continue}else if(ne+1===z){(k-=3)>-1&&te.push(239,191,189);continue}ae=U;continue}if(U<56320){(k-=3)>-1&&te.push(239,191,189),ae=U;continue}U=(ae-55296<<10|U-56320)+65536}else ae&&(k-=3)>-1&&te.push(239,191,189);if(ae=null,U<128){if((k-=1)<0)break;te.push(U)}else if(U<2048){if((k-=2)<0)break;te.push(U>>6|192,U&63|128)}else if(U<65536){if((k-=3)<0)break;te.push(U>>12|224,U>>6&63|128,U&63|128)}else if(U<1114112){if((k-=4)<0)break;te.push(U>>18|240,U>>12&63|128,U>>6&63|128,U&63|128)}else throw new Error("Invalid code point")}return te}function W(j){for(var k=[],U=0;U>8,ae=U%256,te.push(ae),te.push(z);return te}function b(j){return t.toByteArray(E(j))}function y(j,k,U,z){for(var ae=0;ae=k.length||ae>=j.length);++ae)k[ae+U]=j[ae];return ae}function O(j,k){return j instanceof k||j!=null&&j.constructor!=null&&j.constructor.name!=null&&j.constructor.name===k.name}function q(j){return j!==j}var X=function(){for(var j="0123456789abcdef",k=new Array(256),U=0;U<16;++U)for(var z=U*16,ae=0;ae<16;++ae)k[z+ae]=j[U]+j[ae];return k}()})(ke);var h2={exports:{}},er=h2.exports={},Xi,Ji;function k0(){throw new Error("setTimeout has not been defined")}function $0(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Xi=setTimeout:Xi=k0}catch{Xi=k0}try{typeof clearTimeout=="function"?Ji=clearTimeout:Ji=$0}catch{Ji=$0}})();function c2(e){if(Xi===setTimeout)return setTimeout(e,0);if((Xi===k0||!Xi)&&setTimeout)return Xi=setTimeout,setTimeout(e,0);try{return Xi(e,0)}catch{try{return Xi.call(null,e,0)}catch{return Xi.call(this,e,0)}}}function mE(e){if(Ji===clearTimeout)return clearTimeout(e);if((Ji===$0||!Ji)&&clearTimeout)return Ji=clearTimeout,clearTimeout(e);try{return Ji(e)}catch{try{return Ji.call(null,e)}catch{return Ji.call(this,e)}}}var Nn=[],Xa=!1,Qo,lu=-1;function yE(){!Xa||!Qo||(Xa=!1,Qo.length?Nn=Qo.concat(Nn):lu=-1,Nn.length&&d2())}function d2(){if(!Xa){var e=c2(yE);Xa=!0;for(var t=Nn.length;t;){for(Qo=Nn,Nn=[];++lu1)for(var r=1;rr.has(i.toLowerCase()):i=>r.has(i)}const Lt=Object.freeze({}),Ja=Object.freeze([]),gr=()=>{},v2=()=>!1,Ns=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Pu=e=>e.startsWith("onUpdate:"),$t=Object.assign,dv=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},_E=Object.prototype.hasOwnProperty,wt=(e,t)=>_E.call(e,t),ze=Array.isArray,oa=e=>ks(e)==="[object Map]",Sa=e=>ks(e)==="[object Set]",Sm=e=>ks(e)==="[object Date]",ME=e=>ks(e)==="[object RegExp]",Qe=e=>typeof e=="function",Ut=e=>typeof e=="string",Eo=e=>typeof e=="symbol",Rt=e=>e!==null&&typeof e=="object",ph=e=>(Rt(e)||Qe(e))&&Qe(e.then)&&Qe(e.catch),g2=Object.prototype.toString,ks=e=>g2.call(e),pv=e=>ks(e).slice(8,-1),m2=e=>ks(e)==="[object Object]",vv=e=>Ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,If=ei(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),SE=ei("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),vh=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},xE=/-(\w)/g,$r=vh(e=>e.replace(xE,(t,r)=>r?r.toUpperCase():"")),EE=/\B([A-Z])/g,Rr=vh(e=>e.replace(EE,"-$1").toLowerCase()),Ro=vh(e=>e.charAt(0).toUpperCase()+e.slice(1)),On=vh(e=>e?`on${Ro(e)}`:""),Di=(e,t)=>!Object.is(e,t),ho=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Cu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Bu=e=>{const t=Ut(e)?Number(e):NaN;return isNaN(t)?e:t};let xm;const gv=()=>xm||(xm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof go<"u"?go:{}),RE="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",AE=ei(RE);function nn(e){if(ze(e)){const t={};for(let r=0;r{if(r){const i=r.split(OE);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function CE(e){let t="";if(!e||Ut(e))return t;for(const r in e){const i=e[r],a=r.startsWith("--")?r:Rr(r);(Ut(i)||typeof i=="number")&&(t+=`${a}:${i};`)}return t}function lr(e){let t="";if(Ut(e))t=e;else if(ze(e))for(let r=0;rAo(r,t))}const Ii=e=>Ut(e)?e:e==null?"":ze(e)||Rt(e)&&(e.toString===g2||!Qe(e.toString))?JSON.stringify(e,b2,2):String(e),b2=(e,t)=>t&&t.__v_isRef?b2(e,t.value):oa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[i,a],n)=>(r[Nc(i,n)+" =>"]=a,r),{})}:Sa(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Nc(r))}:Eo(t)?Nc(t):Rt(t)&&!ze(t)&&!m2(t)?String(t):t,Nc=(e,t="")=>{var r;return Eo(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};function Lu(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Yr;class yv{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Yr,!t&&Yr&&(this.index=(Yr.scopes||(Yr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Yr;try{return Yr=this,t()}finally{Yr=r}}else Lu("cannot run an inactive effect scope.")}on(){Yr=this}off(){Yr=this.parent}stop(t){if(this._active){let r,i;for(r=0,i=this.effects.length;r=2))break;jo(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=mo,r=aa;try{return mo=!0,aa=this,this._runnings++,Rm(this),this.fn()}finally{Am(this),this._runnings--,aa=r,mo=t}}stop(){var t;this.active&&(Rm(this),Am(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function KE(e){return e.value}function Rm(e){e._trackId++,e._depsLength=0}function Am(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{r.dirty&&r.run()});t&&($t(r,t),t.scope&&_2(r,t.scope)),(!t||!t.lazy)&&r.run();const i=r.run.bind(r);return i.effect=r,i}function zE(e){e.effect.stop()}let mo=!0,D0=0;const x2=[];function Fo(){x2.push(mo),mo=!1}function jo(){const e=x2.pop();mo=e===void 0?!0:e}function bv(){D0++}function wv(){for(D0--;!D0&&F0.length;)F0.shift()()}function E2(e,t,r){var i;if(t.get(e)!==e._trackId){t.set(e,e._trackId);const a=e.deps[e._depsLength];a!==t?(a&&S2(a,e),e.deps[e._depsLength++]=t):e._depsLength++,(i=e.onTrack)==null||i.call(e,$t({effect:e},r))}}const F0=[];function R2(e,t,r){var i;bv();for(const a of e.keys())if(!(!a.allowRecurse&&a._runnings)&&a._dirtyLevel{const r=new Map;return r.cleanup=e,r.computed=t,r},Nu=new WeakMap,sa=Symbol("iterate"),j0=Symbol("Map key iterate");function Ir(e,t,r){if(mo&&aa){let i=Nu.get(e);i||Nu.set(e,i=new Map);let a=i.get(r);a||i.set(r,a=A2(()=>i.delete(r))),E2(aa,a,{target:e,type:t,key:r})}}function on(e,t,r,i,a,n){const l=Nu.get(e);if(!l)return;let c=[];if(t==="clear")c=[...l.values()];else if(r==="length"&&ze(e)){const d=Number(i);l.forEach((m,M)=>{(M==="length"||!Eo(M)&&M>=d)&&c.push(m)})}else switch(r!==void 0&&c.push(l.get(r)),t){case"add":ze(e)?vv(r)&&c.push(l.get("length")):(c.push(l.get(sa)),oa(e)&&c.push(l.get(j0)));break;case"delete":ze(e)||(c.push(l.get(sa)),oa(e)&&c.push(l.get(j0)));break;case"set":oa(e)&&c.push(l.get(sa));break}bv();for(const d of c)d&&R2(d,3,{target:e,type:t,key:r,newValue:i,oldValue:a,oldTarget:n});wv()}function GE(e,t){var r;return(r=Nu.get(e))==null?void 0:r.get(t)}const YE=ei("__proto__,__v_isRef,__isVue"),T2=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Eo)),Tm=ZE();function ZE(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const i=ut(this);for(let n=0,l=this.length;n{e[t]=function(...r){Fo(),bv();const i=ut(this)[t].apply(this,r);return wv(),jo(),i}}),e}function XE(e){const t=ut(this);return Ir(t,"has",e),t.hasOwnProperty(e)}class O2{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,i){const a=this._isReadonly,n=this._shallow;if(r==="__v_isReactive")return!a;if(r==="__v_isReadonly")return a;if(r==="__v_isShallow")return n;if(r==="__v_raw")return i===(a?n?k2:N2:n?L2:B2).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const l=ze(t);if(!a){if(l&&wt(Tm,r))return Reflect.get(Tm,r,i);if(r==="hasOwnProperty")return XE}const c=Reflect.get(t,r,i);return(Eo(r)?T2.has(r):YE(r))||(a||Ir(t,"get",r),n)?c:nr(c)?l&&vv(r)?c:c.value:Rt(c)?a?Sv(c):xa(c):c}}class P2 extends O2{constructor(t=!1){super(!1,t)}set(t,r,i,a){let n=t[r];if(!this._shallow){const d=Dn(n);if(!Vf(i)&&!Dn(i)&&(n=ut(n),i=ut(i)),!ze(t)&&nr(n)&&!nr(i))return d?!1:(n.value=i,!0)}const l=ze(t)&&vv(r)?Number(r)e,mh=e=>Reflect.getPrototypeOf(e);function Wl(e,t,r=!1,i=!1){e=e.__v_raw;const a=ut(e),n=ut(t);r||(Di(t,n)&&Ir(a,"get",t),Ir(a,"get",n));const{has:l}=mh(a),c=i?_v:r?Ev:Gf;if(l.call(a,t))return c(e.get(t));if(l.call(a,n))return c(e.get(n));e!==a&&e.get(t)}function Kl(e,t=!1){const r=this.__v_raw,i=ut(r),a=ut(e);return t||(Di(e,a)&&Ir(i,"has",e),Ir(i,"has",a)),e===a?r.has(e):r.has(e)||r.has(a)}function Vl(e,t=!1){return e=e.__v_raw,!t&&Ir(ut(e),"iterate",sa),Reflect.get(e,"size",e)}function Om(e){e=ut(e);const t=ut(this);return mh(t).has.call(t,e)||(t.add(e),on(t,"add",e,e)),this}function Pm(e,t){t=ut(t);const r=ut(this),{has:i,get:a}=mh(r);let n=i.call(r,e);n?C2(r,i,e):(e=ut(e),n=i.call(r,e));const l=a.call(r,e);return r.set(e,t),n?Di(t,l)&&on(r,"set",e,t,l):on(r,"add",e,t),this}function Im(e){const t=ut(this),{has:r,get:i}=mh(t);let a=r.call(t,e);a?C2(t,r,e):(e=ut(e),a=r.call(t,e));const n=i?i.call(t,e):void 0,l=t.delete(e);return a&&on(t,"delete",e,void 0,n),l}function Cm(){const e=ut(this),t=e.size!==0,r=oa(e)?new Map(e):new Set(e),i=e.clear();return t&&on(e,"clear",void 0,void 0,r),i}function zl(e,t){return function(i,a){const n=this,l=n.__v_raw,c=ut(l),d=t?_v:e?Ev:Gf;return!e&&Ir(c,"iterate",sa),l.forEach((m,M)=>i.call(a,d(m),d(M),n))}}function Gl(e,t,r){return function(...i){const a=this.__v_raw,n=ut(a),l=oa(n),c=e==="entries"||e===Symbol.iterator&&l,d=e==="keys"&&l,m=a[e](...i),M=r?_v:t?Ev:Gf;return!t&&Ir(n,"iterate",d?j0:sa),{next(){const{value:S,done:R}=m.next();return R?{value:S,done:R}:{value:c?[M(S[0]),M(S[1])]:M(S),done:R}},[Symbol.iterator](){return this}}}}function eo(e){return function(...t){{const r=t[0]?`on key "${t[0]}" `:"";console.warn(`${Ro(e)} operation ${r}failed: target is readonly.`,ut(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function r8(){const e={get(n){return Wl(this,n)},get size(){return Vl(this)},has:Kl,add:Om,set:Pm,delete:Im,clear:Cm,forEach:zl(!1,!1)},t={get(n){return Wl(this,n,!1,!0)},get size(){return Vl(this)},has:Kl,add:Om,set:Pm,delete:Im,clear:Cm,forEach:zl(!1,!0)},r={get(n){return Wl(this,n,!0)},get size(){return Vl(this,!0)},has(n){return Kl.call(this,n,!0)},add:eo("add"),set:eo("set"),delete:eo("delete"),clear:eo("clear"),forEach:zl(!0,!1)},i={get(n){return Wl(this,n,!0,!0)},get size(){return Vl(this,!0)},has(n){return Kl.call(this,n,!0)},add:eo("add"),set:eo("set"),delete:eo("delete"),clear:eo("clear"),forEach:zl(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{e[n]=Gl(n,!1,!1),r[n]=Gl(n,!0,!1),t[n]=Gl(n,!1,!0),i[n]=Gl(n,!0,!0)}),[e,r,t,i]}const[i8,n8,o8,a8]=r8();function yh(e,t){const r=t?e?a8:o8:e?n8:i8;return(i,a,n)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?i:Reflect.get(wt(r,a)&&a in i?r:i,a,n)}const s8={get:yh(!1,!1)},f8={get:yh(!1,!0)},l8={get:yh(!0,!1)},u8={get:yh(!0,!0)};function C2(e,t,r){const i=ut(r);if(i!==r&&t.call(e,i)){const a=pv(e);console.warn(`Reactive ${a} contains both the raw and reactive versions of the same object${a==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const B2=new WeakMap,L2=new WeakMap,N2=new WeakMap,k2=new WeakMap;function h8(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function c8(e){return e.__v_skip||!Object.isExtensible(e)?0:h8(pv(e))}function xa(e){return Dn(e)?e:bh(e,!1,JE,s8,B2)}function Mv(e){return bh(e,!1,e8,f8,L2)}function Sv(e){return bh(e,!0,QE,l8,N2)}function ea(e){return bh(e,!0,t8,u8,k2)}function bh(e,t,r,i,a){if(!Rt(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const n=a.get(e);if(n)return n;const l=c8(e);if(l===0)return e;const c=new Proxy(e,l===2?i:r);return a.set(e,c),c}function yo(e){return Dn(e)?yo(e.__v_raw):!!(e&&e.__v_isReactive)}function Dn(e){return!!(e&&e.__v_isReadonly)}function Vf(e){return!!(e&&e.__v_isShallow)}function zf(e){return yo(e)||Dn(e)}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function xv(e){return Iu(e,"__v_skip",!0),e}const Gf=e=>Rt(e)?xa(e):e,Ev=e=>Rt(e)?Sv(e):e;class $2{constructor(t,r,i,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new us(()=>t(this._value),()=>Yf(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=i}get value(){const t=ut(this);return Rv(t),(!t._cacheable||t.effect.dirty)&&Di(t._value,t._value=t.effect.run())&&Yf(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function d8(e,t,r=!1){let i,a;const n=Qe(e);n?(i=e,a=()=>{console.warn("Write operation failed: computed value is readonly")}):(i=e.get,a=e.set);const l=new $2(i,a,n||!a,r);return t&&!r&&(l.effect.onTrack=t.onTrack,l.effect.onTrigger=t.onTrigger),l}function Rv(e){mo&&aa&&(e=ut(e),E2(aa,e.dep||(e.dep=A2(()=>e.dep=void 0,e instanceof $2?e:void 0)),{target:e,type:"get",key:"value"}))}function Yf(e,t=3,r){e=ut(e);const i=e.dep;i&&R2(i,t,{target:e,type:"set",key:"value",newValue:r})}function nr(e){return!!(e&&e.__v_isRef===!0)}function xr(e){return F2(e,!1)}function D2(e){return F2(e,!0)}function F2(e,t){return nr(e)?e:new p8(e,t)}class p8{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ut(t),this._value=r?t:Gf(t)}get value(){return Rv(this),this._value}set value(t){const r=this.__v_isShallow||Vf(t)||Dn(t);t=r?t:ut(t),Di(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Gf(t),Yf(this,3,t))}}function v8(e){Yf(e,3,e.value)}function bo(e){return nr(e)?e.value:e}function g8(e){return Qe(e)?e():bo(e)}const m8={get:(e,t,r)=>bo(Reflect.get(e,t,r)),set:(e,t,r,i)=>{const a=e[t];return nr(a)&&!nr(r)?(a.value=r,!0):Reflect.set(e,t,r,i)}};function Av(e){return yo(e)?e:new Proxy(e,m8)}class y8{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:i}=t(()=>Rv(this),()=>Yf(this));this._get=r,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function j2(e){return new y8(e)}function b8(e){zf(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=ze(e)?new Array(e.length):{};for(const r in e)t[r]=U2(e,r);return t}class w8{constructor(t,r,i){this._object=t,this._key=r,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return GE(ut(this._object),this._key)}}class _8{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function M8(e,t,r){return nr(e)?e:Qe(e)?new _8(e):Rt(e)&&arguments.length>1?U2(e,t,r):xr(e)}function U2(e,t,r){const i=e[t];return nr(i)?i:new w8(e,t,r)}const S8={GET:"get",HAS:"has",ITERATE:"iterate"},x8={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},fa=[];function Cf(e){fa.push(e)}function Bf(){fa.pop()}function He(e,...t){Fo();const r=fa.length?fa[fa.length-1].component:null,i=r&&r.appContext.config.warnHandler,a=E8();if(i)an(i,r,11,[e+t.join(""),r&&r.proxy,a.map(({vnode:n})=>`at <${Ph(r,n.type)}>`).join(` +`),a]);else{const n=[`[Vue warn]: ${e}`,...t];a.length&&n.push(` +`,...R8(a)),console.warn(...n)}jo()}function E8(){let e=fa[fa.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}function R8(e){const t=[];return e.forEach((r,i)=>{t.push(...i===0?[]:[` +`],...A8(r))}),t}function A8({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",i=e.component?e.component.parent==null:!1,a=` at <${Ph(e.component,e.type,i)}`,n=">"+r;return e.props?[a,...T8(e.props),n]:[a+n]}function T8(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(i=>{t.push(...H2(i,e[i]))}),r.length>3&&t.push(" ..."),t}function H2(e,t,r){return Ut(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:nr(t)?(t=H2(e,ut(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):Qe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ut(t),r?t:[`${e}=`,t])}function Tv(e,t){e!==void 0&&(typeof e!="number"?He(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&He(`${t} is NaN - the duration expression might be incorrect.`))}const O8={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},wh={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function an(e,t,r,i){let a;try{a=i?e(...i):e()}catch(n){Uo(n,t,r)}return a}function Zr(e,t,r,i){if(Qe(e)){const n=an(e,t,r,i);return n&&ph(n)&&n.catch(l=>{Uo(l,t,r)}),n}const a=[];for(let n=0;n>>1,a=Ar[i],n=Jf(a);ntn&&Ar.splice(t,1)}function Xf(e){ze(e)?Qa.push(...e):(!Zi||!Zi.includes(e,e.allowRecurse?oo+1:oo))&&Qa.push(e),W2()}function Bm(e,t,r=Zf?tn+1:0){for(t=t||new Map;rJf(r)-Jf(i)),oo=0;ooe.id==null?1/0:e.id,L8=(e,t)=>{const r=Jf(e)-Jf(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function K2(e){U0=!1,Zf=!0,e=e||new Map,Ar.sort(L8);const t=r=>Pv(e,r);try{for(tn=0;tnI8){const i=t.ownerInstance,a=i&&il(i.type);return Uo(`Maximum recursive updates exceeded${a?` in component <${a}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else e.set(t,r+1)}}let wo=!1;const Ka=new Set;gv().__VUE_HMR_RUNTIME__={createRecord:kc(V2),rerender:kc($8),reload:kc(D8)};const pa=new Map;function N8(e){const t=e.type.__hmrId;let r=pa.get(t);r||(V2(t,e.type),r=pa.get(t)),r.instances.add(e)}function k8(e){pa.get(e.type.__hmrId).instances.delete(e)}function V2(e,t){return pa.has(e)?!1:(pa.set(e,{initialDef:Lf(t),instances:new Set}),!0)}function Lf(e){return W_(e)?e.__vccOpts:e}function $8(e,t){const r=pa.get(e);r&&(r.initialDef.render=t,[...r.instances].forEach(i=>{t&&(i.render=t,Lf(i.type).render=t),i.renderCache=[],wo=!0,i.effect.dirty=!0,i.update(),wo=!1}))}function D8(e,t){const r=pa.get(e);if(!r)return;t=Lf(t),Lm(r.initialDef,t);const i=[...r.instances];for(const a of i){const n=Lf(a.type);Ka.has(n)||(n!==r.initialDef&&Lm(n,t),Ka.add(n)),a.appContext.propsCache.delete(a.type),a.appContext.emitsCache.delete(a.type),a.appContext.optionsCache.delete(a.type),a.ceReload?(Ka.add(n),a.ceReload(t.styles),Ka.delete(n)):a.parent?(a.parent.effect.dirty=!0,vl(a.parent.update)):a.appContext.reload?a.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Xf(()=>{for(const a of i)Ka.delete(Lf(a.type))})}function Lm(e,t){$t(e,t);for(const r in e)r!=="__file"&&!(r in t)&&delete e[r]}function kc(e){return(t,r)=>{try{return e(t,r)}catch(i){console.error(i),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Ni,xf=[],H0=!1;function gl(e,...t){Ni?Ni.emit(e,...t):H0||xf.push({event:e,args:t})}function Iv(e,t){var r,i;Ni=e,Ni?(Ni.enabled=!0,xf.forEach(({event:a,args:n})=>Ni.emit(a,...n)),xf=[]):typeof window<"u"&&window.HTMLElement&&!((i=(r=window.navigator)==null?void 0:r.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(n=>{Iv(n,t)}),setTimeout(()=>{Ni||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,H0=!0,xf=[])},3e3)):(H0=!0,xf=[])}function F8(e,t){gl("app:init",e,t,{Fragment:Bt,Text:To,Comment:Qt,Static:_o})}function j8(e){gl("app:unmount",e)}const q0=Cv("component:added"),z2=Cv("component:updated"),U8=Cv("component:removed"),H8=e=>{Ni&&typeof Ni.cleanupBuffer=="function"&&!Ni.cleanupBuffer(e)&&U8(e)};function Cv(e){return t=>{gl(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const q8=G2("perf:start"),W8=G2("perf:end");function G2(e){return(t,r,i)=>{gl(e,t.appContext.app,t.uid,t,r,i)}}function K8(e,t,r){gl("component:emit",e.appContext.app,e,t,r)}function V8(e,t,...r){if(e.isUnmounted)return;const i=e.vnode.props||Lt;{const{emitsOptions:M,propsOptions:[S]}=e;if(M)if(!(t in M))(!S||!(On(t)in S))&&He(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${On(t)}" prop.`);else{const R=M[t];Qe(R)&&(R(...r)||He(`Invalid event arguments: event validation failed for event "${t}".`))}}let a=r;const n=t.startsWith("update:"),l=n&&t.slice(7);if(l&&l in i){const M=`${l==="modelValue"?"model":l}Modifiers`,{number:S,trim:R}=i[M]||Lt;R&&(a=r.map(C=>Ut(C)?C.trim():C)),S&&(a=r.map(Cu))}K8(e,t,a);{const M=t.toLowerCase();M!==t&&i[On(M)]&&He(`Event "${M}" is emitted in component ${Ph(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Rr(t)}" instead of "${t}".`)}let c,d=i[c=On(t)]||i[c=On($r(t))];!d&&n&&(d=i[c=On(Rr(t))]),d&&Zr(d,e,6,a);const m=i[c+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Zr(m,e,6,a)}}function Y2(e,t,r=!1){const i=t.emitsCache,a=i.get(e);if(a!==void 0)return a;const n=e.emits;let l={},c=!1;if(!Qe(e)){const d=m=>{const M=Y2(m,t,!0);M&&(c=!0,$t(l,M))};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!n&&!c?(Rt(e)&&i.set(e,null),null):(ze(n)?n.forEach(d=>l[d]=null):$t(l,n),Rt(e)&&i.set(e,l),l)}function _h(e,t){return!e||!Ns(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Rr(t))||wt(e,t))}let Jt=null,Mh=null;function Qf(e){const t=Jt;return Jt=e,Mh=e&&e.type.__scopeId||null,t}function Z2(e){Mh=e}function X2(){Mh=null}const z8=e=>Bv;function Bv(e,t=Jt,r){if(!t||e._n)return e;const i=(...a)=>{i._d&&Q0(-1);const n=Qf(t);let l;try{l=e(...a)}finally{Qf(n),i._d&&Q0(1)}return z2(t),l};return i._n=!0,i._c=!0,i._d=!0,i}let W0=!1;function $u(){W0=!0}function uu(e){const{type:t,vnode:r,proxy:i,withProxy:a,props:n,propsOptions:[l],slots:c,attrs:d,emit:m,render:M,renderCache:S,data:R,setupState:C,ctx:P,inheritAttrs:$}=e;let N,I;const B=Qf(e);W0=!1;try{if(r.shapeFlag&4){const K=a||i,Y=C.__isScriptSetup?new Proxy(K,{get(re,J,V){return He(`Property '${String(J)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(re,J,V)}}):K;N=Wr(M.call(Y,K,S,n,C,R,P)),I=d}else{const K=t;d===n&&$u(),N=Wr(K.length>1?K(n,{get attrs(){return $u(),d},slots:c,emit:m}):K(n,null)),I=t.props?d:Y8(d)}}catch(K){$f.length=0,Uo(K,e,1),N=Zt(Qt)}let F=N,L;if(N.patchFlag>0&&N.patchFlag&2048&&([F,L]=G8(N)),I&&$!==!1){const K=Object.keys(I),{shapeFlag:Y}=F;if(K.length){if(Y&7)l&&K.some(Pu)&&(I=Z8(I,l)),F=pi(F,I);else if(!W0&&F.type!==Qt){const re=Object.keys(d),J=[],V=[];for(let ce=0,_=re.length;ce<_;ce++){const o=re[ce];Ns(o)?Pu(o)||J.push(o[2].toLowerCase()+o.slice(3)):V.push(o)}V.length&&He(`Extraneous non-props attributes (${V.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),J.length&&He(`Extraneous non-emits event listeners (${J.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return r.dirs&&(Nm(F)||He("Runtime directive used on component with non-element root node. The directives will not function as intended."),F=pi(F),F.dirs=F.dirs?F.dirs.concat(r.dirs):r.dirs),r.transition&&(Nm(F)||He("Component inside renders non-element root node that cannot be animated."),F.transition=r.transition),L?L(F):N=F,Qf(B),N}const G8=e=>{const t=e.children,r=e.dynamicChildren,i=Lv(t);if(!i)return[e,void 0];const a=t.indexOf(i),n=r?r.indexOf(i):-1,l=c=>{t[a]=c,r&&(n>-1?r[n]=c:c.patchFlag>0&&(e.dynamicChildren=[...r,c]))};return[Wr(i),l]};function Lv(e){let t;for(let r=0;r{let t;for(const r in e)(r==="class"||r==="style"||Ns(r))&&((t||(t={}))[r]=e[r]);return t},Z8=(e,t)=>{const r={};for(const i in e)(!Pu(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r},Nm=e=>e.shapeFlag&7||e.type===Qt;function X8(e,t,r){const{props:i,children:a,component:n}=e,{props:l,children:c,patchFlag:d}=t,m=n.emitsOptions;if((a||c)&&wo||t.dirs||t.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return i?km(i,l,m):!!l;if(d&8){const M=t.dynamicProps;for(let S=0;Se.__isSuspense;let K0=0;const r5={name:"Suspense",__isSuspense:!0,process(e,t,r,i,a,n,l,c,d,m){e==null?n5(t,r,i,a,n,l,c,d,m):o5(e,t,r,i,a,l,c,d,m)},hydrate:a5,create:Dv,normalize:s5},i5=r5;function el(e,t){const r=e.props&&e.props[t];Qe(r)&&r()}function n5(e,t,r,i,a,n,l,c,d){const{p:m,o:{createElement:M}}=d,S=M("div"),R=e.suspense=Dv(e,a,i,t,S,r,n,l,c,d);m(null,R.pendingBranch=e.ssContent,S,null,i,R,n,l),R.deps>0?(el(e,"onPending"),el(e,"onFallback"),m(null,e.ssFallback,t,r,i,null,n,l),es(R,e.ssFallback)):R.resolve(!1,!0)}function o5(e,t,r,i,a,n,l,c,{p:d,um:m,o:{createElement:M}}){const S=t.suspense=e.suspense;S.vnode=t,t.el=e.el;const R=t.ssContent,C=t.ssFallback,{activeBranch:P,pendingBranch:$,isInFallback:N,isHydrating:I}=S;if($)S.pendingBranch=R,ki(R,$)?(d($,R,S.hiddenContainer,null,a,S,n,l,c),S.deps<=0?S.resolve():N&&(I||(d(P,C,r,i,a,null,n,l,c),es(S,C)))):(S.pendingId=K0++,I?(S.isHydrating=!1,S.activeBranch=$):m($,a,S),S.deps=0,S.effects.length=0,S.hiddenContainer=M("div"),N?(d(null,R,S.hiddenContainer,null,a,S,n,l,c),S.deps<=0?S.resolve():(d(P,C,r,i,a,null,n,l,c),es(S,C))):P&&ki(R,P)?(d(P,R,r,i,a,S,n,l,c),S.resolve(!0)):(d(null,R,S.hiddenContainer,null,a,S,n,l,c),S.deps<=0&&S.resolve()));else if(P&&ki(R,P))d(P,R,r,i,a,S,n,l,c),es(S,R);else if(el(t,"onPending"),S.pendingBranch=R,R.shapeFlag&512?S.pendingId=R.component.suspenseId:S.pendingId=K0++,d(null,R,S.hiddenContainer,null,a,S,n,l,c),S.deps<=0)S.resolve();else{const{timeout:B,pendingId:F}=S;B>0?setTimeout(()=>{S.pendingId===F&&S.fallback(C)},B):B===0&&S.fallback(C)}}let Dm=!1;function Dv(e,t,r,i,a,n,l,c,d,m,M=!1){Dm||(Dm=!0,console[console.info?"info":"log"](" is an experimental feature and its API will likely change."));const{p:S,m:R,um:C,n:P,o:{parentNode:$,remove:N}}=m;let I;const B=f5(e);B&&t!=null&&t.pendingBranch&&(I=t.pendingId,t.deps++);const F=e.props?Bu(e.props.timeout):void 0;Tv(F,"Suspense timeout");const L={vnode:e,parent:t,parentComponent:r,namespace:l,container:i,hiddenContainer:a,anchor:n,deps:0,pendingId:K0++,timeout:typeof F=="number"?F:-1,activeBranch:null,pendingBranch:null,isInFallback:!M,isHydrating:M,isUnmounted:!1,effects:[],resolve(K=!1,Y=!1){{if(!K&&!L.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(L.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:re,activeBranch:J,pendingBranch:V,pendingId:ce,effects:_,parentComponent:o,container:f}=L;let u=!1;if(L.isHydrating)L.isHydrating=!1;else if(!K){u=J&&V.transition&&V.transition.mode==="out-in",u&&(J.transition.afterLeave=()=>{ce===L.pendingId&&(R(V,f,P(J),0),Xf(_))});let{anchor:w}=L;J&&(w=P(J),C(J,o,L,!0)),u||R(V,f,w,0)}es(L,V),L.pendingBranch=null,L.isInFallback=!1;let h=L.parent,p=!1;for(;h;){if(h.pendingBranch){h.effects.push(..._),p=!0;break}h=h.parent}!p&&!u&&Xf(_),L.effects=[],B&&t&&t.pendingBranch&&I===t.pendingId&&(t.deps--,t.deps===0&&!Y&&t.resolve()),el(re,"onResolve")},fallback(K){if(!L.pendingBranch)return;const{vnode:Y,activeBranch:re,parentComponent:J,container:V,namespace:ce}=L;el(Y,"onFallback");const _=P(re),o=()=>{L.isInFallback&&(S(null,K,V,_,J,null,ce,c,d),es(L,K))},f=K.transition&&K.transition.mode==="out-in";f&&(re.transition.afterLeave=o),L.isInFallback=!0,C(re,J,null,!0),f||o()},move(K,Y,re){L.activeBranch&&R(L.activeBranch,K,Y,re),L.container=K},next(){return L.activeBranch&&P(L.activeBranch)},registerDep(K,Y){const re=!!L.pendingBranch;re&&L.deps++;const J=K.vnode.el;K.asyncDep.catch(V=>{Uo(V,K,0)}).then(V=>{if(K.isUnmounted||L.isUnmounted||L.pendingId!==K.suspenseId)return;K.asyncResolved=!0;const{vnode:ce}=K;Cf(ce),ip(K,V,!1),J&&(ce.el=J);const _=!J&&K.subTree.el;Y(K,ce,$(J||K.subTree.el),J?null:P(K.subTree),L,l,d),_&&N(_),Nv(K,ce.el),Bf(),re&&--L.deps===0&&L.resolve()})},unmount(K,Y){L.isUnmounted=!0,L.activeBranch&&C(L.activeBranch,r,K,Y),L.pendingBranch&&C(L.pendingBranch,r,K,Y)}};return L}function a5(e,t,r,i,a,n,l,c,d){const m=t.suspense=Dv(t,i,r,e.parentNode,document.createElement("div"),null,a,n,l,c,!0),M=d(e,m.pendingBranch=t.ssContent,r,m,n,l);return m.deps===0&&m.resolve(!1,!0),M}function s5(e){const{shapeFlag:t,children:r}=e,i=t&32;e.ssContent=Fm(i?r.default:r),e.ssFallback=i?Fm(r.fallback):Zt(Qt)}function Fm(e){let t;if(Qe(e)){const r=ga&&e._c;r&&(e._d=!1,tt()),e=e(),r&&(e._d=!0,t=Kr,B_())}if(ze(e)){const r=Lv(e);!r&&e.filter(i=>i!==kv).length>0&&He(" slots expect a single root node."),e=r}return e=Wr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Q2(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):Xf(e)}function es(e,t){e.activeBranch=t;const{vnode:r,parentComponent:i}=e,a=r.el=t.el;i&&i.subTree===r&&(i.vnode.el=a,Nv(i,a))}function f5(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}const e_=Symbol.for("v-scx"),t_=()=>{{const e=sn(e_);return e||He("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function r_(e,t){return ml(e,null,t)}function i_(e,t){return ml(e,null,$t({},t,{flush:"post"}))}function n_(e,t){return ml(e,null,$t({},t,{flush:"sync"}))}const Yl={};function Er(e,t,r){return Qe(t)||He("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),ml(e,t,r)}function ml(e,t,{immediate:r,deep:i,flush:a,once:n,onTrack:l,onTrigger:c}=Lt){if(t&&n){const re=t;t=(...J)=>{re(...J),Y()}}i!==void 0&&typeof i=="number"&&He('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),t||(r!==void 0&&He('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&He('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&He('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const d=re=>{He("Invalid watch source: ",re,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},m=ir,M=re=>i===!0?re:ta(re,i===!1?1:void 0);let S,R=!1,C=!1;if(nr(e)?(S=()=>e.value,R=Vf(e)):yo(e)?(S=()=>M(e),R=!0):ze(e)?(C=!0,R=e.some(re=>yo(re)||Vf(re)),S=()=>e.map(re=>{if(nr(re))return re.value;if(yo(re))return M(re);if(Qe(re))return an(re,m,2);d(re)})):Qe(e)?t?S=()=>an(e,m,2):S=()=>(P&&P(),Zr(e,m,3,[$])):(S=gr,d(e)),t&&i){const re=S;S=()=>ta(re())}let P,$=re=>{P=L.onStop=()=>{an(re,m,4),P=L.onStop=void 0}},N;if(yl)if($=gr,t?r&&Zr(t,m,3,[S(),C?[]:void 0,$]):S(),a==="sync"){const re=t_();N=re.__watcherHandles||(re.__watcherHandles=[])}else return gr;let I=C?new Array(e.length).fill(Yl):Yl;const B=()=>{if(!(!L.active||!L.dirty))if(t){const re=L.run();(i||R||(C?re.some((J,V)=>Di(J,I[V])):Di(re,I)))&&(P&&P(),Zr(t,m,3,[re,I===Yl?void 0:C&&I[0]===Yl?[]:I,$]),I=re)}else L.run()};B.allowRecurse=!!t;let F;a==="sync"?F=B:a==="post"?F=()=>vr(B,m&&m.suspense):(B.pre=!0,m&&(B.id=m.uid),F=()=>vl(B));const L=new us(S,gr,F),K=M2(),Y=()=>{L.stop(),K&&dv(K.effects,L)};return L.onTrack=l,L.onTrigger=c,t?r?B():I=L.run():a==="post"?vr(L.run.bind(L),m&&m.suspense):L.run(),N&&N.push(Y),Y}function l5(e,t,r){const i=this.proxy,a=Ut(e)?e.includes(".")?o_(i,e):()=>i[e]:e.bind(i,i);let n;Qe(t)?n=t:(n=t.handler,r=t);const l=ir;Oo(this);const c=ml(a,n.bind(i),r);return l?Oo(l):Mo(),c}function o_(e,t){const r=t.split(".");return()=>{let i=e;for(let a=0;a0){if(r>=t)return e;r++}if(i=i||new Set,i.has(e))return e;if(i.add(e),nr(e))ta(e.value,t,r,i);else if(ze(e))for(let a=0;a{ta(a,t,r,i)});else if(m2(e))for(const a in e)ta(e[a],t,r,i);return e}function a_(e){SE(e)&&He("Do not use built-in directive ids as custom directive id: "+e)}function hu(e,t){const r=Jt;if(r===null)return He("withDirectives can only be used inside render functions."),e;const i=Oh(r)||r.proxy,a=e.dirs||(e.dirs=[]);for(let n=0;n{e.isMounted=!0}),Rh(()=>{e.isUnmounting=!0}),e}const oi=[Function,Array],jv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:oi,onEnter:oi,onAfterEnter:oi,onEnterCancelled:oi,onBeforeLeave:oi,onLeave:oi,onAfterLeave:oi,onLeaveCancelled:oi,onBeforeAppear:oi,onAppear:oi,onAfterAppear:oi,onAppearCancelled:oi},u5={name:"BaseTransition",props:jv,setup(e,{slots:t}){const r=Hi(),i=Fv();let a;return()=>{const n=t.default&&Sh(t.default(),!0);if(!n||!n.length)return;let l=n[0];if(n.length>1){let $=!1;for(const N of n)if(N.type!==Qt){if($){He(" can only be used on a single element or component. Use for lists.");break}l=N,$=!0}}const c=ut(e),{mode:d}=c;if(d&&d!=="in-out"&&d!=="out-in"&&d!=="default"&&He(`invalid mode: ${d}`),i.isLeaving)return $c(l);const m=jm(l);if(!m)return $c(l);const M=hs(m,c,i,r);va(m,M);const S=r.subTree,R=S&&jm(S);let C=!1;const{getTransitionKey:P}=m.type;if(P){const $=P();a===void 0?a=$:$!==a&&(a=$,C=!0)}if(R&&R.type!==Qt&&(!ki(m,R)||C)){const $=hs(R,c,i,r);if(va(R,$),d==="out-in")return i.isLeaving=!0,$.afterLeave=()=>{i.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},$c(l);d==="in-out"&&m.type!==Qt&&($.delayLeave=(N,I,B)=>{const F=f_(i,R);F[String(R.key)]=R,N[ao]=()=>{I(),N[ao]=void 0,delete M.delayedLeave},M.delayedLeave=B})}return l}}},s_=u5;function f_(e,t){const{leavingVNodes:r}=e;let i=r.get(t.type);return i||(i=Object.create(null),r.set(t.type,i)),i}function hs(e,t,r,i){const{appear:a,mode:n,persisted:l=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:m,onEnterCancelled:M,onBeforeLeave:S,onLeave:R,onAfterLeave:C,onLeaveCancelled:P,onBeforeAppear:$,onAppear:N,onAfterAppear:I,onAppearCancelled:B}=t,F=String(e.key),L=f_(r,e),K=(J,V)=>{J&&Zr(J,i,9,V)},Y=(J,V)=>{const ce=V[1];K(J,V),ze(J)?J.every(_=>_.length<=1)&&ce():J.length<=1&&ce()},re={mode:n,persisted:l,beforeEnter(J){let V=c;if(!r.isMounted)if(a)V=$||c;else return;J[ao]&&J[ao](!0);const ce=L[F];ce&&ki(e,ce)&&ce.el[ao]&&ce.el[ao](),K(V,[J])},enter(J){let V=d,ce=m,_=M;if(!r.isMounted)if(a)V=N||d,ce=I||m,_=B||M;else return;let o=!1;const f=J[Zl]=u=>{o||(o=!0,u?K(_,[J]):K(ce,[J]),re.delayedLeave&&re.delayedLeave(),J[Zl]=void 0)};V?Y(V,[J,f]):f()},leave(J,V){const ce=String(e.key);if(J[Zl]&&J[Zl](!0),r.isUnmounting)return V();K(S,[J]);let _=!1;const o=J[ao]=f=>{_||(_=!0,V(),f?K(P,[J]):K(C,[J]),J[ao]=void 0,L[ce]===e&&delete L[ce])};L[ce]=e,R?Y(R,[J,o]):o()},clone(J){return hs(J,t,r,i)}};return re}function $c(e){if(Ds(e))return e=pi(e),e.children=null,e}function jm(e){return Ds(e)?e.component?e.component.subTree:e.children?e.children[0]:void 0:e}function va(e,t){e.shapeFlag&6&&e.component?va(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Sh(e,t=!1,r){let i=[],a=0;for(let n=0;n1)for(let n=0;n$t({name:e.name},t,{setup:e}))():e}const la=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function h5(e){Qe(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:i,delay:a=200,timeout:n,suspensible:l=!0,onError:c}=e;let d=null,m,M=0;const S=()=>(M++,d=null,R()),R=()=>{let C;return d||(C=d=t().catch(P=>{if(P=P instanceof Error?P:new Error(String(P)),c)return new Promise(($,N)=>{c(P,()=>$(S()),()=>N(P),M+1)});throw P}).then(P=>{if(C!==d&&d)return d;if(P||He("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."),P&&(P.__esModule||P[Symbol.toStringTag]==="Module")&&(P=P.default),P&&!Rt(P)&&!Qe(P))throw new Error(`Invalid async component load result: ${P}`);return m=P,P}))};return $s({name:"AsyncComponentWrapper",__asyncLoader:R,get __asyncResolved(){return m},setup(){const C=ir;if(m)return()=>Dc(m,C);const P=B=>{d=null,Uo(B,C,13,!i)};if(l&&C.suspense||yl)return R().then(B=>()=>Dc(B,C)).catch(B=>(P(B),()=>i?Zt(i,{error:B}):null));const $=xr(!1),N=xr(),I=xr(!!a);return a&&setTimeout(()=>{I.value=!1},a),n!=null&&setTimeout(()=>{if(!$.value&&!N.value){const B=new Error(`Async component timed out after ${n}ms.`);P(B),N.value=B}},n),R().then(()=>{$.value=!0,C.parent&&Ds(C.parent.vnode)&&(C.parent.effect.dirty=!0,vl(C.parent.update))}).catch(B=>{P(B),N.value=B}),()=>{if($.value&&m)return Dc(m,C);if(N.value&&i)return Zt(i,{error:N.value});if(r&&!I.value)return Zt(r)}}})}function Dc(e,t){const{ref:r,props:i,children:a,ce:n}=t.vnode,l=Zt(e,i,a);return l.ref=r,l.ce=n,delete t.vnode.ce,l}const Ds=e=>e.type.__isKeepAlive,c5={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=Hi(),i=r.ctx;if(!i.renderer)return()=>{const B=t.default&&t.default();return B&&B.length===1?B[0]:B};const a=new Map,n=new Set;let l=null;r.__v_cache=a;const c=r.suspense,{renderer:{p:d,m,um:M,o:{createElement:S}}}=i,R=S("div");i.activate=(B,F,L,K,Y)=>{const re=B.component;m(B,F,L,0,c),d(re.vnode,B,F,L,re,c,K,B.slotScopeIds,Y),vr(()=>{re.isDeactivated=!1,re.a&&ho(re.a);const J=B.props&&B.props.onVnodeMounted;J&&Ur(J,re.parent,B)},c),q0(re)},i.deactivate=B=>{const F=B.component;m(B,R,null,1,c),vr(()=>{F.da&&ho(F.da);const L=B.props&&B.props.onVnodeUnmounted;L&&Ur(L,F.parent,B),F.isDeactivated=!0},c),q0(F)};function C(B){Fc(B),M(B,r,c,!0)}function P(B){a.forEach((F,L)=>{const K=il(F.type);K&&(!B||!B(K))&&$(L)})}function $(B){const F=a.get(B);!l||!ki(F,l)?C(F):l&&Fc(l),a.delete(B),n.delete(B)}Er(()=>[e.include,e.exclude],([B,F])=>{B&&P(L=>Ef(B,L)),F&&P(L=>!Ef(F,L))},{flush:"post",deep:!0});let N=null;const I=()=>{N!=null&&a.set(N,jc(r.subTree))};return Fs(I),Eh(I),Rh(()=>{a.forEach(B=>{const{subTree:F,suspense:L}=r,K=jc(F);if(B.type===K.type&&B.key===K.key){Fc(K);const Y=K.component.da;Y&&vr(Y,L);return}C(B)})}),()=>{if(N=null,!t.default)return null;const B=t.default(),F=B[0];if(B.length>1)return He("KeepAlive should contain exactly one component child."),l=null,B;if(!Fn(F)||!(F.shapeFlag&4)&&!(F.shapeFlag&128))return l=null,F;let L=jc(F);const K=L.type,Y=il(la(L)?L.type.__asyncResolved||{}:K),{include:re,exclude:J,max:V}=e;if(re&&(!Y||!Ef(re,Y))||J&&Y&&Ef(J,Y))return l=L,F;const ce=L.key==null?K:L.key,_=a.get(ce);return L.el&&(L=pi(L),F.shapeFlag&128&&(F.ssContent=L)),N=ce,_?(L.el=_.el,L.component=_.component,L.transition&&va(L,L.transition),L.shapeFlag|=512,n.delete(ce),n.add(ce)):(n.add(ce),V&&n.size>parseInt(V,10)&&$(n.values().next().value)),L.shapeFlag|=256,l=L,J2(F.type)?F:L}}},d5=c5;function Ef(e,t){return ze(e)?e.some(r=>Ef(r,t)):Ut(e)?e.split(",").includes(t):ME(e)?e.test(t):!1}function l_(e,t){h_(e,"a",t)}function u_(e,t){h_(e,"da",t)}function h_(e,t,r=ir){const i=e.__wdc||(e.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(xh(t,i,r),r){let a=r.parent;for(;a&&a.parent;)Ds(a.parent.vnode)&&p5(i,t,r,a),a=a.parent}}function p5(e,t,r,i){const a=xh(t,e,i,!0);Ah(()=>{dv(i[t],a)},r)}function Fc(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function jc(e){return e.shapeFlag&128?e.ssContent:e}function xh(e,t,r=ir,i=!1){if(r){const a=r[e]||(r[e]=[]),n=t.__weh||(t.__weh=(...l)=>{if(r.isUnmounted)return;Fo(),Oo(r);const c=Zr(t,r,e,l);return Mo(),jo(),c});return i?a.unshift(n):a.push(n),n}else{const a=On(wh[e].replace(/ hook$/,""));He(`${a} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Yn=e=>(t,r=ir)=>(!yl||e==="sp")&&xh(e,(...i)=>t(...i),r),c_=Yn("bm"),Fs=Yn("m"),Uv=Yn("bu"),Eh=Yn("u"),Rh=Yn("bum"),Ah=Yn("um"),d_=Yn("sp"),p_=Yn("rtg"),v_=Yn("rtc");function g_(e,t=ir){xh("ec",e,t)}function Ci(e,t,r,i){let a;const n=r&&r[i];if(ze(e)||Ut(e)){a=new Array(e.length);for(let l=0,c=e.length;lt(l,c,void 0,n&&n[c]));else{const l=Object.keys(e);a=new Array(l.length);for(let c=0,d=l.length;c{const n=i.fn(...a);return n&&(n.key=i.key),n}:i.fn)}return e}function V0(e,t,r={},i,a){if(Jt.isCE||Jt.parent&&la(Jt.parent)&&Jt.parent.isCE)return t!=="default"&&(r.name=t),Zt("slot",r,i&&i());let n=e[t];n&&n.length>1&&(He("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),n=()=>[]),n&&n._c&&(n._d=!1),tt();const l=n&&m_(n(r)),c=Kv(Bt,{key:r.key||l&&l.key||`_${t}`},l||(i?i():[]),l&&e._===1?64:-2);return!a&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),n&&n._c&&(n._d=!0),c}function m_(e){return e.some(t=>Fn(t)?!(t.type===Qt||t.type===Bt&&!m_(t.children)):!0)?e:null}function g5(e,t){const r={};if(!Rt(e))return He("v-on with no argument expects an object value."),r;for(const i in e)r[t&&/[A-Z]/.test(i)?`on:${i}`:On(i)]=e[i];return r}const z0=e=>e?j_(e)?Oh(e)||e.proxy:z0(e.parent):null,ua=$t(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>ea(e.props),$attrs:e=>ea(e.attrs),$slots:e=>ea(e.slots),$refs:e=>ea(e.refs),$parent:e=>z0(e.parent),$root:e=>z0(e.root),$emit:e=>e.emit,$options:e=>qv(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,vl(e.update)}),$nextTick:e=>e.n||(e.n=po.bind(e.proxy)),$watch:e=>l5.bind(e)}),Hv=e=>e==="_"||e==="$",Uc=(e,t)=>e!==Lt&&!e.__isScriptSetup&&wt(e,t),Nf={get({_:e},t){const{ctx:r,setupState:i,data:a,props:n,accessCache:l,type:c,appContext:d}=e;if(t==="__isVue")return!0;let m;if(t[0]!=="$"){const C=l[t];if(C!==void 0)switch(C){case 1:return i[t];case 2:return a[t];case 4:return r[t];case 3:return n[t]}else{if(Uc(i,t))return l[t]=1,i[t];if(a!==Lt&&wt(a,t))return l[t]=2,a[t];if((m=e.propsOptions[0])&&wt(m,t))return l[t]=3,n[t];if(r!==Lt&&wt(r,t))return l[t]=4,r[t];G0&&(l[t]=0)}}const M=ua[t];let S,R;if(M)return t==="$attrs"?(Ir(e,"get",t),$u()):t==="$slots"&&Ir(e,"get",t),M(e);if((S=c.__cssModules)&&(S=S[t]))return S;if(r!==Lt&&wt(r,t))return l[t]=4,r[t];if(R=d.config.globalProperties,wt(R,t))return R[t];Jt&&(!Ut(t)||t.indexOf("__v")!==0)&&(a!==Lt&&Hv(t[0])&&wt(a,t)?He(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Jt&&He(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,r){const{data:i,setupState:a,ctx:n}=e;return Uc(a,t)?(a[t]=r,!0):a.__isScriptSetup&&wt(a,t)?(He(`Cannot mutate - - - - - - + + + + + + +