iobroker.hmip
Version:
ioBroker Adapter to use the Homematic Cloud IP AccessPoint via Hommeatic Cloud Rest API
2 lines (1 loc) • 13.3 kB
JavaScript
import"./ConfigCustomHmipSet__mf_v__runtimeInit__mf_v__-Bt-QxDJH.js";import{j as o}from"./jsx-runtime-DG8Pl9r2.js";import{R as d}from"./ConfigCustomHmipSet__loadShare__react__loadShare__-C2rb-Q_t.js";import{C as k}from"./index-i2uYzTGq.js";import{C as g}from"./ConfigCustomHmipSet__loadShare___mf_0_mui_mf_1_material__loadShare__-DJj6ffs_.js";import{C as r}from"./ConfigCustomHmipSet__loadShare___mf_0_iobroker_mf_1_adapter_mf_2_react_mf_2_v5__loadShare__-D7_PrUO1.js";import{H as b}from"./HmipComponent-B-ryjKEb.js";import{S as u,T as m}from"./ThemeProvider-D9sQbTko.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./createTheme-DeCINnsN.js";import"./useThemeWithoutDefault-DJ9aUkXM.js";import"./DefaultPropsProvider-CM5_Gedy.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const c of t.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function a(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=a(e);fetch(e.href,t)}})();var h,_=k;h=_.createRoot,_.hydrateRoot;const f="HMIP instance is not alive",v='If you are using a "Home Control Unit", please press the button on the HCU once initially to enable the remote connection.',y="Create token",z={"custom_hmip_confirming token":"confirming token...","custom_hmip_error occurred during token generation, look at the logs":"error occurred during token generation, look at the logs",custom_hmip_not_alive:f,'custom_hmip_press "request token"':"To create a token, please press the following button.","custom_hmip_press blue button on accesspoint":"Press blue button on access point",custom_hmip_press_hcu_button:v,custom_hmip_request_token:y,"custom_hmip_started token creation":"Started token creation...","custom_hmip_token created, save settings to use your accesspoint":"token created, save settings to use your access point"},C="HMIP-Instanz ist nicht gestartet",q='Wenn Sie eine "Home Control Unit" nutzen, drücken Sie bitte zunächst einmal die Taste an der HCU, um die Fernverbindung zu aktivieren.',H="Token erstellen",j={"custom_hmip_confirming token":"Bestätigungstoken...","custom_hmip_error occurred during token generation, look at the logs":"Während der Token-Generierung ist ein Fehler aufgetreten. Sehen Sie sich die Protokolle an",custom_hmip_not_alive:C,'custom_hmip_press "request token"':"Zur Token-Erstellung bitte den folgenden Knopf drücken","custom_hmip_press blue button on accesspoint":"Drücken Sie die blaue Taste am Access point",custom_hmip_press_hcu_button:q,custom_hmip_request_token:H,"custom_hmip_started token creation":"Token-Erstellung gestartet...","custom_hmip_token created, save settings to use your accesspoint":"Token erstellt, Einstellungen speichern, um Ihren Zugangspunkt zu verwenden"},$="Экземпляр HMIP не работает",S='Если вы используете "Блок управления домом", пожалуйста, нажмите кнопку на HCU один раз, чтобы включить дистанционное соединение.',P="Создать токен",L={"custom_hmip_confirming token":"подтверждающий токен...","custom_hmip_error occurred during token generation, look at the logs":"при генерации токена произошла ошибка, посмотрите логи",custom_hmip_not_alive:$,'custom_hmip_press "request token"':"Чтобы создать токен, нажмите следующую кнопку.","custom_hmip_press blue button on accesspoint":"Нажмите синюю кнопку на точке доступа",custom_hmip_press_hcu_button:S,custom_hmip_request_token:P,"custom_hmip_started token creation":"Начато создание токена...","custom_hmip_token created, save settings to use your accesspoint":"токен создан, сохраните настройки для использования точки доступа"},x="A instância do HMIP não está ativa",w='Se estiver a utilizar uma "Unidade de controlo doméstico", prima uma vez o botão da HCU para ativar a ligação remota.',I="Solicitar token",T={"custom_hmip_confirming token":"símbolo de confirmação...","custom_hmip_error occurred during token generation, look at the logs":"ocorreu um erro durante a geração do token, veja os logs",custom_hmip_not_alive:x,'custom_hmip_press "request token"':"Para criar um token, prima o botão seguinte.","custom_hmip_press blue button on accesspoint":"Pressione o botão azul no ponto de acesso",custom_hmip_press_hcu_button:w,custom_hmip_request_token:I,"custom_hmip_started token creation":"Criação de token iniciada...","custom_hmip_token created, save settings to use your accesspoint":"token criado, salve as configurações para usar seu ponto de acesso"},U="HMIP-instantie leeft niet",M='Als je een "Home Control Unit" gebruikt, druk dan eerst één keer op de knop op de HCU om de verbinding op afstand in te schakelen.',N="Token aanvragen",A={"custom_hmip_confirming token":"bevestigend token...","custom_hmip_error occurred during token generation, look at the logs":"er is een fout opgetreden tijdens het genereren van tokens, kijk naar de logboeken",custom_hmip_not_alive:U,'custom_hmip_press "request token"':"Druk op de volgende knop om een token aan te maken.","custom_hmip_press blue button on accesspoint":"Druk op de blauwe knop op het toegangspunt",custom_hmip_press_hcu_button:M,custom_hmip_request_token:N,"custom_hmip_started token creation":"Token maken gestart...","custom_hmip_token created, save settings to use your accesspoint":"token gemaakt, instellingen opslaan om uw toegangspunt te gebruiken"},R="L'instance de HMIP n'est pas active",D=`Si vous utilisez une "unité de contrôle domestique", appuyez une première fois sur le bouton de l'unité de contrôle domestique pour activer la connexion à distance.`,E="Demander un jeton",O={"custom_hmip_confirming token":"jeton de confirmation...","custom_hmip_error occurred during token generation, look at the logs":"une erreur s'est produite lors de la génération du jeton, consultez les journaux",custom_hmip_not_alive:R,'custom_hmip_press "request token"':"Pour créer un jeton, veuillez appuyer sur le bouton suivant.","custom_hmip_press blue button on accesspoint":"Appuyez sur le bouton bleu du point d'accès",custom_hmip_press_hcu_button:D,custom_hmip_request_token:E,"custom_hmip_started token creation":"Création de jeton lancée...","custom_hmip_token created, save settings to use your accesspoint":"jeton créé, enregistrez les paramètres pour utiliser votre point d'accès"},F="L'istanza di HMIP non è viva",B='Se si utilizza una "Home Control Unit", premere una volta il pulsante sulla HCU per attivare la connessione remota.',J="Richiedi token",G={"custom_hmip_confirming token":"token di conferma...","custom_hmip_error occurred during token generation, look at the logs":"si è verificato un errore durante la generazione del token, guarda i log",custom_hmip_not_alive:F,'custom_hmip_press "request token"':"Per creare un token, premere il pulsante seguente.","custom_hmip_press blue button on accesspoint":"Premere il pulsante blu sull'access point",custom_hmip_press_hcu_button:B,custom_hmip_request_token:J,"custom_hmip_started token creation":"Creazione del token avviata...","custom_hmip_token created, save settings to use your accesspoint":"token creato, salvare le impostazioni per utilizzare il punto di accesso"},K="La instancia de HMIP no está viva",W='Si utiliza una "Home Control Unit", pulse inicialmente una vez el botón de la HCU para activar la conexión remota.',Z="Solicitud de token",Q={"custom_hmip_confirming token":"ficha de confirmación...","custom_hmip_error occurred during token generation, look at the logs":"ocurrió un error durante la generación del token, mire los registros",custom_hmip_not_alive:K,'custom_hmip_press "request token"':"Para crear una ficha, pulse el siguiente botón.","custom_hmip_press blue button on accesspoint":"Presione el botón azul en el punto de acceso",custom_hmip_press_hcu_button:W,custom_hmip_request_token:Z,"custom_hmip_started token creation":"Comenzó la creación del token...","custom_hmip_token created, save settings to use your accesspoint":"token creado, guarde la configuración para usar su punto de acceso"},V="Instancja HMIPu nie żyje",X='Jeśli używasz "Home Control Unit", naciśnij raz przycisk na HCU, aby włączyć zdalne połączenie.',Y="Poproś o token",ee={"custom_hmip_confirming token":"potwierdzanie tokena...","custom_hmip_error occurred during token generation, look at the logs":"wystąpił błąd podczas generowania tokena, spójrz na logi",custom_hmip_not_alive:V,'custom_hmip_press "request token"':"Aby utworzyć token, naciśnij poniższy przycisk.","custom_hmip_press blue button on accesspoint":"Naciśnij niebieski przycisk na punkcie dostępowym",custom_hmip_press_hcu_button:X,custom_hmip_request_token:Y,"custom_hmip_started token creation":"Rozpoczęto tworzenie tokena...","custom_hmip_token created, save settings to use your accesspoint":"utworzony token, zapisz ustawienia, aby korzystać z punktu dostępu"},te="Екземпляр HMIP не працює",oe=`Якщо ви використовуєте "Домашній блок управління", будь ласка, спочатку натисніть кнопку на блоці один раз, щоб увімкнути дистанційне з'єднання.`,ne="Маркер запиту",se={"custom_hmip_confirming token":"підтвердження маркера...","custom_hmip_error occurred during token generation, look at the logs":"сталася помилка під час генерації маркера, перегляньте журнали",custom_hmip_not_alive:te,'custom_hmip_press "request token"':"Щоб створити токен, будь ласка, натисніть наступну кнопку.","custom_hmip_press blue button on accesspoint":"Натисніть синю кнопку на точці доступу",custom_hmip_press_hcu_button:oe,custom_hmip_request_token:ne,"custom_hmip_started token creation":"Розпочато створення маркера...","custom_hmip_token created, save settings to use your accesspoint":"маркер створено, збережіть налаштування для використання вашої точки доступу"},ie="HMIP 实例不存在",re='If you are using a "Home Control Unit", please press the button on the HCU once initially to enable the remote connection.',ae="请求令牌",ce={"custom_hmip_confirming token":"确认令牌...","custom_hmip_error occurred during token generation, look at the logs":"token生成过程中出现错误,查看日志",custom_hmip_not_alive:ie,'custom_hmip_press "request token"':"To create a token, please press the following button.","custom_hmip_press blue button on accesspoint":"按接入点上的蓝色按钮",custom_hmip_press_hcu_button:re,custom_hmip_request_token:ae,"custom_hmip_started token creation":"开始创建代币...","custom_hmip_token created, save settings to use your accesspoint":"令牌已创建,保存设置以使用您的接入点"},p={app:s=>({backgroundColor:s.palette.background.default,color:s.palette.text.primary,height:"100%"}),item:{padding:50,width:400}};class ue extends r.GenericApp{constructor(n){const a={...n};super(n,a),this.state={...this.state,data:{myCustomAttribute:"red"},originalData:{myCustomAttribute:"red"},theme:this.createTheme()};const i={en:z,de:j,ru:L,pt:T,nl:A,fr:O,it:G,es:Q,pl:ee,uk:se,"zh-cn":ce};r.I18n.setTranslations(i),r.I18n.setLanguage((navigator.language||navigator.userLanguage||"en").substring(0,2).toLowerCase())}render(){return this.state.loaded?o.jsx(u,{injectFirst:!0,children:o.jsx(m,{theme:this.state.theme,children:o.jsx(g.Box,{sx:p.app,children:o.jsx("div",{style:p.item,children:o.jsx(b,{oContext:{adapterName:"telegram",socket:this.socket,instance:0,themeType:this.state.theme.palette.mode,isFloatComma:!0,dateFormat:"",forceUpdate:()=>{},systemConfig:{},theme:this.state.theme,_themeName:this.state.themeName,onCommandRunning:n=>{}},alive:!0,changed:JSON.stringify(this.state.originalData)!==JSON.stringify(this.state.data),themeName:this.state.theme.palette.mode,common:{},attr:"myCustomAttribute",data:this.state.data,originalData:this.state.originalData,onError:()=>{},schema:{url:"",i18n:!0,name:"ConfigCustomTelegramSet/Components/TelegramComponent",type:"custom"},onChange:n=>this.setState({data:n})})})})})}):o.jsx(u,{injectFirst:!0,children:o.jsx(m,{theme:this.state.theme,children:o.jsx(r.Loader,{themeType:this.state.themeType})})})}}window.adapterName="adapter-component-template";const l=document.getElementById("root");l&&h(l).render(o.jsx(d.StrictMode,{children:o.jsx(ue,{socket:{port:8081}})}));