There seems to be a fork of mirobo thats meant for other devices. Its called miio https://github.com/SchumyHao/python-miio/commits/master
Has anyone updated to latest version of xiaomi home iOS app?
The patch notes are a little worrying in their mention of problems accessing devices and needing to change location:
I have 2 Xiaomi Sensor with Lux and 1 older without lux. I am struggling with them and automation’s. They work well when they work, but I think they must have some sort of long time out? maybe more than 10 minutes?
I can trigger the motion, light on. several minutes later the sensor reports off to HA. So I go to trigger it again and nothing, stays as OFF, but check the log in the Xiaomi app and it has been triggered.
Is there some sort of setting I need to set to allow the Xiaomi gateway to speak to HA more regularly please?
The fork is outdated. The source repository (python-mirobo) is well maintained and the count of supported devices is growing.
It looks like your wireless connection (AP ↔ xiaomi gateway) is flaky. The “there is motion”-event is a multicast/udp broadcast. If the event gets lost there is no way for a recovery at the moment.
Discussion moved: Xiaomi Sensor with Lux help
maybe now we can change server?
iOS went ahead and updated the Xiaomi for me.
Thankfully it didnt break anything that I can see.
you still using mainland china server? I mean maybe now we can use other servers and it will still work with HASS … maybe
Yes still using china server. I didnt try changing.
Let me just weigh in here. I’ve been using the Singapore (I think) servers since I got my hub. The china server was not responding most of the time and having significant delays. I presume the reason is the Great Chinese FireWall.
I used DNS hijacking to direct my traffic to a server that was shown to not be located in china. I.e. I think it doesn’t matter which server you are using - all I’ve tried support the gateway.
In the past the integration in HASS was working (I think becasue of the edveloper mode availability, but I am not 100% sure was that) only if the server was mainland china.
Maybe now this has changed
First of all, thank you all for this great works.
I have the new Aquara Wireless Switch (the squared ones) they works well with HA but the long press is not detected, only single and double click. Is is a bug related to my setup or a general problem ?
The new square Aqara wireless switch only has 2 modes which is single click and double click. There is nothing wrong anywhere.
I am getting the following error when I add an additional gateway to my setup:
2017-08-07 21:14:54 ERROR (Thread-2) [PyXiaomiGateway] Not a device
Here’s my config:
xiaomi:
gateways:
- mac: 286xxxxxabd8
key: 6B6xxxxxxxxxxxx43E4
- mac: 34ce0xxxxx20
key: 4AF6473xxxxxAx4774
Checked and double-checked the mac id. Running 0.50.2
Any ideas?
Thanks!
Tom
…and just to answer my own question , I needed to update the firmware on my new gateway. Both working fine now.
New page with gateway protocol description https://forrestfung.gitbooks.io/lumi-gateway-local-api/content/
Thank you for taking time to answer. It sounds weird that Xiaomi has launched new hardware with less possibilities… but ok … Maybe in a next firmware update…
Sorry if this is the wrong thread for this…
I am trying to use the Load power from my Zigbee plug, but cannot get it to work. Is this the right way:
trigger:
- platform: numeric_state
entity_id: switch.plug_158dXXXXXXXXXX
value_template: '{{ state.attributes.Load_power }}'
above: 3
Can you try this instead?
trigger:
- platform: numeric_state
entity_id: switch.plug_158dXXXXXXXXXX
value_template: '{{ state.attributes.load_power }}'
above: 3
Gearbest has another Flash Sale going on:
Xiaomi Door and Window Sensor for $8.78 (https://m.gearbest.com/smart-light-bulb/pp_257677.html)
Aqara Door and Window Sensor $6.99 (https://m.gearbest.com/access-control/pp_626703.html)
Aqara Temperature Sensor $9.47 (https://m.gearbest.com/access-control/pp_626702.html)
Aqara Wireless Switch $6.59 (https://m.gearbest.com/access-control/pp_626695.html)
Another cheap option, is to go to the “old” Temperature Sensor and chose “Buy together and save”:
- Xiaomi Temperature Sensor $9.99 for the first and $8.09 for each additional
- Xiaomi Door and Window Sensor $6.86
- Xiaomi Wireless Switch $5.47
- Xiaomi Smart Body Sensor $8.79
Bye,
Daniel