Skip to content

Settings

Every kind of widget setting with its options and limits, what each reads as in the template, and examples.

A widget declares what each tile can choose in its settings list. This page lists every kind with what it takes, and what the template reads. Settings explains how to use them.

Common fields

Every setting has these fields, whatever its kind:

FieldTypeDefaultRules
typetextnoneThe kind, from the lists below. Required.
nametextnoneThe key the template reads. Required. Starts with a lower-case letter, then up to 31 letters or digits: ^[a-z][a-zA-Z0-9]{0,31}$.
labeltextnoneWhat the tile’s dialog calls it. Required. 1 to 60 characters, without spaces at the ends.
helptextnoneA line under it. At most 200 characters.
requiredyes/notrueWhether a tile has to choose something.
grouptextcontentThe tab of the tile’s settings it sits on: content, layout, look, chart, map or tap. A tap setting starts on tap and a layout setting on layout.
perSizeyes/nofalseA simple setting that can differ per screen size: Tablet and Phone may choose their own; a size left alone follows Desktop.
shownWhenobjectnoneShows the setting only while an earlier choice or yes/no setting of the widget has one of the values you list: { "setting": "mode", "is": ["auto"] }. For a yes/no setting the values are "true" and "false".

Rules for the whole list:

  • A widget can declare at most 32 settings.
  • Every setting needs a name of its own. Two settings can’t share one.
  • A setting with shownWhen has to point at an earlier setting of the widget (so never at itself or at one below it) that is a choice or a yes/no setting, and list only values that setting can hold.
  • A setting that points at another one (of, keepDone) has to point at one that exists and is of the right kind: a device setting, a values setting or a choice setting.

While shownWhen doesn’t hold, the tile’s dialog doesn’t show the setting and doesn’t ask for it, even when it is required. What the tile stored for it is kept, and the template still reads it. The widget designer doesn’t offer shownWhen yet; add it to the setting in the settings JSON.

The template reads a setting as settings.<name>. A simple setting is also a CSS variable, --setting- followed by its name in lower-case words joined with dashes.

Kinds that pick from the Homey

In the editor these are listed as A device, A capability, A value, A flow, A mood, A dashboard, A zone, A person, Calendars, PINs, A floor plan and A model. A 3D view, which goes with a model, is listed with the simple values. A device, flow, mood or dashboard setting can also hold several: see Several at once.

device

A device of the tile’s Homey.

OptionTypeDefaultRules
requiresobjectnoneReadings a device must have. all lists readings it needs every one of, any lists readings of which at least one is needed. Each list has at most 12 reading ids.
classeslistanyClasses that fit. 1 to 8 names of lower-case letters, digits and underscores. The class set in Homey counts too.
zonetextanyThe name of a zone setting of this widget. Only devices in the zone picked for it are offered and shown (and those in the rooms inside it, as the tile says).

Reading ids look like Homey’s: lower-case letters, digits and underscores, with one optional sub-capability after a dot, as in measure_power.phase1.

The template reads it like the tile’s own device, with a cap of its own: settings.pump.name, settings.pump.cap.measure_power.text. It is null until a fitting device is chosen, and again if the device is gone or no longer fits.

{  "type": "device",  "name": "charger",  "label": "Charger",  "help": "The charger the car is plugged into",  "requires": { "all": ["evcharger_charging"], "any": ["measure_power", "meter_power"] },  "classes": ["evcharger"]}

capability

One reading.

OptionTypeDefaultRules
oftextthe tile’s own deviceThe name of a device setting of this widget whose reading it is.
kindslistanyOnly readings of these kinds are offered: number, boolean, enum or string. At least one.
setableyes/noanyOnly readings that can be changed are offered, for a control.

The template reads it like cap.<id>, with an id as well: settings.reading.text, settings.reading.id. Written whole into an attribute, it is a live reference. It is null when nothing is chosen.

{  "type": "capability",  "name": "reading",  "label": "Reading",  "of": "charger",  "kinds": ["number"]}

value

One value, from wherever the tile picks it: a reading of any device, a Homey variable, or the Homey’s energy and prices. It doesn’t need a device setting of its own.

OptionTypeDefaultRules
kindslistall threeWhere the value may come from: reading, variable or host (energy and prices). At least one.
typeslistall threeWhat it may hold: number, boolean (yes or no) or text. Only values that hold one of these are offered. At least one.

The template reads settings.<name> with label (the reading’s title, the variable’s name), value, text (ready to show, without the unit), unit, type (number, boolean or text), icon, lastUpdated, stale (its device can’t be reached) and kind (where it comes from): {{ settings.outside.text }} {{ settings.outside.unit }}. It follows the value live, as a tile does. It is null until a value is picked, and again if the device or variable is gone.

{  "type": "value",  "name": "outside",  "label": "Outside temperature",  "kinds": ["reading", "variable"],  "types": ["number"]}

data

The numbers for a chart: one value, several values at one moment, or values over time. The tile picks where they come from: the Homey’s own values, a data feed, JSON typed into the tile, or JSON a flow keeps in a text variable. For JSON it says where the numbers are, or lets Find the numbers find them.

OptionTypeDefaultRules
shapechoicerequiredvalue (one value, a gauge), list (several values now, a pie or bar list) or series (values over time or categories).
fromlistall fourWhere the numbers may come from: homey, feed, json or variable. At least one.

{{ settings.<name> }} writes @data/<name>, which hd-graph takes as its source and draws, following the data as it changes: <hd-graph variant="donut" source="{{ settings.rooms }}"></hd-graph>. For the tile’s text the setting also has value (the one value, or the newest point), label, unit, items (each with label and value), total, problem (no-data, not-json, nothing-found or too-big; empty when it draws), updatedAt and failing (why a feed brings nothing now; it keeps its last data). Readings over time from the Homey keep their recorded history: then history is true, and readings (each with cap and label) and range go to hd-chart and its hd-series, as a readings setting’s do.

{  "type": "data",  "name": "rooms",  "label": "Data",  "shape": "list",  "from": ["homey", "json", "variable"]}

flow, mood and dashboard

These take only the common fields. A flow reads as an object with id, name and a few more details, a mood has id, name and zone, and a dashboard has id and name. They are null until one is chosen.

{ "type": "flow", "name": "boost", "label": "Boost flow", "required": false }

person

One of the Homey’s people. It takes only the common fields; a tile stores their Homey user id. The template reads them as people has them (name, picture, initials, home, asleep, role), and null until someone is picked, when they left the Homey, and on a share link. The tile’s settings list the people by name with whether they are home now. Without the permission to see them, the field says so.

{ "type": "person", "name": "who", "label": "Who" }
{% if settings.who %}{{ settings.who.name }} is {% if settings.who.home %}home{% else %}away{% endif %}{% endif %}

calendars

The account’s calendars. It takes only the common fields, and is best not required: a tile that picks nothing shows every calendar, also ones added later. A tile stores the ids of the calendars it ticks. The template gets two lists:

  • calendars: each with name, colour (ready for CSS, such as var(--hd-accent)), failed (its link can’t be loaded now; its events are as they were) and loadedAt (when, as an ISO time, or null).
  • events: from now on for 30 days, in order, those going on now first. Each has title, start and end (ISO times), allDay, location (or null) and calendar (its name and colour), with words ready to show: day (Today, Tomorrow or a date such as Sat 19 Oct, in the viewer’s language), date (YYYY-MM-DD, to group by), time (14:00 – 14:30 in the viewer’s clock, null all day) and now.

Both are empty until the events are read, and where none are given. The preview and the editor show demo calendars.

{ "type": "calendars", "name": "agenda", "label": "Calendars", "required": false }
{% assign day = '' %}{% for event in settings.agenda.events limit: 8 %}  {% if event.date != day %}<h4>{{ event.day }}</h4>{% assign day = event.date %}{% endif %}  <p class="event" style="--colour: {{ event.calendar.colour }}">    {{ event.time | default: 'All day' }} {{ event.title }}  </p>{% endfor %}{% for calendar in settings.agenda.calendars %}{% if calendar.failed %}<small>{{ calendar.name }} can’t be loaded.</small>{% endif %}{% endfor %}

pins

Which of the account’s other PINs a keypad takes too; the account’s own always unlocks it. It takes only the common fields, and is best not required: nothing ticked is the account’s own PIN only. The tile’s owner ticks them by name, and the tile stores their ids. The template gets the ids comma-separated (an empty text for none), ready for hd-keypad’s pins. Never a PIN itself.

{ "type": "pins", "name": "who", "label": "PINs it takes", "required": false }
<hd-keypad label="Disarm" pins="{{ settings.who }}" data-hd-on-unlock="set('homealarm_state', 'disarmed', settings.alarm.id)"></hd-keypad>

floorplan

One of your floor plans of the tile’s Homey. It takes only the common fields. The tile’s owner picks the plan, a level of it (the lowest at first) and what the tile shows: the whole level or one room. A tile stores { "planId": …, "levelId": …, "roomId": null }.

Template: settings.<name> is null until a plan is picked, else:

  • id and name: the plan’s.
  • status: ready, or why there is nothing to draw: loading, paused (past the account’s floor plans), gone (deleted) or levelGone.
  • level and room: each id and name; room is null for the whole level.
  • rooms: the rooms shown (only the focused one when there is one), each with id, name, zone (its id and name, or null) and its zone’s temperature and humidity now (each value, text and unit, or null), the zones inside it counted, and scenes: the moods and flows on its card, in order, each type (mood or flow), id and name.

<hd-floorplan> draws the level; give each room its values with an <hd-room> inside it, and its card’s moods and flows with an <hd-scene> inside that. A tap on a room with devices (picked in the floor planner’s Devices tab) opens its card: its player, climate, lights, covers, moods and flows. Under its name the room shows what its player plays. Set action-source="plan" to use the floor planner’s per-object Actions and linked-device defaults in every view. An object can open a device or dashboard, run a flow, set a mood, change a variable or send a web request. Explicit Nothing stops that gesture; unconfigured unlinked furniture passes it to the room. Missing targets stay inactive for repair.

Without action-source="plan", linked-device defaults come from the existing device-tap, device-hold and device-double attributes (switch, quick actions and popup respectively when omitted). Per-object overrides and existing room actions still apply. This preserves saved templates. The preview and the editor show a demo house.

{ "type": "floorplan", "name": "plan", "label": "Floor plan" }
<hd-floorplan action-source="plan" plan="{{ settings.plan.id }}" level="{{ settings.plan.level.id }}" room="{{ settings.plan.room.id }}">  {% for room in settings.plan.rooms %}    <hd-room room="{{ room.id }}" value="{% if room.temperature %}{{ room.temperature.text }}°{% endif %}">      {% for scene in room.scenes %}<hd-scene type="{{ scene.type }}" ref="{{ scene.id }}" name="{{ scene.name }}"></hd-scene>{% endfor %}    </hd-room>  {% endfor %}</hd-floorplan>

house

The house an Energy house shows: one of your houses, the pictures of your home (or of Tiledash’s houses) with places marked on them, which hold what their places show. It takes only the common fields. The tile’s owner picks one of the houses of the tile’s Homey, and for one with several sides which sides show (all of them, in the house’s order, at first), how to move between them (swipe, dots or tabs) and whether they turn by themselves, and what of the house the tile leaves out. A tile stores { "houseId": …, "sides": null, "navigation": "dots", "rotate": 0, "hidden": [] }: sides null is every side, one added later too; hidden names the energy parts (solar, grid, home, battery, car), today for today’s totals and the house’s values by id. Nothing stored, or houseId null, is no house yet.

Template: settings.<name> is:

  • status: ready, or why there is nothing to draw: none (no house picked), loading, paused (past the account’s houses) or gone (deleted).
  • name: the house’s own.
  • navigation (swipe, dots or tabs) and rotate (seconds between turns, 0 for never).
  • sides: the sides shown that have a picture, each with what <hd-house-side> takes: id, name, picture (for upload), or preset (one of Tiledash’s houses), width, height, box and spots (as text), and dark.
  • spots: the places placed on any side, each value and label: what a values setting with spotsFrom offers.
  • energy: the house’s energy parts now, as an energy setting reads them: grid, solar, battery, car (watts), batteryCharge, carCharge (percent), todaySolar, todayUsed, todayExported (kWh), null where there is none.
  • hide: the parts the tile leaves off, space apart, as <hd-energy-house hide> takes them; a part placed only on sides the tile leaves out is among them.
  • today: whether today’s totals show.
  • values: the house’s values the tile shows, each a value with its id and spot: label, text, unit and the rest.
{ "type": "house", "name": "house", "label": "House", "required": false }
{% assign house = settings.house %}<hd-energy-house grid="{{ house.energy.grid }}" solar="{{ house.energy.solar }}" battery="{{ house.energy.battery }}" car="{{ house.energy.car }}" hide="{{ house.hide }}" navigation="{{ house.navigation }}" rotate="{{ house.rotate }}">  {% for side in house.sides %}    <hd-house-side name="{{ side.id }}" label="{{ side.name }}"{% if side.preset %} preset="{{ side.preset }}"{% else %} upload="{{ side.picture }}" width="{{ side.width }}" height="{{ side.height }}"{% endif %} box="{{ side.box }}" spots="{{ side.spots }}"{% if side.dark %} tone="dark"{% endif %}></hd-house-side>  {% endfor %}  {% for v in house.values %}    <hd-house-value spot="{{ v.spot }}" label="{{ v.label }}" value="{{ v.text }}" unit="{{ v.unit }}"></hd-house-value>  {% endfor %}</hd-energy-house>

model

A model of your library: a piece of Tiledash’s furniture, one of your own 3D models, or one you installed from the Community. It takes only the common fields. The tile’s owner picks it with a search, each model shown as a small picture. A tile stores { "pieces": [{ "ref": "kit:table-lamp", "deviceId": null, "name": "Table lamp" }] }: kit:<piece> for the furniture, model:<id> for yours and the Community’s, and the name it had when it was picked. It holds one piece for now.

Template: settings.<name> is null until a model is picked, else:

  • ref and name: the model’s; attr, its reference ready for <hd-model model="…">.
  • status: ready, loading, or gone when it was deleted, uninstalled or blocked since, or the tile came from another account. name is then the name it had.
  • pieces: each piece with its ref, name, status and optional appearanceOverrides.
  • appearanceAttr: this copy’s appearance overrides as JSON, ready for appearance="{{ settings.model.appearanceAttr | escape }}". Always escape it in an attribute. Named groups of parts-built models offer colour, finish and physical pattern settings; reset properties inherit the author’s defaults.

<hd-model> draws it, in 2.5D or in 3D at a modelCamera setting’s camera, and says so itself when there is nothing to draw. Give it device and it lights up while the device is on. The preview and the editor show Tiledash’s table lamp.

{ "type": "model", "name": "model", "label": "Model" }
<hd-model model="{{ settings.model.attr }}" appearance="{{ settings.model.appearanceAttr | escape }}" name="{{ settings.model.name }}" device="{{ settings.lamp.id }}"></hd-model>

modelCamera

How a model is turned in 3D, set in the tile’s settings by dragging the model on a stage: over the top, underneath, upside down and rolled, with a pinch or the wheel to zoom and the arrow keys too. of names the model setting it turns, which the stage shows. Nothing set is the isometric view a new tile starts at, so it is usually optional.

OptionTypeDefaultRules
ofstringnoneThe name of a model setting of the widget.

A tile stores { "q": [x, y, z, w], "zoom": 1 }: the model’s whole orientation as a quaternion, kept at unit length, and a zoom from 0.5 to 3.

Template: settings.<name> is { q, zoom, attr }, with attr ready for <hd-model camera="…">.

{ "type": "modelCamera", "name": "camera", "label": "3D view", "of": "model", "required": false }
<hd-model model="{{ settings.model.attr }}" view="3d" camera="{{ settings.camera.attr }}" rotate="one"></hd-model>

zone

One of the Homey’s zones: a room, a floor or the whole home. It takes only the common fields. The tile’s owner picks it from the zones’ tree, and says whether the rooms inside it count too (they do at first). A tile stores { "zoneId": …, "nested": true }.

Template: settings.<name> is null until a zone is picked (and when it is gone), else:

FieldWhat it holds
id, nameThe zone.
iconIts icon, for <hd-icon>: room.living, room.bedroom, … for Homey’s room icons, homey.zone for the others.
parentThe zone it is in, { id, name }, or null for the home itself.
nestedWhether the rooms inside it count.
roomsThe zones directly inside it, each { id, name, icon }.
devicesIts devices (and those of the rooms inside it, when they count), each like a device setting, with cap. Unavailable ones too.
lights{ on, total }: the lights with an on/off that are on, of all of them.
temperatureThe average of its temperature readings, one decimal, as { value, text, unit } (20.8, °C), or null without one. humidity likewise.
motionWhether anything in it sees motion now, or null without a motion sensor.
powerThe power its devices use now, as { value, text, unit } (value in watts, text and unit as cap.measure_power has them: 1.82 kW), or null without a reading. The house’s own meters (the Energy flow’s grid, solar and battery) are left out.
playingThe speakers playing now, each { id, name, title, artist }.

The totals count only devices that are available. The readings they need are followed live; the other readings of its devices only when the template reads settings.<name>.devices, so a share link sees no more of the zone than that.

[  { "type": "zone", "name": "room", "label": "Room" },  {    "type": "device",    "name": "lights",    "label": "Lights",    "multiple": true,    "classes": ["light"],    "zone": "room"  }]
{% if settings.room %}  <hd-icon name="{{ settings.room.icon }}"></hd-icon> {{ settings.room.name }}  {{ settings.room.temperature.text }} {{ settings.room.temperature.unit }} · {{ settings.room.lights.on }} of {{ settings.room.lights.total }} lights on{% endif %}

Several at once (multiple)

A device, flow, mood or dashboard setting can hold a list instead of one. Use it for “all my smoke detectors” instead of eight device settings.

OptionTypeDefaultRules
multipleyes/nofalseMakes the setting a list.
minnumber1 when required, else 0The fewest a tile picks, 1 to 32. Only on a list that is required.
maxnumber32The most a tile picks, 1 to 32, and not below min.

min and max only go with multiple.

The template reads a list as a list, in the order the tile picked them. Each device in it reads like a device setting, with its own cap and pending, and each flow, mood or dashboard like its single setting. Picked ones that are gone or no longer fit are left out.

{% for alarm in settings.alarms %}  <p>{{ alarm.zone }}: {{ alarm.cap.alarm_smoke.text }}</p>{% else %}  <p>No smoke detectors chosen.</p>{% endfor %}

A list is never null: with nothing picked it is empty. Liquid counts an empty list as true, so test {% if settings.alarms.size > 0 %}, not {% if settings.alarms %}. settings.alarms.first and settings.alarms[0] read one of them.

For a device list, each tile picks its devices in an order, or takes every device that fits. That way a smoke detector added to Homey later shows up by itself. Those are sorted by zone, then by name, and at most max of them are shown.

A tile stores a list of ids, or { "every": true } for every device that fits. A setting that was one device and became a list keeps the device a tile picked.

A capability’s or a tap’s of has to name a single device setting, not a list. Read a list’s readings in the loop instead: alarm.cap.measure_battery.text.

{  "type": "device",  "name": "alarms",  "label": "Smoke detectors",  "multiple": true,  "max": 12,  "requires": { "all": ["alarm_smoke"] }}

Simple values

Each of these has a default, so the widget works before anything is chosen, except where noted.

number

A number, as a slider, a stepper or a plain field. In the editor it is A number.

OptionTypeDefaultRules
defaultnumbernoneRequired. Has to be within min and max.
minnumbernoneThe lowest value. Not above max.
maxnumbernoneThe highest value.
stepnumbernoneThe step. Above zero.
unittextnoneAt most 12 characters, shown after the number. A CSS unit goes onto the style too.
controltextfieldslider, stepper or field. A slider needs a min and a max.

The template reads the number; the style reads it with its unit when it is one of px, em, rem, %, ch, ex, vw, vh, vmin, vmax, cqw, cqh, cqi, cqb, cqmin, cqmax, deg, turn, s, ms or fr.

{  "type": "number",  "name": "gap",  "label": "Gap",  "default": 8,  "min": 0,  "max": 24,  "step": 2,  "unit": "px",  "control": "slider"}

percentage

A number from 0 to 100, as a slider. The default is required, from 0 to 100. The style reads it as 62%.

{ "type": "percentage", "name": "glow", "label": "Glow", "default": 60 }

boolean

Yes or no, as a switch. The default is required. The template reads true or false, and the style reads 1 or 0.

{ "type": "boolean", "name": "showWarmth", "label": "Colour temperature slider", "default": true }

text

OptionTypeDefaultRules
defaulttextnoneRequired. At most 400 characters, and no longer than maxLength.
maxLengthnumber80A whole number from 1 to 400.
multilineyes/nofalseSeveral lines instead of one.
placeholdertextnoneAt most 80 characters.

A required text that is left empty falls back to its default. An optional one that is left empty is null, so {% if settings.title %} and default: agree.

{ "type": "text", "name": "title", "label": "Title", "default": "Garden", "maxLength": 30 }

choice

One of a list of options. In the editor it is A choice.

OptionTypeDefaultRules
optionslistnoneRequired. 2 to 12 options, each with a value (1 to 40 letters, digits, underscores or dashes) and a label (1 to 40 characters). Every value is different.
defaulttextnoneRequired. One of the option values.
controltextautodropdown, segmented or auto, which is segmented up to four options.

The template reads the chosen value, which is always one of the options.

{  "type": "choice",  "name": "layout",  "label": "Layout",  "options": [    { "value": "compact", "label": "Compact" },    { "value": "roomy", "label": "Roomy" }  ],  "default": "roomy"}

color

A colour: a theme colour by name (accent, lit, cool, good, warn, danger, text, surface, canvas, chart-1 to chart-6) or a fixed #rrggbb. The default is optional. Without one, nothing is chosen until the tile picks, and the template reads null. The style reads a theme colour as its variable (var(--hd-lit)) and a fixed colour as #rrggbb.

{ "type": "color", "name": "accent", "label": "Accent colour", "default": "lit", "group": "look" }

icon

An icon from the icon library, written like device.light. The default is optional, and without one the template reads null until the tile picks. The template passes it to hd-icon, and the style reads it as a quoted string.

{ "type": "icon", "name": "symbol", "label": "Icon", "default": "device.light" }

size

small, medium or large, with a required default. The template reads the word. The style reads the word, and -scale adds 0.85, 1 or 1.25.

{ "type": "size", "name": "titleSize", "label": "Title size", "default": "medium", "group": "look" }

spot

One of the tile’s nine spots, chosen on a small grid: top-left, top-center, top-right, middle-left, middle-center, middle-right, bottom-left, bottom-center or bottom-right. The default is required. Both the template and the style read the name.

{  "type": "spot",  "name": "titleSpot",  "label": "Title position",  "default": "top-left",  "group": "look"}

Kinds for bigger jobs

These are the settings the built-in widgets use for their lists and special controls. Each keeps the editor that the built-in widget has for it, except tiles, which has an editor of its own.

readings

A list of readings of any devices, with the range to show them over, for charts. Template: settings.<name>.items, a list whose entries have cap (the reading, which renders as its live reference), label, device, host and ref, and settings.<name>.range.

OptionTypeDefaultRules
maxnumber6A whole number from 1 to 8.
kindslist["number"]number and boolean. At least one.
rangetextnoneThe range the tile’s owner picks from, starting here: 6h, 12h, 24h, 7d, 30d or 1y. Left out, they pick none.
energyyes/nofalseOffers the Homey’s energy and prices too: electricity, solar, gas and water used, the electricity price, and gas and water per m³.
<hd-chart range="{{ settings.lines.range }}">  {% for r in settings.lines.items %}    <hd-series bind="{{ r.cap }}" label="{{ r.label }}"></hd-series>  {% endfor %}</hd-chart>

With energy, an entry can be one of the Homey’s energy and price values instead of a device’s reading, stored as { "kind": "host", "key": "prices:now" }. Its device is null, host is its key, and cap renders as @host/<key>. <hd-history> draws them over its range: amounts as bars (by the hour up to a day, by the day for 7 and 30 days, by the month for a year), a price as steps on its own scale (by the hour up to 7 days, a day’s average beyond, or the amount’s bars beside an amount). Energy comes from the Homey’s own reports; prices from those Tiledash keeps, as far back as the plan keeps history. <hd-chart> draws device readings only.

<hd-history readings="{% for r in settings.lines.items %}{{ r.cap }}{% unless forloop.last %},{% endunless %}{% endfor %}" range="{{ settings.lines.range }}"></hd-history>

values

A list of values like the Custom tile’s: each is one reading, or several added and subtracted, with a label, an icon, a colour and a place. Template: settings.<name> is the list of worked-out values, each with label, icon, color, value, text, unit, available, exporting, bind, chart, bars, show, fraction, slot, spot, size, position, and tap, hold and double (see Entry gestures).

OptionTypeDefaultRules
maxnumber6A whole number from 1 to 12.
kindslistanyReadings offered: number, boolean and text. At least one.
spotslistnonePlaces a value points at instead of the tile’s nine spots, 1 to 16, each { "value": "heat-pump", "label": "Heat pump" } with its own value.
spotsFromstringnoneThe name of a house setting: its house’s places are offered instead of spots (which stay while no house is picked), the owner’s own places too, such as own-pool. Needs spots.

With spots, the tile’s owner picks for each value which place it points at (the first by default), and nothing about its look or tap: spot is that place’s value, null without spots. With spotsFrom a value keeps its place even when the house doesn’t have it; <hd-energy-house> then points it at the house itself. They are for a drawing with places of its own, like <hd-energy-house> with a <hd-house-value> for each value:

<hd-energy-house grid="{{ settings.energy.grid }}" solar="{{ settings.energy.solar }}">  {% for v in settings.readings %}    <hd-house-value spot="{{ v.spot }}" label="{{ v.label }}" value="{{ v.text }}" unit="{{ v.unit }}"></hd-house-value>  {% endfor %}</hd-energy-house>

Besides device readings, a value can read a Homey variable, and the Homey’s energy and prices: what today cost, electricity, gas and water used today and yesterday, solar, the home battery and the car, the top users, this week’s, month’s and year’s amounts and costs, the price now and next, today’s and tomorrow’s lowest, average and highest, and the cheapest hours ahead. And the Homey’s people: how many are home (a number), whether anyone is, and each person’s home and asleep (yes or no, Home/Away and Yes/No). They are picked on the Variables, Energy, Prices and People tabs of the value picker. Each of a value’s terms says where it comes from, with its sign: { "kind": "reading", "deviceId": …, "capabilityId": "measure_power", "sign": 1 }, { "kind": "variable", "variableId": …, "sign": 1 } or { "kind": "host", "key": "energy:cost", "sign": 1 } (prices:now, energy:gas.today, and for people people:home, people:anyone, people:<user id>.home and people:<user id>.asleep). A number variable adds up like a reading; a yes/no or text variable shows as words. A value without a unit of its own (a number variable) can be given one: unit, up to 12 characters. Money and prices read with the currency in front (€3.12, €0.36 with unit /kWh), times and cheapest windows as words (Tonight 01:00–04:00). A price’s color is price-cheap, price-normal, price-high or price-negative when the value has none of its own. A chart holds device readings or energy and prices, not both; the first value marked chart decides. Device readings are lines: chart is true and bind is the line’s reference, for <hd-series> in <hd-chart>. An energy or price value on its own charts as bars instead: bars is its row, null otherwise. A row with kind prices is the price bars over today and tomorrow, for <hd-price-bars> (values, levels, start, step, slots, pending, now, currency, timeZone; from and span cut it to today beside today’s energy; highlightFrom, highlightTo and highlightLabel band a cheapest window). The prices are one row, on the first price value. A row with kind bars is an amount by the hour (today against yesterday) or a week, month or year by day or month, for <hd-bars> (values, previous, labels, names, current, color, unit). last marks the bottom row, the one that shows its labels. One time per chart: a value of another time than the first one charted gets no row. Costs, changes and shares, flows, the car, the top users, the gas and water prices, sums and variables don’t chart (variables keep no history).

buttons

A list of buttons for devices, flows, moods and dashboards. Template: settings.<name> is the list, each with kind, id, name, icon, color and on, and more for the animated glyphs, and hold and double (see Entry gestures): a button’s tap is its action, and holding a device’s button opens the device until its owner chooses otherwise.

OptionTypeDefaultRules
maxnumber12A whole number from 1 to 24.
kindslistall fourdevice, flow, mood and dashboard. At least one.

tap

What tapping, holding and tapping a part of the widget twice do, chosen by the tile’s owner. Template: mark a part with data-hd-tap="<name>" (or, only held, data-hd-longpress="<name>"); taps.<name> is there while one of its gestures does something: the tap’s action, with .hold and .double.

OptionTypeDefaultRules
gesturetexttaptap (tapped, held and tapped twice) or longpress (only held).
defaultobject{ "type": "none" }What a tap does until the owner chooses (a longpress part’s hold): none, widget, toggle, history (with an optional range), device or camera. One allow offers.
holdobject{ "type": "none" }What holding it does until the owner chooses, from the same.
doubleobject{ "type": "none" }What tapping it twice does until the owner chooses, from the same.
allowlistallThe actions offered: none, widget, toggle, history, device, camera, dashboard, flow, mood, variable, request. Each once. Nothing is always offered.
widgetActiontextnoneWhat the widget does itself when the part is touched, as the picker names it (Lock or unlock): its data-hd-on-click. Needed for widget. At most 60 characters.
oftextthe tile’s own deviceThe name of a device setting whose device the part belongs to.
capabilitytextnoneThe reading the part shows, which toggle and history use.

A tile stores what its owner chose as { "tap": …, "hold": …, "double": … }, each left out while it is the default; a single action, as stored before, is the tap.

See Taps and handlers.

places

Places for a map: devices that know where they are, and places read from any values, such as a variable a flow keeps. A place’s latitude and longitude are its device’s own, two numbers picked by hand (each a device’s reading or a number variable), or one text variable holding both (52.37, 4.89). A place without a device has a name for its pin, and its pin can open a dashboard. Template: settings.<name> is the list, each with id (its device’s, or place-<n>), name, lat, lon, icon, since, stale, dashboard (what its pin opens, for a place without a device) and tap (what a tap on its pin announces: its device, or its own id when it opens a dashboard; empty when it can’t be tapped).

OptionTypeDefaultRules
maxnumber10A whole number from 1 to 20.

tiles

Tiles of widgets that the tile’s owner places inside your widget, on a grid of its own cells, optionally on pages. Template: settings.<name> is { columns, rows, tiles }, or { columns, rows, groups } when the setting has pages. Each tile has id, name, icon, kind, x, y, w, h and shows; each page has id, label, icon, shows and its tiles. Draw a tile with <hd-widget tile="{{ t.id }}">; see Widgets in widgets.

OptionTypeDefaultRules
layouttextnoneRequired. grid when the template keeps the tiles where they were put, list when it reads them in order.
groupsyes/nofalseWhether the owner can make pages, each with a name, an icon and a When to show. At most 12 pages.
kindslistall fourWhat can be added: device, flow, mood and free (a widget that needs no device, flow or mood). Each once, at least one.
maxnumber128The most tiles in this setting, a whole number from 1 to 128.

A widget can have several Tiles settings, each with tiles of its own; together they hold at most 128 tiles.

energy

The parts of the Homey’s energy flow, found on each Homey; a part picked by hand can also read a number variable, such as a power a flow works out. It takes only the common fields. Template: settings.<name> has grid, solar, battery, batteryCharge, car, carCharge (watts, or null for a part that isn’t there), todaySolar, todayUsed and todayExported (kWh), and parts, the number of parts shown.

busy

The things that are busy now: appliances, chargers and plugs. Template: settings.<name> is the list of those busy, each with id, name, glyph, state (running or done), since, text, power, and tap, hold and double (see Entry gestures).

OptionTypeDefaultRules
maxnumber8A whole number from 1 to 16.
keepDonetextnoneThe name of a choice setting of this widget that says how many minutes a finished thing stays on the list. Left out, a quarter of an hour.

Entry gestures

Each value, button and busy thing can have its own tap, hold and double tap, chosen by the tile’s owner under Tap in its settings. In the template each is null while it does nothing, or what it does:

typeWithWrite it as
devicedeviceId, openopenDevice(…, …)
dashboarddashboardId, openopenDashboard(…, …)
flowflowIdstartFlow(…)
moodmoodIdsetMood(…)
variablevariableId, action, value, confirm, call{{ v.call }}, the handler ready to use: toggleVariable(…), setVariable(…, value) or addToVariable(…, amount), asking first when confirm
requestkey, name, call{{ v.call }}, the handler ready to use: sendRequest(…), asking first when the owner chose so. The address is never in the template.
historydeviceId, capabilityIdopenHistory(capabilityId, '24h', deviceId)

Put them on the entry’s element as data-hd-on-click, data-hd-on-longpress and data-hd-on-dblclick, with the ids through quote. An entry with a double tap makes a tap on it wait for a second one, as a part’s does.

layout

Folds a values setting into sections and tabs, and places pictures. Its group defaults to layout. Template: settings.<name> has loose (the values in no section or tab), sections, tabs, tabsAt, tabsLook and pictures.

OptionTypeDefaultRules
oftextnoneRequired. The name of the values setting it arranges.
picturesyes/notrueWhether pictures and uploads can be placed. Off, icons only.

Draw what it gives with layout blocks.

capabilities

Which of the tile’s own device’s readings to show, ticked one by one. Template: settings.<name> is a list of reading ids, in the device’s order.

OptionTypeDefaultRules
excludelist[]Readings left out of the default selection. At most 12.
defaultCountnumber4How many of the device’s first readings show until some are ticked. 0 to 20.

place

Where a weather widget looks: this Homey’s own place, or a place found by name or pinned on a map. Template: { "type": "homey" } or { "type": "place", "name": …, "lat": …, "lon": … }. The default is { "type": "homey" }. A widget with a place setting gets the forecast of that place as weather; with more than one, of the first.

applianceSource

What says that an appliance is running: On or off, a yes or no value (a reading of any device, or a Homey variable), or Power use, a number value (a plug’s power, or a number variable) above a number of watts. It takes only the common fields. Template: settings.<name> has state (running, done or off), since, power, from and problem.

summaries

Summaries, as a dashboard’s title and its headings have them: live chips like 3 lights on, a total, a temperature, an alert, or a Homey value (a device’s reading, a Logic variable, energy and prices), each with what tapping, holding and tapping it twice does. The tile’s owner sets them up in the summaries dialog the title always had. Tiledash works them out over what the tile covers (the whole dashboard, or the tiles of a Stack page) and draws them where the template puts <hd-summaries setting="<name>">: the template doesn’t draw them itself. Template: settings.<name> is the list of summaries as chosen, so settings.<name>.size says whether there are any. Tiledash’s own Header widget has one.

OptionTypeDefaultRules
maxnumber6A whole number from 1 to 6.

applianceIcon

How an appliance is drawn: a washer, a dryer, a dishwasher or any icon. The default is washer, dryer or dishwasher, and washer if you leave it out. Template: settings.<name> has kind (washer, dryer, dishwasher or icon) and icon, which is null for a machine.

A list of settings

A small widget with four settings, one of each of the most common kinds:

[  { "type": "text", "name": "title", "label": "Title", "default": "Garden", "maxLength": 30 },  {    "type": "color",    "name": "accent",    "label": "Accent colour",    "default": "lit",    "group": "look"  },  {    "type": "number",    "name": "gap",    "label": "Gap",    "default": 8,    "min": 0,    "max": 24,    "unit": "px",    "group": "look"  },  {    "type": "device",    "name": "pump",    "label": "Pump",    "requires": { "all": ["onoff"] },    "classes": ["socket"]  }]