MCP9808 Temperature Sensor

The MCP9808 Temperature sensor allows you to use your MCP9808 (datasheet, Adafruit) sensors with ESPHome. The I²C Bus is required to be set up in your configuration for this sensor to work.

../../_images/mcp9808-full.jpg

MCP9808 Temperature Sensor. Image by Adafruit.

# Example configuration entry
sensor:
  - platform: mcp9808
    name: "Living Room Temperature"
    update_interval: 60s

Configuration variables:

  • temperature (Required): The information for the temperature sensor.

    • name (Required, string): The name for the temperature sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • address (Optional, int): Manually specify the I²C address of the sensor. Defaults to 0x18.

  • update_interval (Optional, Time): The interval to check the sensor. Defaults to 60s.