from custom_components.xiaomi_gateway3.core.converters.devices import *
DEVICES = [{
3685: ["Xiaomi", "Mi Smart Door Lock with Face Unlock X", "lumi.lock.bmcn05"],
"spec": [
MiBeacon,
# sensors:
Converter("action", "sensor", enabled=None),
Converter("battery", "sensor", enabled=None),
Converter("conductivity", "sensor", enabled=None),
Converter("formaldehyde", "sensor", enabled=None),
Converter("humidity", "sensor", enabled=None),
Converter("idle_time", "sensor", enabled=None),
Converter("illuminance", "sensor", enabled=None),
Converter("moisture", "sensor", enabled=None),
Converter("rssi", "sensor", enabled=None),
Converter("supply", "sensor", enabled=None),
Converter("temperature", "sensor", enabled=None),
# binary_sensors:
Converter("contact", "binary_sensor", enabled=None),
Converter("gas", "binary_sensor", enabled=None),
Converter("light", "binary_sensor", enabled=None),
Converter("lock", "binary_sensor", enabled=None),
Converter("motion", "binary_sensor", enabled=None),
Converter("opening", "binary_sensor", enabled=None),
Converter("sleep", "binary_sensor", enabled=None),
Converter("smoke", "binary_sensor", enabled=None),
Converter("water_leak", "binary_sensor", enabled=None),
],
}] + DEVICES
但是接入之后,还是只有一个空的action和门锁电量和BLE状态