|
1 | 1 | # OpenDisplay Studio Integration |
2 | 2 |
|
3 | | -Home Assistant custom integration proving that renderable OpenDisplay Studio |
4 | | -documents can be exposed as dynamic image Media Sources. |
| 3 | +Home Assistant custom integration with an ODX-derived graphical e-paper |
| 4 | +designer. Ready projects are dynamic image Media Sources rendered from current |
| 5 | +Home Assistant data. |
5 | 6 |
|
6 | 7 | [](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2FMisiu%2FOpenDisplay-Studio-App) |
7 | 8 | [](https://my.home-assistant.io/redirect/hacs_repository/?owner=Misiu&repository=OpenDisplay-Studio-Integration&category=integration) |
8 | 9 | [](https://my.home-assistant.io/redirect/config_flow_start/?domain=opendisplay_studio) |
9 | 10 |
|
10 | | -Stage 2 exposes ten dynamic Media Sources, including: |
11 | | - |
12 | | -- `media-source://opendisplay_studio/test` |
13 | | -- `media-source://opendisplay_studio/dashboard` |
14 | | -- `media-source://opendisplay_studio/trmnl_typography` |
15 | | -- `media-source://opendisplay_studio/trmnl_table` |
16 | | -- `media-source://opendisplay_studio/trmnl_liquid` |
17 | | -- `media-source://opendisplay_studio/trmnl_palette_bw` |
18 | | -- `media-source://opendisplay_studio/trmnl_palette_bwr` |
19 | | -- `media-source://opendisplay_studio/trmnl_palette_bwry` |
20 | | -- `media-source://opendisplay_studio/trmnl_small` |
21 | | -- `media-source://opendisplay_studio/trmnl_large` |
22 | | - |
23 | | -Every resolution renders fresh HTML through the separate OpenDisplay Studio |
24 | | -Renderer App and exposes the PNG through a short-lived, unguessable Home |
25 | | -Assistant URL. The integration generates all final HTML, including Liquid |
26 | | -processing and dynamic Home Assistant-local timestamps. The Renderer App only |
27 | | -accepts final HTML and dimensions. |
28 | | - |
29 | | -The catalog covers 296 x 128, 800 x 480, and 1200 x 825, plus BW, BWR, and |
30 | | -BWRY Framework modes. See [Stage 2 compatibility](STAGE2_COMPATIBILITY.md) for |
31 | | -the exact Liquid/TRMNL subset and known gaps. |
| 11 | +Open **OpenDisplay Studio** in the Home Assistant sidebar to create predefined |
| 12 | +or custom displays, edit their logical grids, compose rectangular regions, and |
| 13 | +assign Entity State, Calendar, or Text widgets. Project configuration is stored |
| 14 | +with Home Assistant's versioned `Store`; browser `localStorage` is not used. |
| 15 | + |
| 16 | +Draft projects remain private to the designer. A Ready project is exposed at a |
| 17 | +stable URI based on its immutable server-generated ID: |
| 18 | + |
| 19 | +```text |
| 20 | +media-source://opendisplay_studio/<project-id> |
| 21 | +``` |
| 22 | + |
| 23 | +On every resolution the integration deduplicates widget data requirements, |
| 24 | +reads current entity states and calendar events, renders widget Liquid |
| 25 | +templates, composes one TRMNL Framework document, and sends that final HTML to |
| 26 | +the Renderer. The Renderer App still knows only HTML, width, and height. |
| 27 | + |
| 28 | +See [the widget contract](WIDGET_CONTRACT.md) for the schema/data/template |
| 29 | +boundary and the planned multi-entity Table and optional-source Weather model. |
| 30 | +See [Stage 2 compatibility](STAGE2_COMPATIBILITY.md) for the Liquid/TRMNL |
| 31 | +compatibility baseline retained by Stage 3. |
32 | 32 |
|
33 | 33 | ## Home Assistant OS / Supervised installation |
34 | 34 |
|
@@ -84,6 +84,11 @@ ruff check . |
84 | 84 | ruff format --check . |
85 | 85 | mypy custom_components/opendisplay_studio scripts |
86 | 86 | pytest |
| 87 | + |
| 88 | +cd frontend-src |
| 89 | +npm ci |
| 90 | +npm test |
| 91 | +npm run build |
87 | 92 | ``` |
88 | 93 |
|
89 | 94 | ## License |
|
0 commit comments