Hi,
EDIT: Solved this by adding my RPi to the same network as IOT devices (before it was in a different subnet).
I’m trying to add a Xiaomi powerstrip and Philips eyecare to my HA.
I have tried multiple differant ways to obtain the tokens:
*from miio2.db from my phone
*from the logs of the Mi Home app.
- From wire shark capture
The strip and philips eyecare work well in the Mi Home app, but I can’t get my HA to discover either one of them and if I try to force it with model name they just stay unavailable.
I’m able to discover other devices in that same network (yeelight, cast, amp…)
I don’t really know what I should do to fix this. Is there some developper mode that has to be switched on or something?
I also had the problem of getting “Platform xiaomi_miio not ready yet” before I added logger to the config:
logger in configuration.yaml
logger:
default: warn
logs:
homeassistant.components.switch.xiaomi_miio: debug
miio: debug
Here is the part of my configuration.yaml
switch's configuration.yaml
switch:
- platform: xiaomi_miio
host: <powerstrip's IP from router>
token: <obtained token from logs>
model: zimi.powerstrip.v2
light:
- platform: yeelight
devices:
192.168.30.14:
name: Living Room - platform: xiaomi_miio
name: Xiaomi Philips Eyecare
host:
token: 1169571456c9442ac8c756e50929e574
model: philips.light.sread1
Home-assistant.log
2019-01-22 14:32:45 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=35 from 2019-01-22 13:15:54.348519)
2019-01-22 14:32:47 INFO (MainThread) [homeassistant.components.switch.xiaomi_miio] Initializing with host 192.168.30.11 (token 5fb4e…)
2019-01-22 14:32:52 ERROR (SyncWorker_5) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:32:52 ERROR (SyncWorker_0) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:32:52 ERROR (SyncWorker_10) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:32:52 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:32:52 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:32:52 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:33:28 ERROR (SyncWorker_3) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:33:28 ERROR (SyncWorker_9) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:33:28 ERROR (SyncWorker_2) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:33:28 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:33:28 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:33:28 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:33:59 ERROR (SyncWorker_13) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:33:59 ERROR (SyncWorker_1) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:33:59 ERROR (SyncWorker_7) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:33:59 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:33:59 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:33:59 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:34:30 ERROR (SyncWorker_9) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:34:30 ERROR (SyncWorker_18) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:34:30 ERROR (SyncWorker_4) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:34:30 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:34:30 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:34:30 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:35:01 ERROR (SyncWorker_13) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:35:01 ERROR (SyncWorker_1) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:35:01 ERROR (SyncWorker_6) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:35:01 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:35:01 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:35:01 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:35:32 ERROR (SyncWorker_9) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:35:32 ERROR (SyncWorker_19) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:35:32 ERROR (SyncWorker_2) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:35:32 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:35:32 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:35:32 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:36:03 ERROR (SyncWorker_7) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:36:03 ERROR (SyncWorker_13) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:36:03 ERROR (SyncWorker_14) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:36:03 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:36:03 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:36:03 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:36:34 ERROR (SyncWorker_18) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:36:34 ERROR (SyncWorker_9) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:36:34 ERROR (SyncWorker_4) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:36:34 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:36:34 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:36:34 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:37:04 ERROR (SyncWorker_10) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:37:04 ERROR (SyncWorker_7) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:37:04 ERROR (SyncWorker_5) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:37:04 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:37:04 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:37:04 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:37:35 ERROR (SyncWorker_18) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:37:35 ERROR (SyncWorker_3) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:37:35 ERROR (SyncWorker_17) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:37:35 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:37:35 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:37:35 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:38:06 ERROR (SyncWorker_13) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:38:06 ERROR (SyncWorker_10) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:38:06 ERROR (SyncWorker_14) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:38:06 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:38:06 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:38:06 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:38:36 ERROR (SyncWorker_3) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:38:36 ERROR (SyncWorker_4) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:38:36 ERROR (SyncWorker_18) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:38:36 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:38:36 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:38:36 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:39:07 ERROR (SyncWorker_10) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:39:07 ERROR (SyncWorker_13) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:39:07 ERROR (SyncWorker_5) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:39:07 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:39:07 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:39:07 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:39:38 ERROR (SyncWorker_18) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:39:38 ERROR (SyncWorker_4) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:39:38 ERROR (SyncWorker_3) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:39:38 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:39:38 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:39:38 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:40:09 ERROR (SyncWorker_7) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:40:09 ERROR (SyncWorker_10) [miio.device] Unable to discover a device at address 192.168.30.11
2019-01-22 14:40:09 ERROR (SyncWorker_0) [miio.device] Unable to discover a device at address 192.168.30.15
2019-01-22 14:40:09 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15
2019-01-22 14:40:09 ERROR (MainThread) [homeassistant.components.switch.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.11
2019-01-22 14:40:09 ERROR (MainThread) [homeassistant.components.light.xiaomi_miio] Got exception while fetching the state: Unable to discover the device 192.168.30.15