Skip to content

Action tile

A button that sends one command, such as a scene; it shows no state.

In a dashboard file: "type": "action", with the options below. Every tile also has the fields under Every tile.

A tile, as it goes in a screen’s tiles:

{
"type": "action",
"label": "Charge now",
"layout": { "x": 1, "y": 1, "width": 1, "height": 1 },
"dataSource": { "connection": "demo", "params": { "device": "ev-charger" } },
"options": { "command": "mode", "argument": "now", "icon": "car-bolt" }
}

It reads the demo home: in a dashboard with the connection "demo": { "driver": "demo", "config": {} }, it works as it is. To read a device of your own, its data source names one of your connections, with the params of that connection’s driver (Connections and data sources).

Field Type Default What
source data source name primary Device. One of the tile’s data sources, by name: a device that takes commands.
command command name required Command. What a tap sends to the device.
argument text, number or true or false Argument. Sent with the command, if it takes one.
icon icon name toggle-large-on Icon. By its name in the icon set.

The styles the app offers for it, after “The dashboard’s style”. Style files says what they set.

  • Centred
  • Left aligned
  • Compact
  • Icon at the left