Repository navigation
Conversation
DS18B20 sensors are only accurate to +/-0.5 C and pipe-mounted sensors add their own error, which makes temperature differences between sensors (e.g. DHW outlet vs. circulation return) unreliable. This adds a calibration offset per sensor, in 0.1 C steps (range -10.0..+10.0). - web UI: new "Offset" column in the 1-wire sensor table - HTTP: /dallasoffset?<address>=<value> - MQTT: set via <base>/1wire/<address>/offset/set, state published (retained) on <base>/1wire/<address>/offset - /json: new "Offset" field per sensor - the offset is applied to the raw reading before the delta filter, so MQTT, web, JSON and rules (ds18b20#...) all see the corrected value; the 85.00 C power-on-reset check still uses the raw value - changing the offset shifts the last known value immediately and republishes it, no need to wait for the next reading - offsets are stored in /dallasoffset.json (separate from dallas.json so a downgrade to an older firmware keeps reading the aliases) - removing a sensor also clears its retained offset topic Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012YRBRe8cXeQBVpjaXByNeG
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.
DS18B20 sensors are only accurate to ±0.5 °C, and pipe-mounted sensors add their own error. That makes temperature differences between sensors (e.g. DHW outlet vs. circulation return) unreliable. This PR adds a per-sensor calibration offset in 0.1 °C steps (range −10.0…+10.0).
Changes
/dallasoffset?<address>=<value><base>/1wire/<address>/offset/set(accepts0.3and0,3); state published (retained) on<base>/1wire/<address>/offset/json: newOffsetfield per sensords18b20#...) all see the corrected value. The 85.00 °C power-on-reset check still uses the raw value./dallasoffset.json, separate fromdallas.json, so a downgrade to older firmware keeps reading the aliases.Testing
/jsonreturns theOffsetfield1wire sensor <address> offset set to <value>Screenshots