Binary Sensor
Binary sensors gather information about the state of devices which have a “digital” return value (either 1 or 0). These can be switches, contacts, pins, etc. These sensors only have 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.
- battery:
Onmeans low,Offmeans normal - cold:
Onmeans cold,Offmeans normal - connectivity:
Onmeans connected,Offmeans disconnected - door:
Onmeans open,Offmeans closed - garage_door:
Onmeans open,Offmeans closed - gas:
Onmeans gas detected,Offmeans no gas (clear) - heat:
Onmeans hot,Offmeans normal - light:
Onmeans light detected,Offmeans no light - lock:
Onmeans open (unlocked),Offmeans closed (locked) - moisture:
Onmeans moisture detected (wet),Offmeans no moisture (dry) - motion:
Onmeans motion detected,Offmeans no motion (clear) - moving:
Onmeans moving,Offmeans not moving (stopped) - occupancy:
Onmeans occupied,Offmeans not occupied (clear) - opening:
Onmeans open,Offmeans closed - plug:
Onmeans device is plugged in,Offmeans device is unplugged - power:
Onmeans power detected,Offmeans no power - presence:
Onmeans home,Offmeans away - problem:
Onmeans problem detected,Offmeans no problem (OK) - safety:
Onmeans unsafe,Offmeans safe - smoke:
Onmeans smoke detected,Offmeans no smoke (clear) - sound:
Onmeans sound detected,Offmeans no sound (clear) - vibration:
Onmeans vibration detected,Offmeans no vibration (clear) - window:
Onmeans open,Offmeans closed
For analog sensors please check the component overview.