mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-11-10 03:28:47 +00:00
* Sensor device class docs * Fix binary_sensor copy * Fix headings * Add icons screenshot * Add Empty device_class * Grammar * Update customizing-devices.markdown * Add periods
2.5 KiB
2.5 KiB
layout, title, description, date, sidebar, comments, sharing, footer
| layout | title | description | date | sidebar | comments | sharing | footer |
|---|---|---|---|---|---|---|---|
| page | Binary Sensor | Instructions on how-to setup binary sensors with Home Assistant. | 2015-11-20 14:00 | true | false | true | true |
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.
{% linkable_title Device Class %}
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.
Example of various device classes icons in `On` and `Off` state.