Binary sensors gather information about state of switches, contacts, pins, and alike. The return value of those sensors is usually digital (1/0). This means that those sensors knows only two states: 0/off/low/closed/false and 1/on/high/open/true.
Knowing that there are only two states allows Home Assistant to represent these sensors in a better way in the frontend according to their functionality.
The way these sensors are displayed in the frontend can be modified in the customize section. The following device classes are supported for binary sensors:
- None: Generic on/off. This is the default and doesn’t need to be set.
Onmeans connection present,
Offmeans no connection
Onmeans gas detected
- light: Lightness threshold
Onmeans motion detected
Offmeans not occupied
- power: Power, over-current, etc.
Onmeans smoke detected
Onmeans sound detected,
Offmeans no sound
Onmeans vibration detected,
Offmeans no vibration
For analog sensors please check the component overview.