[netatmo] Make configuration link clickable in Main UI

See https://github.com/openhab/openhab-webui/pull/2996

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
This commit is contained in:
Jimmy Tanagra 2025-01-10 11:01:02 +10:00
parent a1fc3632e6
commit 36e7e4cb50
5 changed files with 7 additions and 6 deletions

View File

@ -215,8 +215,9 @@ public class ApiBridgeHandler extends BaseBridgeHandler {
GrantServlet servlet = new GrantServlet(this, httpService);
servlet.startListening();
grantServlet = Optional.of(servlet);
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR,
"@text/conf-error-grant-needed [ \"%s\" ]".formatted(servlet.getPath()));
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_PENDING,
"@text/conf-error-grant-needed [ \"http(s)://<YOUROPENHAB>:<YOURPORT>%s\" ]"
.formatted(servlet.getPath()));
connectApi.dispose();
}

View File

@ -459,7 +459,7 @@ config.refreshInterval.description = The refresh interval to poll Netatmo API (i
conf-error-no-client-id = Cannot connect to Netatmo bridge as no client id is available in the configuration
conf-error-no-client-secret = Cannot connect to Netatmo bridge as no client secret is available in the configuration
conf-error-grant-needed = Complete the configuration by granting the binding to Netatmo Connect: ''{0}''.
conf-error-grant-needed = Complete the configuration by granting the binding to Netatmo Connect: {0}
status-bridge-offline = Bridge is not connected to Netatmo API
device-not-connected = Thing is not reachable
data-over-limit = Data seems quite old

View File

@ -459,7 +459,7 @@ config.refreshInterval.description = Netatmo API\:n kyselyn päivitysväli (seku
conf-error-no-client-id = Ei voida yhdistää Netatmo-siltaan, koska asiakastunnusta (client id) ei ole määritelty
conf-error-no-client-secret = Ei voida yhdistää Netatmo-siltaan, koska salaustunnusta (secret) ei ole määritelty
conf-error-grant-needed = Viimeistele määrittely myöntämällä lisäosalle pääsy Netatmo Connectiin\: ''{0}''.
conf-error-grant-needed = Viimeistele määrittely myöntämällä lisäosalle pääsy Netatmo Connectiin\: {0}
status-bridge-offline = Silta ei ole yhteydessä Netatmo-APIin
device-not-connected = Thing ei ole saavutettavissa
data-over-limit = Tiedot vaikuttavat melko vanhoilta

View File

@ -459,7 +459,7 @@ config.refreshInterval.description = L'a fréquence d'interrogation de l'API Net
conf-error-no-client-id = Impossible de se connecter à la passerelle Netatmo car aucun id client n'est disponible dans la configuration
conf-error-no-client-secret = Impossible de se connecter à la passerelle Netatmo car aucun secret client n'est disponible dans la configuration
conf-error-grant-needed = La configuration est incomplète, veuillez autoriser l''extension auprès de Netatmo Connect \: ''{0}''.
conf-error-grant-needed = La configuration est incomplète, veuillez autoriser l''extension auprès de Netatmo Connect\: {0}
status-bridge-offline = La passerelle n'est pas connectée à l'API Netatmo
device-not-connected = L'objet n'est pas accessible
data-over-limit = Les données semblent assez anciennes

View File

@ -459,7 +459,7 @@ config.refreshInterval.description = Intervallo di aggiornamento per interrogare
conf-error-no-client-id = Impossibile connettersi al bridge Netatmo poiché non è configurato il Id cliente
conf-error-no-client-secret = Impossibile connettersi al bridge Netatmo poiché non è configurata alcuna parola segreta
conf-error-grant-needed = Completa la configurazione autorizzando il binding a Netatmo Connect\: ''{0}''.
conf-error-grant-needed = Completa la configurazione autorizzando il binding a Netatmo Connect\: {0}
status-bridge-offline = Bridge non è connesso alle API Netatmo
device-not-connected = Thing non è raggiungibile
data-over-limit = I dati sembrano piuttosto vecchi