Closed tvwerkhoven closed 3 years ago
On second thought, it seems there is a ~16 degree offset, not 4.0x.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Installed from source via setup.py as root.
ESP (ESP32/ESP8266, Board/Sonoff):
WeMos D1 mini pro with modules: BME280 (I2C), OLED (I2C), MH-Z19B CO2 (UART), SDS fine-dust (UART)
ESPHome version (latest production, beta, dev branch)
v1.16.0b2
Affected component:
mcp9808 (dev branch docs not available online)
Description of problem: The mcp9808 sensor reports 4.0x too low temperatures when compared to a BME280 on the same board. I can verify the BME280 is correct as it's more like 20deg than 5deg in my room ;)
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried:
(raw_temp & 0x0FFF)/16.0f
from original Adafruit library gives identical value, so no typos with masking etc.Details of 2. Adding the following code to
update()
of the component:Gives