2020-05-10 21:27:59 +02:00
|
|
|
TX20/TX23 Wind Speed/Direction Sensor
|
2019-07-03 16:41:16 +02:00
|
|
|
=====================================
|
|
|
|
|
|
|
|
.. seo::
|
2020-05-10 21:27:59 +02:00
|
|
|
:description: Instructions for setting up TX20/TX23 wind speed and direction sensors
|
2021-11-16 03:19:33 +01:00
|
|
|
:image: tx20.jpg
|
2020-05-10 21:27:59 +02:00
|
|
|
:keywords: TX20
|
2019-07-03 16:41:16 +02:00
|
|
|
|
2020-05-10 21:27:59 +02:00
|
|
|
The ``tx20`` sensor platform allows you to use your TX20/TX23
|
2019-07-03 16:41:16 +02:00
|
|
|
(`Amazon`_,
|
2020-05-10 21:27:59 +02:00
|
|
|
`lacrosse_tx23`_)
|
|
|
|
wind direction and speed sensors with ESPHome.
|
2019-07-03 16:41:16 +02:00
|
|
|
The only required pin is the black or brown cable (which is used to transmit data.)
|
|
|
|
The red cable should be connected to VCC (3.3V), green initiates the data transfer when connected to GND
|
|
|
|
and should therefore be directly connected to GND and the yellow cable should be always connected to ground.
|
2020-05-10 21:27:59 +02:00
|
|
|
The difference from the TX20 to the TX23 seems to be that the green cable does not matter any more and the
|
2019-07-03 16:41:16 +02:00
|
|
|
wind sensor is just sending a datagram every 2 seconds - pretty much the same as when the green cable was
|
2020-05-10 21:27:59 +02:00
|
|
|
connected to GND in the TX20.
|
2019-07-03 16:41:16 +02:00
|
|
|
|
|
|
|
.. figure:: images/tx20.jpg
|
|
|
|
:align: center
|
|
|
|
:width: 50.0%
|
|
|
|
|
2020-05-10 21:27:59 +02:00
|
|
|
TX20 / TX23 Wind Speed / Direction.
|
2019-07-03 16:41:16 +02:00
|
|
|
|
|
|
|
.. _Amazon: https://www.amazon.de/Technoline-Tx-20/dp/B01HXZ3KLA
|
|
|
|
.. _lacrosse_tx23: https://www.lacrossetechnology.com/tx23-wind-sensor
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
# Example configuration entry
|
|
|
|
sensor:
|
|
|
|
- platform: tx20
|
|
|
|
wind_speed:
|
2024-05-07 07:40:12 +02:00
|
|
|
name: Wind speed
|
2019-07-03 16:41:16 +02:00
|
|
|
wind_direction_degrees:
|
2024-05-07 07:40:12 +02:00
|
|
|
name: Wind direction degrees
|
2020-05-10 21:27:59 +02:00
|
|
|
pin:
|
2024-05-07 07:40:12 +02:00
|
|
|
number: GPIOXX
|
2019-07-03 16:41:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
Configuration variables:
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
- **wind_speed** (**Required**): The information for the wind speed sensor.
|
2024-05-07 07:40:12 +02:00
|
|
|
All options from :ref:`Sensor <config-sensor>`.
|
2019-07-03 16:41:16 +02:00
|
|
|
|
|
|
|
- **wind_direction_degrees** (**Required**): The information for the direction
|
|
|
|
in degrees sensor.
|
2024-05-07 07:40:12 +02:00
|
|
|
All options from :ref:`Sensor <config-sensor>`.
|
2019-07-03 16:41:16 +02:00
|
|
|
|
|
|
|
- **pin** (**Required**, :ref:`config-pin`): The pin, where the black or brown
|
|
|
|
cable are connected.
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
In order to create a text sensor to show the textual representation of the wind direction
|
2020-07-29 14:00:05 +02:00
|
|
|
the following config can be used. "tx20_id" needs to be replaced with the id of the TX20 sensor (**not** with the id of the subsensors).
|
2019-07-03 16:41:16 +02:00
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
text_sensor:
|
|
|
|
- platform: template
|
|
|
|
name: "Textual Representation Wind Direction"
|
|
|
|
lambda: |-
|
|
|
|
return {id(tx20_id).get_wind_cardinal_direction()};
|
|
|
|
update_interval: 2s
|
|
|
|
|
|
|
|
|
|
|
|
See Also
|
|
|
|
--------
|
|
|
|
|
|
|
|
- :ref:`sensor-filters`
|
|
|
|
- :apiref:`tx20/tx20.h`
|
|
|
|
- `Amazon Tx20 <https://www.amazon.de/Technoline-Tx-20/dp/B01HXZ3KLA>`__
|
|
|
|
- `La Crosse Tx23 <https://www.lacrossetechnology.com/tx23-wind-sensor>`__
|
2020-05-24 01:41:07 +02:00
|
|
|
- `Datagram Tx20 <http://www.sdpro.eu/jm/images/allegati/TX20_Documentazione.pdf>`__
|
2019-07-03 16:41:16 +02:00
|
|
|
- `Datagram Tx23 <https://www.lacrossetechnology.com/tx23-wind-sensor>`__-
|
|
|
|
- :ghedit:`Edit`
|