

Battery carrier
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.mdE-Ink Calendar Display
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
- Waveshare E-Paper ESP32 Driver Board (or compatible ESP32)
- Waveshare 12.48" e-Paper Module (B) — tri-color version
- USB cable for programming
- Optional: battery for portable operation
Installation
Home Assistant Integration
Install via HACS using the badge above, or manually:
- Copy
custom_components/eink_calendar/to your HAconfig/custom_components/directory - Restart Home Assistant
- Go to Settings > Devices & Services > Add Integration
- Search for "E-Ink Calendar" and follow the setup wizard
Configuration
Each device is configured through the HA UI with these options:
| Option | Description |
|---|---|
| Calendars | Which calendar entities to display with full event details |
| Waste Calendars | Calendar entities shown as icons only (e.g., garbage/recycling) |
| Language | Display language — French or English |
| Layout | Landscape (recommended) or Portrait |
| Show Legend | Show calendar icon legend at the bottom |
| Weather Entity | Optional weather entity for daily forecast |
| Refresh Interval | How often the ESP32 checks for updates (minutes) |
| Custom Fonts | Optional 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:
| Entity | Description |
|---|---|
camera.{name}_preview | Full-color PNG preview of the calendar |
image.{name}_black_layer_top | Top half of the black bitmap layer |
image.{name}_black_layer_bottom | Bottom half of the black bitmap layer |
image.{name}_red_layer_top | Top half of the red bitmap layer |
image.{name}_red_layer_bottom | Bottom half of the red bitmap layer |
sensor.{name}_last_update | Timestamp of the last render |
sensor.{name}_last_checkin | Timestamp of the last ESP32 check-in |
ESP32 Firmware
The firmware is in Arduino/epcal/ and uses PlatformIO.
Building and Uploading
cd Arduino/epcal
pio run -t uploadFirst-Time Setup
- Power on the ESP32 — the display shows QR codes for WiFi and config URL
- Connect your phone to the EinkCal-Setup WiFi network
- Open
http://192.168.4.1or scan the config QR code - 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
- ESP32 wakes from deep sleep
- Sends a check request to HA with its current ETag
- HA fetches fresh calendar/weather data and renders the bitmap
- If the render changed → ESP32 downloads new bitmaps and refreshes the display
- If unchanged → HA returns 304, ESP32 skips the download (saves battery)
- 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
+---------------------------+--------------------------------------------------+
| | 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
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 sleepsAPI Endpoints
| Endpoint | Auth | Description |
|---|---|---|
POST /api/eink_calendar/announce | None | Device discovery and status check |
GET /api/eink_calendar/bitmap/{entry_id}/{layer} | X-MAC header | Bitmap serving |
GET /api/eink_calendar/bitmap/{entry_id}/check | X-MAC header | ETag 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
cd custom_components/eink_calendar/tests
./run_tests.sh64 unit tests covering event processing, filtering, weather utilities, rendering, and visual regression.
You can filter tests with pytest arguments:
./run_tests.sh -k "weather" # Only weather tests
./run_tests.sh -k "process_events" # Only event processing testsTest Environment
docker-compose up # Starts HA with the component mountedProject Structure
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 environmentContributing
Issues and pull requests welcome at https://github.com/emilecantin/ha-eink-calendar
License
MIT
Parts
13| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 100k 1% | Resistor_SMD:R_0805_2012Metric | R1, R2 |
| 2 | MountingHole_2.5mm_Pad_TopBottom | MountingHole:MountingHole_2.5mm_Pad_TopBottom | H1, H2 |
| 1 | 100nF | Capacitor_SMD:C_0805_2012Metric | C1 |
| 1 | 10uF | Capacitor_SMD:C_0805_2012Metric | C3 |
| 1 | 18650 | Connector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_Vertical | J1 |
| 1 | 220uF 10V | Capacitor_SMD:CP_Elec_6.3x3.9 | C2 |
| 1 | SPST | Button_Switch_THT:SW_DIP_SPSTx01_Slide_9.78x4.72mm_W7.62mm_P2.54mm | SW1 |
| 1 | TP4056 module | epcal:TP4056_Module_03962A | U1 |
| 1 | VSENSE | TestPoint:TestPoint_THTPad_1.5x1.5mm_Drill0.7mm | TP2 |
| 1 | VSW | TestPoint:TestPoint_THTPad_1.5x1.5mm_Drill0.7mm | TP1 |
| 1 | to ESP32 | Connector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_Vertical | J2 |
Similar boards
- 2 layers40 × 20 mm

- 2 layers74.9 × 49.5 mm

- 2 layers35 × 29 mm

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 mm

AO-03 signal amplifier
fossasia/pslab-scripts
Pocket Science Lab - Scripts for Sensor Experiments
13 parts1.6kApache-2.0 - 2 layers47 × 35.6 mm

- 2 layers95 × 95 mm

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 mm

Pt100stick
VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group
13 parts1.1kGPL-3.0 - 2 layers53.9 × 23.2 mm

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.