I cloned your fork and still get errors.
Here is log maybe you can see what I am doing wrong … ?
I can not see: door/widow sensors, occupancy sensors, switches (old, round), smoke sensor …
LOG:
2017-06-25 19:08:39 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform xiaomi
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 161, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File “/usr/lib/python3.4/asyncio/tasks.py”, line 372, in wait_for
return fut.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/binary_sensor/xiaomi.py”, line 43, in setup_platform
devices.append(XiaomiGasSensor(device, gateway))
NameError: name ‘XiaomiGasSensor’ is not defined
2017-06-25 19:08:42 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-06-25 19:08:42 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform template is taking over 10 seconds.
2017-06-25 19:08:42 WARNING (MainThread) [homeassistant.setup] Setup of camera is taking over 10 seconds.
2017-06-25 19:08:42 WARNING (MainThread) [homeassistant.setup] Setup of media_player is taking over 10 seconds.
2017-06-25 19:08:43 WARNING (MainThread) [homeassistant.setup] Setup of device_tracker is taking over 10 seconds.
2017-06-25 19:08:43 WARNING (MainThread) [homeassistant.setup] Setup of automation is taking over 10 seconds.
2017-06-25 19:08:44 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform speedtest is taking over 10 seconds.
2017-06-25 19:08:44 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.
2017-06-25 19:09:11 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
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 417, in push_data
device.push_data(jdata)
File “/home/homeassistant/.homeassistant/custom_components/xiaomi.py”, line 471, in push_data
self.schedule_update_ha_state()
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py”, line 301, in schedule_update_ha_state
self.hass.add_job(self.async_update_ha_state(force_refresh))
AttributeError: ‘NoneType’ object has no attribute ‘add_job’
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Drzwi wejściowe, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Drzwi balkonowe, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Okno balkonowe lewe, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Okno balkonowe prawe, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Okno Garderoba, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Okno Sypialnia, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Okno Pokój Zosi, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Okno Kuchnia, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Lodówka, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Ruch Wejście, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Ruch Korytarz, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Ruch Garderoba, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Ruch Kuchnia, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Ruch Sypialnia, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Ruch Łazienka, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Ruch WC, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Przełącznik RTV, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Przełącznik Kuchnia, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Przełącznik Zosia, the state is unknown.
2017-06-25 19:09:11 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template Bateria - Czujnik dymu, the state is unknown.
2017-06-25 19:09:24 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
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 417, in push_data
device.push_data(jdata)
File “/home/homeassistant/.homeassistant/custom_components/xiaomi.py”, line 471, in push_data
self.schedule_update_ha_state()
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py”, line 301, in schedule_update_ha_state
self.hass.add_job(self.async_update_ha_state(force_refresh))
AttributeError: ‘NoneType’ object has no attribute ‘add_job’