# M5Stack Tab5 — Home Assistant wall screen with ESPHome and LVGL

<!-- hors-site -->
<div align="center">

<img src="web/favicon.svg" alt="" width="96" height="96">

[![ESPHome](https://img.shields.io/badge/ESPHome-≥2026.9.0-blue)](https://esphome.io)
[![Build](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/actions/workflows/esphome-tab5.yml/badge.svg)](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/actions/workflows/esphome-tab5.yml)
[![LVGL](https://img.shields.io/badge/LVGL-9.5-green)](https://lvgl.io)
[![Home Assistant](https://img.shields.io/badge/Home_Assistant-Push_Events-orange)](https://www.home-assistant.io)
[![License](https://img.shields.io/badge/License-MIT-lightgrey)](LICENSE)
[![Made with AI](https://img.shields.io/badge/Made_with-AI-purple)](docs/related_projects.md)

</div>

> **This page is also the home page of the website**, with a menu, a search and every page in English or French: **[axellum.github.io/M5-Tab5-ESPHome-LVGL](https://axellum.github.io/M5-Tab5-ESPHome-LVGL/)**.
<!-- /hors-site -->

---

## English · [Français](#version-française)

---

**A Home Assistant wall screen that runs natively on the M5Stack Tab5 (ESP32-P4).** No browser, no polling: Home Assistant pushes what changed, and the screen redraws only that, in C++ with LVGL. Local "Okay Nabu" wake word, 15-day forecast, climate, lights, plants, energy, music, cameras, TV remote, alarm clock — and 8 offline games, in seven languages. Twenty-one themes, light or dark, chosen from Home Assistant. It is my everyday screen, shared in case it is useful to someone. It also runs on a 7-inch Waveshare board, the ESP32-P4 7B: supported, its firmware published with each release. I have tested three boards — two versions of the Tab5 and the 7B — and both the Tab5 and the 7B run in my home every day (the 7B since 15 October 2026), though I have tried a single 7B.

[![Home Assistant wall screen on ESP32-P4, presentation video on YouTube (2 min 27): the 7-inch Home Assistant dashboard with a lamp's colour wheel open](docs/images/home-assistant-wall-screen-esp32-p4-video.webp)](https://youtu.be/75hMN49qWFM)

*▶ [Watch the 2-minute presentation on YouTube](https://youtu.be/75hMN49qWFM) — English texts on screen, subtitles in seven languages.*

**[▶ Video (2 min)](https://youtu.be/75hMN49qWFM)** · **[Try it in your browser](https://axellum.github.io/M5-Tab5-ESPHome-LVGL/demo/)** · **[Install from the browser](https://axellum.github.io/M5-Tab5-ESPHome-LVGL/install/)** · **[Installation guide](docs/installation/README.md)** · **[User manual](docs/notice/README.md)** · **[Try it without Home Assistant](docs/demo_mode.md)** · **[Discussions](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/discussions)**

> *A personal project exploring what's possible when AI writes all the code. Built with Antigravity, DeepSeek, MiniMax, Z.ai, Claude, and Cursor — not a single line typed by hand. I am more the architect than the author.*

> ℹ️ **Sister project, online:** [Vigie](https://vigie.auxfilsdesidees.fr) shows world natural hazards and official weather warnings on a public map, served by a public API ([Vigie API](https://github.com/Axellum/vigie-api), with a Home Assistant integration). This screen can take its weather, its rain and its warnings from Vigie (see below). Vigie's own screen, which needs no HA server, is [Meridien](https://github.com/Axellum/meridien) (early days); the first one, [Vigie Display](https://github.com/Axellum/vigie-display), is set aside. See [Related Projects](docs/related_projects.md).

## Why this one

- **Push-only, zero polling.** Home Assistant sends only what changed; the tablet never asks for anything ([ADR-0001](docs/decisions/0001-push-only-zero-polling.md)).
- **Set up with the mouse, in Home Assistant.** After the install, rooms, tiles, sensors, cameras, what each zone shows and what each gesture does are picked in one blueprint, and changing a device needs no flash ([your devices](docs/installation/devices.md)).
- **Voice starts on the device.** "Okay Nabu" and a "Stop" word for the roller shutter are detected on the tablet; audio leaves it only after the wake word.
- **Seven languages, down to the details.** French, English, German, Dutch, Spanish, Italian and Turkish, switched from Home Assistant: menus, games, dates, the texts Home Assistant sends and the spoken alarm briefing. Translated by an AI; the author only checked the French ([translations](docs/translations.md)).
- **Twenty-one themes, light or dark.** Colours, shapes and the fonts of the clock change at once, without a restart, from Home Assistant or the tablet's console; « Auto » turns light at sunrise and dark at sunset ([themes](docs/installation/settings.md#theme-light-or-dark)).
- **Keeps working when Home Assistant doesn't.** Clock, alarm clock, games and the diagnostics console stay usable on their own.
- **Lots of notes and tests.** 86 [architecture decision records](docs/decisions/README.md), host tests for the C++ game and alarm engines, and a CI that compiles the firmware against both the minimum and the latest ESPHome. All written with AI, and tried on real screens one at a time.
- **Runs on the ST7123 and ST7121 revisions of the Tab5**, builds for the original ILI9881C, and runs on the 7-inch [Waveshare ESP32-P4 7B](docs/waveshare-7b.md).

## What it does

A single page (1280×720 on the Tab5, 1024×600 on the Waveshare 7B): windows open with a tap, a long press or a swipe — each of them is in the [user manual](docs/notice/README.md).

- **Weather** — rain in the next hour, hourly and 15-day forecast, weather warnings ([below](#rain-in-the-next-hour-weather-warnings)).
- **Central card** — every 8 s: work hours, rain graph, warnings, a 3-day calendar recap and up to 4 banners pushed by Home Assistant, the alerts you subscribed to; a tap dismisses a banner, a long press shows the 20 latest alerts ([home screen](docs/notice/home.md), [alerts](docs/notice/alerts.md)).
- **Rooms** — the bottom row: up to 10 rooms of 20 devices (lights, switches, shutters, media players, scenes, sensors), their number chosen in Home Assistant, with their names and icons taken from Home Assistant ([bottom row and rooms](docs/notice/tiles.md)).
- **House** — the whole house at a glance, one column per room: each device with its state, the same tap and long press as its card, and every light off in one tap ([house](docs/notice/house.md)).
- **Climate** — modes, a thermostat arc, presets and airflow; the controls are dimmed, not hidden, when the unit is off ([climate](docs/notice/climate.md)).
- **Lights** — the room's lights (up to 5): brightness arc with shortcuts, 3 whites and 12 colours ([lights](docs/notice/lights.md)).
- **Shutters** — open, close or a position; while it moves, "Stop" said aloud halts it at once ([shutters](docs/notice/shutters.md)).
- **Plants** — up to 5 BLE sensors, coloured by soil moisture; a long press shows fertility, light, temperature and battery ([plants](docs/notice/plants.md)).
- **TV remote** — a full-screen Samsung remote: power, pad, volume, channels, playback, mute, through Home Assistant ([TV remote](docs/notice/tv.md)).
- **Voice** — "Okay Nabu" detected on the tablet, or a tap on the microphone; two assistants chosen from the screen, home control or a conversation ([voice](docs/notice/voice.md)).
- **Calendar and alarm clock** — a monthly calendar computed on the tablet, with work hours, holidays and appointments; an alarm clock with a spoken briefing ([calendar](docs/notice/calendar.md), [alarm clock](docs/notice/alarm.md)).
- **Energy** (optional) — what flows between the sun, the home, the grid and a home battery right now, the day's sun and a production forecast learned from your panels, the production per hour, day and month, and the month's balance in kWh, as if the grid were a battery ([energy](docs/notice/energy.md)).
- **Temperature history** — a long press on a temperature: its curve over 24 hours, 7 or 30 days, with the weather forecast for the second one ([temperature](docs/notice/temperature.md)).
- **Music** — any media player of Home Assistant: cover, title, position, playback and volume; a compact player can sit left of the clock. Pages for your favourite playlists, the players of every room and, with Music Assistant, grouping and its library ([music](docs/notice/music.md)).
- **Cameras** — a still image of each camera, refreshed while the window is open, grouped by room; the camera shown large can play as video (optional, off by default) ([cameras](docs/notice/cameras.md)).
- **Tracking, fridges, AI server** — up to six sensors you follow (a share price, a power…) with their 24-hour curve; fridges and freezers checked against their norm, with an alert; the dashboard of a local LLM server ([tracking](docs/notice/tracking.md), [fridges](docs/notice/fridge.md), [AI server](docs/notice/ai-server.md)).
- **Diagnostics console** — memory, Wi-Fi, uptime, volume, theme; reload automations, restart Home Assistant or the tablet behind a confirmation ([system console](docs/notice/console.md)).
- **Settings** — brightness, auto screen off, theme, light or dark, language, without opening Home Assistant ([settings](docs/notice/settings.md)).
- **8 offline games** — experimental: chess, draughts, Go, breakout, pinball, Lode Runner, a marble roguelite and a quiz ([Arcade](docs/notice/arcade.md)).

## Rain in the next hour, weather warnings

What the screen was first made for: seeing at a glance whether rain is coming before leaving. Both panels join the rotation of the central card only when there is something to show. Renders of the firmware with demo data: moderate rain in 10 minutes, an orange warning.

![M5Stack Tab5 screen in English: nine rain bars for the next hour and the sentence Moderate rain in 10 min, the date in orange](docs/images/site/pluie-dans-l-heure-en.png)

- **9 bars, the whole next hour**: one every 5 minutes for half an hour, then one every 10 minutes. The taller and darker the bar, the heavier the rain. The sentence is written by the tablet, in its language, and counts the minutes down by itself.
- Source, chosen in Home Assistant: Météo-France in France, directly; Vigie everywhere, with no key (Météo-France at your GPS point in France, in 5-min steps, the Open-Meteo model elsewhere), used by itself when there is no Météo-France; the Buienradar, DWD or Met.no radars; OpenWeatherMap; Open-Meteo directly; or none, and the panel goes away ([weather providers](docs/installation/weather.md)).

![M5Stack Tab5 screen in English with two weather warning icons, a yellow thunderstorm and an orange rain-flood, and the date in orange](docs/images/site/vigilances-en.png)

- **One icon per warning in force**, up to 4, each in the colour of its own level. The date under the clock takes the colour of the day's overall level.
- Source: Météo-France for your department; the official warnings gathered by the Vigie integration; elsewhere MeteoAlarm, the DWD or CAP Alerts. Apart from Météo-France, the warnings were only tried with simulated data.

## Before you start

- A Tab5: the **ST7123** display chip is on the author's first tablet, the ST7121 on the author's second one and on another user's unit, the original ILI9881C is built but untested — see [hardware compatibility](#hardware-compatibility). Or a **Waveshare ESP32-P4 7B** (7-inch, 1024×600), without the games by default; its firmware installs from the browser too, from 3.9.0 ([Waveshare 7B](docs/waveshare-7b.md)).
- Home Assistant 2026.8 or later. A ready-made, signed firmware installs from the browser; to build your own, ESPHome **≥ 2026.9.0** (2026.9.1 for the Waveshare).
- The screen speaks French, English, German, Dutch, Spanish, Italian or Turkish, switched from Home Assistant — all written by an AI like the rest of the project; the author checked the French, the others are not reviewed yet. Only the quiz questions stay in French ([translations](docs/translations.md)).
- The layout started from the author's home. You pick your devices in Home Assistant with the mouse (a blueprint), and what you don't have disappears from the screen. The tiles at the bottom are rooms; the other zones have a single place each: the climate card, the TV, the phone, two temperatures, up to 5 plants ([adapt to your home](docs/installation/adapt-to-your-home.md)).
- The rain graph and the warnings are made for France first (Météo-France); elsewhere the rain comes from Vigie (the Open-Meteo model) by itself, and other services are picked in Home Assistant ([weather providers](docs/installation/weather.md)).

## Quick start

Without compiling, since 3.0: a Tab5, a USB-C cable that carries data, Chrome or Edge on a computer, and Home Assistant. The [installation guide](docs/installation/README.md) takes you through seven steps:

1. [Home Assistant files](docs/installation/home-assistant-files.md): unzip the archive attached to each release into the `config` folder of Home Assistant, add one line to `configuration.yaml`, restart. Or, from 3.7.0, let [HACS](docs/installation/home-assistant-files.md#with-hacs) install them and update them in one click.
2. [Install the firmware](docs/installation/flash.md) from the [install page](https://axellum.github.io/M5-Tab5-ESPHome-LVGL/install/): your display revision, the Stable channel, *Connect and install*.
3. [Wi-Fi](docs/installation/wifi.md): from the same window, over USB, or with a phone on the open "Tab5 Fallback AP" network.
4. [Add it to Home Assistant](docs/installation/add-to-home-assistant.md): the ESPHome device is discovered, *Configure*; Home Assistant gives it its key.
5. [Your sources](docs/installation/sources.md): weather and calendars, picked in the « Tab5 · » lists with the mouse.
6. [Your devices](docs/installation/devices.md): the automation made from the blueprint, with the mouse; changing a device needs no flash.
7. [A dashboard](docs/installation/dashboard.md) (optional): one line in the template tool of Home Assistant writes a dashboard for the tablet, with its settings and its health.

**Where things are set.** Once the tablet is in Home Assistant (step 4), everything is done there with the mouse, in two places. The « Tab5 · » lists hold your sources: weather, calendars, phone, music players, tracked sensors (step 5). **One automation made from the blueprint** holds your home: the rooms and their tiles, the climate, the temperatures, the energy sensors, the cameras, what the zones of the home screen show and what each tap and long press does (step 6). Every field is optional, with a help sentence in French and English, and a change reaches the screen at once, without a flash. The tablet's own settings (theme, language, brightness, alarm clock) are on the tablet and on its device page.

![The screen slots automation in the Home Assistant editor: the blueprint and its sections, Room 1 open](docs/images/installation/ha_blueprint_en.png)

Updates then go through Home Assistant, in this order: the Home Assistant files first (in one click with HACS, otherwise by hand), then the firmware, from its « Firmware » entity ([updates](docs/installation/updates.md)). Over the air, the tablet only accepts a firmware signed with the project key. Every setting — theme, light or dark, language, alarm clock, screen to show: [tablet settings](docs/installation/settings.md). To change the firmware yourself: [build your own](docs/installation/build.md).

Just want to see it running first? The [demo mode](docs/demo_mode.md) pushes demo data to a flashed tablet with a small script: no Home Assistant, nothing left to clean up.

## Hardware compatibility

| Display chip (sticker on the back) | Units made | Status |
|---|---|---|
| **ST7123** | 14 Oct 2025 → 28 Apr 2026 | ✅ Supported — the author's first tablet (default) |
| **ST7121** | from 28 Apr 2026 | ✅ Runs on the author's second tablet since 21 Oct 2026 and on another user's unit since October 2026: display, touch and wake word ([Discussion #278](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/discussions/278)) — add `tab5_ecran: st7121` to `Tab5/user_entities.yaml` |
| **ILI9881C** + GT911 touch | 9 May 2025 → 14 Oct 2025 | 🧪 Compiles, untested — add `tab5_ecran: ili9881c` to `Tab5/user_entities.yaml` |
| **Waveshare ESP32-P4 7B** (another board: 7-inch, 1024×600) | — | ✅ Supported — ran on the author's board from 14 Oct to 7 Nov 2026, the games not adapted to its screen and left out by default; install it from the browser (from 3.9.0) or build it with `tab5_carte: waveshare-7b` and ESPHome 2026.9.1 or newer ([Waveshare 7B](docs/waveshare-7b.md)) |

"Compiles, untested": the CI builds this variant on every display change, and the install page offers it, but this firmware has not been run on that chip yet. The ST7121 is built the same way, and has run on the author's second tablet since 21 October 2026 and on another user's unit since October 2026. How to identify your unit, and the ST7121 reports: [hardware revisions](docs/hardware.md#hardware-revisions). Tried one? → [Discussions](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/discussions/categories/hardware-compatibility).

## See it in action

**Four videos on YouTube** (October and November 2026, subtitles in seven languages; the voice assistant one is spoken, the others have English texts on screen):

| [The Home Assistant screen in 2 minutes](https://youtu.be/75hMN49qWFM) | [Install it in 7 steps, nothing to compile](https://youtu.be/6OZMtD_UTSs) |
|:-:|:-:|
| [<img src="docs/images/home-assistant-dashboard-esp32-p4-tour-video.webp" width="260" loading="lazy" alt="Video: tour of a Home Assistant dashboard on an ESP32-P4 wall screen, a lamp's colour wheel open">](https://youtu.be/75hMN49qWFM) | [<img src="docs/images/home-assistant-screen-install-esphome-video.webp" width="260" loading="lazy" alt="Video: installing the Home Assistant screen with ESPHome from the browser, the blueprint and the 7-inch screen">](https://youtu.be/6OZMtD_UTSs) |

| [Every setting from Home Assistant](https://youtu.be/4NPOXTlYok8) | [Voice assistant: “Okay Nabu” and follow-up questions](https://youtu.be/gTc45PRshdk) |
|:-:|:-:|
| [<img src="docs/images/home-assistant-screen-settings-blueprint-video.webp" width="260" loading="lazy" alt="Video: every setting of the ESP32-P4 Home Assistant screen picked in a Home Assistant blueprint">](https://youtu.be/4NPOXTlYok8) | [<img src="docs/images/home-assistant-voice-assistant-esp32-p4-video.webp" width="260" loading="lazy" alt="Video: the voice assistant of the ESP32-P4 Home Assistant wall screen, a follow-up question answered without saying the wake word again">](https://youtu.be/gTc45PRshdk) |

More on the [YouTube channel](https://www.youtube.com/channel/UCmMnfENr9qX3K3oTaCP0SUg), and these videos together in one [playlist](https://www.youtube.com/playlist?list=PLXM1iF7NzMhs).

**Photos of the real screens** (29 October 2026, the Waveshare 7B in the default theme, the Tab5 in a dark theme):

| Home Assistant dashboard, home screen (Waveshare ESP32-P4 7B) | Light control: a lamp's colour wheel, opened by a long press |
|:-:|:-:|
| <img src="docs/images/home-assistant-dashboard-waveshare-esp32-p4-7-inch.webp" width="400" loading="lazy" alt="Home Assistant dashboard on a Waveshare ESP32-P4 7-inch screen: clock, temperatures, energy, work hours and a 5-day weather forecast"> | <img src="docs/images/home-assistant-dashboard-light-colour-wheel.webp" width="400" loading="lazy" alt="Home Assistant light control on an ESP32-P4 touch screen: a lamp's colour wheel with power, brightness and seven colours"> |

| Home Assistant lights: brightness and colours | Home Assistant energy dashboard: solar, grid, battery |
|:-:|:-:|
| <img src="docs/images/home-assistant-dashboard-lights-brightness.webp" width="400" loading="lazy" alt="Home Assistant lights dashboard on an ESP32-P4 screen: the lamps of a room, a brightness arc at 71 % and the colours"> | <img src="docs/images/home-assistant-energy-dashboard-solar-battery.webp" width="400" loading="lazy" alt="Home Assistant energy dashboard on an ESP32-P4 screen: solar production, home consumption, grid and battery flows"> |

| M5Stack Tab5 Home Assistant dashboard, dark theme | Home Assistant climate control: air conditioner on the M5Stack Tab5 |
|:-:|:-:|
| <img src="docs/images/home-assistant-dashboard-m5stack-tab5-dark-theme.webp" width="400" loading="lazy" alt="M5Stack Tab5 Home Assistant dashboard in a dark blue theme: media player, clock, temperatures and a 5-day weather forecast"> | <img src="docs/images/home-assistant-dashboard-air-conditioner-m5stack-tab5.webp" width="400" loading="lazy" alt="Home Assistant air conditioner control on the M5Stack Tab5: modes, a 22 °C setpoint arc, presets, fan and airflow"> |

An [earlier demo video](https://www.youtube.com/watch?v=ygNhgtMffu4) (voice, touch, TV remote, climate — provisional cut, July 2026), and an animated tour of the screens in the default theme, drawn by the firmware itself on a PC with demo data:

![Animated tour of the M5Stack Tab5 Home Assistant screen: home, a room's devices, the whole house, a lamp's colour wheel, lights, climate, plants, solar energy, calendar, TV remote and console](docs/images/tab5_ui_tour_en.webp)

**Twenty-one themes**, each light or dark: colours, shapes (radius, borders, shadows) and the fonts of the clock, the date and the titles. Six of them on the home screen, drawn by the firmware itself on a PC with demo data: two show a room's devices, the four others a different alert on the central card.

![Six themes of the M5Stack Tab5 home screen drawn by the firmware: Pixel dark with a kitchen leak alert, Bonbon light with the living room's devices, Sorbet dark with a weather warning, Béton brut light with a low battery alert, Zen Sumi dark with the garden's devices and Capsule light with rain in 10 minutes](docs/images/tab5_themes_en.jpg)

**Energy** (optional): up to four pages from the sensors picked in the blueprint ([solar energy](docs/installation/adapt-to-your-home.md#solar-energy-optional)). Here the flows right now, the line as thick as the power; then the day's sun and forecast, the production, and the month's balance in kWh. Render with demo data; it runs at a user's home with real panels.

![Energy popup of the M5Stack Tab5, Flow page: solar, home, grid and battery as circles joined by lines as thick as the power flowing](docs/images/notice/energie-flux-en.webp)

**The tablet in Home Assistant** — the dashboard written for your entities by [step 7](docs/installation/dashboard.md):

![Tab5 view of the Home Assistant dashboard: brightness, volume and screen of the tablet, alarm clock, appointments and voice assistant](docs/images/ha_tableau_tab5.png)

**Every screen, each in a different theme** — drawn by the firmware itself on a PC, with demo data; the games stay dark whatever the theme:

| Home: rain in the next hour (Bento, light) | The whole house (Relief doux, light) |
|:-:|:-:|
| <img src="docs/images/galerie/accueil-pluie-en.webp" width="400" loading="lazy" alt="M5Stack Tab5 home screen in the Bento light theme: the rain bars of the next hour and Moderate rain in 10 min on the central card, a rainy 5-day forecast"> | <img src="docs/images/galerie/maison-en.webp" width="400" loading="lazy" alt="House popup of the M5Stack Tab5: five rooms in columns, each device with its state, and a Lights off button"> |

| Quick-action wheel (Néon calme, dark) | Lights (Bonbon, light) |
|:-:|:-:|
| <img src="docs/images/galerie/roue-en.webp" width="400" loading="lazy" alt="Quick-action wheel of the M5Stack Tab5 opened by a long press on the floor lamp: brightness steps, power, colours and details around the finger"> | <img src="docs/images/galerie/lumieres-en.webp" width="400" loading="lazy" alt="Light popup of the M5Stack Tab5: the room's lights, a brightness arc with shortcuts, 3 whites and 12 colours"> |

| Climate (Platine et or, dark) | Shutters (Terre cuite, light) |
|:-:|:-:|
| <img src="docs/images/galerie/climatisation-en.webp" width="400" loading="lazy" alt="Climate popup of the M5Stack Tab5: modes, a thermostat arc set to 20 °C, presets, fan speed and airflow"> | <img src="docs/images/galerie/volet-en.webp" width="400" loading="lazy" alt="Shutter popup of the M5Stack Tab5: the shutter drawn at 45 % while it moves, with Open, Stop and Close"> |

| Plant sensors (Sorbet, light) | Energy, the flows right now (Ultraviolet, dark) |
|:-:|:-:|
| <img src="docs/images/galerie/plantes-en.webp" width="400" loading="lazy" alt="Plants popup of the M5Stack Tab5: five pots with soil moisture, fertility, light, temperature and battery, one of them needs water"> | <img src="docs/images/galerie/energie-en.webp" width="400" loading="lazy" alt="Energy popup of the M5Stack Tab5, Flow page: solar, home, grid and battery linked by live power lines"> |

| Temperature history (Almanach imprimé, light) | Monthly calendar (Zen Sumi, dark) |
|:-:|:-:|
| <img src="docs/images/galerie/temperature-en.webp" width="400" loading="lazy" alt="Temperature popup of the M5Stack Tab5: now, minimum, maximum and outdoor forecast, and the greenhouse curve over 7 days with the forecast"> | <img src="docs/images/galerie/calendrier-en.webp" width="400" loading="lazy" alt="Monthly calendar of the M5Stack Tab5 with work hours, a public holiday, school holidays, appointments and birthdays"> |

| Alarm clock (Graphite, dark) | Voice assistant (Obsidienne, dark) |
|:-:|:-:|
| <img src="docs/images/galerie/reveil-en.webp" width="400" loading="lazy" alt="Alarm clock popup of the M5Stack Tab5: the alarm time on rolling digits, its tabs (days, shift start, ringtone, announcements) and a test button"> | <img src="docs/images/galerie/assistant-en.webp" width="400" loading="lazy" alt="Voice assistant popup of the M5Stack Tab5: its settings, the request and a formatted reply with a list and a table"> |

| TV remote (Signalisation, light) | Settings (Capsule, light) |
|:-:|:-:|
| <img src="docs/images/galerie/telecommande-tv-en.webp" width="400" loading="lazy" alt="TV remote of the M5Stack Tab5: power, source, menu, a direction pad, volume, playback and app shortcuts"> | <img src="docs/images/galerie/reglages-en.webp" width="400" loading="lazy" alt="Settings popup of the M5Stack Tab5, Screen page: brightness, auto screen off and wake options"> |

| Music (Almanach, light) | Cameras, a still image each (Craie et ardoise, dark) |
|:-:|:-:|
| <img src="docs/images/galerie/musique-en.webp" width="400" loading="lazy" alt="Music popup of the M5Stack Tab5: the paused track with its progress, playback controls, volume and three players to pick from"> | <img src="docs/images/galerie/cameras-en.webp" width="400" loading="lazy" alt="Cameras popup of the M5Stack Tab5: seven cameras sorted by room, four of them in a mosaic (test pattern of the render instead of real pictures)"> |

| Tracked sensors (Béton brut, light) | Local AI server (Ardoise, dark) |
|:-:|:-:|
| <img src="docs/images/galerie/suivi-en.webp" width="400" loading="lazy" alt="Tracking popup of the M5Stack Tab5: four followed sensors, each with its value, its change and a 24-hour curve"> | <img src="docs/images/galerie/serveur-ia-en.webp" width="400" loading="lazy" alt="AI server popup of the M5Stack Tab5: a local LLM server online, its model, tokens per second over time, VRAM, GPU temperature, RAM and power"> |

| Arcade: the game menu (Pixel, dark) | Roi Noir: chess with an engine on the tablet |
|:-:|:-:|
| <img src="docs/images/galerie/arcade-en.webp" width="400" loading="lazy" alt="Arcade menu of the M5Stack Tab5 with eight offline games drawn with LVGL"> | <img src="docs/images/galerie/roi-noir-en.webp" width="400" loading="lazy" alt="Chess game Roi Noir on the M5Stack Tab5 ESP32-P4, with its embedded engine"> |

| Coureur d'Or: Lode Runner style | Arcanoïde: a breakout played by tilting |
|:-:|:-:|
| <img src="docs/images/galerie/coureur-dor-en.webp" width="400" loading="lazy" alt="Coureur d'Or, a Lode Runner style platform game, on the M5Stack Tab5"> | <img src="docs/images/galerie/arcanoide-en.webp" width="400" loading="lazy" alt="Arcanoïde, a breakout game on the M5Stack Tab5, played by tilting the tablet"> |

The games are experimental, first-pass code written by AI to see what LVGL and C++ can do on an ESP32-P4: they work, they are not polished ([the eight consoles](docs/arcade.md), in French).

## Documentation

Every page is in English and French: [install](docs/installation/README.md), [use](docs/notice/README.md), [set up](docs/installation/settings.md), [fix](docs/troubleshooting.md), [understand how it is built](docs/architecture.md) — the full list is on the [documentation page](docs/README.md).

In this repository: [`AGENTS.md`](AGENTS.md) for AI coding agents, [`CARTOGRAPHIE_TAB5.md`](CARTOGRAPHIE_TAB5.md) (every file and dependency), [`Tab5/README.md`](Tab5/README.md) (the ESPHome files and the Home Assistant services), [`HomeAssistant_Config/README.md`](HomeAssistant_Config/README.md) (the packages), [`CONTRIBUTING.md`](CONTRIBUTING.md) and the [`CHANGELOG.md`](CHANGELOG.md).

## Community

- **Questions, ideas, your own build** → [Discussions](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/discussions) (Q&A, Ideas, Show and tell, Hardware compatibility).
- **Something broken?** → [open an issue](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/issues/new/choose); the form asks for your display chip and your ESPHome version.
- **Security issue** → report it privately, see [`SECURITY.md`](SECURITY.md).
- **Contributing** → [`CONTRIBUTING.md`](CONTRIBUTING.md) and the [code of conduct](CODE_OF_CONDUCT.md).

**Thanks** to [@husyildiz](https://github.com/husyildiz), whose ideas, tests and reports in [discussion #278](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/discussions/278) brought the step-by-step install page, the Turkish screen, the weather outside France, the original battery, the Energy popup for solar panels and the weather picked in the blueprint.

**Thanks** also to Jiuhai ([@poonjh](https://github.com/poonjh)), who builds Tab5 devices on ESP-IDF: the questions and notes on the schematic in [discussion #369](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/discussions/369) corrected the pages on the Wi-Fi co-processor and on power, and the notes are summed up in the [hardware reference](docs/hardware.md).

English or French, both are welcome.

## A short personal note

Having heard a lot about AI for coding, I wanted to see for myself what it could do. My old Nextion screen (mostly weather, already on ESPHome and Météo-France) was starting to feel dated, so I replaced it: a lot more home automation, on a far more capable display, with AI writing the code from end to end. Why a screen, what it had to do, and how it grew: [the story](docs/story.md).

## Note on AI

This project is part of a personal exploration of what AI tools can produce when given full authorship of a technical project. The code, the architecture decisions, and most of this documentation were generated by AI (Antigravity/Gemini, DeepSeek, MiniMax, Z.ai, Claude, Cursor). My role was to set the goal, test, reject, and steer — more architect than line-by-line author. The goal was never to ship a polished product — it was to learn, to see where AI helps and where it gets stuck, and to share what came out of it.

If something in the code is weird, it might be an AI quirk. If something works surprisingly well, same answer.

→ More context: [`docs/related_projects.md`](docs/related_projects.md)

---

## Version Française

---

<!-- hors-site -->
> **Cette page est aussi l'accueil du site**, avec un menu, une recherche et chaque page en français ou en anglais : **[axellum.github.io/M5-Tab5-ESPHome-LVGL/fr/](https://axellum.github.io/M5-Tab5-ESPHome-LVGL/fr/)**.
<!-- /hors-site -->

**Un écran mural Home Assistant qui tourne nativement sur le M5Stack Tab5 (ESP32-P4).** Pas de navigateur, pas de polling : Home Assistant pousse ce qui a changé, et l'écran ne redessine que ça, en C++ avec LVGL. Mot d'activation « Okay Nabu » en local, prévisions à 15 jours, clim, lumières, plantes, énergie, musique, caméras, télécommande TV, réveil — et 8 jeux hors ligne, en sept langues. Vingt et un thèmes, clairs ou sombres, au choix depuis Home Assistant. C'est mon écran de tous les jours, partagé au cas où il serve à quelqu'un. Il tourne aussi sur une carte Waveshare de 7 pouces, la ESP32-P4 7B : prise en charge, son firmware est publié à chaque release. J'ai testé trois cartes — deux versions du Tab5 et la 7B — et le Tab5 comme la 7B tournent chez moi au quotidien (la 7B depuis le 15 octobre 2026), même si je n'ai essayé qu'une seule 7B.

[![Écran mural Home Assistant sur ESP32-P4, vidéo de présentation sur YouTube (2 min 27) : le tableau de bord Home Assistant de l'écran 7 pouces avec la roue des couleurs d'une lampe ouverte](docs/images/home-assistant-wall-screen-esp32-p4-video.webp)](https://youtu.be/75hMN49qWFM)

*▶ [Voir la présentation de 2 minutes sur YouTube](https://youtu.be/75hMN49qWFM) — textes à l'écran en anglais, sous-titres en sept langues dont le français.*

**[▶ Vidéo (2 min)](https://youtu.be/75hMN49qWFM)** · **[L'essayer dans le navigateur](https://axellum.github.io/M5-Tab5-ESPHome-LVGL/demo/)** · **[Installer depuis le navigateur](https://axellum.github.io/M5-Tab5-ESPHome-LVGL/install/)** · **[Guide d'installation](docs/installation/README.md#version-française)** · **[Notice d'utilisation](docs/notice/README.md#version-française)** · **[Essayer sans Home Assistant](docs/demo_mode.md#version-française)** · **[Discussions](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/discussions)**

> *Un projet personnel pour voir ce que donne l'IA quand elle écrit tout le code. Construit avec Antigravity, DeepSeek, MiniMax, Z.ai, Claude et Cursor — pas une ligne tapée à la main. J'en suis plus l'architecte que l'auteur.*

> ℹ️ **Projet voisin, en ligne :** [Vigie](https://vigie.auxfilsdesidees.fr) montre les aléas naturels du monde et les vigilances météo officielles sur une carte publique, servie par une API publique ([Vigie API](https://github.com/Axellum/vigie-api), avec une intégration Home Assistant). Cet écran peut prendre sa météo, sa pluie et ses vigilances chez Vigie (voir plus bas). L'écran de Vigie lui-même, sans serveur HA, est [Meridien](https://github.com/Axellum/meridien) (début de projet) ; le premier, [Vigie Display](https://github.com/Axellum/vigie-display), est mis de côté. Voir [Projets associés](docs/related_projects.md#version-française).

## Pourquoi celui-ci

- **Push uniquement, zéro polling.** Home Assistant n'envoie que ce qui a changé ; la tablette ne demande jamais rien ([ADR-0001](docs/decisions/0001-push-only-zero-polling.md)).
- **Se règle à la souris, dans Home Assistant.** Après l'installation, pièces, tuiles, capteurs, caméras, ce que montre chaque zone et ce que fait chaque geste se choisissent dans un seul blueprint, et changer d'appareil ne demande pas de flash ([vos appareils](docs/installation/devices.md#version-française)).
- **La voix démarre sur l'appareil.** « Okay Nabu » et un mot « Stop » pour le volet roulant sont détectés sur la tablette ; l'audio n'en sort qu'après le mot d'activation.
- **Sept langues, jusque dans les détails.** Français, anglais, allemand, néerlandais, espagnol, italien et turc, au choix depuis Home Assistant : menus, jeux, dates, textes envoyés par Home Assistant et briefing parlé du réveil. Traduites par une IA ; l'auteur n'a relu que le français ([traductions](docs/translations.md#version-française)).
- **Vingt et un thèmes, clairs ou sombres.** Couleurs, formes et polices de l'horloge changent aussitôt, sans redémarrer, depuis Home Assistant ou la console de la tablette ; « Auto » passe en clair au lever du soleil et en sombre à son coucher ([thèmes](docs/installation/settings.md#thème-clair-ou-sombre)).
- **Continue de marcher quand Home Assistant ne marche plus.** Horloge, réveil, jeux et console de diagnostic restent utilisables seuls.
- **Beaucoup de notes et de tests.** 86 [décisions d'architecture](docs/decisions/README.md) (ADR), des tests hôte pour les moteurs C++ des jeux et du réveil, et une CI qui compile le firmware avec la version minimale et la dernière version d'ESPHome. Le tout écrit avec l'IA, et essayé sur de vrais écrans, un à la fois.
- **Tourne sur les révisions ST7123 et ST7121 du Tab5**, compile pour l'ILI9881C d'origine, et tourne sur la [Waveshare ESP32-P4 7B](docs/waveshare-7b.md#version-française) de 7 pouces.

## Ce que ça fait

Une seule page (1280×720 sur le Tab5, 1024×600 sur la Waveshare 7B) : les fenêtres s'ouvrent d'un appui, d'un appui long ou d'un glissement — chacune est dans la [notice d'utilisation](docs/notice/README.md#version-française).

- **Météo** — pluie dans l'heure, prévisions horaires et à 15 jours, vigilances ([plus bas](#pluie-dans-lheure-vigilances)).
- **Carte centrale** — toutes les 8 s : horaires, graphe de pluie, vigilances, récap du calendrier sur 3 jours et jusqu'à 4 bandeaux poussés par Home Assistant, les alertes auxquelles vous êtes abonné ; un appui masque un bandeau, un appui long montre les 20 dernières alertes ([écran d'accueil](docs/notice/home.md#version-française), [alertes](docs/notice/alerts.md#version-française)).
- **Pièces** — la rangée du bas : jusqu'à 10 pièces de 20 appareils (lumières, interrupteurs, volets, lecteurs multimédia, scènes, capteurs), leur nombre choisi dans Home Assistant, avec leurs noms et icônes pris dans Home Assistant ([rangée du bas et pièces](docs/notice/tiles.md#version-française)).
- **Maison** — toute la maison d'un coup d'œil, une colonne par pièce : chaque appareil avec son état, les mêmes appuis que sur sa carte, et toutes les lumières éteintes d'un appui ([maison](docs/notice/house.md#version-française)).
- **Clim** — modes, arc de thermostat, préréglages et flux d'air ; les commandes sont grisées, pas masquées, quand la clim est éteinte ([clim](docs/notice/climate.md#version-française)).
- **Lumières** — les lumières de la pièce (5 au plus) : arc de luminosité avec raccourcis, 3 blancs et 12 couleurs ([lumières](docs/notice/lights.md#version-française)).
- **Volets** — ouvrir, fermer ou une position ; pendant qu'il bouge, « Stop » dit à voix haute l'arrête tout de suite ([volets](docs/notice/shutters.md#version-française)).
- **Plantes** — jusqu'à 5 capteurs BLE, colorés selon l'humidité du sol ; un appui long montre fertilité, lumière, température et batterie ([plantes](docs/notice/plants.md#version-française)).
- **Télécommande TV** — une télécommande Samsung plein écran : marche, croix, volume, chaînes, lecture, muet, par Home Assistant ([télécommande TV](docs/notice/tv.md#version-française)).
- **Voix** — « Okay Nabu » détecté sur la tablette, ou un appui sur le micro ; deux assistants au choix depuis l'écran, la domotique ou la discussion ([voix](docs/notice/voice.md#version-française)).
- **Calendrier et réveil** — un calendrier du mois calculé sur la tablette, avec horaires, fériés, vacances et rendez-vous ; un réveil avec un briefing parlé ([calendrier](docs/notice/calendar.md#version-française), [réveil](docs/notice/alarm.md#version-française)).
- **Énergie** (facultatif) — ce qui circule en direct entre le soleil, la maison, le réseau et une batterie de la maison, le soleil du jour et une prévision de production apprise sur vos panneaux, la production par heure, jour et mois, et le bilan du mois en kWh, comme si le réseau était une batterie ([énergie](docs/notice/energy.md#version-française)).
- **Historique des températures** — un appui long sur une température : sa courbe sur 24 heures, 7 ou 30 jours, avec la prévision de la météo pour la seconde ([température](docs/notice/temperature.md#version-française)).
- **Musique** — n'importe quel lecteur de Home Assistant : pochette, titre, position, lecture et volume ; un lecteur compact peut se placer à gauche de l'horloge. Des pages pour vos playlists favorites, les lecteurs de chaque pièce et, avec Music Assistant, les groupes et sa bibliothèque ([musique](docs/notice/music.md#version-française)).
- **Caméras** — une image fixe de chaque caméra, rafraîchie tant que la fenêtre est ouverte, rangée par pièce ; la caméra montrée en grand peut passer en vidéo (facultatif, désactivé par défaut) ([caméras](docs/notice/cameras.md#version-française)).
- **Suivi, frigos, serveur IA** — jusqu'à six capteurs suivis (une action en bourse, une puissance…) avec leur courbe sur 24 heures ; les frigos et congélateurs comparés à leur norme, avec une alerte ; le tableau de bord d'un serveur de LLM local ([suivi](docs/notice/tracking.md#version-française), [frigos](docs/notice/fridge.md#version-française), [serveur IA](docs/notice/ai-server.md#version-française)).
- **Console de diagnostic** — mémoire, Wi-Fi, temps de marche, volume, thème ; recharger les automatisations, redémarrer Home Assistant ou la tablette, après confirmation ([console système](docs/notice/console.md#version-française)).
- **Réglages** — luminosité, extinction automatique, thème, clair ou sombre, langue, sans ouvrir Home Assistant ([réglages](docs/notice/settings.md#version-française)).
- **8 jeux hors ligne** — expérimentaux : échecs, dames, go, casse-briques, flipper, Lode Runner, un roguelite de bille et un quiz ([Arcade](docs/notice/arcade.md#version-française)).

## Pluie dans l'heure, vigilances

Ce pour quoi l'écran a d'abord été fait : voir d'un coup d'œil s'il va pleuvoir avant de partir. Les deux panneaux n'entrent dans la rotation de la carte centrale que s'il y a quelque chose à montrer. Rendus du firmware avec des données de démonstration : pluie modérée dans 10 minutes, vigilance orange.

![Écran de la M5Stack Tab5 en français : neuf barres de pluie pour l'heure qui vient et la phrase Pluie modérée dans 10 mn, la date en orange](docs/images/site/pluie-dans-l-heure.png)

- **9 barres, toute l'heure qui vient** : une toutes les 5 minutes pendant une demi-heure, puis une toutes les 10 minutes. Plus la barre est haute et foncée, plus la pluie est forte. La phrase est écrite par la tablette, dans sa langue, et décompte les minutes toute seule.
- Source, choisie dans Home Assistant : Météo-France en France, directement ; Vigie partout, sans clé (Météo-France au point GPS en France, au pas de 5 min, le modèle Open-Meteo ailleurs), pris tout seul quand il n'y a pas Météo-France ; les radars Buienradar, DWD ou Met.no ; OpenWeatherMap ; Open-Meteo en direct ; ou aucune, et le panneau disparaît ([fournisseurs météo](docs/installation/weather.md#version-française)).

![Écran de la M5Stack Tab5 en français avec deux icônes de vigilance, orages en jaune et pluie-inondation en orange, et la date en orange](docs/images/site/vigilances.png)

- **Une icône par vigilance en cours**, 4 au plus, chacune de la couleur de son niveau. La date sous l'horloge prend la couleur du niveau global de la journée.
- Source : Météo-France pour votre département ; les vigilances officielles rassemblées par l'intégration Vigie ; ailleurs MeteoAlarm, le DWD ou CAP Alerts. Hors Météo-France, les vigilances n'ont été essayées qu'avec des données simulées.

## Avant de commencer

- Une Tab5 : la puce écran **ST7123** est celle de la première tablette de l'auteur, la ST7121 celle de sa seconde et d'un autre utilisateur, l'ILI9881C d'origine est compilée mais pas essayée — voir la [compatibilité matérielle](#compatibilité-matérielle). Ou une **Waveshare ESP32-P4 7B** (7 pouces, 1024×600), sans les jeux par défaut ; son firmware s'installe aussi depuis le navigateur, dès la 3.9.0 ([Waveshare 7B](docs/waveshare-7b.md#version-française)).
- Home Assistant 2026.8 ou plus récent. Un firmware prêt à l'emploi et signé s'installe depuis le navigateur ; pour compiler le vôtre, ESPHome **≥ 2026.9.0** (2026.9.1 pour la Waveshare).
- L'écran parle français, anglais, allemand, néerlandais, espagnol, italien ou turc, au choix depuis Home Assistant — toutes écrites par une IA comme le reste du projet ; l'auteur a relu le français, les autres ne sont pas encore relues. Seules les questions du quiz restent en français ([traductions](docs/translations.md#version-française)).
- La disposition est partie de la maison de l'auteur. Vous choisissez vos appareils dans Home Assistant, à la souris (un blueprint), et ce que vous n'avez pas disparaît de l'écran. Les tuiles du bas sont des pièces ; les autres zones ont une seule place chacune : la carte clim, la TV, le téléphone, deux températures, jusqu'à 5 plantes ([adapter à sa maison](docs/installation/adapt-to-your-home.md#version-française)).
- Le graphe de pluie et les vigilances sont d'abord faits pour la France (Météo-France) ; ailleurs, la pluie vient toute seule de Vigie (le modèle Open-Meteo), et d'autres services se choisissent dans Home Assistant ([fournisseurs météo](docs/installation/weather.md#version-française)).

## Démarrage rapide

Sans compiler, depuis la 3.0 : une Tab5, un câble USB-C qui transmet les données, Chrome ou Edge sur un ordinateur, et Home Assistant. Le [guide d'installation](docs/installation/README.md#version-française) tient en sept étapes :

1. [Fichiers Home Assistant](docs/installation/home-assistant-files.md#version-française) : décompressez l'archive jointe à chaque release dans le dossier `config` de Home Assistant, ajoutez une ligne à `configuration.yaml`, redémarrez. Ou, depuis la 3.7.0, laissez [HACS](docs/installation/home-assistant-files.md#avec-hacs) les installer et les mettre à jour en un clic.
2. [Installer le firmware](docs/installation/flash.md#version-française) depuis la [page d'installation](https://axellum.github.io/M5-Tab5-ESPHome-LVGL/install/) : votre révision d'écran, le canal Stable, *Connecter et installer*.
3. [Wi-Fi](docs/installation/wifi.md#version-française) : depuis la même fenêtre, par l'USB, ou avec un téléphone sur le réseau ouvert « Tab5 Fallback AP ».
4. [L'ajouter à Home Assistant](docs/installation/add-to-home-assistant.md#version-française) : l'appareil ESPHome est découvert, *Configurer* ; Home Assistant lui donne sa clé.
5. [Vos sources](docs/installation/sources.md#version-française) : météo et agendas, choisis dans les listes « Tab5 · » à la souris.
6. [Vos appareils](docs/installation/devices.md#version-française) : l'automatisation créée depuis le blueprint, à la souris ; changer d'appareil ne demande pas de flash.
7. [Un tableau de bord](docs/installation/dashboard.md#version-française) (facultatif) : une ligne dans l'outil Modèle de Home Assistant écrit un tableau de bord pour la tablette, avec ses réglages et sa santé.

**Où se règle quoi.** Une fois la tablette dans Home Assistant (étape 4), tout se fait là, à la souris, en deux endroits. Les listes « Tab5 · » gardent vos sources : météo, agendas, téléphone, lecteurs de musique, capteurs suivis (étape 5). **Une automatisation créée depuis le blueprint** garde votre maison : les pièces et leurs tuiles, la clim, les températures, les capteurs d'énergie, les caméras, ce que montrent les zones de l'accueil et ce que fait chaque appui et appui long (étape 6). Tous les champs sont facultatifs, avec une phrase d'aide en français et en anglais, et un changement arrive aussitôt à l'écran, sans flash. Les réglages de la tablette elle-même (thème, langue, luminosité, réveil) sont sur la tablette et sur sa page d'appareil.

![L'automatisation des emplacements dans l'éditeur de Home Assistant : le blueprint et ses sections, Pièce 1 ouverte](docs/images/installation/ha_blueprint_fr.png)

Les mises à jour passent ensuite par Home Assistant, dans cet ordre : les fichiers Home Assistant d'abord (en un clic avec HACS, sinon à la main), puis le firmware, par son entité « Firmware » ([mises à jour](docs/installation/updates.md#version-française)). Par le réseau, la tablette n'accepte qu'un firmware signé par la clé du projet. Chaque réglage — thème, clair ou sombre, langue, réveil, écran à afficher : [réglages de la tablette](docs/installation/settings.md#version-française). Pour modifier le firmware vous-même : [compiler le vôtre](docs/installation/build.md#version-française).

Envie de le voir tourner d'abord ? Le [mode démo](docs/demo_mode.md#version-française) pousse des données de démonstration vers une tablette flashée avec un petit script : sans Home Assistant, rien à nettoyer ensuite.

## Compatibilité matérielle

| Puce écran (autocollant au dos) | Appareils fabriqués | Statut |
|---|---|---|
| **ST7123** | du 14/10/2025 au 28/04/2026 | ✅ Prise en charge — la première tablette de l'auteur (défaut) |
| **ST7121** | depuis le 28/04/2026 | ✅ Tourne sur la seconde tablette de l'auteur depuis le 21/10/2026 et chez un autre utilisateur depuis octobre 2026 : écran, tactile et mot d'activation ([discussion #278](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/discussions/278)) — ajouter `tab5_ecran: st7121` dans `Tab5/user_entities.yaml` |
| **ILI9881C** + tactile GT911 | du 09/05/2025 au 14/10/2025 | 🧪 Compile, non testée — ajouter `tab5_ecran: ili9881c` dans `Tab5/user_entities.yaml` |
| **Waveshare ESP32-P4 7B** (une autre carte : 7 pouces, 1024×600) | — | ✅ Prise en charge — a tourné sur la carte de l'auteur du 14/10 au 07/11/2026, les jeux non adaptés à son écran et absents par défaut ; à installer depuis le navigateur (dès la 3.9.0) ou à compiler avec `tab5_carte: waveshare-7b` et ESPHome 2026.9.1 au moins ([Waveshare 7B](docs/waveshare-7b.md#version-française)) |

« Compile, non testée » : la CI compile cette variante à chaque changement de l'écran, et la page d'installation la propose, mais ce firmware n'a encore jamais tourné sur cette puce. La ST7121 est compilée de la même façon, et tourne sur la seconde tablette de l'auteur depuis le 21 octobre 2026 et chez un autre utilisateur depuis octobre 2026. Comment identifier votre appareil, et les retours sur la ST7121 : [révisions matérielles](docs/hardware.md#révisions-matérielles). Vous en avez essayé une ? → [Discussions](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/discussions/categories/hardware-compatibility).

## En images

**Quatre vidéos sur YouTube** (octobre et novembre 2026, sous-titres en sept langues dont le français ; celle de l'assistant vocal est parlée, les autres ont des textes à l'écran en anglais) :

| [L'écran Home Assistant en 2 minutes](https://youtu.be/75hMN49qWFM) | [L'installer en 7 étapes, sans rien compiler](https://youtu.be/6OZMtD_UTSs) |
|:-:|:-:|
| [<img src="docs/images/home-assistant-dashboard-esp32-p4-tour-video.webp" width="260" loading="lazy" alt="Vidéo : le tour d'un tableau de bord Home Assistant sur un écran mural ESP32-P4, la roue des couleurs d'une lampe ouverte">](https://youtu.be/75hMN49qWFM) | [<img src="docs/images/home-assistant-screen-install-esphome-video.webp" width="260" loading="lazy" alt="Vidéo : installer l'écran Home Assistant avec ESPHome depuis le navigateur, le blueprint et l'écran 7 pouces">](https://youtu.be/6OZMtD_UTSs) |

| [Tout se règle dans Home Assistant](https://youtu.be/4NPOXTlYok8) | [L'assistant vocal : « Okay Nabu » et questions de suite](https://youtu.be/gTc45PRshdk) |
|:-:|:-:|
| [<img src="docs/images/home-assistant-screen-settings-blueprint-video.webp" width="260" loading="lazy" alt="Vidéo : tous les réglages de l'écran Home Assistant ESP32-P4 choisis dans un blueprint Home Assistant">](https://youtu.be/4NPOXTlYok8) | [<img src="docs/images/home-assistant-voice-assistant-esp32-p4-video.webp" width="260" loading="lazy" alt="Vidéo : l'assistant vocal de l'écran mural Home Assistant ESP32-P4, une question de suite posée sans redire le mot de réveil">](https://youtu.be/gTc45PRshdk) |

La suite sur la [chaîne YouTube](https://www.youtube.com/channel/UCmMnfENr9qX3K3oTaCP0SUg), et ces vidéos réunies dans une [playlist](https://www.youtube.com/playlist?list=PLXM1iF7NzMhs).

**Photos des vrais écrans** (29 octobre 2026, la Waveshare 7B dans le thème par défaut, le Tab5 dans un thème sombre) :

| Tableau de bord Home Assistant, accueil (Waveshare ESP32-P4 7B) | Commande des lumières : la roue des couleurs d'une lampe, ouverte par un appui long |
|:-:|:-:|
| <img src="docs/images/home-assistant-dashboard-waveshare-esp32-p4-7-inch.webp" width="400" loading="lazy" alt="Tableau de bord Home Assistant sur un écran Waveshare ESP32-P4 7 pouces : heure, températures, énergie, horaires et prévisions météo à 5 jours"> | <img src="docs/images/home-assistant-dashboard-light-colour-wheel.webp" width="400" loading="lazy" alt="Commande des lumières Home Assistant sur un écran tactile ESP32-P4 : la roue des couleurs d'une lampe, avec marche, luminosité et sept couleurs"> |

| Lumières Home Assistant : luminosité et couleurs | Tableau de bord énergie Home Assistant : solaire, réseau, batterie |
|:-:|:-:|
| <img src="docs/images/home-assistant-dashboard-lights-brightness.webp" width="400" loading="lazy" alt="Tableau de bord des lumières Home Assistant sur un écran ESP32-P4 : les lampes d'une pièce, un arc de luminosité à 71 % et les couleurs"> | <img src="docs/images/home-assistant-energy-dashboard-solar-battery.webp" width="400" loading="lazy" alt="Tableau de bord énergie Home Assistant sur un écran ESP32-P4 : production solaire, consommation de la maison, réseau et batterie"> |

| Tableau de bord Home Assistant du M5Stack Tab5, thème sombre | Climatisation Home Assistant : la clim sur le M5Stack Tab5 |
|:-:|:-:|
| <img src="docs/images/home-assistant-dashboard-m5stack-tab5-dark-theme.webp" width="400" loading="lazy" alt="Tableau de bord Home Assistant du M5Stack Tab5 dans un thème bleu sombre : lecteur, heure, températures et prévisions météo à 5 jours"> | <img src="docs/images/home-assistant-dashboard-air-conditioner-m5stack-tab5.webp" width="400" loading="lazy" alt="Commande de la climatisation Home Assistant sur le M5Stack Tab5 : modes, arc de consigne à 22 °C, préréglages, ventilation et flux d'air"> |

Une [première vidéo de démo](https://www.youtube.com/watch?v=ygNhgtMffu4) (voix, tactile, télécommande TV, clim — version provisoire, juillet 2026), et un tour animé des écrans dans le thème par défaut, dessinés par le firmware lui-même sur un PC, avec des données de démonstration :

![Tour animé de l'écran Home Assistant de la M5Stack Tab5 : accueil, appareils d'une pièce, toute la maison, roue des couleurs d'une lampe, lumières, clim, plantes, énergie solaire, calendrier, télécommande TV et console](docs/images/tab5_ui_tour_fr.webp)

**Vingt et un thèmes**, chacun clair ou sombre : couleurs, formes (rayons, bordures, ombres) et polices de l'heure, de la date et des titres. Six d'entre eux sur l'accueil, dessinés par le firmware lui-même sur un PC, avec des données de démonstration : deux montrent les appareils d'une pièce, les quatre autres une alerte différente sur la carte centrale.

![Six thèmes de l'accueil de la M5Stack Tab5 dessinés par le firmware : Pixel sombre avec une alerte de fuite en cuisine, Bonbon clair avec les appareils du salon, Sorbet sombre avec une vigilance météo, Béton brut clair avec une alerte de pile faible, Zen Sumi sombre avec les appareils du jardin et Capsule clair avec de la pluie dans 10 minutes](docs/images/tab5_themes.jpg)

**Énergie** (facultatif) : jusqu'à quatre pages, d'après les capteurs choisis dans le blueprint ([énergie solaire](docs/installation/adapt-to-your-home.md#énergie-solaire-facultatif)). Ici les flux en direct, chaque ligne aussi épaisse que la puissance ; puis le soleil et la prévision du jour, la production, et le bilan du mois en kWh. Rendu avec des données de démonstration ; il tourne chez un utilisateur avec de vrais panneaux.

![Popup Énergie de la M5Stack Tab5, page des flux : solaire, maison, réseau et batterie en cercles, reliés par des lignes aussi épaisses que la puissance qui passe](docs/images/notice/energie-flux-fr.webp)

**La tablette dans Home Assistant** — le tableau de bord écrit pour vos entités par l'[étape 7](docs/installation/dashboard.md#version-française) :

![Vue Tab5 du tableau de bord de Home Assistant : luminosité, volume et écran de la tablette, réveil, rendez-vous et assistant vocal](docs/images/ha_tableau_tab5.png)

**Chaque écran dans un thème différent** — dessinés par le firmware lui-même sur un PC, avec des données de démonstration ; les jeux restent sombres quel que soit le thème :

| Accueil : la pluie dans l'heure (Bento, clair) | Toute la maison (Relief doux, clair) |
|:-:|:-:|
| <img src="docs/images/galerie/accueil-pluie-fr.webp" width="400" loading="lazy" alt="Accueil de la M5Stack Tab5 en thème Bento clair : les barres de pluie de l'heure et « Pluie modérée dans 10 mn » sur la carte centrale, prévisions pluvieuses sur 5 jours"> | <img src="docs/images/galerie/maison-fr.webp" width="400" loading="lazy" alt="Popup Maison de la M5Stack Tab5 : cinq pièces en colonnes, chaque appareil avec son état, et un bouton Éteindre les lumières"> |

| Roue d'actions (Néon calme, sombre) | Lumières (Bonbon, clair) |
|:-:|:-:|
| <img src="docs/images/galerie/roue-fr.webp" width="400" loading="lazy" alt="Roue d'actions rapides de la M5Stack Tab5 ouverte par un appui long sur la lampe d'ambiance : paliers de luminosité, marche, couleurs et détails autour du doigt"> | <img src="docs/images/galerie/lumieres-fr.webp" width="400" loading="lazy" alt="Popup Lumières de la M5Stack Tab5 : les lampes de la pièce, un arc de luminosité avec raccourcis, 3 blancs et 12 couleurs"> |

| Clim (Platine et or, sombre) | Volets (Terre cuite, clair) |
|:-:|:-:|
| <img src="docs/images/galerie/climatisation-fr.webp" width="400" loading="lazy" alt="Popup Climatisation de la M5Stack Tab5 : modes, un arc de consigne à 20 °C, presets, ventilation et flux d'air"> | <img src="docs/images/galerie/volet-fr.webp" width="400" loading="lazy" alt="Popup Volets de la M5Stack Tab5 : le volet dessiné à 45 % en mouvement, avec Ouvrir, Stop et Fermer"> |

| Capteurs de plantes (Sorbet, clair) | Énergie, les flux en direct (Ultraviolet, sombre) |
|:-:|:-:|
| <img src="docs/images/galerie/plantes-fr.webp" width="400" loading="lazy" alt="Popup Mes plantes de la M5Stack Tab5 : cinq pots avec humidité, fertilité, lumière, température et batterie, l'un est à arroser"> | <img src="docs/images/galerie/energie-fr.webp" width="400" loading="lazy" alt="Popup Énergie de la M5Stack Tab5, page Flux : solaire, maison, réseau et batterie reliés par leurs puissances en direct"> |

| Historique des températures (Almanach imprimé, clair) | Calendrier du mois (Zen Sumi, sombre) |
|:-:|:-:|
| <img src="docs/images/galerie/temperature-fr.webp" width="400" loading="lazy" alt="Popup Température de la M5Stack Tab5 : actuelle, minimum, maximum et prévision dehors, et la courbe de la serre sur 7 jours avec la prévision"> | <img src="docs/images/galerie/calendrier-fr.webp" width="400" loading="lazy" alt="Calendrier du mois de la M5Stack Tab5 : horaires de travail, férié, vacances scolaires, rendez-vous et anniversaires"> |

| Réveil (Graphite, sombre) | Assistant vocal (Obsidienne, sombre) |
|:-:|:-:|
| <img src="docs/images/galerie/reveil-fr.webp" width="400" loading="lazy" alt="Popup Réveil de la M5Stack Tab5 : l'heure du réveil sur des chiffres à faire défiler, ses onglets (jours, ouverture, sonnerie, annonces) et un bouton Tester"> | <img src="docs/images/galerie/assistant-fr.webp" width="400" loading="lazy" alt="Popup Assistant vocal de la M5Stack Tab5 : ses réglages, la demande et une réponse mise en forme avec liste et tableau"> |

| Télécommande TV (Signalisation, clair) | Réglages (Capsule, clair) |
|:-:|:-:|
| <img src="docs/images/galerie/telecommande-tv-fr.webp" width="400" loading="lazy" alt="Télécommande TV de la M5Stack Tab5 : marche, source, menu, pavé directionnel, volume, lecture et raccourcis d'applis"> | <img src="docs/images/galerie/reglages-fr.webp" width="400" loading="lazy" alt="Popup Réglages de la M5Stack Tab5, page Écran : luminosité, extinction auto et options de réveil de l'écran"> |

| Musique (Almanach, clair) | Caméras, une image fixe chacune (Craie et ardoise, sombre) |
|:-:|:-:|
| <img src="docs/images/galerie/musique-fr.webp" width="400" loading="lazy" alt="Popup Musique de la M5Stack Tab5 : le morceau en pause et sa progression, les commandes de lecture, le volume et trois lecteurs au choix"> | <img src="docs/images/galerie/cameras-fr.webp" width="400" loading="lazy" alt="Popup Caméras de la M5Stack Tab5 : sept caméras rangées par pièce, quatre d'entre elles en mosaïque (mire du rendu à la place des vraies images)"> |

| Capteurs suivis (Béton brut, clair) | Serveur IA local (Ardoise, sombre) |
|:-:|:-:|
| <img src="docs/images/galerie/suivi-fr.webp" width="400" loading="lazy" alt="Popup Suivi de la M5Stack Tab5 : quatre capteurs suivis, chacun avec sa valeur, sa variation et sa courbe sur 24 h"> | <img src="docs/images/galerie/serveur-ia-fr.webp" width="400" loading="lazy" alt="Popup Serveur IA de la M5Stack Tab5 : un serveur LLM local en ligne, son modèle, les jetons par seconde dans le temps, VRAM, température GPU, RAM et puissance"> |

| Arcade : le menu des jeux (Pixel, sombre) | Roi Noir : des échecs avec un moteur sur la tablette |
|:-:|:-:|
| <img src="docs/images/galerie/arcade-fr.webp" width="400" loading="lazy" alt="Menu Arcade de la M5Stack Tab5 avec huit jeux hors ligne dessinés avec LVGL"> | <img src="docs/images/galerie/roi-noir-fr.webp" width="400" loading="lazy" alt="Échecs Roi Noir sur la M5Stack Tab5 ESP32-P4, avec son moteur embarqué"> |

| Coureur d'Or : façon Lode Runner | Arcanoïde : un casse-briques joué en inclinant la tablette |
|:-:|:-:|
| <img src="docs/images/galerie/coureur-dor-fr.webp" width="400" loading="lazy" alt="Coureur d'Or, un jeu de plateformes façon Lode Runner, sur la M5Stack Tab5"> | <img src="docs/images/galerie/arcanoide-fr.webp" width="400" loading="lazy" alt="Arcanoïde, un casse-briques sur la M5Stack Tab5, joué en inclinant la tablette"> |

Les jeux sont expérimentaux, un premier jet écrit par l'IA pour voir ce que LVGL et le C++ peuvent faire sur un ESP32-P4 : ils marchent, sans être finis ([les huit consoles](docs/arcade.md)).

## Documentation

Chaque page est en français et en anglais : [installer](docs/installation/README.md#version-française), [se servir de la tablette](docs/notice/README.md#version-française), [la régler](docs/installation/settings.md#version-française), [réparer](docs/troubleshooting.md#version-française), [comprendre comment elle est faite](docs/architecture.md#version-française) — la liste complète est sur la [page de la documentation](docs/README.md#version-française).

Dans ce dépôt : [`AGENTS.md`](AGENTS.md) pour les agents de code IA (en anglais), [`CARTOGRAPHIE_TAB5.md`](CARTOGRAPHIE_TAB5.md) (chaque fichier et ses dépendances), [`Tab5/README.md`](Tab5/README.md) (les fichiers ESPHome et les services Home Assistant), [`HomeAssistant_Config/README.md`](HomeAssistant_Config/README.md) (les packages), [`CONTRIBUTING.md`](CONTRIBUTING.md#version-française) et le [`CHANGELOG.md`](CHANGELOG.md).

## Communauté

- **Questions, idées, votre installation** → [Discussions](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/discussions) (Q&A, Ideas, Show and tell, Hardware compatibility).
- **Quelque chose ne marche pas ?** → [ouvrez une issue](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/issues/new/choose) ; le formulaire demande votre puce écran et votre version d'ESPHome.
- **Faille de sécurité** → à signaler en privé, voir [`SECURITY.md`](SECURITY.md#version-française).
- **Contribuer** → [`CONTRIBUTING.md`](CONTRIBUTING.md#version-française) et le [code de conduite](CODE_OF_CONDUCT.md#version-française).

**Merci** à [@husyildiz](https://github.com/husyildiz), dont les idées, les essais et les retours dans la [discussion #278](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/discussions/278) ont amené la page d'installation pas à pas, l'écran en turc, la météo hors de France, la batterie d'origine, le popup Énergie pour les panneaux solaires et la météo choisie dans le blueprint.

**Merci** aussi à Jiuhai ([@poonjh](https://github.com/poonjh)), qui construit des appareils sur Tab5 avec ESP-IDF : ses questions et ses notes sur le schéma dans la [discussion #369](https://github.com/Axellum/M5-Tab5-ESPHome-LVGL/discussions/369) ont corrigé les pages sur le co-processeur Wi-Fi et sur l'alimentation, et ces notes sont résumées dans la [référence matérielle](docs/hardware.md#version-française).

Anglais ou français, les deux sont bienvenus.

## Note personnelle

Ayant beaucoup entendu parler de l'IA pour le codage, j'ai voulu voir par moi-même ce qu'elle donnait. Mon vieil écran Nextion (plutôt météo, déjà avec ESPHome et Météo-France) commençait à dater : je l'ai renouvelé, avec bien plus de domotique, sur un écran bien plus puissant, et avec l'IA qui écrit le code de bout en bout. Pourquoi un écran, ce qu'il devait faire, et comment il a grandi : [l'histoire](docs/story.md#version-française).

## Note sur l'IA

Ce projet fait partie d'une exploration personnelle de ce que les outils IA peuvent produire quand on leur laisse la pleine paternité d'un projet technique. Le code, les décisions d'architecture et la plupart de cette documentation ont été générés par des IA (Antigravity/Gemini, DeepSeek, MiniMax, Z.ai, Claude, Cursor). Mon rôle : définir le but, tester, refuser, orienter — plus architecte qu’auteur ligne à ligne. Le but n’a jamais été un produit fini — c’était d’apprendre, de voir où l’IA aide et où elle coince, et de partager ce qui en est sorti.

Si quelque chose dans le code est bizarre, c'est peut-être un quirk d'IA. Si quelque chose marche étonnamment bien, même réponse.

→ Plus de contexte : [`docs/related_projects.md`](docs/related_projects.md)
