Switches a yes/no capability to the other value: on becomes off, off becomes on. A yes/no capability that can be changed, of the tile’s device or of the device given.
Takes
What it is
capabilityrequired
A capability id of that device, quoted: 'onoff', 'evcharger_charging'.
deviceId
A device: a setting’s settings.<name>.id. Left out, the tile’s own device.
Sets a capability: true or false, a number within its min and max (snapped to its step), or one of an enum’s ids. A capability that can be changed, of the tile’s device or of the device given.
Takes
What it is
capabilityrequired
A capability id of that device, quoted: 'onoff', 'evcharger_charging'.
valuerequired
What to set it to.
deviceId
A device: a setting’s settings.<name>.id. Left out, the tile’s own device.
Presses a Homey tile (phase 52): the Tiledash app on Homey runs the flows that start with _[tile] is pressed_, with how it was pressed as a tag. Says so in a toast when the app isn’t in touch. A Homey tile one of this tile’s taps tells: taps.<setting>.homeyTileId when its user chose Tell Homey.
Takes
What it is
homeyTileIdrequired
The Homey tile’s id, from taps.
gesture
How it was pressed: 'tap' (the default), 'hold' or 'double'.
Sets a Homey Logic variable to a value of its type and says so in a toast. Needs the permission to change variables; without it a toast says to log in again. A variable of this Homey, by its id: a value setting’s source (settings.<name>.variableId) or one you name.
Takes
What it is
variableIdrequired
The variable’s id.
valuerequired
Yes/no, a number or text, as the variable holds.
setVariable(settings.mode.variableId, 'Night')confirm('Guests are leaving?') && setVariable(settings.guests.variableId, false)
Sends a web request set in one of this tile’s taps, from the browser, without reading the reply, and says so in a toast. A widget never sees the address: only requests the tile’s user set on this dashboard are sent. The key of a request a tap of this tile sends: taps.<setting>.key (or .hold.key, .double.key) when its user chose Send a web request.
Opens a capability’s history in a dialog; the range is picked there and starts at 24 hours. A capability the device has (it doesn’t have to be changeable).
Takes
What it is
capabilityrequired
A capability id of that device, quoted: 'onoff', 'evcharger_charging'.
range
Ignored for now: the dialog starts at 24 hours.
deviceId
A device: a setting’s settings.<name>.id. Left out, the tile’s own device.
Opens the device’s controls and readings over this page as a popup or a side panel, or on the Devices page. A device of this Homey. On a wall panel or a share link it always opens over the page, with the controls and readings only.
Takes
What it is
deviceId
A device: a setting’s settings.<name>.id. Left out, the tile’s own device.
mode
'popup' (the default), 'side' (a side panel) or 'page' (the Devices page).
Keeps a value in state.<key> for this tile on this screen and draws the widget again; it is remembered there after a reload. With forMs it goes back to null after that long, and isn’t remembered. Nothing outside the widget. At most 32 keys; forMs from 100 to 60000.
Takes
What it is
keyrequired
A name: letters, digits and _, starting with a letter.
valuerequired
Text, a number, true, false or null.
forMs
Optional: milliseconds until it goes back to null.
Opens one of the widget’s own popups over the page: the template’s <hd-popup id="…">…</hd-popup> block with that id ('main' without one). The tile never shows its popup blocks; a popup is drawn from the same template, so it has the same device, settings and state, and its controls work as the tile’s. A side panel is a sheet from the bottom on a phone. Nothing outside the widget. Its controls in the popup go through the same checks as on the tile.
Takes
What it is
id
Optional: the id of a <hd-popup> block in the template, letters, digits, - and _ (at most 40).
look
Optional: 'popup' (the default, a card in the middle) or 'side' (a panel from the right).
Runs what the tile’s user chose for a tap setting (or its default), as tapping a part marked with it does: for a handler of your own that taps through to it, like the map’s plain tap. A tap setting of this widget; its choice goes through the same checks as any action.