Merge pull request #1626 from fabaff/connection-class

Add connectivity to sensor classes
This commit is contained in:
Paulus Schoutsen 2016-03-27 08:25:18 -07:00
commit fad13beea6

View File

@ -18,17 +18,18 @@ SCAN_INTERVAL = 30
ENTITY_ID_FORMAT = DOMAIN + '.{}' ENTITY_ID_FORMAT = DOMAIN + '.{}'
SENSOR_CLASSES = [ SENSOR_CLASSES = [
None, # Generic on/off None, # Generic on/off
'opening', # Door, window, etc 'cold', # On means cold (or too cold)
'motion', # Motion sensor 'connectivity', # On means connection present, Off = no connection
'gas', # CO, CO2, etc 'gas', # CO, CO2, etc.
'smoke', # Smoke detector 'heat', # On means hot (or too hot)
'moisture', # Specifically a wetness sensor
'light', # Lightness threshold 'light', # Lightness threshold
'moisture', # Specifically a wetness sensor
'motion', # Motion sensor
'moving', # On means moving, Off means stopped
'opening', # Door, window, etc.
'power', # Power, over-current, etc 'power', # Power, over-current, etc
'safety', # Generic on=unsafe, off=safe 'safety', # Generic on=unsafe, off=safe
'heat', # On means hot (or too hot) 'smoke', # Smoke detector
'cold', # On means cold (or too cold)
'moving', # On means moving, Off means stopped
'sound', # On means sound detected, Off means no sound 'sound', # On means sound detected, Off means no sound
'vibration', # On means vibration detected, Off means no vibration 'vibration', # On means vibration detected, Off means no vibration
] ]