Add basic lock support for fibaro (#38962)
Added very basic support for locks in the Fibaro integration.
This commit is contained in:
1 parent
989a040b67
commit
6348f130bc
2 files changed
+51
No files matched your search
@@ -44,6 +44,7 @@ FIBARO_COMPONENTS = [
|
||||
"light",
|
||||
"scene",
|
||||
"sensor",
|
||||
"lock",
|
||||
"switch",
|
||||
]
|
||||
|
||||
@@ -67,6 +68,7 @@ FIBARO_TYPEMAP = {
|
||||
"com.fibaro.setpoint": "climate",
|
||||
"com.fibaro.FGT001": "climate",
|
||||
"com.fibaro.thermostatDanfoss": "climate",
|
||||
"com.fibaro.doorLock": "lock",
|
||||
}
|
||||
|
||||
DEVICE_CONFIG_SCHEMA_ENTRY = vol.Schema(
|
||||
@@ -220,6 +222,8 @@ class FibaroController:
|
||||
device_type = "switch"
|
||||
elif "open" in device.actions:
|
||||
device_type = "cover"
|
||||
elif "secure" in device.actions:
|
||||
device_type = "lock"
|
||||
elif "value" in device.properties:
|
||||
if device.properties.value in ("true", "false"):
|
||||
device_type = "binary_sensor"
|
||||
|
||||
Reference in new issue
Block a user