Sensor Component
sensor
sensor Base component for all sensor types that report numerical values
Official Documentation
📚 ESPHome Documentation →Overview
The sensor component in ESPHome is the base for all components that report numerical measurements. Sensors provide read-only data like temperature, humidity, power consumption, distance, etc.
Sensors differ from binary sensors (on/off states) in that they report continuous numerical values with units of measurement.
Integration with Home Assistant
Sensors automatically appear in Home Assistant when using the API component.
The sensor will:
- Show in Home Assistant with the icon
- Be graphable in history
- Be usable in automations
- They can be excluded from integration with Home Assistant if marked internal
- To Appear in Home Assistant they need to have a name