Skip to content

H3wastooshort/esphome_AT42QT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 

Repository files navigation

Theoretically supports*:

  • AT42QT1060
  • AT42QT1070
  • AT42QT2120
  • AT42QT2160

*This component has only been tested with the AT42QT2120.

Example

external_components:
  - source:
      type: git
      url: https://github.com/H3wastooshort/esphome_AT42QT.git
      ref: stable
    components: [ at42qt ]
    refresh: 60s

i2c:
  scl: GPIO5
  sda: GPIO6

at42qt:
  id: touch_ic
  chip_number: 2120
  address: 0x1C

binary_sensor:
  - platform: at42qt
    at42qt_hub_id: touch_ic
    name: "Touch 1"
    id: touch1
    channel: 8
    threshold: 5
    oversampling: 0x20
  - platform: at42qt
    at42qt_hub_id: touch_ic
    name: "Touch 2"
    id: touch2
    channel: 0
    threshold: 5
    oversampling: 0x20

sensor:
  - platform: at42qt
    at42qt_hub_id: touch_ic
    channel: 8
    signal:
      name: "Touch 1 Signal"
    reference:
      name: "Touch 1 Reference"
    update_interval: 10s
  - platform: at42qt
    at42qt_hub_id: touch_ic
    channel: 0
    signal:
      name: "Touch 2 Signal"
    reference:
      name: "Touch 2 Reference"
    update_interval: 10s

Parts of Code taken from:

Releases

No releases published

Contributors