From ea1be26cf105d48cac378734db7b2f22ceb4ca19 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 29 Feb 2016 22:13:03 +0100 Subject: [PATCH] Add sensor classes --- source/_components/binary_sensor.markdown | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/_components/binary_sensor.markdown b/source/_components/binary_sensor.markdown index f3bbd430190..7d1437439bc 100644 --- a/source/_components/binary_sensor.markdown +++ b/source/_components/binary_sensor.markdown @@ -14,3 +14,21 @@ Binary sensors are gathering information about state of switches, contacts, pins Knowing that there are only two states allows Home Assistant to represent the sensor better in the frontend. For analog sensors please check the [component overview](https://home-assistant.io/components/#sensor). + +Most binary sensors supports the `SENSOR_CLASSES` which let you specify the type of your sensor. The following types are supoorted: + +- **None**: Generic on/off +- **opening**: Door, window, etc +- **motion**: Motion sensor +- **gas'**: CO, CO2, etc +- **smoke'**: Smoke detector +- **moisture**: Specifically a wetness sensor +- **light**: Lightness threshold +- **power**: Power, over-current, etc +- **safety**: Generic on=unsafe, off=safe +- **heat**: On means hot (or too hot) +- **cold**: On means cold (or too cold) +- **moving**: On means moving, Off means stopped +- **sound**: On means sound detected, Off means no sound +- **vibration**: On means vibration detected, Off means no vibration +