Skip to content

Add AtomHeart Eclair scale support#41

Open
AtomHeart-Lang wants to merge 1 commit into
tatemazer:mainfrom
AtomHeart-Lang:codex/eclair-scale-support
Open

Add AtomHeart Eclair scale support#41
AtomHeart-Lang wants to merge 1 commit into
tatemazer:mainfrom
AtomHeart-Lang:codex/eclair-scale-support

Conversation

@AtomHeart-Lang
Copy link
Copy Markdown

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.
稿定设计-1
稿定设计-2

Detail logs:

  • 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

- 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
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