Open GavinIves opened 2 months ago
Many locks doesn't have statuses. They only have events. Event is an action in some moment. Events only fire if something have changed.
But I didn't find the corresponding action in the log. When I opened the door, there was no door opening action. Is my debugging method wrong?
Your method ok. If you can see event in MiHome and can't see event in Hass logs - I have never heard about this situation for 4 years of developing this component.
I don't know if it has anything to do with my homekit connection because I saw someone with the same lock as mine, but he can display the door status while I can't. We both use the same converter. url Can you help me check the log? There are indeed only some statuses in my log. The following are the door lock related logs I selected from the log.
2024-08-28 20:10:27.256 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.10.123.2.8] {'topic': 'central/report', 'data': b'{"id":1860586428,"_to":128,"type":6,"method":"event_occured","params":{"did":"1064843091","siid":2,"eiid":1020,"tid":79,"arguments":[{"piid":1,"value":3},{"piid":2,"value":15},{"piid":3,"value":1},{"piid":4,"value":0},{"piid":5,"value":1724847027}]}}'}
2024-08-28 20:10:27.256 DEBUG (MainThread) [custom_components.xiaomi_gateway3.gate.10.123.2.8] {'uid': '1e15f98f559c', 'did': '1064843091', 'msg': 'on_report', 'data': {'position': 'not tell indoor or outdoor', 'method': 'manual', 'lock_action': 'lock', 'key_id': 0, 'lock_timestamp': 1724847027}}
2024-08-28 20:10:27.359 DEBUG (MainThread) [custom_components.xiaomi_gateway3.mqtt.10.123.2.8] {'topic': 'central/report', 'data': b'{"id":2015708429,"type":6,"method":"event_occured","params":{"did":"1064843091","siid":2,"eiid":1020,"tid":79,"arguments":[{"piid":1,"value":3},{"piid":2,"value":15},{"piid":3,"value":1},{"piid":4,"value":0},{"piid":5,"value":1724847027}]}}'}
As I can see - event decoded without errors
{
"id": 1860586428,
"_to": 128,
"type": 6,
"method": "event_occured",
"params": {
"did": "1064843091",
"siid": 2,
"eiid": 1020,
"tid": 79,
"arguments": [
{
"piid": 1,
"value": 3 // position: not tell indoor or outdoor
},
{
"piid": 2,
"value": 15 // method: manual
},
{
"piid": 3,
"value": 1 // lock_action: lock
},
{
"piid": 4,
"value": 0 // key_id: 0
},
{
"piid": 5,
"value": 1724847027 // lock_timestamp: 1724847027
}
]
}
}
I checked and it is the same, but I feel that it sometimes misses data. For example, sometimes when I open the door, it still shows locked, but the Mijia app shows that the door is open. So I suspect that Mijia is getting other data because Mijia is always accurate, but sometimes it misses data.
Do you have other BLE gateways?
Sorry, I don't have one. I want to know if it is possible, for example, that the message is not sent through the gateway but through wifi because this is a lock that works with wifi and bluetooth.
I think it can be possible. You can try to block internet for your lock if your router can do this.
I checked and it is the same, but I feel that it sometimes misses data. For example, sometimes when I open the door, it still shows locked, but the Mijia app shows that the door is open. So I suspect that Mijia is getting other data because Mijia is always accurate, but sometimes it misses data.
请问您的v5max现在正常工作了吗?您解决这个问题了吗
没有依旧无效 放弃了
没有依旧无效 放弃了
好的谢谢,我再找找方法,如果有效的话我在这回复
I use the latest HA and Xiaomigateway. When I want to debug a door lock, I find that the device seems to send me some data. I want to know if it is a plugin bug or just like that. I have a lock model Loock Smart Lock V5 Max Website: https://home.miot-spec.com/spec/loock.lock.fcl201 I manually configured the converter. But I found that the door status will never change. So I turned on the debug mode and found that the lock did not seem to send me the door status, but everything was displayed normally in the Mijia APP
The converter is as follows
The log is as follows
home-assistant_2024-08-28T12-10-44.186Z.log