Demo home
A simulated home: lights, climate, solar and a battery, meters, a car charger, the weather and prices, without any device.
In a dashboard file: a connection with "driver": "demo", its settings in config, and what a data source of it reads in that data source’s params (Connections and data sources).
Example
Section titled “Example”A dashboard with a connection of this driver, named demo, and a tile that reads it. Any number of tiles can read the same connection. In the editor, the values of params are picked from what the connection lists; ids in the example are made up.
{ "schemaVersion": 4, "connections": { "demo": { "driver": "demo", "config": {} } }, "screens": [ { "name": "Home", "tiles": [ { "type": "value", "label": "Solar", "layout": { "x": 1, "y": 1, "width": 2, "height": 2 }, "dataSource": { "connection": "demo", "params": { "device": "energy", "value": "pv" } }, "options": { "unit": "W" } } ] } ]}Settings (config)
Section titled “Settings (config)”| Field | Type | Default | What |
|---|---|---|---|
seed |
text | Seed. Another seed gives another home’s days; “casa” when left out. | |
clock |
text | Clock. Live, or a time of day such as 12:30, for screenshots. | |
season |
one of live, summer, winter |
Season. Live, or a summer or a winter day, for screenshots. | |
refreshInterval |
number, above 0 | Seconds between refreshes. |
What a data source reads (params)
Section titled “What a data source reads (params)”| Field | Type | Default | What |
|---|---|---|---|
device |
text | required | Device. One of the demo home’s devices, by room. |
value |
text | Value. One of the device’s values; all of them, as a record, when left out. | |
history |
one of 1h, 24h, 7d, today, yesterday |
History. A number’s past, for a graph or a sparkline: the last hour, 24 hours or 7 days, today since midnight, or yesterday; the value now when left out. | |
refreshInterval |
number, above 0 | Refresh every. Seconds; the connection’s setting when left out. |