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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user