1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add MCP9808 temperature sensor (#1169)

* Add MCP9808 temperature sensor

* Change from component to sensor; code fixes

- Change from component to sensor
- Change magic numbers to constants

* Fix incorrect logging levels

* Add precision to debug log

* Fix logging level

Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>

* Fix bug with comparison to NAN

Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
Harald Nagel
2020-10-26 11:24:26 -07:00
committed by GitHub
parent d97a9bf8e8
commit adb51cf733
5 changed files with 125 additions and 0 deletions

View File

@@ -757,6 +757,9 @@ sensor:
aqi:
name: "AQI"
calculation_type: "CAQI"
- platform: mcp9808
name: "MCP9808 Temperature"
update_interval: 15s
esp32_touch:
setup_mode: False