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:
| Field | Type | Default | Rules |
|---|---|---|---|
type | text | none | The kind, from the lists below. Required. |
name | text | none | The 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}$. |
label | text | none | What the tile’s dialog calls it. Required. 1 to 60 characters, without spaces at the ends. |
help | text | none | A line under it. At most 200 characters. |
required | yes/no | true | Whether a tile has to choose something. |
group | text | content | The 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. |
perSize | yes/no | false | A simple setting that can differ per screen size: Tablet and Phone may choose their own; a size left alone follows Desktop. |
shownWhen | object | none | Shows 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
shownWhenhas 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.
| Option | Type | Default | Rules |
|---|---|---|---|
requires | object | none | Readings 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. |
classes | list | any | Classes that fit. 1 to 8 names of lower-case letters, digits and underscores. The class set in Homey counts too. |
zone | text | any | The 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.
| Option | Type | Default | Rules |
|---|---|---|---|
of | text | the tile’s own device | The name of a device setting of this widget whose reading it is. |
kinds | list | any | Only readings of these kinds are offered: number, boolean, enum or string. At least one. |
setable | yes/no | any | Only 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.
| Option | Type | Default | Rules |
|---|---|---|---|
kinds | list | all three | Where the value may come from: reading, variable or host (energy and prices). At least one. |
types | list | all three | What 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.
| Option | Type | Default | Rules |
|---|---|---|---|
shape | choice | required | value (one value, a gauge), list (several values now, a pie or bar list) or series (values over time or categories). |
from | list | all four | Where 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 withname,colour(ready for CSS, such asvar(--hd-accent)),failed(its link can’t be loaded now; its events are as they were) andloadedAt(when, as an ISO time, ornull).events: from now on for 30 days, in order, those going on now first. Each hastitle,startandend(ISO times),allDay,location(ornull) andcalendar(itsnameandcolour), 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,nullall day) andnow.
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:
idandname: the plan’s.status:ready, or why there is nothing to draw:loading,paused(past the account’s floor plans),gone(deleted) orlevelGone.levelandroom: eachidandname;roomisnullfor the whole level.rooms: the rooms shown (only the focused one when there is one), each withid,name,zone(itsidandname, ornull) and its zone’stemperatureandhumiditynow (eachvalue,textandunit, ornull), the zones inside it counted, andscenes: the moods and flows on its card, in order, eachtype(moodorflow),idandname.
<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) orgone(deleted).name: the house’s own.navigation(swipe,dotsortabs) androtate(seconds between turns,0for never).sides: the sides shown that have a picture, each with what<hd-house-side>takes:id,name,picture(forupload), orpreset(one of Tiledash’s houses),width,height,boxandspots(as text), anddark.spots: the places placed on any side, eachvalueandlabel: what avaluessetting withspotsFromoffers.energy: the house’s energy parts now, as anenergysetting reads them:grid,solar,battery,car(watts),batteryCharge,carCharge(percent),todaySolar,todayUsed,todayExported(kWh),nullwhere 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 itsidandspot:label,text,unitand 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:
refandname: the model’s;attr, its reference ready for<hd-model model="…">.status:ready,loading, orgonewhen it was deleted, uninstalled or blocked since, or the tile came from another account.nameis then the name it had.pieces: each piece with itsref,name,statusand optionalappearanceOverrides.appearanceAttr: this copy’s appearance overrides as JSON, ready forappearance="{{ 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.
| Option | Type | Default | Rules |
|---|---|---|---|
of | string | none | The 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:
| Field | What it holds |
|---|---|
id, name | The zone. |
icon | Its icon, for <hd-icon>: room.living, room.bedroom, … for Homey’s room icons, homey.zone for the others. |
parent | The zone it is in, { id, name }, or null for the home itself. |
nested | Whether the rooms inside it count. |
rooms | The zones directly inside it, each { id, name, icon }. |
devices | Its 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. |
temperature | The average of its temperature readings, one decimal, as { value, text, unit } (20.8, °C), or null without one. humidity likewise. |
motion | Whether anything in it sees motion now, or null without a motion sensor. |
power | The 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. |
playing | The 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.
| Option | Type | Default | Rules |
|---|---|---|---|
multiple | yes/no | false | Makes the setting a list. |
min | number | 1 when required, else 0 | The fewest a tile picks, 1 to 32. Only on a list that is required. |
max | number | 32 | The 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.
| Option | Type | Default | Rules |
|---|---|---|---|
default | number | none | Required. Has to be within min and max. |
min | number | none | The lowest value. Not above max. |
max | number | none | The highest value. |
step | number | none | The step. Above zero. |
unit | text | none | At most 12 characters, shown after the number. A CSS unit goes onto the style too. |
control | text | field | slider, 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
| Option | Type | Default | Rules |
|---|---|---|---|
default | text | none | Required. At most 400 characters, and no longer than maxLength. |
maxLength | number | 80 | A whole number from 1 to 400. |
multiline | yes/no | false | Several lines instead of one. |
placeholder | text | none | At 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.
| Option | Type | Default | Rules |
|---|---|---|---|
options | list | none | Required. 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. |
default | text | none | Required. One of the option values. |
control | text | auto | dropdown, 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.
| Option | Type | Default | Rules |
|---|---|---|---|
max | number | 6 | A whole number from 1 to 8. |
kinds | list | ["number"] | number and boolean. At least one. |
range | text | none | The range the tile’s owner picks from, starting here: 6h, 12h, 24h, 7d, 30d or 1y. Left out, they pick none. |
energy | yes/no | false | Offers 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).
| Option | Type | Default | Rules |
|---|---|---|---|
max | number | 6 | A whole number from 1 to 12. |
kinds | list | any | Readings offered: number, boolean and text. At least one. |
spots | list | none | Places 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. |
spotsFrom | string | none | The 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.
| Option | Type | Default | Rules |
|---|---|---|---|
max | number | 12 | A whole number from 1 to 24. |
kinds | list | all four | device, 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.
| Option | Type | Default | Rules |
|---|---|---|---|
gesture | text | tap | tap (tapped, held and tapped twice) or longpress (only held). |
default | object | { "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. |
hold | object | { "type": "none" } | What holding it does until the owner chooses, from the same. |
double | object | { "type": "none" } | What tapping it twice does until the owner chooses, from the same. |
allow | list | all | The actions offered: none, widget, toggle, history, device, camera, dashboard, flow, mood, variable, request. Each once. Nothing is always offered. |
widgetAction | text | none | What 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. |
of | text | the tile’s own device | The name of a device setting whose device the part belongs to. |
capability | text | none | The 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).
| Option | Type | Default | Rules |
|---|---|---|---|
max | number | 10 | A 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.
| Option | Type | Default | Rules |
|---|---|---|---|
layout | text | none | Required. grid when the template keeps the tiles where they were put, list when it reads them in order. |
groups | yes/no | false | Whether the owner can make pages, each with a name, an icon and a When to show. At most 12 pages. |
kinds | list | all four | What can be added: device, flow, mood and free (a widget that needs no device, flow or mood). Each once, at least one. |
max | number | 128 | The 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).
| Option | Type | Default | Rules |
|---|---|---|---|
max | number | 8 | A whole number from 1 to 16. |
keepDone | text | none | The 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:
type | With | Write it as |
|---|---|---|
device | deviceId, open | openDevice(…, …) |
dashboard | dashboardId, open | openDashboard(…, …) |
flow | flowId | startFlow(…) |
mood | moodId | setMood(…) |
variable | variableId, action, value, confirm, call | {{ v.call }}, the handler ready to use: toggleVariable(…), setVariable(…, value) or addToVariable(…, amount), asking first when confirm |
request | key, name, call | {{ v.call }}, the handler ready to use: sendRequest(…), asking first when the owner chose so. The address is never in the template. |
history | deviceId, capabilityId | openHistory(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.
| Option | Type | Default | Rules |
|---|---|---|---|
of | text | none | Required. The name of the values setting it arranges. |
pictures | yes/no | true | Whether 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.
| Option | Type | Default | Rules |
|---|---|---|---|
exclude | list | [] | Readings left out of the default selection. At most 12. |
defaultCount | number | 4 | How 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.
| Option | Type | Default | Rules |
|---|---|---|---|
max | number | 6 | A 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"] }]