Cannot use Xiaomi Gateway Integration after reset

Hi All,

I just reset my router and reset the Xiaomi Gateway Integration
I just re back all the settings, add the new key that app show via about.
but still, HA cannot find the Xiaomi Gateway Integration

Can anyone help?

The log show this.

2017-10-20 16:55:51 ERROR (MainThread) [homeassistant.setup] Error during setup of component xiaomi
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py", line 194, in _async_setup_component
    component.setup, hass, processed_config)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/.homeassistant/custom_components/xiaomi.py", line 72, in setup
    PY_XIAOMI_GATEWAY = PyXiaomiGateway(hass, gateways, interface)
  File "/home/homeassistant/.homeassistant/custom_components/xiaomi.py", line 118, in __init__
    self._socket.bind((interface, 0))

Do you have multicast enabled?

i did not make any change on HA only reset the gateway…

why need to use multicast for the gateway?

The gateway needs multicast.
You said

I just reset my router

I wondered if resetting your router might have disabled multicast.

I do not reset to factory, just the power…

now the log say, GRRR :frowning:

  File "/home/homeassistant/.homeassistant/custom_components/xiaomi.py", line 58, in setup
    sid = gateway['sid']
KeyError: 'sid'

OK got you. Sorry no can help as I didnt see it before.

TX for try:)

fix it!

just read here and test more and more settings, one of them work,
:slight_smile:

i update the HA to the last ver now i have a new icon name “sensor.illumination_286c0”

Do you know what is make?

You must have one of the newer PIR sensors that come with illumination sensor besides motion.