Add connectivity to sensor classes

pull/1626/head
Fabian Affolter 2016-03-27 11:48:48 +02:00
parent d8121ed8b2
commit 2db49ebca5
1 changed files with 15 additions and 14 deletions

View File

@ -17,20 +17,21 @@ 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
'power', # Power, over-current, etc 'motion', # Motion sensor
'safety', # Generic on=unsafe, off=safe 'moving', # On means moving, Off means stopped
'heat', # On means hot (or too hot) 'opening', # Door, window, etc.
'cold', # On means cold (or too cold) 'power', # Power, over-current, etc
'moving', # On means moving, Off means stopped 'safety', # Generic on=unsafe, off=safe
'sound', # On means sound detected, Off means no sound 'smoke', # Smoke detector
'vibration', # On means vibration detected, Off means no vibration 'sound', # On means sound detected, Off means no sound
'vibration', # On means vibration detected, Off means no vibration
] ]
# Maps discovered services to their platforms # Maps discovered services to their platforms