Binary Sensor
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.
- cold:
Onmeans cold - connectivity:
Onmeans connection present,Offmeans no connection - gas:
Onmeans gas detected - heat:
Onmeans hot - light: Lightness threshold
- moisture:
Onmeans wet - motion:
Onmeans motion detected - moving:
Onmeans moving,Offmeans stopped - occupancy:
Onmeans occupied,Offmeans not occupied - opening:
Onmeans open,Offmeans closed - power: Power, over-current, etc.
- safety:
Onmeans unsafe,Offmeans safe - smoke:
Onmeans smoke detected - sound:
Onmeans sound detected,Offmeans no sound - vibration:
Onmeans vibration detected,Offmeans no vibration
For analog sensors please check the component overview.