Skip to content

conf(CONF-BUILD-016): per-board TEMPERATURE_OFFSET, mushroom +1.3 °C - #98

Open
arcadien wants to merge 8 commits into
masterfrom
conf/temperature-offset
Open

arcadien wants to merge 8 commits into
masterfrom
conf/temperature-offset

Conversation

@arcadien

@arcadien arcadien commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Why

The mushroom unit's BME280 read about 1.3 °C below four reference thermometers placed next to it (Home Assistant history 2026-11-25 to 2026-11-28). That is within the sensor's tolerance, and no bug was found in the read/compensation/encoding chain.

What

  • CONF-BUILD-016: TEMPERATURE_OFFSET build flag (°C, decimal, can be negative, default 0) added to a temperature that was actually read (BMx280, or a successful DS18B20 read) before the Oregon/Lacrosse encoders round and clamp it. A failed read still sends no frame.
  • CONF-BUILD-014: mushroom sets TEMPERATURE_OFFSET=1.3.
  • Tests: the cycle test's expected frame includes the offset; native_cycle_oregon_divider (+1.3), native_cycle_lacrosse (-0.5), new native_cycle_ds18b20 (failed read → no frame). CI and CLAUDE.md run the new env.
  • Architecture, environments and build-flags docs updated.

Checks

  • Full native suite: 125/125 on 7 environments.

  • All 8 AVR targets build; mushroom flash 5956/8192 B.

  • clang-format 18.1.8 clean.

  • docs/debugging.md: RSP_NO_TARGET_POWER pitfall (ISP ribbon reversed on the Dragon side).

Bench

  • mushroom flashed from this branch on 2026-11-29 (5956 B written and verified, fuses E:FF H:DF L:62).
  • Pending: check in HA after 24 h that the gap to the references is near 0.

🤖 Generated with Claude Code

arcadien and others added 8 commits November 28, 2026 22:24
…ture per board

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…re in ReadEnvironment, mushroom row shows 1.3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ushroom environment entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gon, -0.5 Lacrosse), no frame on failed DS18B20 read

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… mushroom sets 1.3

Default 0 in config.h; applied to the BMx280 reading and to a successful
DS18B20 read only, so a failed read still sends no frame. CI runs
native_cycle_ds18b20.

Requirements: CONF-BUILD-016, CONF-BUILD-014
Checks: lint (clang-format 18.1.8), build mushroom, full native suite (125 passed)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…side

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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