AlexxIT / XiaomiGateway3

Home Assistant custom component for control Xiaomi Multimode Gateway (aka Gateway 3), Xiaomi Multimode Gateway 2, Aqara Hub E1 on default firmwares over LAN
https://github.com/AlexxIT/Blog
MIT License
2.45k stars 343 forks source link

Gateway3 cannot discover my door lock even after I added the converter #1181

Open hsy5571615 opened 1 year ago

hsy5571615 commented 1 year ago

My multi-mode gateway 2 firmware version is 1.0.6. I did not find my door lock model in devices.py, so I found a similar model with the following code:

# BLE devices can be supported witout spec. New spec will be added
# "on the fly" when device sends them. But better to rewrite right spec for
# each device
"default": "ble",  # default BLE device
794: ["Xiaomi", "Door Lock", "MJZNMS02LM"],
955: ["Unknown", "Lock M2", "ydhome.lock.m2silver"],
982: ["Xiaomi", "Qingping Door Sensor", "CGH1"],
1034: ["Xiaomi", "Mosquito Repellent", "WX08ZM"],
1161: ["Xiaomi", "Toothbrush T500", "MES601"],
# https://github.com/AlexxIT/XiaomiGateway3/issues/1001
1203: ["Dessmann ", "Q3", "dsm.lock.q3"],
1433: ["Xiaomi", "Door Lock", "MJZNMS03LM"],
1694: ["Aqara", "Door Lock N100 (Bluetooth)", "ZNMS16LM"],
1695: ["Aqara", "Door Lock N200", "ZNMS17LM"],
2054: ["Xiaomi", "Toothbrush T700", "MES604"],
6032: ["Xiaomi", "Toothbrush T700i", "MES604"],
2480: ["Xiaomi", "Safe Box", "BGX-5/X1-3001"],
3051: ["Aqara", "Door Lock D100", "ZNMS20LM"],
3343: ["Loock", "Door Lock Classic 2X Pro", "loock.lock.cc2xpro"],
"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),
],

I created a converter based on this, as follows.

微信截图_20231019194713

I looked at gateway3's logs and it seems to have found this door lock, but it still doesn't show up in the integration. I'm very confused about which step I went wrong. Can anyone give me some hints?

微信截图_20231019194700

Necroneco commented 1 year ago

try search another more 9878 in logs?