hd-widget
Draws another widget inside this one, filling its box, as a full tile with its own frame, style, taps and history. Name what it shows with device, flow or mood, with the built-in type or, left out, the best fit. Only this tile’s own device, and devices, flows and moods its settings chose, are drawn; anything else draws nothing. It is one level deep (a child draws no widgets of its own), and drawn and kept live only while on screen.
| Attribute | What it is |
|---|---|
device | A device to draw, e.g. {{ d.id }}; must be this tile’s own or one its settings chose. |
flow | A flow to draw as a button; must be one its settings chose. |
mood | A mood to draw as a button; must be one its settings chose. |
tile | The id of a child tile of this one, e.g. {{ t.id }}, instead of device, flow or mood. Comes with the tiles setting: until then nothing is drawn for it. |
type | The built-in widget to draw it with, written out, e.g. light.basic; not a value, and not this widget’s own type. Left out, the one that fits best. |
{% for d in settings.lights %} <hd-widget device="{{ d.id }}" type="light.basic"></hd-widget>{% endfor %}