esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
401 stars 26 forks source link

Convert honeywellabp2_i2c to generic I2C DP/Temperature component #2716

Open Legot opened 3 weeks ago

Legot commented 3 weeks ago
There are several I2C and SPI based differential pressure sensors that operate with simmilar parameters to the Honeywell ABP2 sensors, but the lower cost variants tend to only have lower resolution (14-bit pressure, 11-bit temperature) sensors onboard as opposed to the honeywell 24-bit sensors. Adding support to the component for setting the sensor resolution would enable the use of lower cost sensors available from several other manufacturers. https://github.com/esphome/esphome/tree/dev/esphome/components/honeywellabp2_i2c **Describe the problem you have/What new integration you would like**

The existing honeywellabp2_i2c and honeywellabp2 components only support 24-bit Pressure and 24-bit Temperature Sensors.

I would like to see additional optional lines in the YAML configuration where the user can enter the Pressure Sensor and Temperature sensor resolution (in bits).

The additional lines would adjust the max/min counts in the Pressure Transfer function calculation, the maximum counts value in the temperature calculation, and adjust the temperature and pressure counter encoding to match the sensor resolution.

Please describe your use case for this integration and alternatives you've tried:

I have modified these fixed values manually via an external component to test the same code with the MS4525DO differential pressure sensor with some success, but making these user defined variables via the esphome yaml would make this more available to more users.

I do not have the coding ability to implement this myself.

Additional context

Differential pressure sensors sold for drone autopilot systems as airspeed sensors and are commonly available in pressure ranges that would make them usable for air filter DP monitoring. These sensors are often lower resolution, but available in much narrower pressure ranges, and at much lower costs than the Honeywell sensors. Examples include:

MEAS Spec series (e.g. MS4525DO, MS5525) mRo I2C Airspeed Sensor JST-GH MS4525DO (mRo store) Digital Differential Airspeed Sensor Kit (Drotek). EagleTree Airspeed MicroSensor V3 (eagletreesystems) Sensirion SDP3x Airspeed Sensor Kit Holybro Digital Air Speed Sensor