Skip to the content
2 layers60 × 30 mmBattery carrier, the printed circuit board in 3D

A battery-powered IoT calendar display that shows your Home Assistant calendar events on a large 12.48" tri-color e-paper screen.

Size
60 × 30 mm
Copper layers
2
Thickness
1.6 mm
Parts
13
Nets
6
Pads
29
Tracks, vias
25, 4
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
24 Mar 2026
Updated
30 Aug 2026

Overview

Battery carrier is an open-source printed circuit board by emilecantin, from the emilecantin/ha-eink-calendar repository on GitHub. It is a 2-layer board of 60 × 30 mm with 13 parts on 6 nets, routed with 25 tracks and 4 vias.

Its parts include 3 capacitors, 2 resistors, 2 connectors, 1 IC and 1 switch. It belongs with the power boards and the ESP32 boards of this library.

README

README.md

E-Ink Calendar Display

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

A battery-powered IoT calendar display that shows your Home Assistant calendar events on a large 12.48" tri-color e-paper screen.

Features

  • Large e-paper display — Waveshare 12.48" tri-color (black/white/red)
  • Battery optimized — Deep sleep between updates, ETag caching to skip unnecessary refreshes
  • Native HA integration — Custom component with Python renderer, no external server needed
  • Device discovery — ESP32 auto-discovers HA via mDNS, appears as a discovered device
  • Weather integration — Shows daily forecast from any HA weather entity
  • Waste collection — Icon-only display for waste/recycling calendars
  • Multi-language — French and English, configurable per device
  • Multi-device — Each ESP32 gets its own config entry with independent settings

Hardware Requirements

Installation

Home Assistant Integration

Install via HACS using the badge above, or manually:

  1. Copy custom_components/eink_calendar/ to your HA config/custom_components/ directory
  2. Restart Home Assistant
  3. Go to Settings > Devices & Services > Add Integration
  4. Search for "E-Ink Calendar" and follow the setup wizard

Configuration

Each device is configured through the HA UI with these options:

OptionDescription
CalendarsWhich calendar entities to display with full event details
Waste CalendarsCalendar entities shown as icons only (e.g., garbage/recycling)
LanguageDisplay language — French or English
LayoutLandscape (recommended) or Portrait
Show LegendShow calendar icon legend at the bottom
Weather EntityOptional weather entity for daily forecast
Refresh IntervalHow often the ESP32 checks for updates (minutes)
Custom FontsOptional paths to custom TTF fonts (Regular, Medium, Bold)

All options can be changed later in Settings > Devices & Services > E-Ink Calendar > Configure.

Entities Created

Each device creates:

EntityDescription
camera.{name}_previewFull-color PNG preview of the calendar
image.{name}_black_layer_topTop half of the black bitmap layer
image.{name}_black_layer_bottomBottom half of the black bitmap layer
image.{name}_red_layer_topTop half of the red bitmap layer
image.{name}_red_layer_bottomBottom half of the red bitmap layer
sensor.{name}_last_updateTimestamp of the last render
sensor.{name}_last_checkinTimestamp of the last ESP32 check-in

ESP32 Firmware

The firmware is in Arduino/epcal/ and uses PlatformIO.

Building and Uploading

bash
cd Arduino/epcal
pio run -t upload

First-Time Setup

  1. Power on the ESP32 — the display shows QR codes for WiFi and config URL
  2. Connect your phone to the EinkCal-Setup WiFi network
  3. Open http://192.168.4.1 or scan the config QR code
  4. Enter your WiFi credentials and click Save

The ESP32 will automatically:

  • Connect to WiFi
  • Discover Home Assistant via mDNS
  • Announce itself — a "Discovered" card appears in Settings > Integrations
  • After you configure it in HA, the calendar displays automatically

To re-enter setup mode, hold the BOOT button for 2 seconds during startup.

How Updates Work

  1. ESP32 wakes from deep sleep
  2. Sends a check request to HA with its current ETag
  3. HA fetches fresh calendar/weather data and renders the bitmap
  4. If the render changed → ESP32 downloads new bitmaps and refreshes the display
  5. If unchanged → HA returns 304, ESP32 skips the download (saves battery)
  6. ESP32 goes back to deep sleep for the configured refresh interval

The refresh interval is propagated from HA to the ESP32 via HTTP headers, so changing it in the HA config takes effect on the next check-in.

Display Layout

Landscape (Recommended) — 1304×984

text
+---------------------------+--------------------------------------------------+
|                           |  LUN  |  MAR  |  MER  |  JEU  |  VEN  |  SAM  |
|  Today                    |  Weather icon + hi/lo temps                      |
|  Day name + date          |  Events for each day                             |
|  Weather + events         |                                                  |
|                           |--------------------------------------------------|
|  Calendar legend          |  Upcoming — events beyond the 6-day view         |
+---------------------------+--------------------------------------------------+

Architecture

text
Home Assistant
  ├── Calendar entities (data source)
  ├── Weather entity (optional)
  └── E-Ink Calendar integration
        ├── Coordinator (fetches data on ESP32 check-in)
        ├── Renderer (generates bitmap from events + weather)
        ├── Announce API (device discovery, no auth)
        └── Bitmap API (serves layers, MAC-based auth)

ESP32
  ├── mDNS discovery → finds HA
  ├── Announce → registers with HA
  ├── Check → triggers render, gets ETag
  ├── Fetch → downloads changed bitmaps
  └── Display → renders on e-paper, deep sleeps

API Endpoints

EndpointAuthDescription
POST /api/eink_calendar/announceNoneDevice discovery and status check
GET /api/eink_calendar/bitmap/{entry_id}/{layer}X-MAC headerBitmap serving
GET /api/eink_calendar/bitmap/{entry_id}/checkX-MAC headerETag check (triggers re-render)

Troubleshooting

Display shows "M1 Busy" and hangs

Ensure DEV_ModuleInit() is called before EPD_12in48B_Init() in the firmware.

ESP32 can't find Home Assistant

  • Ensure mDNS is working on your network (HA must be discoverable via _home-assistant._tcp)
  • As a fallback, enter the HA URL manually in the WiFi setup portal
  • Both devices must be on the same network/VLAN

No events showing

  • Ensure at least one calendar is selected in the integration options
  • Check that the calendar entities have events in the displayed date range
  • Check HA logs for "Calendar entities not ready" errors after restart (normal — HA retries automatically)

Calendar shows wrong language

Change the Language setting in the device options (Settings > Devices & Services > E-Ink Calendar > Configure).

Weather not showing

  • Some weather integrations don't include today in their daily forecast — the integration falls back to current conditions automatically
  • Verify the weather entity has data in Developer Tools > States

Battery Life

With a 2000mAh battery and 15-minute refresh interval:

  • Most check-ins result in 304 Not Modified (~5s active time)
  • Full bitmap refresh only when calendar data changes (~15s active time)
  • Expected battery life: weeks to months depending on how often events change

Development

Running Tests

bash
cd custom_components/eink_calendar/tests
./run_tests.sh

64 unit tests covering event processing, filtering, weather utilities, rendering, and visual regression.

You can filter tests with pytest arguments:

bash
./run_tests.sh -k "weather"        # Only weather tests
./run_tests.sh -k "process_events" # Only event processing tests

Test Environment

bash
docker-compose up  # Starts HA with the component mounted

Project Structure

text
epcal/
├── Arduino/epcal/                  # ESP32 firmware (PlatformIO)
│   └── src/
│       ├── epcal.ino              # Main sketch (mDNS + announce + display)
│       ├── config.*               # NVS storage for HA URL, endpoints
│       ├── display.*              # E-paper display driver
│       └── http_client.*          # HTTP client (announce + ETag)
├── custom_components/eink_calendar/ # Home Assistant custom component
│   ├── renderer/                   # Python calendar renderer
│   │   ├── i18n.py                # French/English translations
│   │   ├── section_renderers/     # Today, week, upcoming panels
│   │   └── renderer.py           # Main render pipeline
│   ├── tests/                     # Unit and integration tests
│   ├── config_flow.py            # Discovery + manual config flow
│   ├── coordinator.py            # Data coordinator (on-demand refresh)
│   ├── http_views.py             # Announce + bitmap API
│   └── services.py               # trigger_render service
├── docs/                          # Technical documentation
└── docker-compose.yml             # HA test environment

Contributing

Issues and pull requests welcome at https://github.com/emilecantin/ha-eink-calendar

License

MIT

Parts

13
QtyValueFootprintReferences
2100k 1%Resistor_SMD:R_0805_2012MetricR1, R2
2MountingHole_2.5mm_Pad_TopBottomMountingHole:MountingHole_2.5mm_Pad_TopBottomH1, H2
1100nFCapacitor_SMD:C_0805_2012MetricC1
110uFCapacitor_SMD:C_0805_2012MetricC3
118650Connector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_VerticalJ1
1220uF 10VCapacitor_SMD:CP_Elec_6.3x3.9C2
1SPSTButton_Switch_THT:SW_DIP_SPSTx01_Slide_9.78x4.72mm_W7.62mm_P2.54mmSW1
1TP4056 moduleepcal:TP4056_Module_03962AU1
1VSENSETestPoint:TestPoint_THTPad_1.5x1.5mm_Drill0.7mmTP2
1VSWTestPoint:TestPoint_THTPad_1.5x1.5mm_Drill0.7mmTP1
1to ESP32Connector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ2

Similar boards

  • 2 layers40 × 20 mmUsb uart, the printed circuit board in 3D

    Usb uart

    earthtojake/text-to-cad

    Design physical products with AI

    13 parts26kMIT
  • 2 layers35 × 29 mmMagSpoofTC, the printed circuit board in 3D

    MagSpoofTC

    samyk/magspoof

    A portable device that can spoof/emulate any magnetic stripe, credit card or hotel card "wirelessly", even on standard magstripe (non-NFC/RFID) readers.

    13 parts4.2k
  • 2 layers20.6 × 23.6 mmAO-03 signal amplifier, the printed circuit board in 3D

    AO-03 signal amplifier

    fossasia/pslab-scripts

    Pocket Science Lab - Scripts for Sensor Experiments

    13 parts1.6kApache-2.0
  • 2 layers47 × 35.6 mmMX7-C-35PL C11, the printed circuit board in 3D

    MX7-C-35PL C11

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    13 parts1.2k
  • 2 layers95 × 95 mmCube batteryboard, the printed circuit board in 3D

    Cube batteryboard

    willem-pennings/balancing-cube

    A cube that balances itself in a corner or edge using reaction wheels

    13 parts1.1kGPL-3.0
  • 2 layers15.2 × 20.3 mmPt100stick, the printed circuit board in 3D

    Pt100stick

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    13 parts1.1kGPL-3.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    13 parts1kGPL-3.0

Questions

How big is the Battery carrier PCB?

It measures 60 × 30 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Battery carrier use?

13 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Battery carrier KiCad files?

From the emilecantin/ha-eink-calendar repository on GitHub, at the commit this page was made from: the board is hardware/battery-carrier/battery-carrier.kicad_pcb and its schematic hardware/battery-carrier/battery-carrier.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Battery carrier design in my own project?

Its repository states no licence, so its author keeps all rights: ask emilecantin before reusing the design.