Hi! I need help because I don’t know why is happening this…
It’s related to de Xiaomi Windows Door sensor, normally when I open and close the door that has the magnetic sensor the warning of opening and closing appears well. But sometimes I open the door, it notifies me that it is open, I close it but it does not notify me, the sensor in HA stays open for an hour, while in the app mihome appears closed. And until it does not restart HA or spend an hour or so it does not return to the correct state.
Door opened 19:27:09 and closed 19:27:16
2019-02-13 19:27:09 DEBUG (Thread-3) [xiaomi_gateway] MCAST (report) << {'cmd': 'report', **
'model': 'magnet', 'sid': '158d0001bf36e8', 'short_id': 51374, 'data': '{"status":"open"}'}
2019-02-13 19:27:09 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >>
<Entity Door Window Sensor_158d0001bf36e8: off>: {'status': 'open'}
2019-02-13 19:27:16 DEBUG (Thread-3) [xiaomi_gateway] MCAST (report) << {'cmd': 'report',
'model': 'magnet', 'sid': '158d0001bf36e8', 'short_id': 51374, 'data': '{"status":"open"}'}
2019-02-13 19:27:16 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >>
<Entity Door Window Sensor_158d0001bf36e8: on>: {'status': 'open'}**
2019-02-13 19:27:17 DEBUG (Thread-3) [xiaomi_gateway] MCAST (report) << {'cmd': 'report',
'model': 'gateway', 'sid': '7811dcb26140', 'short_id': 0, 'data': '{"rgb":150994943,"illumination":338}'}
And later in logs…
2019-02-13 20:27:12 DEBUG (Thread-3) [xiaomi_gateway] MCAST (heartbeat) << {'cmd':
'heartbeat', 'model': 'magnet', 'sid': '158d0001bf36e8', 'short_id': 51374, 'data':
'{"voltage":3015,"status":"close"}'} 2019-02-13 20:27:12 DEBUG (MainThread)
[homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window
Sensor_158d0001bf36e8: on>: {'voltage': 3015, 'status': 'close'} 2019-02-13 20:27:13 DEBUG
(SyncWorker_14) [xiaomi_gateway] _send_cmd >> b'{"cmd": "write", "sid": "7811dcb26140",
"data": {"rgb": 0, "key": "dfa46018d7f0b137eb4ff8632d8cfd1f"}}' 2019-02-13 20:27:13 DEBUG
(SyncWorker_14) [xiaomi_gateway] _send_cmd resp << {'cmd': 'write_ack', 'model': 'gateway',
'sid': '7811dcb26140', 'short_id': 0, 'data': '{"rgb":0,"illumination":808,"proto_version":"1.1.2"}'} 2019-
02-13 20:27:13 DEBUG (SyncWorker_14) [xiaomi_gateway] write_ack << {'cmd': 'write_ack',
'model': 'gateway', 'sid': '7811dcb26140', 'short_id': 0, 'data':
'{"rgb":0,"illumination":808,"proto_version":"1.1.2"}'}
And other times it works correctly:
2019-02-13 21:49:19 DEBUG (Thread-3) [xiaomi_gateway] MCAST (report) << {'cmd': 'report', 'model': 'magnet', 'sid': '158d0001bf36e8', 'short_id': 51374, 'data': '{"status":"open"}'}
2019-02-13 21:49:19 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window Sensor_158d0001bf36e8: off>: {'status': 'open'}
2019-02-13 21:49:25 DEBUG (Thread-3) [xiaomi_gateway] MCAST (report) << {'cmd': 'report', 'model': 'magnet', 'sid': '158d0001bf36e8', 'short_id': 51374, 'data': '{"status":"close"}'}
2019-02-13 21:49:25 DEBUG (Thread-3) [xiaomi_gateway] MCAST (report) << {'cmd': 'report', 'model': 'motion', 'sid': '158d0001c2e95e', 'short_id': 29134, 'data': '{"status":"motion"}'}
2019-02-13 21:49:25 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Door Window Sensor_158d0001bf36e8: on>: {'status': 'close'}
Can anybody help me?
Thank you!