mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 17:05:21 +01:00
fix vbus sensor offsets (#4952)
This commit is contained in:
parent
2ffd430b0b
commit
407b5e199e
1 changed files with 2 additions and 2 deletions
|
@ -207,9 +207,9 @@ void DeltaSolCSPlusSensor::handle_message(std::vector<uint8_t> &message) {
|
||||||
if (this->heat_quantity_sensor_ != nullptr)
|
if (this->heat_quantity_sensor_ != nullptr)
|
||||||
this->heat_quantity_sensor_->publish_state((get_u16(message, 30) << 16) + get_u16(message, 28));
|
this->heat_quantity_sensor_->publish_state((get_u16(message, 30) << 16) + get_u16(message, 28));
|
||||||
if (this->time_sensor_ != nullptr)
|
if (this->time_sensor_ != nullptr)
|
||||||
this->time_sensor_->publish_state(get_u16(message, 12));
|
this->time_sensor_->publish_state(get_u16(message, 22));
|
||||||
if (this->version_sensor_ != nullptr)
|
if (this->version_sensor_ != nullptr)
|
||||||
this->version_sensor_->publish_state(get_u16(message, 26) * 0.01f);
|
this->version_sensor_->publish_state(get_u16(message, 32) * 0.01f);
|
||||||
if (this->flow_rate_sensor_ != nullptr)
|
if (this->flow_rate_sensor_ != nullptr)
|
||||||
this->flow_rate_sensor_->publish_state(get_u16(message, 38));
|
this->flow_rate_sensor_->publish_state(get_u16(message, 38));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue