Skip to content

Add ESP32 ESPHome port with Home Assistant integration#7

Open
andi-christ wants to merge 1 commit intoveebch:mainfrom
andi-christ:main
Open

Add ESP32 ESPHome port with Home Assistant integration#7
andi-christ wants to merge 1 commit intoveebch:mainfrom
andi-christ:main

Conversation

@andi-christ
Copy link
Copy Markdown

ESP32 / ESPHome port

This adds an ESPHome-based alternative to the Pico W webtime.py version, using a standard ESP32 DevKit board.

What's included

  • esphome/esp32-esphome.yaml — ESPHome configuration for ESP32
  • esphome/secrets_example.yaml — credentials template
  • esphome/README.md — setup and usage documentation

How it works

The H-bridge or relay wiring is identical to the Pico version — GPIO 13 and 14 connect in exactly the same way. The only change is the microcontroller. ESPHome handles WiFi, time sync (via Home Assistant or SNTP), OTA updates, and a built-in web interface at http://secondary-clock.local/.

Clock face position and polarity state are persisted to ESP32 NVS flash and survive reboots, replacing firstruntime.txt and lastpulseat.txt.

What this removes the need for

  • DS3231 RTC module — time comes from Home Assistant or SNTP
  • Microdot library — ESPHome provides the web server natively
  • Thonny / ampy — firmware is flashed via ESPHome CLI and updated OTA thereafter

Home Assistant integration

Once adopted, the device exposes sensors, number sliders, and buttons for setting the clock face position and advancing the mechanism manually. Moving either slider automatically pauses auto-advance; pressing Synchronise resumes it.

No changes to existing files

This is purely additive. The MicroPython files and existing README are untouched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant