Add AtomHeart Eclair scale support#41
Open
AtomHeart-Lang wants to merge 1 commit into
Open
Conversation
- Add ECLAIR scale type with BLE UUIDs (WRITE_CHAR_ECLAIR, READ_CHAR_ECLAIR)
- Add Eclair command arrays: TARE, START_TIMER, STOP_TIMER, RESET_TIMER
- Add calculateXOR() and readInt32LittleEndian() helpers
- Add Eclair detection in init() via device name prefix and characteristic discovery
- Skip IDENTIFY/NOTIFICATION_REQUEST for Eclair (not needed)
- Add Eclair weight packet parsing ('W' header, int32 LE, XOR validation)
- Skip heartbeat for Eclair (not required)
- Add Eclair to scale compatibility table and checklists
- Bump version to 3.4.0
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.
Hi,
This PR adds support for the AtomHeart Eclair Bluetooth scale.
A quick introduction: AtomHeart is a solo studio I (OPC) founded in 2022, focused on coffee smart hardware. The Eclair scale launched in the Chinese market in 2024. Being a one-person operation with an uncompromising pursuit of performance has kept production limited — it's only been available in China so far — but we're planning to bring it to more markets this year. The Eclair already works with Bluetooth-enabled espresso machines like Gaggiuino and Decent, and the shotStopper project is fantastic — we'd love for Eclair to be part of it.
What this PR does:
Adds ECLAIR scale type with full BLE protocol support (service UUID, characteristics, XOR validation)
Implements tare, startTimer, stopTimer, and resetTimer with Eclair-specific 3-byte command packets
Parses weight data from Eclair's 10-byte notification packets (W header, int32 LE weight in mg, uint32 timer in ms)
Skips identify/notification-request and heartbeat for Eclair (not required by the protocol)
Updates the compatibility table and bumps the library version to 3.4.0
Testing: All four commands and the full shotStopper call chain (resetTimer → startTimer → tare → … → stopTimer) have been verified on an ESP32-S3 Dev Module with BLE connection stability throughout.
Happy to answer any questions or make adjustments — feel free to reach out here.


Detail logs: