mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Merge pull request #1626 from fabaff/connection-class
Add connectivity to sensor classes
This commit is contained in:
commit
fad13beea6
@ -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
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user