2019-03-14 16:41:37 +01:00
WiFi Info Text Sensor
=====================
.. seo ::
2020-05-10 21:27:59 +02:00
:description: Instructions for setting up WiFi info text sensors.
2021-11-16 03:19:33 +01:00
:image: network-wifi.svg
2019-03-14 16:41:37 +01:00
2020-05-10 21:27:59 +02:00
The `` wifi_info `` text sensor platform exposes different WiFi information
2019-03-14 16:41:37 +01:00
via text sensors.
.. code-block :: yaml
# Example configuration entry
text_sensor:
- platform: wifi_info
ip_address:
name: ESP IP Address
2024-02-27 19:14:49 +01:00
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
2019-03-14 16:41:37 +01:00
ssid:
name: ESP Connected SSID
bssid:
name: ESP Connected BSSID
2020-04-25 01:57:55 +02:00
mac_address:
name: ESP Mac Wifi Address
2021-09-22 13:44:24 +02:00
scan_results:
name: ESP Latest Scan Results
2023-05-17 06:29:23 +02:00
dns_address:
name: ESP DNS Address
2019-03-14 16:41:37 +01: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>` .
2024-02-27 19:14:49 +01:00
- **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>` .
2019-03-14 16:41:37 +01:00
- **ssid** (*Optional* ): Expose the SSID of the currently connected WiFi network as a text sensor. All options from
:ref: `Text Sensor <config-text_sensor>` .
- **bssid** (*Optional* ): Expose the BSSID of the currently connected WiFi network as a text sensor. All options from
:ref: `Text Sensor <config-text_sensor>` .
2020-04-25 01:57:55 +02:00
- **mac_address** (*Optional* ): Expose the Mac Address of the WiFi card. All options from
:ref: `Text Sensor <config-text_sensor>` .
2021-09-22 13:44:24 +02:00
- **scan_results** (*Optional* ): Expose the latest networks found during the latest scan. All options from
:ref: `Text Sensor <config-text_sensor>` .
2023-05-17 06:29:23 +02:00
- **dns_address** (*Optional* ): Expose the DNS Address of the ESP as text sensor.
:ref: `Text Sensor <config-text_sensor>` .
2019-03-14 16:41:37 +01:00
See Also
--------
2022-12-15 10:01:03 +01:00
- :doc: `/components/wifi`
- :doc: `/components/sensor/wifi_signal`
2019-05-12 22:44:59 +02:00
- :apiref: `wifi_info/wifi_info_text_sensor.h`
2019-03-14 16:41:37 +01:00
- :ghedit: `Edit`