mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-30 04:37:44 +02:00
6d6b16fe6c
* add ttp229-lsf docs * fixed link to datasheet * remove indent * type image filename * convert image to jpg * Update ttp229.rst - Change id in example to name. Reason: otherwise it won't show up in frontend and users will be confused - Reorder conf options - esphomelib -> esphome * Remove disqus
53 lines
1.6 KiB
ReStructuredText
53 lines
1.6 KiB
ReStructuredText
TTP229 Capacitive Touch Sensor
|
|
==============================
|
|
|
|
.. seo::
|
|
:description: Instructions for setting up TTP229 Capacitive Touch Sensor
|
|
:image: ttp229.jpg
|
|
:keywords: TTP229
|
|
|
|
The ``ttp229`` sensor platform allows you to use your TTP229 `datasheet <https://www.tontek.com.tw/uploads/product/106/TTP229-LSF_V1.0_EN.pdf>`__
|
|
Capacitive Touch Sensor with ESPHome. The :ref:`I²C <i2c>` is required to be set up in your configuration for this sensor to work.
|
|
|
|
.. figure:: images/ttp229-full.jpg
|
|
:align: center
|
|
:width: 50.0%
|
|
|
|
TTP229 Capacitive Touch Sensor. Image by `RobotDyn`_.
|
|
|
|
.. _RobotDyn: https://www.tinytronics.nl/shop/nl/sensoren/touch/robotdyn-touch-module-ttp229-lsf-16-kanaals
|
|
|
|
.. code-block:: yaml
|
|
|
|
# Example configuration entry
|
|
ttp229_lsf:
|
|
id: ttp229_device
|
|
|
|
binary_sensor:
|
|
- platform: ttp229_lsf
|
|
name: TTP229 Channel 0
|
|
channel: 0
|
|
|
|
Configuration variables:
|
|
------------------------
|
|
|
|
The configuration is made up of two parts: The central component, and individual Binary sensors per channel.
|
|
|
|
Base Configuration:
|
|
|
|
- **id** (*Optional*, :ref:`config-id`): Set the ID of this sensor.
|
|
|
|
Binary Sensor Configuration:
|
|
|
|
- **name** (**Required**, string): The name of the binary sensor.
|
|
- **channel** (**Required**, integer): The channel number at the ttp229 the touchkey is connected to.
|
|
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
|
|
- All other options from :ref:`Binary Sensor <config-binary_sensor>`.
|
|
|
|
See Also
|
|
--------
|
|
|
|
- :ref:`sensor-filters`
|
|
- :apiref:`sensor/ttp229_sensor.h`
|
|
- :ghedit:`Edit`
|