Interested in giving my decoupled Aqara Wall Switch code a try? in decoupled mode when you press the switch, it generates a click(single click) that HA can react to. One big CAVEAT is that you can’t use the Mi Home app’s automation on that switch, otherwise it will generate erroneous clicks when mi home’s native automation routine triggers.
Although not every color name from the css3 color map (link: CSS Color Module Level 3) works. I was getting the error:
[homeassistant.util.color] unknown color supplied sky default to white
I tried to use rgb_color with no prevail. (was getting: expecting data['rgb_color'] got "[255,255,255]" type errors.)
After some fiddling I found the best matching available colors. For anyone interested these are the color names matching the default scenes in the gateway:
Can anyone help with implementing some wifi mini plugs. I am really struggling.
I have the gateway all up and running, I can see the temperature, luminance and humidity all loaded into Home Assistant. I can turn the light on and off etc on the gateway etc.
I also have three mi plug mini’s. I have used miio to find out the token details etc.
However I don’t know what to put into the configuration.yaml to get them working (Or should they be automatically found?). They are all working on the MiHome App, but I can’t seem to load them into the Home Assistant to control them via the UI.
I currently have files all loaded into the custom_components folder on my HASSBIAN.
I have tried everything I can think of. Can anyone give an example of their configuration.yaml or give me to some tips?
Firstly thanks syssi for the advice! I am new to this and really struggling. I will try implementing the xavV version today and renaming it.
I have a quick question though; can’t I use the “switch” that is included in “Xiaomi Gateway Integration” by Rave? I ask because it seems to be more regularly updated and has more development coming with power consumption etc?
With either methodology, should I use the switch the Rave or xavV version, is it just renaming the xiaomi.py file in the switch folder? Or are there other elements which also need to be renamed?
Apologies if this is a total newbie question. Any help would be greatly appreciated. I am also doing a thorough write up of my build for some friends. I will share with the community when completed.
I just looked a bit into the new square aqara switch - I can read the voltage, but I don’t think the gateway forwards the events as the normal Xiaomi components.
Might be a firmware issue.
Furthermore the MiHome Android app can’t add the Aqara switch - using the IOS MiHome app it succeeds.
Strange
No problem. Nevertheless you are mixing things up. There is a plattform called “xiaomi” from @Rave and a fork from @danielhiversen which implements the xiaomi gateway plus zigbee devices. The xiaomi wifi plug is another protocol. That’s why another home assistant component is needed. This component is called “xiaomi” also annoyingly. Because of the name conflict you have to rename some stuff…