I tried everything.
So, i paste the “correct” config:
xiaomi_aqara:
discovery_retry: 5
gateways:
- mac: 04:cf:8c:a9:dd:d1
key: knehwh3abbiv14qp
host: 192.168.1.135
And no, the log is:
2019-12-02 09:33:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-12-02 09:33:37 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for shelly which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Expecting 1 gateways
2019-12-02 09:33:41 INFO (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 1)
2019-12-02 09:33:41 INFO (SyncWorker_6) [xiaomi_gateway] Xiaomi Gateway 04cf8ca9ddd1 configured at IP 192.168.1.135:9898
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"04cf8ca9ddd1"}'
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'gateway', 'sid': '4cf8ca9ddd1', 'short_id': 0, 'data': '{"rgb":0,"illumination":1074,"proto_version":"1.1.2"}'}
2019-12-02 09:33:41 INFO (SyncWorker_6) [xiaomi_gateway] Discovering Xiaomi Devices
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{"cmd" : "get_id_list"}'
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'get_id_list_ack', 'sid': '04cf8ca9ddd1', 'token': 'HBIIgou3P2gITJnw', 'data': '["158d0002c6c1aa","158d0002892c5c","158d0002892d1d","158d0002c5f3ff","158d0002c5f4d7","158d0002018b7a","158d000395b2e0"]'}
2019-12-02 09:33:41 INFO (SyncWorker_6) [xiaomi_gateway] Found 8 devices
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Discovery attempt 1/4
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0002c6c1aa"}'
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'switch', 'sid': '158d0002c6c1aa', 'short_id': 65170, 'data': '{"voltage":3022}'}
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Registering device 158d0002c6c1aa, switch as: binary_sensor
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Discovery attempt 1/4
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0002892c5c"}'
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'motion', 'sid': '158d0002892c5c', 'short_id': 61330, 'data': '{"voltage":3015}'}
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Registering device 158d0002892c5c, motion as: binary_sensor
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Discovery attempt 1/4
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0002892d1d"}'
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'motion', 'sid': '158d0002892d1d', 'short_id': 42517, 'data': '{"voltage":3005}'}
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Registering device 158d0002892d1d, motion as: binary_sensor
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Discovery attempt 1/4
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0002c5f3ff"}'
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'magnet', 'sid': '158d0002c5f3ff', 'short_id': 33422, 'data': '{"voltage":2975,"status":"close"}'}
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Registering device 158d0002c5f3ff, magnet as: binary_sensor
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Discovery attempt 1/4
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0002c5f4d7"}'
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'magnet', 'sid': '158d0002c5f4d7', 'short_id': 58988, 'data': '{"voltage":2975,"status":"close"}'}
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Registering device 158d0002c5f4d7, magnet as: binary_sensor
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Discovery attempt 1/4
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0002018b7a"}'
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Registering device 158d0002018b7a, plug as: switch
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Discovery attempt 1/4
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d000395b2e0"}'
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'motion', 'sid': '158d000395b2e0', 'short_id': 43030, 'data': '{"voltage":3005}'}
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Registering device 158d000395b2e0, motion as: binary_sensor
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Discovery attempt 1/4
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"04cf8ca9ddd1"}'
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'gateway', 'sid': '4cf8ca9ddd1', 'short_id': 0, 'data': '{"rgb":0,"illumination":1074,"proto_version":"1.1.2"}'}
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Registering device 04cf8ca9ddd1, gateway as: sensor
2019-12-02 09:33:41 DEBUG (SyncWorker_6) [xiaomi_gateway] Registering device 04cf8ca9ddd1, gateway as: light
2019-12-02 09:33:42 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.updater
2019-12-02 09:33:42 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.yeelight
2019-12-02 09:33:42 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.yeelight
2019-12-02 09:33:42 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.yeelight
2019-12-02 09:33:46 INFO (SyncWorker_6) [xiaomi_gateway] Gateway discovery finished in 5 seconds
2019-12-02 09:33:46 INFO (SyncWorker_6) [xiaomi_gateway] Creating Multicast Socket
2019-12-02 09:33:46 DEBUG (SyncWorker_6) [homeassistant.components.xiaomi_aqara] Gateways discovered. Listening for broadcasts
2019-12-02 09:33:46 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.xiaomi_aqara
2019-12-02 09:33:53 WARNING (MainThread) [homeassistant.setup] Setup of default_config is taking over 10 seconds.
2019-12-02 09:33:56 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:34:06 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:34:16 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:34:17 DEBUG (SyncWorker_5) [homeassistant.components.xiaomi_aqara.switch] Update data from hub: Plug_158d0002018b7a
2019-12-02 09:34:17 DEBUG (SyncWorker_5) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0002018b7a"}'
2019-12-02 09:34:17 DEBUG (SyncWorker_5) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:34:17 DEBUG (SyncWorker_5) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:34:17 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Plug_158d0002018b7a: off>: {'voltage': 3600, 'status': 'off', 'inuse': '0', 'power_consumed': '1900', 'load_power': '0.00'}
2019-12-02 09:34:26 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:34:36 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:34:46 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:34:48 DEBUG (SyncWorker_5) [homeassistant.components.xiaomi_aqara.switch] Update data from hub: Plug_158d0002018b7a
2019-12-02 09:34:48 DEBUG (SyncWorker_5) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0002018b7a"}'
2019-12-02 09:34:48 DEBUG (SyncWorker_5) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:34:48 DEBUG (SyncWorker_5) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:34:48 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Plug_158d0002018b7a: off>: {'voltage': 3600, 'status': 'off', 'inuse': '0', 'power_consumed': '1900', 'load_power': '0.00'}
2019-12-02 09:34:56 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:35:06 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:35:16 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:35:18 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:35:19 DEBUG (SyncWorker_2) [homeassistant.components.xiaomi_aqara.switch] Update data from hub: Plug_158d0002018b7a
2019-12-02 09:35:19 DEBUG (SyncWorker_2) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0002018b7a"}'
2019-12-02 09:35:19 DEBUG (SyncWorker_2) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:35:19 DEBUG (SyncWorker_2) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:35:19 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Plug_158d0002018b7a: off>: {'voltage': 3600, 'status': 'off', 'inuse': '0', 'power_consumed': '1900', 'load_power': '0.00'}
2019-12-02 09:35:26 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:35:36 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:35:46 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:35:50 DEBUG (SyncWorker_3) [homeassistant.components.xiaomi_aqara.switch] Update data from hub: Plug_158d0002018b7a
2019-12-02 09:35:50 DEBUG (SyncWorker_3) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0002018b7a"}'
2019-12-02 09:35:50 DEBUG (SyncWorker_3) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:35:50 DEBUG (SyncWorker_3) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:35:50 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Plug_158d0002018b7a: off>: {'voltage': 3600, 'status': 'off', 'inuse': '0', 'power_consumed': '1900', 'load_power': '0.00'}
2019-12-02 09:35:56 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:36:06 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:36:15 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:36:21 DEBUG (SyncWorker_4) [homeassistant.components.xiaomi_aqara.switch] Update data from hub: Plug_158d0002018b7a
2019-12-02 09:36:21 DEBUG (SyncWorker_4) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0002018b7a"}'
2019-12-02 09:36:21 DEBUG (SyncWorker_4) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:36:21 DEBUG (SyncWorker_4) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:36:21 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Plug_158d0002018b7a: off>: {'voltage': 3600, 'status': 'off', 'inuse': '0', 'power_consumed': '1900', 'load_power': '0.00'}
2019-12-02 09:36:25 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:36:35 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:36:45 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:36:52 DEBUG (SyncWorker_8) [homeassistant.components.xiaomi_aqara.switch] Update data from hub: Plug_158d0002018b7a
2019-12-02 09:36:52 DEBUG (SyncWorker_8) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0002018b7a"}'
2019-12-02 09:36:52 DEBUG (SyncWorker_8) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:36:52 DEBUG (SyncWorker_8) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:36:52 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Plug_158d0002018b7a: off>: {'voltage': 3600, 'status': 'off', 'inuse': '0', 'power_consumed': '1900', 'load_power': '0.00'}
2019-12-02 09:36:55 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:37:05 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:37:08 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:37:15 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:37:23 DEBUG (SyncWorker_6) [homeassistant.components.xiaomi_aqara.switch] Update data from hub: Plug_158d0002018b7a
2019-12-02 09:37:23 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0002018b7a"}'
2019-12-02 09:37:23 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:37:23 DEBUG (SyncWorker_6) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:37:23 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Plug_158d0002018b7a: off>: {'voltage': 3600, 'status': 'off', 'inuse': '0', 'power_consumed': '1900', 'load_power': '0.00'}
2019-12-02 09:37:25 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:37:35 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:37:45 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:37:51 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:37:54 DEBUG (SyncWorker_2) [homeassistant.components.xiaomi_aqara.switch] Update data from hub: Plug_158d0002018b7a
2019-12-02 09:37:54 DEBUG (SyncWorker_2) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0002018b7a"}'
2019-12-02 09:37:54 DEBUG (SyncWorker_2) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:37:54 DEBUG (SyncWorker_2) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:37:54 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Plug_158d0002018b7a: off>: {'voltage': 3600, 'status': 'off', 'inuse': '0', 'power_consumed': '1900', 'load_power': '0.00'}
2019-12-02 09:37:55 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:38:05 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:38:15 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:38:25 DEBUG (SyncWorker_1) [homeassistant.components.xiaomi_aqara.switch] Update data from hub: Plug_158d0002018b7a
2019-12-02 09:38:25 DEBUG (SyncWorker_1) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0002018b7a"}'
2019-12-02 09:38:25 DEBUG (SyncWorker_1) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:38:25 DEBUG (SyncWorker_1) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:38:25 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Plug_158d0002018b7a: off>: {'voltage': 3600, 'status': 'off', 'inuse': '0', 'power_consumed': '1900', 'load_power': '0.00'}
2019-12-02 09:38:25 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:38:35 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:38:45 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:38:55 ERROR (Thread-3) [xiaomi_gateway] Unknown gateway ip 192.168.1.191
2019-12-02 09:38:56 DEBUG (SyncWorker_6) [homeassistant.components.xiaomi_aqara.switch] Update data from hub: Plug_158d0002018b7a
2019-12-02 09:38:56 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0002018b7a"}'
2019-12-02 09:38:56 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:38:56 DEBUG (SyncWorker_6) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'plug', 'sid': '158d0002018b7a', 'short_id': 28118, 'data': '{"voltage":3600,"status":"off","inuse":"0","power_consumed":"1900","load_power":"0.00"}'}
2019-12-02 09:38:56 DEBUG (MainThread) [homeassistant.components.xiaomi_aqara] PUSH >> <Entity Plug_158d0002018b7a: off>: {'voltage': 3600, 'status': 'off', 'inuse': '0', 'power_consumed': '1900', 'load_power': '0.00'}