NSPanel Documentation β—† Icon overview GitHub Deutsch

Screensaver – configuration in the admin

The screensaver is created in the admin: tab Screensaver in the instance settings. One entry describes one screensaver – its version, the panels that show it and the items on its places. The editor draws the panel the way the chosen version shows it; every place can be clicked and opens the matching settings.

Below the list of entries the link Documentation leads to this page. The messages that cover the screensaver are described under Screensaver-Notify. A screensaver that is already set up is not taken over by the admin on its own – that only works through the Migration from a script.

Contents:

1. Creating a screensaver

  1. Open the instance settings β†’ tab Screensaver.
  2. On the left, type a name into the field New screensaver and click + (or press Enter). The name has to be unique – otherwise the field says A screensaver with this name already exists and the button stays disabled. The name only serves the list and the log.
  3. The entry appears in the list, the editor opens on the right. A new entry starts as version Standard without a panel – the places appear as soon as a panel is chosen (see Version and panels).

Every row of the list names the version and the assigned panels below the name, with no panel no panel. The bin on a list entry appears on hover and deletes it with a confirmation. Below the list stand the Panels without screensaver entry (they keep the screensaver of the script).

2. The editor at a glance

Editor

Element Meaning
Name Name of the entry (can be renamed, has to stay unique).
Version Standard, Alternate, Advanced, Easyview or Tiles – the card (screensaver, screensaver2, screensaver3, screensaver5) follows from it. The line below names the card and the panel model the places are drawn for. For Tiles see section 16.
Panels Multi select of the panels that show this screensaver. A panel can have only one.
Panel picture The places of the chosen version and panel model: Favorite, Left, Bottom, Indicators or Alternate. Dashed with + = free (a click adds an item), occupied = a click edits it.
Dragging An item can be dragged onto another place – also into another area. If an item lies there already, the two swap places.
Label of an item The icon in its colour and a readable name below it (see below). The tooltip names the full name and how to operate the place.
Bin on an item Appears on hover in the top right corner and deletes the item from the place.
Eye on an item Small yellow eye icon: the item is only shown under a condition. The tooltip of the place names it in plain words – Shown only while … is true or Shown only while: ….
{ } in front of the label The item is configured through raw data.
Paging arrows If a list area has more than one window, arrows with a counter stand to its left and right (above and below with narrow columns) – see windows and paging.
Frame of the indicators grey = no action, red = button, green = switch, orange = cycle values, blue = open page. The frame shows the short press only – an action on long press does not color it (see Indicators).
Time, Date A click opens the dialog for 12h/24h and the timer instead of the clock, or the date format.
Two status icons mrIcon1 and mrIcon2; a click opens their dialog, grey = not used. Where they sit depends on the version: with Standard, Alternate and Easyview in the upper corners, with Advanced at the bottom next to the date, with Tiles as two color bars at the lower edge.
Button bar below the picture Notifications (with the number of messages switched on for this screensaver) and Options (rotation time, swipe gestures, indicator buttons). Up to 2.0.2 both buttons sat in the panel picture as a bell and a gear.
Weather (right column) Weather adapter and its extra items, see Weather.

The label of an item in the panel picture follows an order of precedence – a regular expression is never shown as such:

  1. the headline of the item (its ScreensaverEntityText for a raw data item),
  2. the name of the object (common.name) as long as it is loaded, otherwise the last part of the id,
  3. the template name without the type (text.pirate-weather.favorit β†’ pirate-weather favorit),
  4. the last part of the readable beginning of a search pattern (/^pirate-weather\.0\.weather\.currently\./ β†’ currently).

The tooltip shows the full text in the form short name (template Β· state), for example Window kitchen (window isOpen Β· alias.0.Window). If none of this is set, ? stands there.

The note below the panel picture reminds that a panel assigned here gets this screensaver when the adapter starts – instead of the screensaver of its script.

3. Version and panels

Panels

Version change

Places per version (model eu, differing values in brackets):

Version Favorite Alternate Left Bottom Indicators Status icons
Standard 1 – – 4 – 2
Alternate 1 1 – 3 – 2
Advanced 1 – 3 6 5 2
Easyview – – – 3 (us-p: 4) – 2
Tiles – – – 5 (us-p: 4) 7 (us-p: 8) 2

The number holds per window: Left, Bottom, Indicators and Alternate take more items than they have places (see windows and paging). Only Favorite holds exactly one item. The version Tiles has the areas Bottom and Indicators only – see Tiles.

4. Items: the item dialog

A click on a free place opens the item dialog, a click on an occupied item edits it. The title names the area and the place (Item Β· Bottom Β· place 2 of 4). The fields follow the place and the type of the state; on the right a preview draws the item the way the place shows it (as a sample value it calculates with 23.456 Γ— factor).

New item

Source: State (one state with fields of its own) or Template (a page item template of the adapter, see Templates). At the top right of the title the button { } for raw data sits in addition.

State: The id can be typed or picked from the object tree via .... It has to be a state (type: state) – a channel or device is refused with a hint, as is an id that does not exist. As soon as the state is known, the dialog shows Name Β· type Β· unit as well as the role and reveals the fields that fit the type:

Item with an on/off state

Type of the state Fields
boolean Icon (on / value) and Icon off (false / 0), Color on / value and Color off, Text while true / Text while false
number Icon, additionally Icon per value…, fixed color or color scale by value, Unit (empty = of the state), Factor, Decimals
date/time (role date/time) Icon, color, Date format (seven presets to choose from, preset Adapter default (short date); in expert mode additionally Custom (JSON) with a field for free Intl.DateTimeFormatOptions)
other (string …) Icon, color

Expert mode (the icon at the bottom left of the admin bar) acts in the item dialog in one place only: with a date or time state the field Date format then additionally offers Custom (JSON) and below it a field for free Intl.DateTimeFormatOptions. All other fields are open without it.

Depending on the place, fields are added or dropped: Bottom has the Headline (empty = name of the state), Indicators show the icon only and have the Action on press instead (see Indicators); value and text fields are dropped there.

Remove item at the bottom left deletes the item from the place.

Icon

An item needs an icon – without an icon and without an icon list the panel cannot draw it, the dialog says Without an icon the panel cannot draw the item - please choose an icon and does not allow Apply. Default icons are preset from the role (and stay editable): the role of the channel above the state counts first (a light channel gives the bulb also for its .ACTUAL), otherwise the role of the state itself (value.humidity, switch.light, sensor.door, value.temperature …). The line "Role: …" names both. If the role knows no icons, the dialog says so.

Color

Fixed colors (separate on/off for boolean, picker or hex value), for numbers alternatively color scale by value – Edit scale… opens the dialog with the scale, minimum/maximum, best value and mode (like the page items, see PageConfig-Dialoge):

Number with a color scale

Third choice color from a state: a state whose value is the color – #rrggbb, {"r":…,"g":…,"b":…} (also as a JSON string) or a decimal number. On on/off states it applies to "on", "off" takes the default color. The state has to exist and be a state.

Color from a state

Icon per value range

Icon per value range (numbers only): Instead of one fixed icon a list "up to value β†’ icon" can be stored – the panel then changes the icon with the value. The button Icon per value… sits below the icon field as soon as the state is a number; expert mode is not needed for it. A stored list is shown next to it with its icons and the number of entries and can be deleted again with Remove icon list (bin).

Icon per value range

Blind (position)

If the chosen state is the position of a blind, the dialog treats it in its own way. A position is a number with the role level.blind or value.blind as well as a number below a channel or device with the role blind (the dialog then takes its .ACTUAL or .SET). A tilt (tilt) is no position.

An item with the position of a blind

Text instead of the value

Text instead of the value (boolean): Instead of true/false the panel shows the Text while true or Text while false. Each field may also hold the id of a state – then its value is shown. An empty field keeps the raw value.

Visibility

This block stands below the other fields as soon as the state is known (with a template, as soon as the template and – if needed – the object are entered). It needs no expert mode either. It has two fields and – with state items only – a checkbox:

Field Effect
State that hides the item while false While this state is false, the item does not appear on the panel.
Condition over val (shown while true) JavaScript expression over val, the value of the item's state – so val > 0 shows the item for positive values only.
Fill free slots even when hidden A hidden item steps in when a place in the area would otherwise stay empty. Default: off. Templates do not have this checkbox. See Filling free slots.

An item with a condition carries the eye icon in the panel picture and takes no place on the panel while the condition is not met – the other items move up.

The complete item dialog with icon list and visibility

Filling free slots

The checkbox Fill free slots even when hidden stands right below the condition. It exists for state items only, not for templates. It concerns items that are hidden at the moment – by the state that hides the item while false, or by the condition.

Only as many items step in as there are free places, in the order of the list. A gap filler stands at its own position in the list, not appended at the end.

Example: The area Indicators has 5 places on an EU panel. It holds 6 items, 3 of them are hidden at the moment, and all 3 have the checkbox. 3 items are visible, so 2 places are free. The first 2 hidden items of the list fill these places, the third one stays away. Without the checkbox, 2 places would stay empty.

In the script this setting is called ScreensaverEntityFillIfBelowMin. There it is on when not given. When taking over from the script, only an explicit true becomes a ticked checkbox. If the script has no entry, the checkbox is off afterwards – hidden items then no longer fill gaps. If you want the old behavior, tick the checkbox at the items concerned.

5. Templates as items

With the source Template a place takes a page item template of the adapter (for example text.clock, text.lock, script.light, shutter.basic, the pirate-weather.* templates). The template brings icon, colors and texts itself – icon, color, text and value fields are dropped for that reason; the visibility settings hold for template items too.

Template

A place with the template text.battery.bydhvs and its two SOC fields

6. Raw data (JSON)

For items the dialog does not put into fields, the item dialog takes the configuration as JSON – exactly as with the page items (see PageConfig-Dialoge). This is also where the items end up that the Migration took over from a script as raw data.

The dialog "Raw data of the item" on a screensaver item

Format What belongs in it
native (runtime item) The runtime item of the screensaver, for example { template, dpInit, data }. It is taken over unchanged.
script (as in the script) The screensaver element with type 'script', 'template' or 'native'. The adapter converts it exactly as it converts an element of a script configuration.

Example in the format native – a template with a search pattern:

{
  "template": "text.pirate-weather.favorit",
  "dpInit": "/^pirate-weather\\.0\\.weather\\.currently\\./"
}

Example in the format script – a single state with fields of its own:

{
  "type": "script",
  "ScreensaverEntity": "hm-rpc.0.ABC.1.TEMPERATURE",
  "ScreensaverEntityText": "Outside",
  "ScreensaverEntityIconOn": "thermometer",
  "ScreensaverEntityUnitText": "Β°C"
}

Example in the format script – a template with an option on an indicator place whose tap opens the power page cardPower_Haus (this is how it would stand in the configuration script as well):

{
  "type": "template",
  "template": "text.battery.bydhvs",
  "dpInit": "bydhvs.0",
  "readOptions": { "min": 5 },
  "modeScr": "indicator",
  "ScreensaverEntityNaviToPage": "cardPower_Haus"
}

7. More items than places: windows and paging

The editor draws the list areas Left, Bottom, Indicators and Alternate in windows of as many places as the version and the panel model allow. When the last window is full, it appends another one – so any number of items beyond the number of places can be created.

The bottom area with the paging counter and the button bar below it

Surplus items are therefore not an error. The warning … item(s) have no place in this version only concerns areas the chosen version does not have at all – indicators after switching from Advanced to Standard, for example.

8. Indicators and buttons

The indicators (versions Advanced and Tiles) show an icon only. For them the item dialog has the Action on press:

The item dialog of an indicator with the choice β€œAction on press” opened: none, button, switch, values to cycle through, open a page

Action Effect
none From the TFT 6.0.9 on a tap acts like a tap on the background, up to the TFT 6.0.8 it leads to the main page (see short tap and long press).
button (writes true) writes true into the chosen state.
switch (toggles) toggles the chosen state between true and false.
values to cycle through writes the next value of a list of your own into the chosen state on every press.
open a page opens the chosen page of the instance.

Button, switch and values to cycle through need a writable state; if it is not writable, the dialog says … is not writable (common.write) - this action needs a writable state and does not allow applying. In the panel picture the frame shows the action: red = button, green = switch, orange = cycle values, blue = page, grey = no action. A template on an indicator place gets the action as well – its icon becomes a button with it.

Values to cycle through. This action switches a state through a list of values of your own, one after the other. Below the field State written on press the button Edit values… stands for it; next to it the dialog shows the list in its order (-1 β†’ 0 β†’ 1 β†Ί) or No values yet – at least one is required. The action works in every version with indicators.

An indicator with the action "values to cycle through"

In the dialog Values to cycle through every row has a field Value, a handle to drag it in front of it and the arrows Move up / Move down, the bin behind it. Add value appends a row; empty rows are left out when it is applied. The order counts: every press writes the next value, after the last one it starts again with the first. A single value is allowed – every press then writes the same value.

The dialog "Values to cycle through"

The typed text is converted by the type of the state: for a number a number (a comma counts as the decimal separator), for an on/off state true and 1 as true, false and 0 as false, for text the text as typed. If the state has no fixed type, true and false become booleans, numbers become numbers, and anything else stays text. If a value does not fit the type, the dialog says At least one value does not fit the type of the state (…) and Apply stays disabled – in the value dialog as well as in the item dialog. Without a state or without a single value the item cannot be applied either.

Which value comes next is read by the adapter from the state: it looks for the current value in the list and writes the entry after it. If the value is not in the list – no value yet, or set to something else from outside – the next press starts with the first entry again. The place written last counts first as long as its value is still in the state; that is why the same value may stand in the list several times (0, 1, 0, -1).

Example: A number state 0_userdata.0.scene lies on the screensaver as an indicator, with an icon per scene through Icon per value…. The action Values to cycle through with -1, 0 and 1 switches the scenes one after the other, and the icon follows the new value.

One state per indicator. The adapter creates a state of its own for every indicator item: panels.<panel>.buttons.indicator-1, -2, -3 … in the order in which the items stand in the area Indicators. The states are boolean, read-only and carry the role button.press. A tap on the indicator always writes true into its state – independently of the option. That makes them usable as triggers for own scripts, even without an action in the dialog. A long press writes a state of its own, see action on long press.

Only an action that is set has an effect. An indicator switches nothing by itself: without an Action on press nothing happens to its state, even when that state is writable. A blind is never moved by a tap.

Up to version 2.1.0 there was the option Indicators act as buttons for this. It is gone: a stored value is ignored, and a state that is merely writable is no longer switched by accident.

The result appears at once. Between two updates of the screensaver the adapter keeps a short pause. A press on an indicator ends it – the new icon and the new color go to the panel without a wait.

One press, one event. Up to the TFT 6.0.7 an indicator reported its press twice, when the finger touched it and when it was lifted; a long press therefore switched twice. From the TFT 6.0.8 on it reports exactly one press – in both versions with indicators (Tiles screensaver5 and Advanced screensaver2) and on all three models eu, us-l and us-p. From the TFT 6.0.9 on the press arrives when the finger is lifted, and a long press is an event of its own.

Advanced on us-l and us-p. On the two US models the indicators of the version Advanced did nothing at all before: the fields of the page had neither code nor ids there, a press had no effect and wrote no state either. That is fixed with the TFT 6.0.8 as well. Both reach the panel with the beta 6.0.9 (see Requirement: a TFT with the page screensaver5).

Short tap and long press with the TFT 6.0.9

From the TFT 6.0.9 on the panel reports the press on an indicator when the finger is lifted and sends the number of taps with it; taps on indicators and on the background are counted together. For the short tap that means:

With an older TFT the press arrives without the counter: an indicator with an action runs it, an indicator without one sends the panel to the main page.

Action on long press

In the item dialog of an indicator a second block Action on long press stands below the Action on press. It works in the versions Advanced and Tiles on all three models and needs the TFT 6.0.9; the dialog says so itself: Needs TFT 6.0.9 or newer. Without an action here, a long press acts like a short press.

Choice Effect
none A long press acts like a short tap. From the TFT 6.2.0 on the indicator then knows no long press at all: the time does not blink, letting go is always a tap.
button (writes true) writes true into the chosen state.
switch (toggles) toggles the chosen state between true and false.
open a page opens the chosen page of the instance.
Open popup opens the popup of the device the indicator belongs to. Only in the choice when the device has one, see Open popup.
Only trigger the state only writes true into panels.<panel>.buttons.indicatorLong-<n> (see below) – nothing else happens, no tap either. For own scripts that react on the long press.

The item dialog of an indicator with the choice β€œAction on long press” opened – the six entries from β€œnone” to β€œOnly trigger the state”

Example: An indicator Light switches the light on a short tap (switch) and opens a page on a long press (open a page) – two functions on the same tile.

A state of its own. Every long press writes true into panels.<panel>.buttons.indicatorLong-<n> – the same order as indicator-<n>, type boolean, read-only, role button.long. With the TFT 6.0.9 to 6.1.x it is written always, even without an action set; without an action the long press acts like a tap on top of that there, so both states arrive. That makes the long press usable as a trigger for own scripts even without an action in the dialog.

From the TFT 6.2.0 on the state needs an action. An indicator without an Action on long press then knows no long press any more, indicatorLong-<n> stays empty. Whoever used the state as a trigger without an action so far chooses Only trigger the state.

The indicator tiles of the web panel send the long press as well – like the TFT 6.2.0 only for indicators with an action on long press.

Open popup

With Open popup a long press operates the device behind the indicator straight from the screensaver: the panel opens the same popup as on a card page, for example the light popup of a lamp or the shutter popup. There is no extra field for it – which device is meant follows from the state of the item:

A shutter indicator with β€œOpen popup” as action on long press; the channel above the state has the role blind

The dialog offers Open popup only when the role of this channel or device leads to a popup:

Role of the channel Popup
light, dimmer, ct, rgb, rgbSingle, hue light
blind shutter: with tilt states (TILT_OPEN, TILT_CLOSE, TILT_STOP) popupShutter, without them popupShutter2 – the popup only for roller shutters without tilt
lock shutter (popupShutter)
level.mode.fan fan
select selection list
level.timer timer

All other roles have no popup that can be opened from the screensaver – a gate (gate) neither; then the entry is missing from the choice. If an item with Open popup later changes to a state without a matching channel, the choice shows none again, and the long press is dropped on applying.

On the panel:

In the configuration script this is ScreensaverEntityLongPressPopup: true on the indicator. If a button, a switch or a page is set for the long press as well, that one takes precedence – the popup only opens without them.

Example: An indicator shows the state on of a light channel (role light). The short tap switches the light (switch), the long press opens the light popup (Open popup) – for the brightness, for example.

9. Status icons

The two status icons (mrIcon1, mrIcon2) each follow one state: Icon on while true, otherwise Icon off, each with a Color on / Color off of its own. An optional second State shown as value (optional) next to it is shown with Decimals and Unit. Without a state the icon stays unused and is grey in the panel picture. A newly created entry fills both status icons with the relays of the panel (Relay.1 and Relay.2, bulb on/off) – so the panel shows a color from the start; both can be changed or switched off by emptying the state.

Status icon

In the version Tiles the panel shows only the color of a status icon – as a bar at the lower edge, without icon, value and unit (see Tiles).

10. Time and date

Click on the time: Adapter default, 24 hours or 12 hours, with a preview.

Time

Timer instead of the clock

If a timer runs somewhere – an egg timer on a page, a script timer or a timer on the Echo –, the screensaver can show the remaining time instead of the clock. Once the timer is over and stopped, the clock is back. A step-by-step guide is under Quick start: remaining time on the screensaver.

In the dialog of the time, below the format choice, stands the checkbox Show timer. While a timer is active, the panel shows its remaining time in the place of the clock; without an active timer the clock stands there as usual. This holds for every version of the screensaver and for the web panel as well.

The dialog of the time with the timer switched on

With the checkbox the field Source of the timer appears with three choices:

Source What is behind it When to take it
Data points or slot patterns Two states a script of your own maintains – or, behind Advanced, two patterns for timers in changing slots. A script manages the timers itself.
Page item with timer popup A timer item from a page of this panel, see timer popup. The timer is set on the panel, e.g. an egg timer.
Alexa timer (alexa2) The timers of an Echo device of the alexa2 adapter. The timers are set by voice on the Echo.

Apply stays disabled while the timer is incomplete – the dialog says A timer needs both data points or two valid patterns., with the Alexa source Choose the alexa2 instance and the Echo device.

Source: two states

Field Meaning
On/off state (true = timer is active) Only while this state is true there is a timer. While it is false the timer counts as done – whatever the data says – and there is no alarm.
Data state (end time or remaining time) When the timer ends or how long it still runs. The adapter detects the format itself.

What the data state may hold:

Value Meaning
number from 100 000 000 000 end as a timestamp in milliseconds
number from 1 000 000 000 end as a timestamp in seconds
smaller number above 0 remaining seconds of a state that counts down by itself – with the unit ms milliseconds
text an ISO date (2026-11-07T18:30) or a clock time HH:MM; if that time has passed today, it means tomorrow
empty or other text no timer

The value 0 with on/off true: If the timer has counted since the start of the adapter, 0 means expired. If the state carries the unit s, sec or ms or the role value.timer or level.timer, 0 always means expired – also right after a restart of the adapter. Otherwise 0 means "no timer yet", and the panel shows the clock.

The help text in the dialog sums it up: Formats are detected automatically: end time as Unix ms or Unix seconds (0 = no timer), remaining seconds of a state counting down (unit ms: milliseconds), ISO date or HH:MM. The time is over: 0.0 with an alarm icon until the on/off state is false. The display shows the remaining minutes, e.g. 125.5, from 1000 minutes 1234.

Advanced – timers in changing slots: The button Advanced opens the dialog Timers in changing slots, a special case for scripts that keep their timers below a fixed path in changing sub folders. Instead of the two states two patterns are entered, Pattern on/off and Pattern data, each with exactly one * and a path in front of it:

javascript.0.timer.global.*.aktiv
javascript.0.timer.global.*.targetTs

The dialog "Timers in changing slots"

Source: page item with timer popup

The clock dialog with a page item as the source of the timer

The field Page item lists the timer items on the pages of the panels of this screensaver, as page - name of the item (items of the same name on one page with their place number behind it). Offered are only items that really count down: internal timers and external timers with STATUS. Alarm clocks, plain time displays and items with the checkbox Use the timer of the screensaver are missing from the list. The chosen item works even if its page has never been opened.

No circle: A screensaver cannot take an item as its source that itself uses the timer of this screensaver. The dialog does not offer such items, and in the item dialog the checkbox is locked as soon as the screensaver uses this item as its source. Should it happen all the same, the panel shows the clock, the log warns, and the item has no buttons. Allowed is the chain: item A uses the screensaver, the screensaver uses another item B.

Source: Alexa timer (alexa2)

The dialog of the time with the source Alexa timer: alexa2 instance and Echo device

Field Meaning
alexa2 instance The alexa2 instance with the Echo device. All installed instances are offered.
Echo device The device whose timers the screensaver shows. Only devices whose Info.capabilities contains TIMERS_AND_ALARMS are offered, labelled with Info.name and the serial number.

While one of the two fields is empty, the dialog says Choose the alexa2 instance and the Echo device. The screensaver shows timers only, no alarms.

Important – option in alexa2: If the option Automatically query activity on device interaction (autoQueryActivityOnTrigger) is off in the chosen alexa2 instance, the dialog says In this alexa2 instance the option "Automatically query activity on device interaction" is off: timers set by voice never show up. Switch it on in the settings of the alexa2 instance. Without the option, timers set by voice never show up in alexa2 and so not on the panel either.

The web panel shows the remaining time 1.3 of an Alexa timer on the screensaver, with the hourglass as info icon

Display on the panel

The screensaver shows the remaining time instead of the clock

The remaining time stands in minutes with a point, so it cannot be mistaken for the clock:

Remaining time Display
below 1000 minutes one decimal, always with a point, rounded up to 6 seconds: 90 s β†’ 1.5, 7 s β†’ 0.2, the last 6 s β†’ 0.1, 125 min 30 s β†’ 125.5
from 1000 minutes whole minutes rounded up, e.g. 1234, at most 9999
expired 0.0
State Time field Info icon
running remaining time in orange timer-sand in orange
paused (only with a page item as source) standing remaining time in orange timer-pause in orange
expired 0.0 in red timer-alert in red
tapped away the clock in its normal colour stays as long as the timer is active

Expired stays until the on/off state becomes false. New data only ends the alarm when it lies in the future. With a page item as source it ends with Finish on the item, with the Alexa source as soon as the timer is stopped.

Tapping: The first tap on a shown timer switches to the clock – also without double click and before a notification is tapped away. It triggers neither a gesture nor a page change. The panel keeps counting the taps until the display dims, though: with the double click active (cmd.screenSaver.doubleClick) the next tap therefore leads to the main page as soon as it comes more than a second later. The timer appears again as soon as the screensaver starts anew or a new timer begins.

Date

Click on the date: format of Weekday, Month and Year (long, short, numeric, two digits …). Global setting takes the format from the instance settings; a value here holds for this screensaver only. The preview shows the result with today's date.

Date

11. Weather

To the right of the panel picture stands the Weather adapter of this screensaver:

Weather

12. Options: rotation and swipe

The button Options below the panel picture opens two settings (up to 2.0.2 it was the gear in the picture):

Options

Field Effect
Rotation time (s) The beat at which the panel pages on through the windows of an area with more items than places. 0 = off; values of 1 and 2 seconds are treated as 3 seconds by the adapter.
Swipe gestures on the screensaver A gesture on the screensaver writes its number into panels.<panel>.buttons.screensaverGesture: 2 = leave (bExit), 3 = up, 4 = down, 5 = left, 6 = right.

The gesture number only arrives when the state panels.<panel>.cmd.screenSaver.doubleClick of the panel is on as well (default: on). If it is off, the adapter sets buttons.screensaverGesture to 0 (inactive) at the start and writes nothing into it afterwards.

13. Notifications

The button Notifications below the panel picture (up to 2.0.2 the bell in the picture) opens them: two lines that cover the screensaver while a state is "on". All screensavers share one common list; the tick box Show on this screensaver decides where a notification appears. The number on the button tells how many are switched on for this screensaver. The button only works while the instance is running.

Everything else – content, conditions, priority, dismissing and the buzzer – is on a page of its own: Screensaver-Notify.

14. Saving – what the adapter does with it

Save or Save and close at the bottom; the instance restarts. At the start the adapter looks for the first entry that holds the topic of each panel and builds the screensaver from it. The log then says, for example:

Screensaver 'Wohnzimmer' (advanced) from the admin configuration replaces the script screensaver of panel 'NSPanel-Wohnzimmer'

If the panel had no screensaver of its own before, the line ends with is used by panel '…'. If a panel stands in several entries, the log warns in addition (… is listed in several screensavers (…) – '…' is used).

15. Showing the screensaver at once

The screensaver can also be called up without waiting for the timeout of the panel – with the same behaviour as when the timeout runs out. Four ways lead there:

Way Where
Slot of a page In the Pageitem Configuration the choice of the Target page – also for the long press – holds the entry Screensaver.
Navigation of a page The four fields prev, next, home and parent under panel assignment and navigation offer Screensaver as well. The arrow on the panel shows the icon power-sleep for it.
State Set panels.<panel>.cmd.screenSaver.activate (role button) β€” every write triggers it, the value does not matter; the adapter resets it to false afterwards.
Navigation flow In the navigation flow a node Screensaver of its own appears as soon as something leads there – a target only, not editable.

Limits: there is no such target for the start page, and for the action of an indicator on the screensaver itself it is not offered. If the panel is offline or shows the screensaver already, nothing happens.

Two quick taps on a navigation arrow: The second tap can arrive before the new page is fully drawn and then hits the symbol in the same place of the new page. If that symbol leads to the screensaver, it looks as if the screensaver had activated by itself. Observed with 0.26 s between two taps – the adapter only discards taps that arrive within 0.2 s after the page change.

16. Tiles

The version Tiles draws the screensaver as a grid of areas: a row of indicators at the top, a large clock with the date in the middle, a row of values below it and two color bars at the lower edge. Behind it stands the card screensaver5.

Requirement: a TFT with the page screensaver5

This version needs a TFT that holds the page screensaver5. The stable TFT of the version list – 5.1.1, model us-p: 5.1.3 – does not have it, and neither does the official nspanel-v6.0.7.HMI. The beta 6.0.9 has it: the version list names it for all three models, and the TFT server holds nspanel-v6.0.9.tft, nspanel-us-l-v6.0.9.tft and nspanel-us-p-v6.0.9.tft. With the tick for the beta the TFT UPDATE therefore leads to a TFT with the page.

Setting it up

Tab Screensaver β†’ choose or create an entry β†’ Version to Tiles β†’ assign the panels β†’ fill the places. As in the other versions the model of the first chosen panel decides how many places the areas have; the line below the version then names card screensaver5 and the model the places are drawn for.

Places and the layout on the panel

Model Favorite Alternate Left Bottom Indicators Status icons
eu, us-l – – – 5 7 2
us-p – – – 4 8 2

From top to bottom:

eu, us-l (landscape, 5 columns) us-p (portrait, 4 columns)
indicators 1 to 5 indicators 1 to 4
indicator 6, time with the info icon, date, indicator 7 time with the info icon
date
indicators 5 to 8
bottom values 1 to 5 bottom values 1 to 4
two status bars two status bars

The order of the items in the area Indicators decides the place. On eu and us-l the places 6 and 7 are the areas left and right of the clock. More items than places are paged through by the panel as in the other versions – in the area Bottom just as with the indicators (see windows and paging).

The editor with the version Tiles

The editor with the version Tiles on a us-p panel

What the places show

The screensaver in the version Tiles

Indicators: An indicator shows its icon only, without a headline and without a value; the whole tile is the touch area. Everything from indicators and buttons holds unchanged – the Action on press, the Action on long press and the states panels.<panel>.buttons.indicator-<n> and indicatorLong-<n>.

Bottom values: Headline, icon and value as in the other versions. A notification covers exactly this row (see notifications).

Status icons: mrIcon1 and mrIcon2 do not appear as icons here but as the two color bars at the lower edge. Only the color is visible (Color on / Color off); icon, value and unit are not shown by the panel in this version. A status icon without a state leaves its bar black. In the panel picture of the editor the two therefore stand as wide bars at the bottom as well (see status icons).

Time and date: The clock is larger than in the other versions and has a font of its own; the info icon stands to the left of the time. The timer instead of the clock works here too, and the time and the info icon take the color of the timer – unlike in the version Advanced, which only does so from the TFT 6.1.0 on (see display on the panel).

No favorite: Tiles has no favorite place. With it the current weather the other versions show there is gone as well – the ticked Extra items at the bottom from weather, on the other hand, attach themselves behind the last own item in the area Bottom as usual.

Blind: A blind can be used here as an indicator or at the bottom as in the other versions; without an icon of its own the icon follows the position, at the bottom the position stands in % (see blind).

Limits and changing the version

17. Blinking clock

A script or an automation can let the clock of the screensaver blink red and white – for example as a hint that something needs attention. Each phase lasts half a second. The blinking goes on until it is switched off; then the clock has its usual colour again. A new colour for the clock that arrives meanwhile (from a timer, for example) is kept by the panel and shown after the blinking.

Two ways switch it on and off:

Way Value
Datapoint panels.<panel>.cmd.screenSaver.clockBlink (role switch, writable): true blinks, false ends it. The value survives a restart of the adapter.
sendTo sendTo('nspanel-lovelace-ui.0', 'screensaverClockBlink', { panel: '<topic of the panel>', enabled: true }); – enabled: false ends it. The panel is found by its MQTT topic, as with screensaverNotify.

18. Tapping the info icon

The info icon next to the clock can be tapped with the TFT 6.2.0 – also in the web panel. The tap is sent on release as with an indicator, and a swipe that starts on the icon stays a swipe. Unlike a tap on the background it does not count for the double click and does not switch a timer back to the clock; a notification shown is nevertheless taken as seen. Without an icon the spot is part of the background. A tap on the clock itself works as before (with a timer it switches to the clock, see Timer instead of the clock).

Icon What the tap shows
timer-sand, timer-pause, timer-alert A popup with the icon: A timer is running., A timer is paused. or A timer has expired.
cog-refresh-outline A popup: The display is running a development firmware.
wrench-clock A popup: A firmware update is available for the display.
own info icon (panels.<panel>.cmd.screenSaver.infoIcon) While the own icon is shown, the adapter writes true to panels.<panel>.buttons.infoIcon (read only, role button.press). A popup with the own icon opens only when panels.<panel>.cmd.screenSaver.infoText (text, writable) is not empty – the text of the popup is its content.

The popup of your own info icon on the panel: the blue bell on the left, the text from infoText next to it, the cross at the top right; at the bottom left the button Next, because another message is waiting

Datapoint Meaning
panels.<panel>.cmd.screenSaver.infoIcon Your own icon (text, writable). Expected is the name of a Material Design icon – the value list of the datapoint offers nine common ones: empty for no icon, clock-alert-outline, weather-sunny-alert, bell-ring-outline, calendar-alert, alarm, information-outline, alert-circle-outline and alert-circle. The list is only a help, any other icon name is accepted just as well. A name the adapter does not know is passed on to the panel unchanged – that text then stands next to the clock, with only a debug line in the log. Empty means no icon; tapping the spot then does nothing.
panels.<panel>.cmd.screenSaver.infoTextFont Font of the text of the own info icon (number, writable): 0 24 px, 1 32 px (Western European characters only), 2 32 px, 3 48 px (Western European characters only), 4 80 px bold (Western European characters only), 5 128 px bold (ASCII only). Empty or any other value gives 2; the adapter acknowledges the datapoint with the font used. Applies to infoText only – the texts of the adapter (timer, firmware) always use font 2.

Pitfalls


Source of this page: doc/en/screensaver.md Β· Project on GitHub

  Back to top