Add a few more sensor classes

This adds hot, cold, and moving sensor_class values for things that we
may want to support.
pull/1383/head
Dan Smith 2016-02-23 15:20:51 -08:00
parent 49e588deb3
commit eb5f208a09
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ SENSOR_CLASSES = [
'light', # Lightness threshold 'light', # Lightness threshold
'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)
'cold', # On means cold (or too cold)
'moving', # On means moving, Off means stopped
] ]
# Maps discovered services to their platforms # Maps discovered services to their platforms