Xiaomi Gateway Integration

This topic should be moved, it’s not a Third party integration anymore? or just create a new one and move on…

1 Like

Hi @sjee I am not sure where is the custom component folder? Is there a manual or official guide surrounding this? Thanks

As @syssi wrote you’re in the wrong topic. This is the one dailing with the wifi plug https://community.home-assistant.io/t/xiaomi-mi-wifi-plug-air-purifier

As for the custom component folder, it depends on you installation but it’s probably here:
/home/homeassistant/.homeassistant/custom_components

1 Like

Hi @sjee @syssi
Thanks but in my HASS instance, i cant find that folder custom_component.
Sorry if this is in the wrong thread/topic, I’ll ask on the other thread
Cheers

This is fine. Just create the custom_component folder. It should look like this:

$ find .homeassistant
.homeassistant
.homeassistant/custom_components
.homeassistant/custom_components/switch
.homeassistant/custom_components/switch/xiaomiplug.py
.homeassistant/.HA_VERSION
.homeassistant/home-assistant.log
.homeassistant/automations.yaml
.homeassistant/groups.yaml
.homeassistant/configuration.yaml
[...]

The configuration.yaml is a good orientation.

Please open a new topic at least! :slight_smile: A lot of information is getting lost here because of the infinite length.

1 Like

Lets vote!

  • Close/lock the thread since the xiaomi component is now in core HA. We’ll need to start new threads about specific aspects of Xiaomi zigbee device operation etc. This thread will remain as a searchable resource.
  • Leave the thread open and continue the chat :slight_smile: this place is fun!

0 voters

Hello again.

Any idea if component might also work for this Smart Lamp?

https://www.gearbest.com/table-lamps/pp_393727.html

Does anyone know if this one instead is controllable via above component or any other?

https://www.gearbest.com/table-lamps/pp_363779.html

I want to buy a new office lamp, but wanted it to be HASS-compatible…

Thanks in advance.

The lamp is supported by python-mirobo (python library). The basic functionality (on/off) should work with Xiaomi Philips Lights integration by syssi · Pull Request #9087 · home-assistant/core · GitHub in future. If you help, we can extend the feature set. :slight_smile:

OK 2nd gateway arrived and lucky I was working at home today :wink:
So got it working in HA and removed the 2 switched (1 single and 1 double) from the old gateway and added them to the new gateway! WOO HOO we have working switches again. It keeps saying please update the firmware, but I don’t need to use the app now :slight_smile:

Thankfully I only need switches upstairs where the 2nd gateway is… Just thought I would pass this info on.

1 Like

1 really annoying issue with the older firmware. You cannot add the newer body motion/luminance sensors to a gateway with it. That has bugged me now. Spent ages trying to add several that I had working on the other gateway with new firmware… just wouldn’t add. tried back on the old gateway, straight in. Tried and older just motion sensor adds to both old and new firmware… ok I am annoyed! :slight_smile:

Don’t worry and wait some days. There will be a release of a new gateway firmware soon.

1 Like

that will be great news… thanks for the heads up :slight_smile:

Great news, hope it fixes the issue! and thank you @MarkR for the info :slight_smile:

Good question. I also have the same problem (with random PIR’s). The only way I can revert the state is deleting the database file (*.db in the homeassistant folder). Since the historic is not important i prefer losing that information and having the correct sensor working.

It’s a feature. HASS saves all states on shutdown and reconstructs the complete state on boot up. The result is a conserved state. If the gateway provides new data the new data is applied afterwards. If the gateway provides a wrong state for the PIR the wrong state remains.

Please report to the developers using the feedback option.
The more people report the problems, the better is might be.

1 Like

This doesn’t reset the state. I’ve tried, but the latest state gets polled from the gateway. This is where the problem resides as @syssi says.

I’ve read this whole topic and came to know a lot about those issues. They have been there for a couple of months, and have to be fixed by the xiaomi developers.

There might be a few other options;
Wait for the ZiGate (and for intergration with HASS)

Intergrate the Dresden Electronic usb zigbee tranceiver

You mean both lamps or only the Philips one?

Hmm… for the philips one I’m sure. I haven’t seen the Mijia Smart LED Desk Lamp in the wild so far. The chance it will work out of the box is 50:50. :wink:

1 Like