1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-16 06:45:48 +00:00

BedJet: expose the outlet temperature on the climate and as a sensor (#6633)

This commit is contained in:
Alex Boyd
2024-05-15 17:31:08 -06:00
committed by GitHub
parent 1f29023c92
commit 773951d85e
12 changed files with 168 additions and 9 deletions

View File

@@ -157,5 +157,11 @@ bool BedjetCodec::compare(const uint8_t *data, uint16_t length) {
return explicit_fields_changed;
}
/// Converts a BedJet temp step into degrees Celsius.
float bedjet_temp_to_c(uint8_t temp) {
// BedJet temp is "C*2"; to get C, divide by 2.
return temp / 2.0f;
}
} // namespace bedjet
} // namespace esphome