diff --git a/src-admin/package-lock.json b/src-admin/package-lock.json index bc74668..9177463 100644 --- a/src-admin/package-lock.json +++ b/src-admin/package-lock.json @@ -1,12 +1,12 @@ { "name": "iobroker.matter", - "version": "0.3.4", + "version": "0.3.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "iobroker.matter", - "version": "0.3.4", + "version": "0.3.5", "dependencies": { "@foxriver76/iob-component-lib": "^0.2.0", "@iobroker/adapter-react-v5": "^7.4.10", diff --git a/src-admin/src/Tabs/Options.tsx b/src-admin/src/Tabs/Options.tsx index 1c03936..0276663 100644 --- a/src-admin/src/Tabs/Options.tsx +++ b/src-admin/src/Tabs/Options.tsx @@ -25,6 +25,8 @@ import { Check, Close, LayersClear, AutoAwesome, Clear } from '@mui/icons-materi import { type AdminConnection, I18n, Logo } from '@iobroker/adapter-react-v5'; import InfoBox from '../components/InfoBox'; +import LoginPassword from '../components/LoginPassword'; +import NetworkSelector from '../components/NetworkSelector'; import type { MatterAdapterConfig, MatterConfig } from '../types'; const styles: Record = { @@ -58,15 +60,6 @@ const styles: Record = { }, }; -interface NetworkInterface { - address: string; - netmask: string; - family: string; - mac: string; - internal: boolean; - cidr: string; -} - interface OptionsProps { alive: boolean; socket: AdminConnection; diff --git a/src-admin/src/components/WelcomeDialog.tsx b/src-admin/src/components/WelcomeDialog.tsx index 8510cbd..92fa2a5 100644 --- a/src-admin/src/components/WelcomeDialog.tsx +++ b/src-admin/src/components/WelcomeDialog.tsx @@ -231,9 +231,9 @@ class WelcomeDialog extends React.Component - {I18n.t( - 'Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.', - )} + {`${I18n.t('Matter requires enabled IPv6 protocol on selected interface.')} ${I18n.t( + 'Some IPv6 was found on your system.', + )}`} ); } else if (validate.ipV6found && (this.state.showNetwork || this.props.native.interface)) { @@ -245,9 +245,9 @@ class WelcomeDialog extends React.Component - {I18n.t( - 'Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:', - )} + {`${I18n.t('Matter requires enabled IPv6 protocol on selected interface.')} ${I18n.t( + 'Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:', + )}`} - {I18n.t( - 'Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.', - )} + {`${I18n.t('Matter requires enabled IPv6 protocol on selected interface.')} ${I18n.t( + 'Some IPv6 was found on your system.', + )}`} ); } else { @@ -273,9 +273,9 @@ class WelcomeDialog extends React.Component - {I18n.t( - 'Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!', - )} + {`${I18n.t('Matter requires enabled IPv6 protocol on selected interface.')} ${I18n.t( + 'No IPv6 was found on your system!', + )}`} ); } diff --git a/src-admin/src/i18n/de.json b/src-admin/src/i18n/de.json index 0427339..fab5a99 100644 --- a/src-admin/src/i18n/de.json +++ b/src-admin/src/i18n/de.json @@ -95,13 +95,12 @@ "Matter Bridges Infotext": "Matter Bridges können mehrere Geräte enthalten und sind die einfachste Möglichkeit, ioBroker-Geräte in ein Matter-kompatibles Ökosystem zu integrieren. In einer Bridge enthaltene Geräte können auch nach der Inbetriebnahme der Bridge hinzugefügt oder entfernt werden. Einige Geräteeigenschaften können nicht mehr geändert werden, nachdem die Bridge als Controller in Betrieb genommen wurde.\n\nWenn Sie mindestens eine Assistentenlizenz in Ihrem ioBroker.pro-Konto besitzen, können Sie auch mehrere Bridges erstellen und Ihre Geräte so optimal strukturieren.\n\nBitte beachten: Aufgrund von Einschränkungen des Amazon Alexa-Systems können Sie pro ioBroker-Host nur eine Bridge oder ein Gerät mit Alexa koppeln!", "Matter Controller BLE Dialog Infotext": "Um Geräte zu koppeln, die WLAN oder Thread zur Kommunikation verwenden, müssen Sie Ihre WLAN- oder Thread-Anmeldeinformationen angeben.\nDiese Anmeldeinformationen werden dann bei der Inbetriebnahme an das Gerät übermittelt.\nWenn das Gerät bereits in einem anderen Ökosystem in Betrieb genommen wurde und bereits im Netzwerk ist, ist dies nicht erforderlich.", "Matter Controller Infotext": "Verwenden Sie die „Controller“-Funktionen, um Matter-kompatible Geräte in ioBroker zu integrieren. \nSie können Geräte entdecken, in Betrieb nehmen und anschließend verwalten. Die Daten der Geräte sind als Status auf der Registerkarte „Objekte“ von ioBroker verfügbar. \nDie Controller-Funktion ist standardmäßig deaktiviert und kann mit dem folgenden Schalter aktiviert werden.", - "Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!": "Matter erfordert aktiviertes IPv6-Protokoll auf der ausgewählten Schnittstelle. Auf Ihrem System wurde kein IPv6 gefunden!", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.": "Matter erfordert aktiviertes IPv6-Protokoll auf der ausgewählten Schnittstelle. Auf Ihrem System wurde IPv6 gefunden.", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Matter erfordert aktiviertes IPv6-Protokoll auf der ausgewählten Schnittstelle. Auf Ihrem System wurde IPv6 gefunden. Ihre aktuell ausgewählte Schnittstelle unterstützt es jedoch nicht. Bitte wählen Sie unten eine andere aus:", + "Matter requires enabled IPv6 protocol on selected interface.": "Matter erfordert ein aktiviertes IPv6-Protokoll auf der ausgewählten Schnittstelle.", "More details in the Troubleshooting Guide": "Weitere Einzelheiten finden Sie im Leitfaden zur Fehlerbehebung", "Name": "Name", "Network configuration": "Netzwerkkonfiguration", "New bridge": "Neue Brücke", + "No IPv6 was found on your system!": "Auf Ihrem System wurde kein IPv6 gefunden!", "No QR code found": "Kein QR-Code gefunden", "No bridges created. Create one, by clicking on the \"+\" button in the bottom right corner.": "Es wurden keine Brücken geschaffen. Erstellen Sie eines, indem Sie auf die Schaltfläche „+“ in der unteren rechten Ecke klicken.", "No devices was added, as they are already in the list": "Es wurden keine Geräte hinzugefügt, da sie bereits in der Liste sind", @@ -150,6 +149,8 @@ "Show readme page": "Readme-Seite anzeigen", "Show unsupported devices": "Nicht unterstützte Geräte anzeigen", "Show welcome dialog": "Willkommensdialog anzeigen", + "Some IPv6 was found on your system.": "Auf Ihrem System wurde IPv6 gefunden.", + "Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Auf Ihrem System wurde IPv6 gefunden. Ihre aktuell ausgewählte Schnittstelle unterstützt dies jedoch nicht. Bitte wählen Sie unten eine andere aus:", "Status": "Status", "Stay here": "Hier bleiben", "Stop": "Anhalten", diff --git a/src-admin/src/i18n/en.json b/src-admin/src/i18n/en.json index c04013b..cdef05a 100644 --- a/src-admin/src/i18n/en.json +++ b/src-admin/src/i18n/en.json @@ -95,13 +95,12 @@ "Matter Bridges Infotext": "Matter Bridges can contain multiple devices inside them and are the most simple way to bring ioBroker devices into a Matter compatible ecosystem. Devices contained in a bridge can also be added or removed after the bridge got commissioned. Some device properties can not be changed after the bridge got commissioned into a controller.\n\nWhen you own at least an Assistant License in your ioBroker.pro Account you can also create multiple bridges an so structure your devices best.\n\nPlease note: Because of limitations of the Amazon Alexa system you can only have one bridge or device paired with Alexa per ioBroker host!", "Matter Controller BLE Dialog Infotext": "To pair devices that use WLAN or Thread to communicate you need to provide your WLAN or Thread credentials.\nThese credentials are then submitted to the device during commissioning. \nIf the device was already commissioned into an other ecosystem and is already in the network this is not needed.", "Matter Controller Infotext": "Use the \"Controller\" features to integrate Matter compatible devices into ioBroker. \nYou can discover and commission device and manage them afterwards. The data of the devices will be available as states in the ioBroker Objects tab. \nThe controller feature is disabled by default and can be enabled with the below switch.", - "Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!": "Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.": "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:", + "Matter requires enabled IPv6 protocol on selected interface.": "Matter requires enabled IPv6 protocol on selected interface.", "More details in the Troubleshooting Guide": "More details in the Troubleshooting Guide", "Name": "Name", "Network configuration": "Network configuration", "New bridge": "New bridge", + "No IPv6 was found on your system!": "No IPv6 was found on your system!", "No QR code found": "No QR code found", "No bridges created. Create one, by clicking on the \"+\" button in the bottom right corner.": "No bridges created. Create one, by clicking on the \"+\" button in the bottom right corner.", "No devices was added, as they are already in the list": "No devices was added, as they are already in the list", @@ -150,6 +149,8 @@ "Show readme page": "Show readme page", "Show unsupported devices": "Show unsupported devices", "Show welcome dialog": "Show welcome dialog", + "Some IPv6 was found on your system.": "Some IPv6 was found on your system.", + "Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:", "Status": "Status", "Stay here": "Stay here", "Stop": "Stop", diff --git a/src-admin/src/i18n/es.json b/src-admin/src/i18n/es.json index c427eaa..8dbeff9 100644 --- a/src-admin/src/i18n/es.json +++ b/src-admin/src/i18n/es.json @@ -95,13 +95,12 @@ "Matter Bridges Infotext": "Los Matter Bridges pueden contener varios dispositivos en su interior y son la forma más sencilla de incorporar dispositivos ioBroker a un ecosistema compatible con Matter. Los dispositivos contenidos en un puente también se pueden agregar o quitar después de que el puente se haya puesto en servicio. Algunas propiedades del dispositivo no se pueden cambiar después de que el puente se haya puesto en servicio en un controlador.\n\nCuando posee al menos una licencia de Asistente en su cuenta ioBroker.pro, también puede crear múltiples puentes para estructurar mejor sus dispositivos.\n\nTenga en cuenta: debido a las limitaciones del sistema Amazon Alexa, ¡solo puede tener un puente o dispositivo emparejado con Alexa por host ioBroker!", "Matter Controller BLE Dialog Infotext": "Para emparejar dispositivos que utilizan WLAN o Thread para comunicarse, debe proporcionar sus credenciales de WLAN o Thread.\nLuego, estas credenciales se envían al dispositivo durante la puesta en servicio. \nSi el dispositivo ya se puso en servicio en otro ecosistema y ya está en la red, esto no es necesario.", "Matter Controller Infotext": "Utilice las funciones del \"Controlador\" para integrar dispositivos compatibles con Matter en ioBroker. \nPuede descubrir y poner en marcha dispositivos y gestionarlos posteriormente. Los datos de los dispositivos estarán disponibles como estados en la pestaña Objetos de ioBroker. \nLa función del controlador está deshabilitada de forma predeterminada y se puede habilitar con el siguiente interruptor.", - "Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!": "Matter requiere el protocolo IPv6 habilitado en la interfaz seleccionada. ¡No se encontró IPv6 en su sistema!", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.": "Matter requiere que el protocolo IPv6 esté habilitado en la interfaz seleccionada. Se encontró algún protocolo IPv6 en su sistema.", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Matter requiere que el protocolo IPv6 esté habilitado en la interfaz seleccionada. Se encontró algún protocolo IPv6 en su sistema, pero la interfaz seleccionada actualmente no lo admite. Seleccione otra a continuación:", + "Matter requires enabled IPv6 protocol on selected interface.": "Matter requiere que el protocolo IPv6 esté habilitado en la interfaz seleccionada.", "More details in the Troubleshooting Guide": "Más detalles en la Guía de solución de problemas", "Name": "Nombre", "Network configuration": "Configuración de la red", "New bridge": "Nuevo puente", + "No IPv6 was found on your system!": "¡No se encontró IPv6 en su sistema!", "No QR code found": "No se encontró ningún código QR", "No bridges created. Create one, by clicking on the \"+\" button in the bottom right corner.": "No se crearon puentes. Cree uno haciendo clic en el botón \"+\" en la esquina inferior derecha.", "No devices was added, as they are already in the list": "No se agregaron dispositivos, ya que están en la lista.", @@ -150,6 +149,8 @@ "Show readme page": "Mostrar página readme", "Show unsupported devices": "Mostrar dispositivos no compatibles", "Show welcome dialog": "Mostrar diálogo de bienvenida", + "Some IPv6 was found on your system.": "Se encontró algún IPv6 en su sistema.", + "Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Se encontró algún IPv6 en su sistema, pero la interfaz seleccionada actualmente no lo admite. Seleccione otra a continuación:", "Status": "Estado", "Stay here": "Quédate aquí", "Stop": "Detener", diff --git a/src-admin/src/i18n/fr.json b/src-admin/src/i18n/fr.json index 1d63834..7c683b4 100644 --- a/src-admin/src/i18n/fr.json +++ b/src-admin/src/i18n/fr.json @@ -95,13 +95,12 @@ "Matter Bridges Infotext": "Les Matter Bridges peuvent contenir plusieurs appareils et constituent le moyen le plus simple d'intégrer des appareils ioBroker dans un écosystème compatible Matter. Les appareils contenus dans un pont peuvent également être ajoutés ou supprimés une fois le pont mis en service. Certaines propriétés de l'appareil ne peuvent pas être modifiées une fois le pont mis en service dans un contrôleur.\n\nLorsque vous possédez au moins une licence Assistant dans votre compte ioBroker.pro, vous pouvez également créer plusieurs ponts afin de structurer au mieux vos appareils.\n\nRemarque : en raison des limitations du système Amazon Alexa, vous ne pouvez avoir qu'un seul pont ou appareil associé à Alexa par hôte ioBroker !", "Matter Controller BLE Dialog Infotext": "Pour coupler des appareils qui utilisent WLAN ou Thread pour communiquer, vous devez fournir vos informations d'identification WLAN ou Thread.\nCes informations d'identification sont ensuite soumises à l'appareil lors de la mise en service. \nSi l'appareil a déjà été mis en service dans un autre écosystème et se trouve déjà dans le réseau, cela n'est pas nécessaire.", "Matter Controller Infotext": "Utilisez les fonctionnalités « Contrôleur » pour intégrer des appareils compatibles Matter dans ioBroker. \nVous pouvez découvrir et mettre en service des appareils et les gérer ensuite. Les données des appareils seront disponibles sous forme d'états dans l'onglet Objets ioBroker. \nLa fonction du contrôleur est désactivée par défaut et peut être activée avec le commutateur ci-dessous.", - "Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!": "Matter nécessite l'activation du protocole IPv6 sur l'interface sélectionnée. Aucun IPv6 n'a été trouvé sur votre système !", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.": "Matter nécessite que le protocole IPv6 soit activé sur l'interface sélectionnée. Un IPv6 a été détecté sur votre système.", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Matter nécessite l'activation du protocole IPv6 sur l'interface sélectionnée. Une certaine IPv6 a été détectée sur votre système. Mais l'interface actuellement sélectionnée ne le prend pas en charge. Veuillez en sélectionner une autre ci-dessous :", + "Matter requires enabled IPv6 protocol on selected interface.": "Matter nécessite le protocole IPv6 activé sur l'interface sélectionnée.", "More details in the Troubleshooting Guide": "Plus de détails dans le Guide de dépannage", "Name": "Nom", "Network configuration": "Configuration du réseau", "New bridge": "Nouveau pont", + "No IPv6 was found on your system!": "Aucune IPv6 n'a été trouvée sur votre système !", "No QR code found": "Aucun code QR trouvé", "No bridges created. Create one, by clicking on the \"+\" button in the bottom right corner.": "Aucun pont créé. Créez-en un en cliquant sur le bouton \"+\" dans le coin inférieur droit.", "No devices was added, as they are already in the list": "Aucun appareil n'a été ajouté, car ils sont déjà dans la liste", @@ -150,6 +149,8 @@ "Show readme page": "Afficher la page readme", "Show unsupported devices": "Afficher les appareils non pris en charge", "Show welcome dialog": "Afficher la boîte de dialogue de bienvenue", + "Some IPv6 was found on your system.": "Une IPv6 a été trouvée sur votre système.", + "Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Une certaine IPv6 a été détectée sur votre système. Mais l'interface actuellement sélectionnée ne la prend pas en charge. Veuillez en sélectionner une autre ci-dessous :", "Status": "Statut", "Stay here": "Reste ici", "Stop": "Arrêt", diff --git a/src-admin/src/i18n/it.json b/src-admin/src/i18n/it.json index 4e5313d..c58757b 100644 --- a/src-admin/src/i18n/it.json +++ b/src-admin/src/i18n/it.json @@ -95,13 +95,12 @@ "Matter Bridges Infotext": "I Matter Bridge possono contenere più dispositivi al loro interno e rappresentano il modo più semplice per portare i dispositivi ioBroker in un ecosistema compatibile con Matter. I dispositivi contenuti in un bridge possono anche essere aggiunti o rimossi dopo la messa in servizio del bridge. Alcune proprietà del dispositivo non possono essere modificate dopo la messa in servizio del bridge in un controller.\n\nQuando possiedi almeno una licenza Assistant nel tuo account ioBroker.pro puoi anche creare più bridge per strutturare al meglio i tuoi dispositivi.\n\nNota: a causa delle limitazioni del sistema Amazon Alexa puoi avere un solo bridge o dispositivo accoppiato con Alexa per host ioBroker!", "Matter Controller BLE Dialog Infotext": "Per associare i dispositivi che utilizzano WLAN o Thread per comunicare è necessario fornire le credenziali WLAN o Thread.\nQueste credenziali vengono quindi inviate al dispositivo durante la messa in servizio. \nSe il dispositivo è già stato messo in servizio in un altro ecosistema ed è già nella rete, ciò non è necessario.", "Matter Controller Infotext": "Utilizza le funzionalità \"Controller\" per integrare i dispositivi compatibili con Matter in ioBroker. \nPuoi scoprire e mettere in servizio il dispositivo e gestirlo successivamente. I dati dei dispositivi saranno disponibili come stati nella scheda Oggetti ioBroker. \nLa funzionalità del controller è disabilitata per impostazione predefinita e può essere abilitata con l'interruttore seguente.", - "Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!": "Matter richiede il protocollo IPv6 abilitato sull'interfaccia selezionata. Nessun IPv6 trovato sul tuo sistema!", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.": "Matter richiede il protocollo IPv6 abilitato sull'interfaccia selezionata. È stato trovato un IPv6 sul tuo sistema.", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Matter richiede il protocollo IPv6 abilitato sull'interfaccia selezionata. È stato trovato un IPv6 sul tuo sistema. Ma l'interfaccia attualmente selezionata non lo supporta. Selezionane un'altra qui sotto:", + "Matter requires enabled IPv6 protocol on selected interface.": "Matter richiede che il protocollo IPv6 sia abilitato sull'interfaccia selezionata.", "More details in the Troubleshooting Guide": "Maggiori dettagli nella Guida alla risoluzione dei problemi", "Name": "Nome", "Network configuration": "Configurazione di rete", "New bridge": "Nuovo ponte", + "No IPv6 was found on your system!": "Nessun IPv6 trovato sul tuo sistema!", "No QR code found": "Nessun codice QR trovato", "No bridges created. Create one, by clicking on the \"+\" button in the bottom right corner.": "Nessun ponte creato. Creane uno facendo clic sul pulsante \"+\" nell'angolo in basso a destra.", "No devices was added, as they are already in the list": "Nessun dispositivo è stato aggiunto, poiché sono già presenti nell'elenco", @@ -150,6 +149,8 @@ "Show readme page": "Mostra la pagina Leggimi", "Show unsupported devices": "Mostra i dispositivi non supportati", "Show welcome dialog": "Mostra finestra di dialogo di benvenuto", + "Some IPv6 was found on your system.": "È stato trovato un IPv6 nel tuo sistema.", + "Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "È stato trovato un IPv6 sul tuo sistema. Ma l'interfaccia attualmente selezionata non lo supporta. Selezionane un altro qui sotto:", "Status": "Stato", "Stay here": "Resta qui", "Stop": "Fermare", diff --git a/src-admin/src/i18n/nl.json b/src-admin/src/i18n/nl.json index 8d7e720..7562b5a 100644 --- a/src-admin/src/i18n/nl.json +++ b/src-admin/src/i18n/nl.json @@ -95,13 +95,12 @@ "Matter Bridges Infotext": "Matter Bridges kunnen meerdere apparaten bevatten en zijn de meest eenvoudige manier om ioBroker-apparaten in een Matter-compatibel ecosysteem te brengen. Apparaten in een brug kunnen ook worden toegevoegd of verwijderd nadat de brug in gebruik is genomen. Sommige apparaateigenschappen kunnen niet worden gewijzigd nadat de brug in een controller is in bedrijf gesteld.\n\nWanneer u minimaal een Assistent-licentie in uw ioBroker.pro-account bezit, kunt u ook meerdere bridges maken om uw apparaten zo het beste te structureren.\n\nLet op: vanwege de beperkingen van het Amazon Alexa-systeem kun je per ioBroker-host slechts één bridge of apparaat met Alexa koppelen!", "Matter Controller BLE Dialog Infotext": "Om apparaten te koppelen die WLAN of Thread gebruiken om te communiceren, moet u uw WLAN- of Thread-inloggegevens opgeven.\nDeze inloggegevens worden vervolgens tijdens de inbedrijfstelling naar het apparaat verzonden. \nAls het apparaat al in gebruik is genomen in een ander ecosysteem en zich al in het netwerk bevindt, is dit niet nodig.", "Matter Controller Infotext": "Gebruik de \"Controller\"-functies om Matter-compatibele apparaten in ioBroker te integreren. \nU kunt apparaten ontdekken, in bedrijf stellen en achteraf beheren. De gegevens van de apparaten zullen beschikbaar zijn als statussen op het tabblad ioBroker Objects. \nDe controllerfunctie is standaard uitgeschakeld en kan worden ingeschakeld met de onderstaande schakelaar.", - "Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!": "Matter vereist ingeschakeld IPv6-protocol op geselecteerde interface. Er is geen IPv6 gevonden op uw systeem!", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.": "Matter vereist ingeschakeld IPv6-protocol op geselecteerde interface. Er is wat IPv6 gevonden op uw systeem.", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Matter vereist ingeschakeld IPv6-protocol op geselecteerde interface. Er is wat IPv6 gevonden op uw systeem. Maar uw momenteel geselecteerde interface ondersteunt het niet. Selecteer hieronder een andere:", + "Matter requires enabled IPv6 protocol on selected interface.": "Voor Matter is ingeschakeld IPv6-protocol op de geselecteerde interface vereist.", "More details in the Troubleshooting Guide": "Meer details in de Probleemoplossingsgids", "Name": "Naam", "Network configuration": "Netwerk configuratie", "New bridge": "Nieuwe brug", + "No IPv6 was found on your system!": "Er is geen IPv6 op uw systeem gevonden!", "No QR code found": "Geen QR-code gevonden", "No bridges created. Create one, by clicking on the \"+\" button in the bottom right corner.": "Er zijn geen bruggen gemaakt. Maak er een door op de knop \"+\" in de rechteronderhoek te klikken.", "No devices was added, as they are already in the list": "Er zijn geen apparaten toegevoegd, omdat ze al in de lijst staan", @@ -150,6 +149,8 @@ "Show readme page": "Leesmij-pagina weergeven", "Show unsupported devices": "Toon niet-ondersteunde apparaten", "Show welcome dialog": "Welkomstdialoog weergeven", + "Some IPv6 was found on your system.": "Er is IPv6 op uw systeem gevonden.", + "Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Er is wat IPv6 gevonden op uw systeem. Maar uw huidige geselecteerde interface ondersteunt het niet. Selecteer hieronder een andere:", "Status": "Toestand", "Stay here": "Blijf hier", "Stop": "Stop", diff --git a/src-admin/src/i18n/pl.json b/src-admin/src/i18n/pl.json index b82b0ca..7de2450 100644 --- a/src-admin/src/i18n/pl.json +++ b/src-admin/src/i18n/pl.json @@ -95,13 +95,12 @@ "Matter Bridges Infotext": "Matter Bridges może zawierać wiele urządzeń i jest najprostszym sposobem na wprowadzenie urządzeń ioBroker do ekosystemu kompatybilnego z Matter. Urządzenia znajdujące się w moście można również dodawać lub usuwać po oddaniu mostu do użytku. Niektórych właściwości urządzenia nie da się zmienić po uruchomieniu mostu w sterowniku.\n\nJeśli posiadasz co najmniej Licencję Asystenta na swoim koncie ioBroker.pro, możesz także tworzyć wiele mostów, aby najlepiej zorganizować swoje urządzenia.\n\nUwaga: ze względu na ograniczenia systemu Amazon Alexa, na jednego hosta ioBroker można sparować tylko jeden most lub urządzenie z Alexą!", "Matter Controller BLE Dialog Infotext": "Aby sparować urządzenia korzystające z sieci WLAN lub wątku do komunikacji, musisz podać dane uwierzytelniające sieć WLAN lub wątek.\nTe dane uwierzytelniające są następnie przesyłane do urządzenia podczas uruchamiania. \nJeśli urządzenie zostało już uruchomione w innym ekosystemie i znajduje się już w sieci, nie jest to potrzebne.", "Matter Controller Infotext": "Skorzystaj z funkcji „Kontrolera”, aby zintegrować urządzenia kompatybilne z Matter z ioBroker. \nMożesz odkryć i uruchomić urządzenie, a następnie zarządzać nimi. Dane urządzeń będą dostępne jako stany w zakładce Obiekty ioBroker. \nFunkcja kontrolera jest domyślnie wyłączona i można ją włączyć za pomocą poniższego przełącznika.", - "Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!": "Matter wymaga włączonego protokołu IPv6 na wybranym interfejsie. Nie znaleziono protokołu IPv6 w Twoim systemie!", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.": "Matter wymaga włączonego protokołu IPv6 na wybranym interfejsie. Niektóre IPv6 zostały znalezione w twoim systemie.", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Matter wymaga włączonego protokołu IPv6 na wybranym interfejsie. W systemie znaleziono niektóre IPv6. Jednak obecnie wybrany interfejs go nie obsługuje. Wybierz inny poniżej:", + "Matter requires enabled IPv6 protocol on selected interface.": "Matter wymaga włączonego protokołu IPv6 na wybranym interfejsie.", "More details in the Troubleshooting Guide": "Więcej szczegółów w Przewodniku rozwiązywania problemów", "Name": "Nazwa", "Network configuration": "Konfiguracja sieci", "New bridge": "Nowy most", + "No IPv6 was found on your system!": "Nie znaleziono protokołu IPv6 w Twoim systemie!", "No QR code found": "Nie znaleziono kodu QR", "No bridges created. Create one, by clicking on the \"+\" button in the bottom right corner.": "Nie utworzono żadnych mostów. Utwórz go, klikając przycisk „+” w prawym dolnym rogu.", "No devices was added, as they are already in the list": "Nie dodano żadnych urządzeń, ponieważ znajdują się one już na liście", @@ -150,6 +149,8 @@ "Show readme page": "Pokaż stronę readme", "Show unsupported devices": "Pokaż nieobsługiwane urządzenia", "Show welcome dialog": "Pokaż okno dialogowe powitalne", + "Some IPv6 was found on your system.": "W Twoim systemie znaleziono adresy IPv6.", + "Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Niektóre IPv6 zostały znalezione w twoim systemie. Ale twój aktualnie wybrany interfejs go nie obsługuje. Wybierz inny poniżej:", "Status": "Status", "Stay here": "Zostań tutaj", "Stop": "Zatrzymywać się", diff --git a/src-admin/src/i18n/pt.json b/src-admin/src/i18n/pt.json index c916f12..34ddf75 100644 --- a/src-admin/src/i18n/pt.json +++ b/src-admin/src/i18n/pt.json @@ -95,13 +95,12 @@ "Matter Bridges Infotext": "Matter Bridges podem conter vários dispositivos dentro deles e são a maneira mais simples de trazer dispositivos ioBroker para um ecossistema compatível com Matter. Os dispositivos contidos em uma ponte também podem ser adicionados ou removidos após o comissionamento da ponte. Algumas propriedades do dispositivo não podem ser alteradas depois que a ponte foi comissionada em um controlador.\n\nQuando você possui pelo menos uma licença de assistente em sua conta ioBroker.pro, você também pode criar várias pontes e estruturar melhor seus dispositivos.\n\nObservação: devido às limitações do sistema Amazon Alexa, você só pode ter uma ponte ou dispositivo emparelhado com Alexa por host ioBroker!", "Matter Controller BLE Dialog Infotext": "Para emparelhar dispositivos que usam WLAN ou Thread para se comunicar, você precisa fornecer suas credenciais de WLAN ou Thread.\nEssas credenciais são então enviadas ao dispositivo durante o comissionamento. \nSe o dispositivo já tiver sido comissionado em outro ecossistema e já estiver na rede, isso não será necessário.", "Matter Controller Infotext": "Use os recursos do \"Controlador\" para integrar dispositivos compatíveis com Matter no ioBroker. \nVocê pode descobrir e comissionar dispositivos e gerenciá-los posteriormente. Os dados dos dispositivos estarão disponíveis como estados na aba Objetos ioBroker. \nO recurso do controlador está desabilitado por padrão e pode ser habilitado com a chave abaixo.", - "Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!": "O assunto requer protocolo IPv6 habilitado na interface selecionada. Nenhum IPv6 foi encontrado no seu sistema!", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.": "O assunto requer protocolo IPv6 habilitado na interface selecionada. Algum IPv6 foi encontrado no seu sistema.", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "O assunto requer protocolo IPv6 habilitado na interface selecionada. Algum IPv6 foi encontrado no seu sistema. Mas sua interface selecionada atualmente não o suporta. Selecione outro abaixo:", + "Matter requires enabled IPv6 protocol on selected interface.": "Matter requer o protocolo IPv6 habilitado na interface selecionada.", "More details in the Troubleshooting Guide": "Mais detalhes no Guia de solução de problemas", "Name": "Nome", "Network configuration": "Configuração de rede", "New bridge": "Nova ponte", + "No IPv6 was found on your system!": "Nenhum IPv6 foi encontrado no seu sistema!", "No QR code found": "Nenhum código QR encontrado", "No bridges created. Create one, by clicking on the \"+\" button in the bottom right corner.": "Nenhuma ponte criada. Crie um clicando no botão “+” no canto inferior direito.", "No devices was added, as they are already in the list": "Nenhum dispositivo foi adicionado, pois eles já estão na lista", @@ -150,6 +149,8 @@ "Show readme page": "Mostrar página leia-me", "Show unsupported devices": "Mostrar dispositivos não suportados", "Show welcome dialog": "Mostrar caixa de diálogo de boas-vindas", + "Some IPv6 was found on your system.": "Algum IPv6 foi encontrado no seu sistema.", + "Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Algum IPv6 foi encontrado no seu sistema. Mas sua interface selecionada atualmente não o suporta. Selecione outra abaixo:", "Status": "Status", "Stay here": "Fique aqui", "Stop": "Parar", diff --git a/src-admin/src/i18n/ru.json b/src-admin/src/i18n/ru.json index 6d8b3cd..643d422 100644 --- a/src-admin/src/i18n/ru.json +++ b/src-admin/src/i18n/ru.json @@ -43,7 +43,7 @@ "Configure custom device": "Настройка пользовательского устройства", "Connect": "Соединить", "Connect Matter devices with ioBroker": "Подключить устройства Matter к ioBroker", - "Connected": "Связанный", + "Connected": "Соединено", "Controller": "Контроллер", "Controller Settings": "Настройки контроллера", "Controller and Device Factory Reset": "Сброс настроек контроллера и устройств до заводских настроек", @@ -66,6 +66,7 @@ "Discovered devices to pair": "Обнаружены устройства для сопряжения", "Discovery devices": "Обнаружение и сопряжение устройств", "Do not compose devices (Alexa does not support composed devices yet)": "Не создавать составные устройства (если экосистема для сопряжения не поддерживает составленные устройства)", + "Do not forget to save changed settings": "Не забудьте сохранить измененные настройки.", "Do you want to delete bridge": "Вы хотите удалить мост?", "Do you want to delete device": "Вы хотите удалить устройство", "Docker information": "Поскольку ioBroker работает в Docker, необходимо использовать хост-сеть, в противном случае маршрутизация IPv6 и UDP работать не будет.", @@ -94,13 +95,12 @@ "Matter Bridges Infotext": "Matter Bridges может содержать внутри себя несколько устройств и является наиболее простым способом объединения устройств ioBroker в экосистему, совместимую с Matter. Устройства, содержащиеся в мосте, также можно добавлять или удалять после ввода моста в эксплуатацию. Некоторые свойства устройства невозможно изменить после ввода моста в состав контроллера.\n\nЕсли у вас есть хотя бы лицензия Assistant в вашей учетной записи ioBroker.pro, вы также можете создать несколько мостов, чтобы лучше структурировать свои устройства.\n\nОбратите внимание: из-за ограничений системы Amazon Alexa вы можете иметь только один мост или устройство, сопряженное с Alexa, на один хост ioBroker!", "Matter Controller BLE Dialog Infotext": "Для сопряжения устройств, которые используют WLAN или Thread для связи, вам необходимо предоставить свои учетные данные WLAN или Thread.\nЭти учетные данные затем передаются на устройство во время ввода в эксплуатацию. \nЕсли устройство уже было введено в эксплуатацию в другой экосистеме и уже находится в сети, в этом нет необходимости.", "Matter Controller Infotext": "Используйте функции «Контроллер» для интеграции совместимых с Matter устройств в ioBroker. \nВы можете обнаружить и ввести в эксплуатацию устройство, а затем управлять им. Данные устройств будут доступны в виде состояний на вкладке «Объекты ioBroker». \nФункция контроллера по умолчанию отключена, но ее можно включить с помощью переключателя ниже.", - "Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!": "Matter требует включенного протокола IPv6 на выбранном интерфейсе. IPv6 не найден в вашей системе!", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.": "Matter требует включенного протокола IPv6 на выбранном интерфейсе. В вашей системе обнаружен IPv6.", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Matter требует включенного протокола IPv6 на выбранном интерфейсе. В вашей системе обнаружен IPv6. Но ваш текущий выбранный интерфейс не поддерживает его. Выберите другой ниже:", + "Matter requires enabled IPv6 protocol on selected interface.": "Matter требует включенного протокола IPv6 на выбранном интерфейсе.", "More details in the Troubleshooting Guide": "Более подробную информацию см. в Руководстве по устранению неполадок.", "Name": "Имя", "Network configuration": "Конфигурация сети", "New bridge": "Новый мост", + "No IPv6 was found on your system!": "В вашей системе не найден IPv6!", "No QR code found": "QR-код не найден", "No bridges created. Create one, by clicking on the \"+\" button in the bottom right corner.": "Никаких мостов не создано. Создайте его, нажав кнопку «+» в правом нижнем углу.", "No devices was added, as they are already in the list": "Устройства не были добавлены, так как они уже есть в списке.", @@ -149,6 +149,8 @@ "Show readme page": "Показать страницу readme", "Show unsupported devices": "Показать неподдерживаемые устройства", "Show welcome dialog": "Показать приветственный диалог", + "Some IPv6 was found on your system.": "В вашей системе обнаружен IPv6.", + "Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "В вашей системе был найден IPv6. Но ваш текущий выбранный интерфейс не поддерживает его. Пожалуйста, выберите другой ниже:", "Status": "Положение дел", "Stay here": "Оставайся здесь", "Stop": "Остановить", diff --git a/src-admin/src/i18n/uk.json b/src-admin/src/i18n/uk.json index 0090ef6..893adcd 100644 --- a/src-admin/src/i18n/uk.json +++ b/src-admin/src/i18n/uk.json @@ -95,13 +95,12 @@ "Matter Bridges Infotext": "Matter Bridges можуть містити в собі кілька пристроїв і є найпростішим способом підключення пристроїв ioBroker до сумісної з Matter екосистеми. Пристрої, які містяться в мосту, також можна додавати або видаляти після введення мосту в експлуатацію. Деякі властивості пристрою не можуть бути змінені після введення мосту в експлуатацію контролера.\n\nЯкщо у вас є принаймні ліцензія Assistant у вашому обліковому записі ioBroker.pro, ви також можете створити кілька мостів, щоб найкраще структурувати свої пристрої.\n\nБудь ласка, зверніть увагу: через обмеження системи Amazon Alexa ви можете мати лише один міст або пристрій, підключений до Alexa на хост ioBroker!", "Matter Controller BLE Dialog Infotext": "Щоб з’єднати пристрої, які використовують для зв’язку WLAN або Thread, потрібно надати свої облікові дані WLAN або Thread.\nПотім ці облікові дані надсилаються на пристрій під час введення в експлуатацію. \nЯкщо пристрій уже введено в експлуатацію в іншій екосистемі та вже є в мережі, це не потрібно.", "Matter Controller Infotext": "Використовуйте функції «Контролер», щоб інтегрувати сумісні пристрої з Matter в ioBroker. \nВи можете виявити та ввести в експлуатацію пристрій, а потім керувати ним. Дані пристроїв будуть доступні як стани на вкладці Об’єкти ioBroker. \nФункцію контролера вимкнено за замовчуванням, і її можна ввімкнути за допомогою перемикача нижче.", - "Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!": "Справа вимагає ввімкнення протоколу IPv6 на вибраному інтерфейсі. У вашій системі не знайдено IPv6!", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.": "Справа вимагає ввімкнення протоколу IPv6 на вибраному інтерфейсі. У вашій системі знайдено деяку кількість IPv6.", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "Справа вимагає ввімкнення протоколу IPv6 на вибраному інтерфейсі. У вашій системі знайдено деяку кількість IPv6. Але вибраний інтерфейс не підтримує його. Виберіть інший нижче:", + "Matter requires enabled IPv6 protocol on selected interface.": "Matter вимагає ввімкнення протоколу IPv6 на вибраному інтерфейсі.", "More details in the Troubleshooting Guide": "Детальніше в Посібнику з усунення несправностей", "Name": "Ім'я", "Network configuration": "Конфігурація мережі", "New bridge": "Новий міст", + "No IPv6 was found on your system!": "У вашій системі не знайдено IPv6!", "No QR code found": "QR-код не знайдено", "No bridges created. Create one, by clicking on the \"+\" button in the bottom right corner.": "Жодних мостів не створено. Створіть його, натиснувши кнопку «+» у нижньому правому куті.", "No devices was added, as they are already in the list": "Пристрої не додано, оскільки вони вже є в списку", @@ -150,6 +149,8 @@ "Show readme page": "Показати сторінку readme", "Show unsupported devices": "Показати непідтримувані пристрої", "Show welcome dialog": "Показати діалогове вікно привітання", + "Some IPv6 was found on your system.": "У вашій системі знайдено деяку кількість IPv6.", + "Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "У вашій системі знайдено деяку кількість IPv6. Але вибраний інтерфейс не підтримує його. Виберіть інший нижче:", "Status": "Статус", "Stay here": "Залишайся тут", "Stop": "СТІЙ", diff --git a/src-admin/src/i18n/zh-cn.json b/src-admin/src/i18n/zh-cn.json index 059ee74..0b67bf8 100644 --- a/src-admin/src/i18n/zh-cn.json +++ b/src-admin/src/i18n/zh-cn.json @@ -95,13 +95,12 @@ "Matter Bridges Infotext": "Matter Bridges 可以包含多个设备,是将 ioBroker 设备纳入 Matter 兼容生态系统的最简单方法。桥接器投入使用后,也可以添加或删除桥接器中包含的设备。桥接器投入控制器使用后,某些设备属性无法更改。\n\n当您在 ioBroker.pro 帐户中拥有至少一个助手许可证时,您还可以创建多个桥接器,以便最好地构建您的设备。\n\n请注意:由于 Amazon Alexa 系统的限制,每个 ioBroker 主机只能将一个桥接器或设备与 Alexa 配对!", "Matter Controller BLE Dialog Infotext": "要配对使用 WLAN 或 Thread 进行通信的设备,您需要提供 WLAN 或 Thread 凭据。\n然后,这些凭据将在调试期间提交给设备。\n如果设备已在其他生态系统中调试并已在网络中,则无需执行此操作。", "Matter Controller Infotext": "使用“控制器”功能将 Matter 兼容设备集成到 ioBroker 中。\n您可以发现和调试设备,然后对其进行管理。设备的数据将作为状态显示在 ioBroker 对象选项卡中。\n控制器功能默认处于禁用状态,可以使用以下开关启用。", - "Matter requires enabled IPv6 protocol on selected interface. No IPv6 was found on your system!": "问题需要在所选接口上启用 IPv6 协议。您的系统上未找到 IPv6!", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system.": "问题需要在所选接口上启用 IPv6 协议。您的系统上发现了一些 IPv6。", - "Matter requires enabled IPv6 protocol on selected interface. Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "问题要求在所选接口上启用 IPv6 协议。您的系统上发现了一些 IPv6。但您当前选择的接口不支持它。请在下面选择另一个:", + "Matter requires enabled IPv6 protocol on selected interface.": "此事需要在选定的接口上启用 IPv6 协议。", "More details in the Troubleshooting Guide": "故障排除指南中有更多详细信息", "Name": "姓名", "Network configuration": "网络配置", "New bridge": "新桥", + "No IPv6 was found on your system!": "您的系统上未找到 IPv6!", "No QR code found": "未找到二维码", "No bridges created. Create one, by clicking on the \"+\" button in the bottom right corner.": "没有创建任何桥梁。单击右下角的“+”按钮创建一个。", "No devices was added, as they are already in the list": "未添加任何设备,因为它们已在列表中", @@ -150,6 +149,8 @@ "Show readme page": "显示自述文件页面", "Show unsupported devices": "显示不支持的设备", "Show welcome dialog": "显示欢迎对话框", + "Some IPv6 was found on your system.": "您的系统上发现了一些 IPv6。", + "Some IPv6 was found on your system. But your currently selected interface does not support it. Please select another one below:": "您的系统上发现了一些 IPv6。但您当前选择的接口不支持它。请在下面选择另一个:", "Status": "地位", "Stay here": "留在这里", "Stop": "停止", diff --git a/src/lib/DeviceManagement.ts b/src/lib/DeviceManagement.ts index af54374..9f4e47a 100644 --- a/src/lib/DeviceManagement.ts +++ b/src/lib/DeviceManagement.ts @@ -125,8 +125,6 @@ class MatterAdapterDeviceManagement extends DeviceManagement { const status: DeviceStatus = ioNode.node.isConnected ? 'connected' : 'disconnected'; const id = ioNode.nodeId; const details = ioNode.details; - // TODO: Read here the valid enabled status - const isEnabled = true; let actions: (DeviceAction<'adapter'> | null)[] = [ { @@ -134,17 +132,11 @@ class MatterAdapterDeviceManagement extends DeviceManagement { id: ACTIONS.STATUS, handler: (_ignored, context) => this.#handleOnStatusNode(ioNode, context), }, - isEnabled - ? { - // This is a special action when the user clicks on the enabled icon - id: ACTIONS.DISABLE, - handler: (_ignored, context) => this.#handleEnableNode(ioNode, context, false), - } - : { - // This is a special action when the user clicks on the disabled icon - id: ACTIONS.ENABLE, - handler: (_ignored, context) => this.#handleEnableNode(ioNode, context, true), - }, + { + // This is a special action when the user clicks on the enabled icon + id: ACTIONS.ENABLE_DISABLE, + handler: (_ignored, context) => this.#handleEnableNode(ioNode, context), + }, { id: 'deleteNode', icon: 'delete', @@ -192,6 +184,8 @@ class MatterAdapterDeviceManagement extends DeviceManagement { icon: undefined, ...details, status, + // TODO: Provide here the valid value + enabled: true, hasDetails: true, actions: actions.length ? (actions as DeviceAction<'adapter'>[]) : undefined, color: 'secondary', @@ -265,13 +259,9 @@ class MatterAdapterDeviceManagement extends DeviceManagement { return data; } - #handleEnableNode( - node: GeneralMatterNode, - context: ActionContext, - enable: boolean, - ): Promise<{ refresh: DeviceRefresh }> { - // TODO - this.#adapter.log.info(`${enable ? 'Enable' : 'Disable'} node ${node.nodeId}`); + #handleEnableNode(node: GeneralMatterNode, _context: ActionContext): Promise<{ refresh: DeviceRefresh }> { + // TODO: implement real handler for enable/disable + this.#adapter.log.info(`Change enabled/disabled of node ${node.nodeId}`); return Promise.resolve({ refresh: false }); }