If the wall switch has two buttons it has two circuits also. A single button is equipped with a single relay.
I have upgraded to 0.50 and removed the custom component. But my gateway is not discovered anymore:
2017-07-30 15:34:15 ERROR (SyncWorker_12) [homeassistant.components.xiaomi] No gateway discovered
2017-07-30 18:52:20 ERROR (SyncWorker_16) [homeassistant.components.xiaomi] No gateway discovered
2017-07-30 19:07:51 ERROR (SyncWorker_0) [homeassistant.components.xiaomi] No gateway discovered
2017-07-30 19:10:08 DEBUG (SyncWorker_4) [homeassistant.components.xiaomi] Expecting 1 gateways
2017-07-30 19:10:08 INFO (SyncWorker_4) [homeassistant.components.xiaomi] Discovering Xiaomi Gateways (Try 1)
2017-07-30 19:10:13 INFO (SyncWorker_4) [homeassistant.components.xiaomi] Discovering Xiaomi Gateways (Try 2)
2017-07-30 19:10:18 INFO (SyncWorker_4) [homeassistant.components.xiaomi] Discovering Xiaomi Gateways (Try 3)
2017-07-30 19:11:39 ERROR (SyncWorker_17) [homeassistant.components.xiaomi] No gateway discovered
This is my config:
# configuration
xiaomi:
gateways:
- mac: !secret xiaomi_mac
key: !secret xiaomi_key
# secrets (changed the last parts to aaaa)
xiaomi_mac: f1b4aaaaaaaa
xiaomi_key: xa42aaaaaaaaaaaa
It used to work with the custom component, I renamend all sid settings to mac.
The gateway does not publish (broadcast) the information very often. If you need a more accurate information the motion sensor must be polled. The official component does not support this feature at the moment.
It looks the the required implementation (PyXiaomiGateway) is missing. Please install the dependency manually:
pip install 'https://github.com/Danielhiversen/PyXiaomiGateway/archive/aa9325fe6fdd62a8ef8c9ca1dce31d3292f484bb.zip#PyXiaomiGateway==0.2.0'
May be inside of your virtualenv. If the library is already installed power cycle your gateway and restart home assistant.
it looks like the gateway lost the connection to the wifi network. Do you know how I can change the wifi network which is used by the gateway? I think about using hostapd on the rpi3 for an iot wifi which blocks internet and so on…
Is there a difference between the gateway and gateway 2?
The original gateway is only good with the MiHome app. If you are looking into integrating with other home automation applications like HA, then you need the gateway 2 which has a developer mode to share the information.
Is there particularly a way to tell the difference?
Gateway2 has radio. The first one does not.
Sorry, I was more meaning is there any physical difference? As in a way to tell them apart from the pictures?
I’ve never seen a gateway v1. I don’t know how you might find them.
Do you happen to hve a gateway and want to learn if it is v1 or v2. -> Just open the app and look for the radio.
Or Do you want buy a new one and be sure that it is v2. Just ask the seller. They don’t sell v1’s anymore.
Nice one, Daniel and the other contributors. Big thanks for this.
I bought my first in November 2016, i think, and was v2. I doubt you find v1, to be sure ask the seller
Just to let you know that I changed to custom component to the official one without any issue.
Thank you all!
Eeek, I had already bought one…Just waiting on it coming (not chuffed as I bought it from ebay - could’ve got one at ~£20 but went for one at ~£30 because it said it was in the UK - turns out it’s coming from China the same as the rest of them - not fussed but I wanted it quick so have basically wasted ~£10, could’ve got a couple of buttons for that )
Suppose I’ll just have to wait - I imagine it’ll end up being the v2 if the v1 is so old
Can anybody confirm thecompatability of xiaomi cutain motor with dooya DT82? As the latter is twice as cheaper
Thanks Tommy for the explanation.
It’s now easier with the 0.50 version xiaomi supported.
Hello everyone.
I have received my brand new Aqara motion sensor which includes an illumination sensor, but I have it running for a couple of hours and the Lux value seems to be almost always the same (2 Lux) - both in HASS or Mi Home app.
Anyone who also has this sensor, can advise on if this is normal? I was expecting these values to be more variable like the ones from the gateway…
Thanks in advance.
I do have 2 of these sensors setup, one in the foyer and the other room hallway for testing the illumination sensor. I am seeing that if under kind of dim environment like the room hallway, the sensor value is almost always at 2 lux. It is not really able to cater to a good range of values under dark situation.
The below foyer value is still applicable for me to do some automation as I would want the lights to turn on when it is below 10 lux.
Unfortunately for the room hallway, the reading is usually 2 lux unless the lights are on. I could not really use the illumination sensor here for automation of lights as at 2 lux, it is still ok to not turn on the lights.
Okay, i admit, i haven’t read the whole thread…
Cool to get official support for xiaomi smart home.
It’s hard to choose which “system” to go for but i like xiaomi (really don’t know why).
Is it possible to block the gateway to access internet and use i locally only and still let HASS connect to it?