Tegels Ambient en Alarm erbij; Woonkamer naar rij 5
Het raster is nu vol: tien tegels op vijf rijen. - Tegel 2 (rij 1, rechts) wordt Ambient — script.ambient_morning, met een muzieknoot als icoon. Als script krijgt hij automatisch het paarse actie-accent, dus hij is meteen te onderscheiden van de lampen eromheen. - Woonkamer (light.woonkamer_2) verhuist van tegel 2 naar tegel 9, rij 5 links, en neemt zijn sofa-icoon mee. Verder ongewijzigd: helderheids- slider op long-press, en omdat de lamp color_temp/rgb/xy meldt komt de kleurknop in de overlay vanzelf mee. - Tegel 10 (rij 5, rechts) wordt Alarm — input_boolean.alarm_engaged. Een input_boolean reageert niet op switch.toggle, vandaar de expliciete TAP_SERVICE input_boolean.toggle. Tegels 9 en 10 abonneren alleen op wat ze echt lezen, zoals 7 en 8: tegel 9 op state + brightness + supported_color_modes, tegel 10 alleen op state. Waar een sensor ontbreekt gaat er NAN of "" naar de overlay. Alle tien plekken per tegel zijn nagelopen met een audit over het hele bestand: substituties, MDI-glyph, sensor, widget, ack-script, t*_on, set_value_auto, apply_tile en de twee HA-events. Geen verwijzingen naar sensors die niet bestaan. Firmware: 1.329 MB flash, 72172 bytes statisch RAM. Na flashen 144 KB vrije heap, grootste blok 90 KB. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+11
-9
@@ -20,8 +20,8 @@ The wallpaper, the room name and the clock sit on the page itself and stay put.
|
||||
All tiles live inside one transparent container (`tile_scroll`) that scrolls
|
||||
vertically, so the grid can be taller than the screen.
|
||||
|
||||
- The grid is **2 columns x 5 rows = 10 tile slots**. Rows 1-3 are visible at
|
||||
rest; dragging up reveals rows 4 and 5.
|
||||
- The grid is **2 columns x 5 rows = 10 tiles**. Rows 1-3 are visible at rest;
|
||||
dragging up reveals rows 4 and 5.
|
||||
- `GRID_ROW*_Y` are **relative to the scroll container**, not to the page.
|
||||
`SCROLL_Y` / `SCROLL_H` define where the container sits and how tall the
|
||||
viewport is. Both are set per orientation preset.
|
||||
@@ -97,8 +97,9 @@ gives it the right color without touching any color key.
|
||||
|
||||
## Per-tile substitutions
|
||||
|
||||
Each configured tile has the same set of keys, just with a different number
|
||||
(TILE1 … TILE8). Slots 9 and 10 are free — see [Adding a tile](#adding-a-tile).
|
||||
Each tile has the same set of keys, just with a different number
|
||||
(TILE1 … TILE10). All ten slots are in use — see [Adding a tile](#adding-a-tile)
|
||||
if you want to extend the grid further.
|
||||
|
||||
### Basic settings
|
||||
|
||||
@@ -222,8 +223,8 @@ Every tap publishes a short-lived state to `sensor.smartdisplay_action`:
|
||||
|
||||
| Event | Trigger |
|
||||
|-------|---------|
|
||||
| `tile1_press` … `tile8_press` | Short tap on tile 1–8 |
|
||||
| `tile1_long_press` … `tile8_long_press` | Long press on tile 1–8 |
|
||||
| `tile1_press` … `tile10_press` | Short tap on tile 1–10 |
|
||||
| `tile1_long_press` … `tile10_long_press` | Long press on tile 1–10 |
|
||||
|
||||
The state resets to `""` after 500ms. In HA automations, trigger on `state` → `to: "tile1_press"` etc.
|
||||
|
||||
@@ -524,9 +525,10 @@ TILE1_LONGPRESS_ACTION_SERVICE: "light.toggle" # must set toggle explicitly, de
|
||||
|
||||
## Adding a tile
|
||||
|
||||
Slots 9 and 10 are free: `GRID_ROW5_Y` is already defined in every orientation
|
||||
preset. A tile is not a single block — it is six places in `home-like.yaml`.
|
||||
Copy tile 7 (a plain light) or tile 8 (a service call) and change the number:
|
||||
All ten slots are filled. To grow the grid, add a `GRID_ROW6_Y` to every
|
||||
orientation preset first. A tile is not a single block — it is six places in
|
||||
`home-like.yaml`. Copy tile 9 (a light with a slider) or tile 10 (a service
|
||||
call) and change the number:
|
||||
|
||||
1. **Substitutions** — a `TILE9_*` block. Copy an existing one wholesale.
|
||||
2. **Font glyph** — add `MDI_GLYPH_9` and list it under `materialdesign_icons`.
|
||||
|
||||
Reference in New Issue
Block a user