esphome-docs/components/text_sensor/ethernet_info.rst

48 lines
1.4 KiB
ReStructuredText
Raw Normal View History

2022-10-19 02:44:58 +02:00
Ethernet Info Text Sensor
=========================
.. seo::
:description: Instructions for setting up Ethernet info text sensors.
:image: ethernet.svg
The ``ethernet_info`` text sensor platform exposes different Ethernet information
via text sensors.
.. code-block:: yaml
# Example configuration entry
text_sensor:
- platform: ethernet_info
ip_address:
name: ESP IP Address
address_0:
name: ESP IP Address 0
address_1:
name: ESP IP Address 1
address_2:
name: ESP IP Address 2
address_3:
name: ESP IP Address 3
address_4:
name: ESP IP Address 4
2024-04-12 06:01:13 +02:00
dns_address:
name: ESP DNS Address
2022-10-19 02:44:58 +02:00
Configuration variables:
------------------------
- **ip_address** (*Optional*): Expose the IP Address of the ESP as a text sensor. All options from
:ref:`Text Sensor <config-text_sensor>`.
- **address_0-address_4** (*Optional*): With dual stack (IPv4 and IPv6) the device will have at least two IP addresses -- often more. To report all addresses the configuration may have up to five sub-sensors. All options from
:ref:`Text Sensor <config-text_sensor>`.
2024-04-12 06:01:13 +02:00
- **dns_address** (*Optional*): Expose the DNS Address of the ESP as text sensor.
:ref:`Text Sensor <config-text_sensor>`.
2022-10-19 02:44:58 +02:00
See Also
--------
- :doc:`/components/ethernet`
2022-10-19 02:44:58 +02:00
- :apiref:`ethernet_info/ethernet_info_text_sensor.h`
- :ghedit:`Edit`