Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for TC74 #4255

Merged
merged 3 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added components/sensor/images/tc74-full.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions components/sensor/tc74.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
TC74 Temperature Sensor
=======================

.. seo::
:description: Instructions for setting up the TC74 temperature sensors.
:image: tc74.jpg
:keywords: TC74

The TC74 sensor platform allows you to use your TC74 (`datasheet
<https://ww1.microchip.com/downloads/en/DeviceDoc/21462D.pdf>`__, `Adafruit
<https://www.adafruit.com/product/4375>`__) temperature sensors with ESPHome.
The :ref:`I²C Bus <i2c>` is required to be set up in your configuration for this
sensor to work.

.. figure:: images/tc74-full.jpg
:align: center
:width: 50.0%

TC74 Temperature Sensor.

.. code-block:: yaml

# Example configuration entry
sensor:
- platform: tc74
name: "Living Room Temperature"

Configuration variables:
------------------------

- **update_interval** (*Optional*, :ref:`config-time`): The interval to check
the sensor. Defaults to ``60s``.
- **address** (*Optional*, int): The I²C address of the sensor. Defaults to
``0x48``, the address of the TC74A0. For suffixes other than ``A0`` add the
final digit to ``0x48`` to calculate the address. For example, the TC74A5 has
I²C address ``0x4D``.
- All other options from :ref:`Sensor <config-sensor>`.

See Also
--------

- :ref:`sensor-filters`
- :doc:`dht`
- :doc:`dht12`
- :doc:`hdc1080`
- :doc:`sht3xd`
- :doc:`htu21d`
- :doc:`tmp102`
- :apiref:`tc74/tc74.h`
- :ghedit:`Edit`
Binary file added images/tc74.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ Environmental
SHTCx, components/sensor/shtcx, shtc3.jpg, Temperature & Humidity
SMT100, components/sensor/smt100, smt100.jpg, Moisture & Temperature
STS3X, components/sensor/sts3x, sts3x.jpg, Temperature
TC74, components/sensor/tc74, tc74.jpg, Temperature
TEE501, components/sensor/tee501, TEE501.png, Temperature
TMP102, components/sensor/tmp102, tmp102.jpg, Temperature
TMP1075, components/sensor/tmp1075, tmp1075.jpg, Temperature
Expand Down