From eb5f208a098e16e7f9e9416399f8279d57ea1262 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Tue, 23 Feb 2016 15:20:51 -0800 Subject: [PATCH] Add a few more sensor classes This adds hot, cold, and moving sensor_class values for things that we may want to support. --- homeassistant/components/binary_sensor/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/binary_sensor/__init__.py b/homeassistant/components/binary_sensor/__init__.py index c3e13047aad..313ae865816 100644 --- a/homeassistant/components/binary_sensor/__init__.py +++ b/homeassistant/components/binary_sensor/__init__.py @@ -26,6 +26,9 @@ SENSOR_CLASSES = [ '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 ] # Maps discovered services to their platforms