1a6308aba7
A test and code-analysis round of 0.2.72 to 0.2.76 (suites at every tag, sanitizers, ESP32 and GitHub builds, host harnesses on both boards, the editor in a browser, best practice checked against ESPHome, LVGL, Home Assistant and Vue) found these, fixed here with Max's choices for the product questions: - Firmware 0.2.65: the second hand of a single analog clock moves again; on a page that is one full on/off tile the waking push also switches it; on the Guition a flick is never a tap and a finger that slides off a tile doesn't tap it; Previous/Next react to a firm press; the same Go to page tile may sit on several pages; a layout the screen has no memory for is refused instead of crashing; 64-bit redraw mask for 48 tiles; Montserrat 14 no longer built. - App: Save refuses a layout too long for one message or too big for eight pages; an offline screen keeps its firmware version from the device registry; HA refusals reach the editor; 128 KB requests; changelog out of the live stream; cached hashed assets; tini as init and a clean stop; changelog parsing without asterisks or crashes. - Editor: clicking the open screen keeps unsaved edits, edits during a save stay unsaved, a Page row and phone dragging to other pages, repeated page tiles, limits from the server, HA's error messages, a type-checked build. - tools/check.sh + GitHub Actions + a CYD flash budget; docs match 48 tiles and the new editor. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
39 lines
1.8 KiB
YAML
39 lines
1.8 KiB
YAML
# ESP Screen Manager for Home Assistant Container (Docker), without the Supervisor.
|
|
# Guide: https://github.com/MaxGramser/homeassistant_espscreen/blob/main/docs/DOCKER.md
|
|
#
|
|
# Next to this file, create `ha_token` with a long-lived access token, then:
|
|
# docker compose up -d --build
|
|
|
|
services:
|
|
esp-screens:
|
|
container_name: esp-screens
|
|
build:
|
|
# The same image as the Home Assistant app, built from the main branch.
|
|
context: https://github.com/MaxGramser/homeassistant_espscreen.git#main:screen_manager
|
|
restart: unless-stopped
|
|
# A small init as process 1, like the Home Assistant app gets: it passes on docker stop and reaps finished builds.
|
|
init: true
|
|
# Home Assistant reaches the page on 127.0.0.1:8099, and .local names resolve.
|
|
network_mode: host
|
|
environment:
|
|
SCREEN_DEV: "1" # outside the Supervisor: token from HA_TOKEN_FILE, page on 127.0.0.1 only
|
|
HA_API: http://127.0.0.1:8123/api # Home Assistant's address, ending in /api
|
|
HA_TOKEN_FILE: /run/secrets/ha_token
|
|
ESPHOME_CONFIG: /config # not /esphome: that holds the ESPHome CLI itself
|
|
SCREEN_DATA: /data
|
|
secrets:
|
|
- ha_token
|
|
volumes:
|
|
- ./esphome:/config # device profiles and secrets.yaml; or your ESPHome Device Builder folder
|
|
- ./data:/data # layouts, update settings and build caches
|
|
healthcheck:
|
|
# The base image checks the ESPHome dashboard, which doesn't run here.
|
|
test: ["CMD", "curl", "--fail", "--silent", "--output", "/dev/null", "http://127.0.0.1:8099/"]
|
|
# USB flashing (Linux only): connect the screen first, then uncomment and set its port.
|
|
# devices:
|
|
# - /dev/ttyUSB0:/dev/ttyUSB0
|
|
|
|
secrets:
|
|
ha_token:
|
|
file: ./ha_token
|