NEWS
Test Adapter NSPanel-lovelace-ui v1.x.x
-
javascript.0 17:34:05.142 error Error by run: script.js.nspanel-lovelace-ui_0.nspanel_garten:351 javascript.0 17:34:05.144 error }).call(exports); javascript.0 17:34:05.146 error ^ javascript.0 17:34:05.148 error TypeError: (intermediate value)(...).call is not a function javascript.0 17:34:05.150 error at script.js.nspanel-lovelace-ui_0.nspanel_garten:351:4 javascript.0 17:34:05.151 error at Script.runInContext (node:vm:149:12) javascript.0 17:34:05.154 error Error: TypeError: id.includes is not a function javascript.0 17:34:05.155 error at getStateAsync (/opt/iobroker/node_modules/iobroker.javascript/build/lib/sandbox.js:2595:20) javascript.0 17:34:05.157 error at wrapped (/opt/iobroker/node_modules/iobroker.javascript/build/lib/sandbox.js:68:19) javascript.0 17:34:05.159 error at getStateMe (script.js.nspanel-lovelace-ui_0.nspanel_garten:175:22) javascript.0 17:34:05.161 error at script.js.nspanel-lovelace-ui_0.nspanel_garten:442:22 javascript.0 17:34:05.163 error at script.js.nspanel-lovelace-ui_0.nspanel_garten:1:1 javascript.0 17:34:05.165 error at Script.runInContext (node:vm:149:12) javascript.0 17:34:10.792 info Stopping scriptich hätte da ein Problem

keine änderung am script..
da fehlt wohl ne methode -
Error: TypeError: id.includes is not a function at getStateAsync (…/iobroker.javascript/build/lib/sandbox.js:2595:20) at wrapped (…/sandbox.js:68:19) at getStateMe (script.js.nspanel-lovelace-ui_0.nspanel_garten:175:22) ← hier at script.js.nspanel-lovelace-ui_0.nspanel_garten:442:22getStateMeist keine Funktion aus unserem codewenn du code unten einfügst, wird der vom adapter überschrieben immmer oberhalb von
/** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** * END STOP END STOP END - No more configuration - END STOP END STOP END * ********************************************************************************bleiben
-
Error: TypeError: id.includes is not a function at getStateAsync (…/iobroker.javascript/build/lib/sandbox.js:2595:20) at wrapped (…/sandbox.js:68:19) at getStateMe (script.js.nspanel-lovelace-ui_0.nspanel_garten:175:22) ← hier at script.js.nspanel-lovelace-ui_0.nspanel_garten:442:22getStateMeist keine Funktion aus unserem codewenn du code unten einfügst, wird der vom adapter überschrieben immmer oberhalb von
/** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** ******************************************************************************** * END STOP END STOP END - No more configuration - END STOP END STOP END * ********************************************************************************bleiben
-
-
Bei mir hat in der Vergangenheit die Fehlermeldung sich auf den transpilierten Code bezogen und nicht auf ts.
- nach der funktion suchen
- Kleine Änderung und Skript neu transpilieren
Vielleicht hilft das.
-
@TT-Tom Vielleicht habe ich auch einfach einen Denkfehler.
Unten links "Garage" ist Pfad zur Garage. In der Garage habe ich ebenfalls ein NSPanel.
Meine Überlegung war, die eingerichtete Konfiguration der Garage im global zu speichern, dass ich auch von jedem anderen Panel darauf komme. Vielleicht denke ich zu kompliziert?
ja, das sollte so funktionieren. Du musst nur in dem Script von dem Garagen Panel die main von der Global verlinken. In dem Script der anderen Panels musst du eine Navigation auf die main der Global machen.
Zeige mal deine script einstellungen.
-
nach der funktion suchen
was soll ich nach der funktion suchen.. die ist global definiert ..hmmmmmmmmmmm
da komm jetzt ein undefined um die ecke...hhhhhmmmmmmmmmmmm.. merkwürdig .. ich such mal
im skript gucken obs doch drin steht und wenn nicht noch mal transpilieren vielleicht stehts in der javascript datei.
Ansonsten weiß ich nicht, im Skript wurde kaum was gemacht -
ja, das sollte so funktionieren. Du musst nur in dem Script von dem Garagen Panel die main von der Global verlinken. In dem Script der anderen Panels musst du eine Navigation auf die main der Global machen.
Zeige mal deine script einstellungen.
-
Die EU tft Version wurde auf 6.0.2 erhöht - das sollte ohne probleme laufen, aber bringt erstmal keine vorteile im aktuell lastest.
Wer da jedoch testen will, kann gerne die ungetestet github main version installieren (mache ich auch nach dem beitrag). Die bringt folgende Änderungen mit.
EDIT:
Ok das ist wirklich zu groß. Kurz:- navflow aufgebohrt (man kann prev, next, home, parent ändern)
- icons in tft ergänzt ca. 550 Stück
- icon übersicht auf github hinzugefügt: https://ticaki.github.io/ioBroker.nspanel-lovelace-ui/
- Skript ist nicht mehr zwingend nötig
- pageChart aus Admin entfernt
Nicht zusammengefaßtes Changelog:
WORK IN PROGRESS
- (ticaki) beta TFT for the EU panel is 6.0.2
- (ticaki) web panel: the two hardware buttons below the display are 20px higher
- (ticaki) icon overview on GitHub Pages: all icons of the panel with name and glyph, searchable, marks the icons of HMI 6 and the own icons
- (ticaki) navigation flow: edit mode to create, change and remove the prev/next/home/parent links of admin pages by dragging connections between pages and clicking edges; the changes are written to the page configuration and saved with the admin save button
- (ticaki) navigation flow: the links of script pages (panel script and global script) can be edited as well - the change is stored as an override in the instance configuration (
navigationOverrides) and applied on top of the script at every start, so it survives a resend of the script; the edge menu restores the script navigation of a page; a snapshot of the script links travels with the override, and when the script delivers other links later the tab asks once per session whether to merge, keep the own change or take over the script - (ticaki) navigation flow: pages the adapter generates from a page item (e.g. the media page behind a media item) are marked with a lock and stay read-only, whatever their page item comes from; a page with an override carries a pencil, in warning colour when the script changed since
- (ticaki) navigation flow: the checkbox "show system pages" works again - it threw an error and never showed the pages
- (ticaki) chart pages: the tab "Page Chart" is gone - its pages are moved into the page configuration (tab PageConfig) at adapter start and the old table is deleted; a name already used by another page gets the suffix
_chart - (ticaki) chart pages: migrated pages keep their navigation from the script for now (deprecated, the editor shows a hint) until a navigation is assigned in the admin - script version 0.21.4 marks
ScriptConfig.PageChartas deprecated - (tt-tom17) web panel: on a grid card a short tap on a tile switches it and holding the tile opens its detail popup, like on a real panel - a light tile with a colour role (rgb, rgbSingle, rgbThree, hue, ct, dimmer) opened the popup on a tap and was switched when held
- (tt-tom17) a panel switched off via
panels.<id>.cmd.activatedis now left alone at adapter start - it no longer receives a restart request over http - (tt-tom17) a switched off panel reports the status
deactivatedinstead of keeping the status of the previous run, so the panel overview no longer shows it as running - (tt-tom17) switching
cmd.activatedis confirmed at the panel again - the acknowledgement went topanels.controller.cmd.activatedbefore - (ticaki) screensaver: the time no longer stops when other values on the screensaver change often - a trigger arriving within the update throttle was replaced by the first one and the minute update of the clock got lost
- (tt-tom17)
cmd.hideCardskeeps its stored value at adapter start - it was overwritten with the value ofcmd.activated - (ticaki) a configuration script is no longer required: a panel without a script starts with the admin configuration only (empty start page as fallback) instead of being skipped or pausing the adapter
- (ticaki) icons: updated to Material Design Icons 7.4.47 - 546 new icons (shown on the panel from TFT 6.0.2 on, older TFTs show nothing for them), new MDI names of renamed icons work as aliases; existing icons keep their glyph
- (ticaki) icons: own icons
window-tilt-variant,window-open-hinged-variant(window with muntins tilted / side hinged open, matchingwindow-closed-variant) andwindow-shutter-25,-50,-75(roller shutter partly closed) - from TFT 6.0.2 on - (ticaki) HMI 6.0.2 (eu, us-p, us-l): the icon fonts 1, 3 and 4 contain the new icons;
HMI/tools/build_hmi.pybuilds the icon fonts of a HMI fromscript/icons.json - (ticaki) blinds without an own icon show their position:
window-shutterup to 5 %,window-shutter-openfrom 95 % on, in between the nearest ofwindow-shutter-75,-50,-25(named after the closed part) - needs TFT 6.0.2; an icon set by the user is kept
-
Das WebPanel gefällt mir immer mehr :)
Funktioniert denn im Adapter die Konfiguration der Hardwarebuttons, oder ist das noch eine Script-Geschichte? -
Das WebPanel gefällt mir immer mehr :)
Funktioniert denn im Adapter die Konfiguration der Hardwarebuttons, oder ist das noch eine Script-Geschichte?Das WebPanel gefällt mir immer mehr :)
Funktioniert denn im Adapter die Konfiguration der Hardwarebuttons, oder ist das noch eine Script-Geschichte?Hm
- das Webpanel ist ein Panel - da soll das gleiche gehen wie mit den echt Panels - sonst ein bug
- Das Webpanel hat verständlicherweise keine Relais folglich geht die standardfunktion (druck switcht relais) nicht
- Detached HW Buttons gehen
Ob man die buttons im Admin konfigurieren kann weiß ich gerade nicht - das macht afaik @tt-tom - wenn der jetzt WTF schreibt, mache ich es :)
Im Skript das zum panel gehört geht es auf jeden Fall.EDIT:
Meine neue spielerrei geht dann auch - rollladen lt. alias ohne gesetztes User Icon:
Rolladenposition icon 0 - 3 offen 3 - 37,5 25% 37,5 - 62,5 50% 62,5 - 97 75% 97 - 100 zu oder umgedreht.
noch ein EDIT - ich glaube ich runde das nach zu - bei mir 36% eher 60% zu - hm obwohl - wayne...
-
Das WebPanel gefällt mir immer mehr :)
Funktioniert denn im Adapter die Konfiguration der Hardwarebuttons, oder ist das noch eine Script-Geschichte?Ist noch nicht im Admin.
Frage : wo sollte die Konfiguration hin? Extra Tab oder irgendwo mit einfügen.
Macht mal Vorschläge. -
-
-
@patricknitsch
Okay, dann machen wir das so.
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden
