Add SmartThings Binary Sensor platform (#20699)

* Add SmartThings binary_sensor platform

* Fixed comment typo.
This commit is contained in:
Andrew Sayre
2019-02-02 16:06:30 -06:00
committed by Paulus Schoutsen
parent acf5b04231
commit 6458abca2e
3 changed files with 192 additions and 1 deletions

View File

@@ -18,16 +18,26 @@ SETTINGS_INSTANCE_ID = "hassInstanceId"
STORAGE_KEY = DOMAIN
STORAGE_VERSION = 1
SUPPORTED_PLATFORMS = [
'binary_sensor',
'fan',
'light',
'switch'
]
SUPPORTED_CAPABILITIES = [
'accelerationSensor',
'colorControl',
'colorTemperature',
'contactSensor',
'fanSpeed',
'filterStatus',
'motionSensor',
'presenceSensor',
'soundSensor',
'switch',
'switchLevel'
'switchLevel',
'tamperAlert',
'valve',
'waterSensor'
]
VAL_UID = "^(?:([0-9a-fA-F]{32})|([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]" \
"{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}))$"