Add ESP32 ESPHome port with Home Assistant integration#7
Open
andi-christ wants to merge 1 commit intoveebch:mainfrom
Open
Add ESP32 ESPHome port with Home Assistant integration#7andi-christ wants to merge 1 commit intoveebch:mainfrom
andi-christ wants to merge 1 commit intoveebch:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ESP32 / ESPHome port
This adds an ESPHome-based alternative to the Pico W
webtime.pyversion, using a standard ESP32 DevKit board.What's included
esphome/esp32-esphome.yaml— ESPHome configuration for ESP32esphome/secrets_example.yaml— credentials templateesphome/README.md— setup and usage documentationHow 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.txtandlastpulseat.txt.What this removes the need for
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.