Skip to content

Text Sensor

Base Example
text_sensor:
- platform: ... # [!code highlight]
name: 'Host Name'
id: host_name
icon: mdi:identifier
# device_class: "timestamp"

Text sensors publish string values instead of numeric values.

Similar to ESPHome: