Skip to content

fix(cooling): keep sensor id on readings even when the tag is unreadable#117

Merged
tekwani merged 1 commit into
tetherto:developfrom
paragmore:feat/cooling-sensor-in-null-readings
Jul 2, 2026
Merged

fix(cooling): keep sensor id on readings even when the tag is unreadable#117
tekwani merged 1 commit into
tetherto:developfrom
paragmore:feat/cooling-sensor-in-null-readings

Conversation

@paragmore

@paragmore paragmore commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

On Cooling → Miners → Circuit 2 (and the analogous cards), summary fields that map to a single sensor collapsed to null when the tag wasn't readable, so the UI lost the sensor label.

Adds a sensorReading helper that returns { value, unit, sensor } whenever a sensor is configured — value: null when the tag isn't readable — and null only when no sensor is configured. Applied to:

  • miners C2 pre_hx_temp, post_hx_temp, tower_level
  • hvac C2 tower_level
  • hvac C1 system_pressure

The sensor value is the configured device id, consistent with the existing sensor tag form elsewhere in the response (e.g. supply/return sensors).

Single-sensor summary fields collapsed to null when the tag was not
readable, dropping the sensor label. Add a sensorReading helper that
returns { value, unit, sensor } whenever a sensor is configured (value
null when unreadable), and null only when no sensor is set. Applied to
miners C2 pre/post-HX and tower level, HVAC C2 tower level, and HVAC C1
system pressure.
@tekwani tekwani merged commit a0d0cbd into tetherto:develop Jul 2, 2026
6 checks passed
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.

4 participants