By the way, i have updated the code with some logs and timeout. See if it works
Try change modify the code so that i listen on the correct NIC
mreq = struct.pack(“4sl”, socket.inet_aton(self.MULTICAST_ADDRESS), YourIP)
Noticed that WIP for multiple gateway is supported. Now with this , maybe it’s time to get another one
Not supported yet. I’m still working on it. Need to wait my other hub to arrived before i can work further
I have vmware installed, but i’ve not started up the application since reboot.
I just googled all about this multicast business…
I see it being with “IGMP” I’ve got a TP link Archer 2600 and I found a IGMP setting (Wiki told me " IGMP is an integral part of IP multicast.")
Moment of truth…
IM IN!!!
I’m in… and its hot
Beer coming your way @rave looking forward to further developments!
I would love to be able to use the hub as a visual indicator for something using the colours to notify of various things.
you finally did it! and thanks for the beer
By the way, I find it a lot easier to read the sensors not using a default badge. Here’s what i did yesterday. Need to mess a lot with the templating and configuration though.
Work in progress… I’m going to have to clean up now I’m about to buy sensors for all the doors and windows
<img src="//community-assets.home-assistant.io/original/2X/b/bfc6ad92d4fad2850917b35bcd7b768dd02890f3.png" width="690" height="462">
Has anyone figured out how to show the motion as last motion dectected at 3:43pm for example?
Same with door sensors last opened/closed 27th Dec 3:35pm
Have been reading on this but i think the last event date has been removed. Not sure how to add it back
16-12-28 15:15:18 homeassistant.bootstrap: Error during setup of component xiaomi
Traceback (most recent call last):
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/bootstrap.py”, line 151, in _async_setup_component
None, component.setup, hass, 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/hass/.homeassistant/custom_components/xiaomi.py”, line 44, in setup
XIAOMI_HUB = XiaomiHub(key)
File “/home/hass/.homeassistant/custom_components/xiaomi.py”, line 108, in init
self._mcastsocket = self._create_mcast_socket()
File “/home/hass/.homeassistant/custom_components/xiaomi.py”, line 192, in _create_mcast_socket
sock.bind((self.MULTICAST_ADDRESS, self.MULTICAST_PORT))
OSError: [Errno 98] Address already in use
check if you have other xiaomi/aqara plugin running on raspberry. Most likely, you either still have the original Aqara component or homebridge Aqara plugin
Following this topic for a while now, very happy to see this process!
Ordering a hub and sensors!
Edit:
anyone tried to connect the IP Cam already?
http://www.gearbest.com/ip-cameras/pp_487830.html
Does anyone know if the v1 version of the gateway is compatible? Or should it be the v2?
I’m using the Xiaomi Yi Cam China version connected to the Mi Home app. I can turn it on and off via the motion sensor. can connect the Cam via rtsp on HA. I’m not sure if the US version uses MiHome, i think it uses the yi home app.
http://xiaomi-mi.com/ip-cameras/xiaomi-yi-home-camera-night-vision-white/
Got confirmed that the hub in this package is the v1 hardware revision instead of the new v2.
Don’t know if that’s a problem.
always worried about these purchases. If you go on some sites you find it at 100+USd on other at 20-USD … how can be such a price difference, I think they are fakes/clones …
Try to get v2. I think i read somewhere that the API only works with v2
Here is v2: http://www.gearbest.com/living-appliances/pp_344667.html?vip=728572
Used gearbest loads of times, very reliable.
slightly OT. How do you do the first setup with this gateway?
It just arrived, I connected to the AC. Then downloaded the MI HOME app, I connect to the WIFi created by the gateway (lumi-gateway-v3miap0aa8), but the app does not see the gateway … ???