MPR121 Capacitive Touch Sensor

The mpr121 sensor platform allows you to use your MPR121 (datasheet, Adafruit) Capacitive Touch Sensor with esphomelib. The I²C is required to be set up in your configuration for this sensor to work.


MPR121 Capacitive Touch Sensor. Image by Adafruit.

# Example configuration entry
  id: mpr121_component
  address: 0x5A

  - platform: mpr121
    id: touch_key0
    channel: 0
    name: "Touch Key 0"

Configuration variables:

The configuration is made up of two parts: The central component, and individual Binary sensors per channel.

Base Configuration:

  • address (Optional, integer): The i2c address of the sensor. Defaults to 0x5A.
  • id (Optional, ID): Set the ID of this sensor.

Binary Sensor Configuration:

  • name (Optional, string): The name for the binary sensor.
  • id (Optional, ID): Manually specify the ID used for code generation.
  • channel (Required, integer): The channel number at the mpr121 the touchkey is connected to.
  • All other options from Binary Sensor.