Home Assistant release with the issue:
version - 0.90.2
Operating environment (Hass.io/Docker/Windows/etc.):
VirtualBox (macOS Mojave host) - hassos_ova-2.11.vdi.gz
VB Network - Bridge to en0 (wifi)
Component/platform:
components/xiaomi_aqara
Description of problem:
I have:
I can toggle "Gateway Light", and get information about temperature and humidity but motion sensor dont work.




Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
xiaomi_aqara:
discovery_retry: 5
gateways:
- key: KEY_FROM_MY_MI_HOME_APP
Logs
Unable to load /config/known_devices.yaml: Config file not found: /config/known_devices.yaml
11:59 components/device_tracker/__init__.py (ERROR)
Ended unfinished session (id=10 from 2019-03-31 08:31:33.423301)
11:59 components/recorder/__init__.py (WARNING)
Before start using Home Assistant i try to use Homebridge - it work fine with my sensors.
Logs update:
2019-03-31 11:59:35 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=10 from 2019-03-31 08:31:33.423301)
2019-03-31 11:59:35 ERROR (MainThread) [homeassistant.components.device_tracker] Unable to load /config/known_devices.yaml: Config file not found: /config/known_devices.yaml
2019-03-31 12:07:58 ERROR (SyncWorker_6) [xiaomi_gateway] Got error element in data {"error":"Invalid key"}
I have updates:
Door sensor was "opened"Door sensor switched to "closed"Then i try to open door again and Door senson do not react on this.
(mihome app react on all events)
you need to fix this error
2019-03-31 12:07:58 ERROR (SyncWorker_6) [xiaomi_gateway] Got error element in data {"error":"Invalid key"}
HA needs to access the hub to get states
Have you setup LAN access and got the key
Also try retrieving the key a few times if using IOS as there is a known issue with getting the key on IOS
Hey there @danielhiversen, @syssi, mind taking a look at this issue as its been labeled with a integration (xiaomi_aqara) you are listed as a codeowner for? Thanks!
I have the same issue, I got 7 sensors, some of them take a long long time maybe is never to update status, must restart hass to make it update.
Same here with Home Assistant 0.91.4
I'm having some erratic behaviour as well, running Home Assistant 0.92.2 in Docker with the following config:
xiaomi_aqara:
discovery_retry: 10
gateways:
- mac: <redacted>
key: <redacted>
host: 192.168.<redacted>
# To pick up events with Node-RED
websocket_api:
logger:
default: info
logs:
xiaomi_gateway: debug
Home Assistant seems to pick up the right values of the sensors at startup, but after that, I don't get any updates from my Xiaomi/Aqara devices (wireless switches WXKG03LM and WXKG02LM, temperature/humidity sensors, presence/brightness sensors and door sensors).
The only updates I'm kinda seeing are for the door sensors. First, only 2 of my 3 door sensors are being polled. For those two, they are regularly polled and respond that they are "open". But from the moment I close the door, the last polling that occurs is to retrieve the "close" state. After that, the sensor is never ever polled again, and I'm stuck with the last "closed" state forever, even if I open/close my door multiple times:
homeassistant | 2019-05-10 14:09:19 DEBUG (SyncWorker_11) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0001dbcbfd"}'
homeassistant | 2019-05-10 14:09:19 DEBUG (SyncWorker_11) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbfd', 'short_id': 27518, 'data': '{"voltage":3005,"status":"open"}'}
homeassistant | 2019-05-10 14:09:19 DEBUG (SyncWorker_11) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbfd', 'short_id': 27518, 'data': '{"voltage":3005,"status":"open"}'}
homeassistant | 2019-05-10 14:09:50 DEBUG (SyncWorker_8) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0001dbcbfd"}'
homeassistant | 2019-05-10 14:09:50 DEBUG (SyncWorker_8) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbfd', 'short_id': 27518, 'data': '{"voltage":3005,"status":"open"}'}
homeassistant | 2019-05-10 14:09:50 DEBUG (SyncWorker_8) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbfd', 'short_id': 27518, 'data': '{"voltage":3005,"status":"open"}'}
homeassistant | 2019-05-10 14:10:21 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0001dbcbfd"}'
homeassistant | 2019-05-10 14:10:21 DEBUG (SyncWorker_6) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbfd', 'short_id': 27518, 'data': '{"voltage":3005,"status":"open"}'}
homeassistant | 2019-05-10 14:10:21 DEBUG (SyncWorker_6) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbfd', 'short_id': 27518, 'data': '{"voltage":3005,"status":"open"}'}
homeassistant | 2019-05-10 14:10:52 DEBUG (SyncWorker_5) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0001dbcbfd"}'
homeassistant | 2019-05-10 14:10:52 DEBUG (SyncWorker_5) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbfd', 'short_id': 27518, 'data': '{"voltage":3005,"status":"close"}'}
homeassistant | 2019-05-10 14:10:52 DEBUG (SyncWorker_5) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbfd', 'short_id': 27518, 'data': '{"voltage":3005,"status":"close"}'}
I should also mention that no xiaomi_aqara event seems to ever be dispatched. I could never get that to work, and as such, I don't receive any update from any of my Xiaomi/Aqara devices through the websocket API in Node-RED, while other devices (such as my Hue bulbs) seem to be working perfectly.
Here is a more complete log of all entries output by Home Assistant from startup to the first polling dumps:
Home Assistant container startup logs
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_2) [homeassistant.loader] Loaded script from homeassistant.components.script
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_11) [homeassistant.loader] Loaded automation from homeassistant.components.automation
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_7) [homeassistant.loader] Loaded tts from homeassistant.components.tts
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_1) [homeassistant.loader] Loaded xiaomi_aqara from homeassistant.components.xiaomi_aqara
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_4) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_9) [homeassistant.loader] Loaded discovery from homeassistant.components.discovery
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_10) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_0) [homeassistant.loader] Loaded logger from homeassistant.components.logger
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_12) [homeassistant.loader] Loaded default_config from homeassistant.components.default_config
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_3) [homeassistant.loader] Loaded hue from homeassistant.components.hue
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_1) [homeassistant.loader] Loaded group from homeassistant.components.group
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_8) [homeassistant.loader] Loaded homeassistant from homeassistant.components.homeassistant
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_5) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_4) [homeassistant.loader] Loaded http from homeassistant.components.http
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_9) [homeassistant.loader] Loaded webhook from homeassistant.components.webhook
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setting up homeassistant
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setup of domain homeassistant took 0.0 seconds.
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setting up persistent_notification
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setup of domain persistent_notification took 0.0 seconds.
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_16) [homeassistant.loader] Loaded cloud from homeassistant.components.cloud
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_10) [homeassistant.loader] Loaded config from homeassistant.components.config
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_17) [homeassistant.loader] Loaded conversation from homeassistant.components.conversation
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_7) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_18) [homeassistant.loader] Loaded api from homeassistant.components.api
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_13) [homeassistant.loader] Loaded auth from homeassistant.components.auth
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_14) [homeassistant.loader] Loaded lovelace from homeassistant.components.lovelace
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_15) [homeassistant.loader] Loaded onboarding from homeassistant.components.onboarding
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_5) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_4) [homeassistant.loader] Loaded history from homeassistant.components.history
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_2) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_11) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_0) [homeassistant.loader] Loaded map from homeassistant.components.map
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_7) [homeassistant.loader] Loaded mobile_app from homeassistant.components.mobile_app
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_19) [homeassistant.loader] Loaded device_tracker from homeassistant.components.device_tracker
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_3) [homeassistant.loader] Loaded zone from homeassistant.components.zone
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_14) [homeassistant.loader] Loaded person from homeassistant.components.person
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_8) [homeassistant.loader] Loaded sun from homeassistant.components.sun
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_6) [homeassistant.loader] Loaded system_health from homeassistant.components.system_health
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_9) [homeassistant.loader] Loaded updater from homeassistant.components.updater
homeassistant | 2019-05-10 14:35:53 INFO (SyncWorker_16) [homeassistant.loader] Loaded zeroconf from homeassistant.components.zeroconf
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setting up logger
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds.
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setting up http
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setting up system_log
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setting up recorder
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.2 seconds.
homeassistant | 2019-05-10 14:35:53 INFO (MainThread) [homeassistant.setup] Setting up lovelace
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up updater
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up xiaomi_aqara
homeassistant | 2019-05-10 14:35:54 INFO (SyncWorker_13) [homeassistant.loader] Loaded yr from homeassistant.components.yr
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up person
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up sun
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up hue
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain hue took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up group
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up discovery
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up zone
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (SyncWorker_18) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 1)
homeassistant | 2019-05-10 14:35:54 INFO (SyncWorker_18) [xiaomi_gateway] Xiaomi Gateway <redacted MAC address> configured at IP 192.168.<redacted end of IP address>:9898
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"<redacted MAC address>"}'
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'gateway', 'sid': '<redacted MAC address>', 'short_id': 0, 'data': '{"rgb":0,"illumination":1292,"proto_version":"1.1.2"}'}
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up script
homeassistant | 2019-05-10 14:35:54 INFO (SyncWorker_18) [xiaomi_gateway] Discovering Xiaomi Devices
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd" : "get_id_list"}'
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up webhook
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'get_id_list_ack', 'sid': '<redacted MAC address>', 'token': 'c2E9kifstAkid27C', 'data': '["158d0001e5752b","158d0001e5750c","158d00022735bb","158d0002236a45","158d00022736ce","158d0001ab2e5a","158d0001dbcbfd","158d0001dbcbd1","158d0001712e07","158d0001576635"]'}
homeassistant | 2019-05-10 14:35:54 INFO (SyncWorker_18) [xiaomi_gateway] Found 11 devices
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Discovery attempt 1/4
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0001e5752b"}'
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up conversation
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'sensor_motion.aq2', 'sid': '158d0001e5752b', 'short_id': 55352, 'data': '{"voltage":3015,"lux":"13"}'}
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d0001e5752b, sensor_motion.aq2 as: sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d0001e5752b, sensor_motion.aq2 as: binary_sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Discovery attempt 1/4
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0001e5750c"}'
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'sensor_motion.aq2', 'sid': '158d0001e5750c', 'short_id': 35106, 'data': '{"voltage":3045}'}
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d0001e5750c, sensor_motion.aq2 as: sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d0001e5750c, sensor_motion.aq2 as: binary_sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Discovery attempt 1/4
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d00022735bb"}'
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'weather.v1', 'sid': '158d00022735bb', 'short_id': 35184, 'data': '{"voltage":2975,"temperature":"1871","humidity":"7494","pressure":"100123"}'}
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d00022735bb, weather.v1 as: sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Discovery attempt 1/4
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0002236a45"}'
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'sensor_motion.aq2', 'sid': '158d0002236a45', 'short_id': 39800, 'data': '{"voltage":3025,"lux":"7"}'}
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d0002236a45, sensor_motion.aq2 as: sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d0002236a45, sensor_motion.aq2 as: binary_sensor
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up api
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Discovery attempt 1/4
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d00022736ce"}'
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up config
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up history
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'weather.v1', 'sid': '158d00022736ce', 'short_id': 20951, 'data': '{"voltage":2875,"temperature":"-1959","humidity":"6053","pressure":"100190"}'}
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d00022736ce, weather.v1 as: sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Discovery attempt 1/4
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0001ab2e5a"}'
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001ab2e5a', 'short_id': 55342, 'data': '{"voltage":2995,"status":"close"}'}
homeassistant | 2019-05-10 14:35:54 INFO (SyncWorker_5) [homeassistant.loader] Loaded google_translate from homeassistant.components.google_translate
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d0001ab2e5a, sensor_magnet.aq2 as: binary_sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Discovery attempt 1/4
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0001dbcbfd"}'
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbfd', 'short_id': 27518, 'data': '{"voltage":3005,"status":"open"}'}
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d0001dbcbfd, sensor_magnet.aq2 as: binary_sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Discovery attempt 1/4
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0001dbcbd1"}'
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up auth
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.yr
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up device_tracker
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbd1', 'short_id': 32916, 'data': '{"voltage":3005,"status":"open"}'}
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d0001dbcbd1, sensor_magnet.aq2 as: binary_sensor
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Discovery attempt 1/4
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up system_health
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0001712e07"}'
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain system_health took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': '86sw2', 'sid': '158d0001712e07', 'short_id': 25268, 'data': '{"voltage":3015}'}
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d0001712e07, 86sw2 as: binary_sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Discovery attempt 1/4
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"158d0001576635"}'
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': '86sw1', 'sid': '158d0001576635', 'short_id': 54014, 'data': '{"voltage":3005}'}
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device 158d0001576635, 86sw1 as: binary_sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Discovery attempt 1/4
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd >> b'{"cmd":"read","sid":"<redacted MAC address>"}'
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.1 seconds.
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'gateway', 'sid': '<redacted MAC address>', 'short_id': 0, 'data': '{"rgb":0,"illumination":1292,"proto_version":"1.1.2"}'}
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device <redacted MAC address>, gateway as: sensor
homeassistant | 2019-05-10 14:35:54 DEBUG (SyncWorker_18) [xiaomi_gateway] Registering device <redacted MAC address>, gateway as: light
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up tts
homeassistant | 2019-05-10 14:35:54 ERROR (MainThread) [homeassistant.components.device_tracker] Unable to load /config/known_devices.yaml: Config file not found: /config/known_devices.yaml
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 0.1 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up cloud
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up automation
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.5 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up onboarding
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up mobile_app
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.2 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (SyncWorker_1) [homeassistant.loader] Loaded light from homeassistant.components.light
homeassistant | 2019-05-10 14:35:54 INFO (SyncWorker_14) [homeassistant.loader] Loaded binary_sensor from homeassistant.components.binary_sensor
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.4 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain mobile_app took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up frontend
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.hue
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up light
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.2 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain person took 0.9 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (SyncWorker_8) [homeassistant.loader] Loaded notify from homeassistant.components.notify
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up map
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up logbook
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.components.light] Setting up light.hue
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setting up notify
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 0.0 seconds.
homeassistant | 2019-05-10 14:35:54 INFO (MainThread) [homeassistant.components.notify] Setting up notify.mobile_app
homeassistant | 2019-05-10 14:35:54 WARNING (MainThread) [homeassistant.components.hue.light] Color gamut of Hue lightstrip plus: GamutType(red=XYPoint(x=0.0, y=0.0), green=XYPoint(x=0.0, y=0.0), blue=XYPoint(x=0.0, y=0.0)), not valid, setting gamut to None.
homeassistant | 2019-05-10 14:35:55 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 1.0 seconds.
homeassistant | 2019-05-10 14:35:55 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.hue
homeassistant | 2019-05-10 14:35:55 INFO (MainThread) [homeassistant.components.hue.sensor_base] Starting sensor polling loop with 5.0 second interval
homeassistant | 2019-05-10 14:35:55 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 0.9 seconds.
homeassistant | 2019-05-10 14:35:55 INFO (MainThread) [homeassistant.setup] Setting up default_config
homeassistant | 2019-05-10 14:35:55 INFO (SyncWorker_9) [homeassistant.loader] Loaded stream from homeassistant.components.stream
homeassistant | 2019-05-10 14:35:55 INFO (MainThread) [homeassistant.setup] Setting up stream
homeassistant | 2019-05-10 14:35:55 INFO (MainThread) [homeassistant.setup] Setup of domain stream took 0.0 seconds.
homeassistant | 2019-05-10 14:35:55 INFO (MainThread) [homeassistant.setup] Setup of domain default_config took 0.0 seconds.
homeassistant | 2019-05-10 14:35:59 INFO (SyncWorker_18) [xiaomi_gateway] Gateway discovery finished in 5 seconds
homeassistant | 2019-05-10 14:35:59 INFO (SyncWorker_18) [xiaomi_gateway] Creating Multicast Socket
homeassistant | 2019-05-10 14:35:59 INFO (SyncWorker_16) [homeassistant.loader] Loaded switch from homeassistant.components.switch
homeassistant | 2019-05-10 14:35:59 INFO (SyncWorker_16) [homeassistant.loader] Loaded cover from homeassistant.components.cover
homeassistant | 2019-05-10 14:35:59 INFO (SyncWorker_12) [homeassistant.loader] Loaded lock from homeassistant.components.lock
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.setup] Setting up switch
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 0.0 seconds.
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.setup] Setting up cover
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.setup] Setup of domain cover took 0.0 seconds.
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.setup] Setting up lock
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.setup] Setup of domain lock took 0.0 seconds.
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.setup] Setup of domain xiaomi_aqara took 5.3 seconds.
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.xiaomi_aqara
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.xiaomi_aqara
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.components.light] Setting up light.xiaomi_aqara
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.components.switch] Setting up switch.xiaomi_aqara
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.components.cover] Setting up cover.xiaomi_aqara
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.components.lock] Setting up lock.xiaomi_aqara
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 5.91s
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.core] Starting Home Assistant
homeassistant | 2019-05-10 14:35:59 INFO (MainThread) [homeassistant.core] Timer:starting
homeassistant | 2019-05-10 14:36:12 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: home_assistant {'host': '192.168.65.3', 'port': 8123, 'hostname': 'Home._home-assistant._tcp.local.', 'properties': {'version': '0.92.2', 'base_url': 'http://192.168.65.3:8123', 'requires_api_password': True}}
homeassistant | 2019-05-10 14:36:30 DEBUG (SyncWorker_11) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0001dbcbfd"}'
homeassistant | 2019-05-10 14:36:30 DEBUG (SyncWorker_11) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbfd', 'short_id': 27518, 'data': '{"voltage":3005,"status":"open"}'}
homeassistant | 2019-05-10 14:36:30 DEBUG (SyncWorker_11) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbfd', 'short_id': 27518, 'data': '{"voltage":3005,"status":"open"}'}
homeassistant | 2019-05-10 14:36:30 DEBUG (SyncWorker_16) [xiaomi_gateway] _send_cmd >> b'{ "cmd":"read","sid":"158d0001dbcbd1"}'
homeassistant | 2019-05-10 14:36:30 DEBUG (SyncWorker_16) [xiaomi_gateway] _send_cmd resp << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbd1', 'short_id': 32916, 'data': '{"voltage":3005,"status":"open"}'}
homeassistant | 2019-05-10 14:36:30 DEBUG (SyncWorker_16) [xiaomi_gateway] read_ack << {'cmd': 'read_ack', 'model': 'sensor_magnet.aq2', 'sid': '158d0001dbcbd1', 'short_id': 32916, 'data': '{"voltage":3005,"status":"open"}'}
There may be something wrong with my configuration or something else, but as a brand new user of Home Assistant, I can't tell since this is my first use of this product.
I'm quite sure there are no problems whatsoever with my devices and gateway, since everything is working perfectly in Domoticz, where I get all my states, actions, events, etc...
Thanks for the help.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
same problem with ha 0.99