diff --git a/CHANGELOG.md b/CHANGELOG.md
index 974e2e7..4881146 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,8 @@ All notable changes to NextFloor, newest first. Every release lists what is **Ad
### Changed
+- **Symcon view title and form:** The configured visualization name replaces the NextFloor header text; the explanatory paragraph in the instance form is removed.
+
- **Room climate cards in floor views:** The all-floors overview hides the floating room climate cards. Opening a floor or room shows its enabled cards again.
- **Designer help popups:** Explanations are opened through compact information symbols instead of occupying the forms. Keyboard and touch users can open and dismiss the dialogs.
@@ -30,6 +32,8 @@ All notable changes to NextFloor, newest first. Every release lists what is **Ad
### Fixed
+- **Symcon WebHook lifecycle:** Register already during Create, on kernel ready/start and after updates. Ongoing registration maintenance restores delayed route loss even after a previous success, while preserving the instance URL, token and project.
+
- **Symcon picker width and unlinking:** Long selected object names and paths are truncated within the form, with the full path in a tooltip. A dedicated clear button removes the binding directly and preserves other room-climate sensors.
- **IP-Symcon blind feedback and visual directions:** Numeric position feedback can be selected independently of inferred domains and is read using its native range. Blind and slat directions can be reversed separately in 3D only. Displayed readings, sliders, buttons, swipes and grouped commands keep their original values, including zero; feedback variables are never written.
diff --git a/custom_components/nextfloor/frontend/nextfloor.js b/custom_components/nextfloor/frontend/nextfloor.js
index 34af992..d1677cb 100644
--- a/custom_components/nextfloor/frontend/nextfloor.js
+++ b/custom_components/nextfloor/frontend/nextfloor.js
@@ -3370,10 +3370,17 @@ A plugin runs with the same rights as NextFloor in your browser. The file has be
white-space: nowrap;
}
.nf-mark {
+ flex: none;
width: 26px;
height: 28px;
color: var(--nf-accent);
}
+ .nf-view-title {
+ min-width: 0;
+ max-width: min(340px, 45vw);
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
.nf-notices {
display: grid;
gap: 6px;
@@ -3858,15 +3865,15 @@ A plugin runs with the same rights as NextFloor in your browser. The file has be
- `}async reloadVariables(){if(!(this._variablesLoading||!this.hass.symconRefresh)){this._variablesLoading=!0,this._variablesNotice="",this._variablesError=!1;try{await this.hass.symconRefresh(),this._variablesNotice=this.t("symcon_variables_loaded")}catch(e){this._variablesError=!0,this._variablesNotice=this.t("symcon_variables_error",{error:e instanceof Error?e.message:String(e)})}finally{this._variablesLoading=!1}}}renderHeader(e){let t=this.data.saveState,n=(i,s,a="")=>p``,o=t==="saving"?"saving":t==="saved"?"saved":"save_error";return p`
+ `}async reloadVariables(){if(!(this._variablesLoading||!this.hass.symconRefresh)){this._variablesLoading=!0,this._variablesNotice="",this._variablesError=!1;try{await this.hass.symconRefresh(),this._variablesNotice=this.t("symcon_variables_loaded")}catch(e){this._variablesError=!0,this._variablesNotice=this.t("symcon_variables_error",{error:e instanceof Error?e.message:String(e)})}finally{this._variablesLoading=!1}}}renderHeader(e){let t=this.hass?.symconTitle?.trim()||"NextFloor",n=this.data.saveState,o=(s,a,l="")=>p``,i=n==="saving"?"saving":n==="saved"?"saved":"save_error";return p`
-
${this.t("needs_reload",{frontend:e.frontendVersion,backend:e.backendVersion??"?"})}
@@ -4220,7 +4227,7 @@ A plugin runs with the same rights as NextFloor in your browser. The file has be
${n.showBar&&e?this.renderBar(n):f}
${this.renderCorners()}
- `}static styles=[$e,Ue,su,_r]};if(!customElements.get("nextfloor-card")){customElements.define("nextfloor-card",Si);let r=window;r.customCards=r.customCards??[],r.customCards.push({type:"nextfloor-card",name:M(void 0,"card_name"),description:M(void 0,"card_description"),preview:!1})}io();var Lp="nextfloor-chunks-v1";async function $i(r,e,t){let n=await fetch(`${r.endpoint}/api?token=${encodeURIComponent(r.token)}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"same-origin",body:JSON.stringify({...t,action:e,transport:Lp})}),o=await n.text(),i;try{i=JSON.parse(o)}catch{throw/Output-Buffer exceeds Limit/i.test(o)?new Error("Symcon hat die Antwort wegen seiner Ausgabebegrenzung abgebrochen. Bitte das NextFloor-Modul aktualisieren und den Designer neu laden."):new Error(`Symcon liefert ${o.trim()?"kein g\xFCltiges JSON":"eine leere Antwort"} f\xFCr \u201E${e}\u201C (HTTP ${n.status}).`)}if(!n.ok||!i||typeof i!="object"||"error"in i){let s=i&&typeof i=="object"&&"error"in i?i.error:`HTTP ${n.status}`;throw new Error(String(s))}return i}async function Nt(r,e,t={}){let n=await $i(r,e,t);if(!("_nextfloor_transfer"in n))return n;let o=n._nextfloor_transfer;if(!o||!/^[a-f0-9]{32}$/.test(o.id)||!Number.isSafeInteger(o.bytes)||o.bytes<=0||o.bytes>67108864||!Number.isSafeInteger(o.chunk_bytes)||o.chunk_bytes<=0||o.chunk_bytes>128*1024||o.chunks!==Math.ceil(o.bytes/o.chunk_bytes)||o.chunks>512)throw new Error("Symcon hat eine ung\xFCltige Daten\xFCbertragung angek\xFCndigt.");try{let i=new TextDecoder("utf-8",{fatal:!0}),s=[];for(let a=0;au.charCodeAt(0));if(c.length!==Math.min(o.chunk_bytes,o.bytes-a*o.chunk_bytes))throw new Error("Ein Symcon-Datenpaket wurde unvollst\xE4ndig \xFCbertragen.");s.push(i.decode(c,{stream:!0}))}return s.push(i.decode()),JSON.parse(s.join(""))}finally{await $i(r,"transport/release",{transfer_id:o.id}).catch(()=>{})}}function Bp(){let r=window.__NEXTFLOOR_SYMCON__;if(!r?.endpoint||!r.token)throw new Error("NextFloor Symcon host configuration is missing");return r}var Wr=class{settings=Bp();changeListeners=new Set;buildingListeners=new Set;timer;stateRevision=-1;buildingRevision=-1;objectsSignature="";refreshTask;states={};entities={};areas={};facade={language:this.settings.language||navigator.language||"de",user:{is_admin:!0,name:this.settings.title||"IP-Symcon"},states:this.states,entities:this.entities,areas:this.areas,symconObjects:[],symconRefresh:()=>this.refresh(!0),config:{unit_system:{temperature:"\xB0C"}},themes:{darkMode:window.matchMedia?.("(prefers-color-scheme: dark)").matches??!0},services:{},connection:{subscribeMessage:async(e,t)=>{if(t.type==="nextfloor/building/subscribe"){let n=o=>e({revision:o});return this.buildingListeners.add(n),async()=>{this.buildingListeners.delete(n)}}return async()=>{}}},callWS:e=>this.callWS(e),callService:(e,t,n)=>this.callService(e,t,n),fetchWithAuth:(e,t)=>this.fetchWithToken(e,t),hassUrl:(e="")=>new URL(e,window.location.origin).href};async start(){let e=await Nt(this.settings,"bootstrap");return this.apply(e),this.stateRevision=e.state_revision,this.buildingRevision=e.building_revision,this.timer=setInterval(()=>{this.refresh().catch(()=>{})},800),this.snapshot()}stop(){this.timer&&clearInterval(this.timer),this.timer=void 0}onChange(e){return this.changeListeners.add(e),()=>this.changeListeners.delete(e)}snapshot(){return{...this.facade,states:{...this.states},entities:{...this.entities},areas:{...this.areas}}}refresh(e=!1){if(this.refreshTask)return e?this.refreshTask.catch(()=>{}).then(()=>this.refresh(!0)):this.refreshTask;let t=this.loadSnapshot(e).finally(()=>{this.refreshTask===t&&(this.refreshTask=void 0)});return this.refreshTask=t,t}async loadSnapshot(e){let t=e?await Nt(this.settings,"bootstrap"):await Nt(this.settings,"variables/snapshot",{revision:this.stateRevision});if((e||t.state_revision!==this.stateRevision)&&t.variables){this.stateRevision=t.state_revision,this.apply({variables:t.variables,areas:t.areas,objects:t.objects});for(let n of this.changeListeners)n()}if(t.building_revision!==this.buildingRevision){this.buildingRevision=t.building_revision;for(let n of this.buildingListeners)n(t.building_revision)}}apply(e){this.states=Object.fromEntries(e.variables.map(t=>[t.entity_id,{entity_id:t.entity_id,state:t.state,attributes:{...t.attributes,friendly_name:t.name,symcon_path:t.path}}])),this.entities=Object.fromEntries(e.variables.map(t=>[t.entity_id,{entity_id:t.entity_id,name:t.name,area_id:t.area_id??null,device_id:t.device_id??null}]));for(let t of Object.values(this.states))for(let n of["light","cover"]){let o=Fs(t,n);!o||o.entity_id===t.entity_id||this.states[o.entity_id]||(this.states[o.entity_id]=o,this.entities[o.entity_id]={...this.entities[t.entity_id],entity_id:o.entity_id,hidden:!0})}if(e.areas&&(this.areas=Object.fromEntries(e.areas.map(t=>[t.area_id,t]))),this.facade.states=this.states,this.facade.entities=this.entities,this.facade.areas=this.areas,e.objects){let t=JSON.stringify(e.objects);t!==this.objectsSignature&&(this.facade.symconObjects=e.objects,this.objectsSignature=t)}}async callWS(e){let t=String(e.type??"");if(!t.startsWith("nextfloor/"))throw new Error(`Unsupported Symcon websocket command: ${t}`);let{type:n,...o}=e;return Nt(this.settings,t.slice(10),o)}async callService(e,t,n={}){return Nt(this.settings,"variables/action",{domain:e,service:t,data:n})}fetchWithToken(e,t={}){let n=new URL(e,window.location.origin);return n.searchParams.set("token",this.settings.token),fetch(n,{...t,credentials:"same-origin"})}};function Vp(){return new URLSearchParams(window.location.search).get("mode")==="tile"?"tile":"designer"}async function Kp(){let r=new Wr,e=await r.start(),t=Vp()==="tile",n=t?document.createElement("nextfloor-card"):document.createElement("nextfloor-panel");n.className=t?"nf-symcon-tile":"nf-symcon-designer",n.hass=e,t?n.setConfig({type:"custom:nextfloor-card",fill:!0,room_buttons:!0,controls:!0,weather:!1,announcements:!1}):n.narrow=!1,document.body.replaceChildren(n),r.onChange(()=>{n.hass=r.snapshot()}),window.addEventListener("pagehide",()=>r.stop(),{once:!0})}Kp().catch(r=>{document.body.textContent=`NextFloor konnte nicht geladen werden: ${r instanceof Error?r.message:String(r)}`});
+ `}static styles=[$e,Ue,su,_r]};if(!customElements.get("nextfloor-card")){customElements.define("nextfloor-card",Si);let r=window;r.customCards=r.customCards??[],r.customCards.push({type:"nextfloor-card",name:M(void 0,"card_name"),description:M(void 0,"card_description"),preview:!1})}io();var Lp="nextfloor-chunks-v1";async function $i(r,e,t){let n=await fetch(`${r.endpoint}/api?token=${encodeURIComponent(r.token)}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"same-origin",body:JSON.stringify({...t,action:e,transport:Lp})}),o=await n.text(),i;try{i=JSON.parse(o)}catch{throw/Output-Buffer exceeds Limit/i.test(o)?new Error("Symcon hat die Antwort wegen seiner Ausgabebegrenzung abgebrochen. Bitte das NextFloor-Modul aktualisieren und den Designer neu laden."):new Error(`Symcon liefert ${o.trim()?"kein g\xFCltiges JSON":"eine leere Antwort"} f\xFCr \u201E${e}\u201C (HTTP ${n.status}).`)}if(!n.ok||!i||typeof i!="object"||"error"in i){let s=i&&typeof i=="object"&&"error"in i?i.error:`HTTP ${n.status}`;throw new Error(String(s))}return i}async function Nt(r,e,t={}){let n=await $i(r,e,t);if(!("_nextfloor_transfer"in n))return n;let o=n._nextfloor_transfer;if(!o||!/^[a-f0-9]{32}$/.test(o.id)||!Number.isSafeInteger(o.bytes)||o.bytes<=0||o.bytes>67108864||!Number.isSafeInteger(o.chunk_bytes)||o.chunk_bytes<=0||o.chunk_bytes>128*1024||o.chunks!==Math.ceil(o.bytes/o.chunk_bytes)||o.chunks>512)throw new Error("Symcon hat eine ung\xFCltige Daten\xFCbertragung angek\xFCndigt.");try{let i=new TextDecoder("utf-8",{fatal:!0}),s=[];for(let a=0;au.charCodeAt(0));if(c.length!==Math.min(o.chunk_bytes,o.bytes-a*o.chunk_bytes))throw new Error("Ein Symcon-Datenpaket wurde unvollst\xE4ndig \xFCbertragen.");s.push(i.decode(c,{stream:!0}))}return s.push(i.decode()),JSON.parse(s.join(""))}finally{await $i(r,"transport/release",{transfer_id:o.id}).catch(()=>{})}}function Bp(){let r=window.__NEXTFLOOR_SYMCON__;if(!r?.endpoint||!r.token)throw new Error("NextFloor Symcon host configuration is missing");return r}var Wr=class{settings=Bp();changeListeners=new Set;buildingListeners=new Set;timer;stateRevision=-1;buildingRevision=-1;objectsSignature="";refreshTask;states={};entities={};areas={};facade={language:this.settings.language||navigator.language||"de",user:{is_admin:!0,name:this.settings.title||"IP-Symcon"},states:this.states,entities:this.entities,areas:this.areas,symconObjects:[],symconTitle:this.settings.title?.trim()||"NextFloor",symconRefresh:()=>this.refresh(!0),config:{unit_system:{temperature:"\xB0C"}},themes:{darkMode:window.matchMedia?.("(prefers-color-scheme: dark)").matches??!0},services:{},connection:{subscribeMessage:async(e,t)=>{if(t.type==="nextfloor/building/subscribe"){let n=o=>e({revision:o});return this.buildingListeners.add(n),async()=>{this.buildingListeners.delete(n)}}return async()=>{}}},callWS:e=>this.callWS(e),callService:(e,t,n)=>this.callService(e,t,n),fetchWithAuth:(e,t)=>this.fetchWithToken(e,t),hassUrl:(e="")=>new URL(e,window.location.origin).href};async start(){let e=await Nt(this.settings,"bootstrap");return this.apply(e),this.stateRevision=e.state_revision,this.buildingRevision=e.building_revision,this.timer=setInterval(()=>{this.refresh().catch(()=>{})},800),this.snapshot()}stop(){this.timer&&clearInterval(this.timer),this.timer=void 0}onChange(e){return this.changeListeners.add(e),()=>this.changeListeners.delete(e)}snapshot(){return{...this.facade,states:{...this.states},entities:{...this.entities},areas:{...this.areas}}}refresh(e=!1){if(this.refreshTask)return e?this.refreshTask.catch(()=>{}).then(()=>this.refresh(!0)):this.refreshTask;let t=this.loadSnapshot(e).finally(()=>{this.refreshTask===t&&(this.refreshTask=void 0)});return this.refreshTask=t,t}async loadSnapshot(e){let t=e?await Nt(this.settings,"bootstrap"):await Nt(this.settings,"variables/snapshot",{revision:this.stateRevision});if((e||t.state_revision!==this.stateRevision)&&t.variables){this.stateRevision=t.state_revision,this.apply({variables:t.variables,areas:t.areas,objects:t.objects});for(let n of this.changeListeners)n()}if(t.building_revision!==this.buildingRevision){this.buildingRevision=t.building_revision;for(let n of this.buildingListeners)n(t.building_revision)}}apply(e){this.states=Object.fromEntries(e.variables.map(t=>[t.entity_id,{entity_id:t.entity_id,state:t.state,attributes:{...t.attributes,friendly_name:t.name,symcon_path:t.path}}])),this.entities=Object.fromEntries(e.variables.map(t=>[t.entity_id,{entity_id:t.entity_id,name:t.name,area_id:t.area_id??null,device_id:t.device_id??null}]));for(let t of Object.values(this.states))for(let n of["light","cover"]){let o=Fs(t,n);!o||o.entity_id===t.entity_id||this.states[o.entity_id]||(this.states[o.entity_id]=o,this.entities[o.entity_id]={...this.entities[t.entity_id],entity_id:o.entity_id,hidden:!0})}if(e.areas&&(this.areas=Object.fromEntries(e.areas.map(t=>[t.area_id,t]))),this.facade.states=this.states,this.facade.entities=this.entities,this.facade.areas=this.areas,e.objects){let t=JSON.stringify(e.objects);t!==this.objectsSignature&&(this.facade.symconObjects=e.objects,this.objectsSignature=t)}}async callWS(e){let t=String(e.type??"");if(!t.startsWith("nextfloor/"))throw new Error(`Unsupported Symcon websocket command: ${t}`);let{type:n,...o}=e;return Nt(this.settings,t.slice(10),o)}async callService(e,t,n={}){return Nt(this.settings,"variables/action",{domain:e,service:t,data:n})}fetchWithToken(e,t={}){let n=new URL(e,window.location.origin);return n.searchParams.set("token",this.settings.token),fetch(n,{...t,credentials:"same-origin"})}};function Vp(){return new URLSearchParams(window.location.search).get("mode")==="tile"?"tile":"designer"}async function Kp(){let r=new Wr,e=await r.start(),t=Vp()==="tile",n=t?document.createElement("nextfloor-card"):document.createElement("nextfloor-panel");n.className=t?"nf-symcon-tile":"nf-symcon-designer",n.hass=e,t?n.setConfig({type:"custom:nextfloor-card",fill:!0,room_buttons:!0,controls:!0,weather:!1,announcements:!1}):n.narrow=!1,document.body.replaceChildren(n),r.onChange(()=>{n.hass=r.snapshot()}),window.addEventListener("pagehide",()=>r.stop(),{once:!0})}Kp().catch(r=>{document.body.textContent=`NextFloor konnte nicht geladen werden: ${r instanceof Error?r.message:String(r)}`});
/*! Bundled license information:
@lit/reactive-element/css-tag.js:
diff --git a/symcon/NextFloor/form.json b/symcon/NextFloor/form.json
index 2b156d3..ba3ea70 100644
--- a/symcon/NextFloor/form.json
+++ b/symcon/NextFloor/form.json
@@ -5,10 +5,6 @@
"type": "ValidationTextBox",
"name": "Title",
"caption": "Name der Visualisierung"
- },
- {
- "type": "Label",
- "label": "Der Designer wird als eigener Tab in der IP-Symcon-Konsole geöffnet. Variablen werden dort ausschließlich über den Objektbaum ausgewählt; Objekt-IDs müssen nicht eingegeben werden."
}
],
"actions": [
diff --git a/symcon/NextFloor/module.php b/symcon/NextFloor/module.php
index dd14b2f..000ac5b 100644
--- a/symcon/NextFloor/module.php
+++ b/symcon/NextFloor/module.php
@@ -18,6 +18,8 @@ class NextFloor extends IPSModuleStrict
private const TRANSFER_CHUNK_BYTES = 128 * 1024;
private const MAX_TRANSFER_BYTES = 64 * 1024 * 1024;
private const TRANSFER_TTL = 120;
+ private const HOOK_RETRY_MS = 5000;
+ private const HOOK_MAINTENANCE_MS = 30000;
public function Create(): void
{
@@ -34,16 +36,19 @@ class NextFloor extends IPSModuleStrict
$this->RegisterAttributeInteger('BuildingRevision', 0);
$this->RegisterAttributeInteger('StateRevision', 0);
$this->RegisterMessage(0, IPS_KERNELSTARTED);
+ $this->RegisterMessage(0, KR_READY);
$this->RegisterTimer('WebHookRetry', 0, 'NFSC_RetryWebHook($_IPS[\'TARGET\']);');
$this->ensureAccessToken();
$this->SetVisualizationType(1);
- $this->ensureWebHook();
+ $this->ensureWebHook(true);
}
public function ApplyChanges(): void
{
parent::ApplyChanges();
+ $this->RegisterMessage(0, IPS_KERNELSTARTED);
+ $this->RegisterMessage(0, KR_READY);
$this->SetVisualizationType(1);
$this->ensureWebHook();
}
@@ -51,12 +56,12 @@ class NextFloor extends IPSModuleStrict
public function MessageSink(int $TimeStamp, int $SenderID, int $Message, array $Data): void
{
parent::MessageSink($TimeStamp, $SenderID, $Message, $Data);
- if ($SenderID === 0 && $Message === IPS_KERNELSTARTED) {
+ if ($SenderID === 0 && ($Message === KR_READY || $Message === IPS_KERNELSTARTED)) {
$this->ensureWebHook();
}
}
- /** Timer callback; stops itself as soon as the volatile hook has been restored. */
+ /** Keep the volatile route registered, including resets after successful startup or module reload. */
public function RetryWebHook(): void
{
$this->ensureWebHook();
@@ -95,8 +100,9 @@ class NextFloor extends IPSModuleStrict
. htmlspecialchars($this->hookErrorMessage(), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8') . '';
}
$src = htmlspecialchars($this->designerUrl('tile'), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
+ $title = htmlspecialchars($this->viewTitle(), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
return ''
- . '';
+ . '';
}
/** IP-Symcon calls this for /hook/nextfloor//... */
@@ -140,13 +146,14 @@ class NextFloor extends IPSModuleStrict
// --------------------------------------------------------------------- WebHook pages
- private function ensureWebHook(): bool
+ private function ensureWebHook(bool $duringCreate = false): bool
{
- // Native hooks are volatile. Create/ApplyChanges can run before WebHook Control is ready;
- // register again after the kernel has started and whenever a designer/tile link is requested.
- if (IPS_GetKernelRunlevel() !== KR_READY) {
+ // Register in Create as documented, even while Symcon initializes. Re-register after
+ // startup/update and keep maintaining the route: WebHook Control can reset later too.
+ $ready = IPS_GetKernelRunlevel() === KR_READY;
+ if (!$ready && !$duringCreate) {
$this->SetStatus(104);
- $this->SetTimerInterval('WebHookRetry', 5000);
+ $this->SetTimerInterval('WebHookRetry', self::HOOK_RETRY_MS);
return false;
}
try {
@@ -156,17 +163,27 @@ class NextFloor extends IPSModuleStrict
throw new RuntimeException('Symcon hat die Registrierung von /hook/' . $this->hookPath() . ' abgelehnt.');
}
} catch (Throwable $error) {
+ if (!$ready) {
+ $this->SetStatus(104);
+ $this->SetTimerInterval('WebHookRetry', self::HOOK_RETRY_MS);
+ return false;
+ }
$message = $error->getMessage();
if ($message !== $this->ReadAttributeString('HookError')) {
$this->LogMessage('WebHook-Registrierung fehlgeschlagen: ' . $message, KL_ERROR);
}
$this->WriteAttributeString('HookError', $message);
$this->SetStatus(200);
- $this->SetTimerInterval('WebHookRetry', 5000);
+ $this->SetTimerInterval('WebHookRetry', self::HOOK_RETRY_MS);
+ return false;
+ }
+ if (!$ready) {
+ $this->SetStatus(104);
+ $this->SetTimerInterval('WebHookRetry', self::HOOK_RETRY_MS);
return false;
}
$this->WriteAttributeString('HookError', '');
- $this->SetTimerInterval('WebHookRetry', 0);
+ $this->SetTimerInterval('WebHookRetry', self::HOOK_MAINTENANCE_MS);
$this->SetStatus(102);
return true;
}
@@ -192,6 +209,11 @@ class NextFloor extends IPSModuleStrict
return 'nextfloor/' . $this->InstanceID;
}
+ private function viewTitle(): string
+ {
+ return trim($this->ReadPropertyString('Title')) ?: 'NextFloor';
+ }
+
private function designerUrl(string $mode): string
{
return '/hook/' . $this->hookPath() . '/designer?mode=' . rawurlencode($mode) . '&token=' . rawurlencode($this->ensureAccessToken());
@@ -243,7 +265,7 @@ class NextFloor extends IPSModuleStrict
'endpoint' => '/hook/' . $this->hookPath(),
'token' => $this->ensureAccessToken(),
'language' => 'de',
- 'title' => $this->ReadPropertyString('Title') ?: 'NextFloor'
+ 'title' => $this->viewTitle()
];
$asset = '/hook/' . $this->hookPath() . '/assets/nextfloor-designer.js?v=' . rawurlencode($this->moduleVersion())
. '&token=' . rawurlencode($this->ensureAccessToken());
@@ -253,7 +275,7 @@ class NextFloor extends IPSModuleStrict
. '' . htmlspecialchars($config['title'], ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8') . ''
. ''
. '