Xiaomi Products and Google Home integration

Hi all

Figured this would be a good place to ask this , given everyone here probably has a tonne of Xiaomi products.

I own the below
-xiaomi yeelights
-xiaomi ir controller
-xiaomi gateway
-xiaomi smartstrip
-google home mini

They all work well on the China sever,but i wanted to get the yeelights working with my google home so I set it up on the Singapore server to do that,which worked perfectly. Unfortunately the rest of the smart home stuff doesn't work on the Singapore server (well it wouldn't for me) .. is there a way to get them all working and the yeelights working through the Google home ?

I have a raspberry pi coming too , which I believe can help through ifttt. but any links or advice would be appreciated.

Thanks

Comments

  • +4

    Look at something like https://home-assistant.io/ on a raspberry pi/zero.

    It does have a semi steep learning curve but plenty of tutorials etc available. And it means you can be completely vendor agnostic when it comes to home automation as it ties everything together.

    • +3

      I agree. Install home assistant on your raspberry pi & then integrate Google Home with that. You'll be able to get everything working through that. You'll need to be able to Unix to get things working properly though.

  • +1

    I just move Lights to Mi Home if I want to automate with door switches or motion. and Leave in Yeelight if I want to use Google Home

    I'm currently in process of moving all automation to Home Assistant

    I currently have:
    - 1x White Bulb (automated by Door switch for Walk in Wardrobe)
    - 2x RBG Bulbs (1 automated by Door switch for Front Door, Other is Controlled by Google via Yeelight)
    - 5x RGB Lightstrips (all controlled by Google via Yeelight and Schedule timers for colours for kids to go to sleep and 'sunrise' to wake up)
    - 3x Wifi Bedlamps (controlled by Google via Yeelight)
    - 1x Gateway
    - 1x Aqua Temp (Controls Zigbee Switch Power Switch to turn on Fan in Server Cabinet when Temp reaches a Temp)
    - 1x Zigabee Power switch (As above and monitor power usage of fan)
    - 1x Bluetooth Temp Sensor (At moment just a display)
    - 2x Motion Sensors and 5x Door Sensors
    - 1x Cube Controller (not sure what I will do with this yet)
    - 1x Air Purifier 2 (Controlled by Google via Yeelight and Schedule timers)

    Its fun to build a smart house, working setting up Floorplans in Home Assistant for every sensor

    • Hey,

      How far along are you with the moving to home assistant?

      Any chance you can share your automations.yaml ? I am slowly working everything out but examples are really helpful :).

      Thanks

      • I have sonos, yeelight, kodi, and MI Gateway set up in Home Assistant so far. Still trying to get my nest protects set up, they are being a pain

      • Here is a basic Xiaomi Aqara Door Sensor to Yeelight RGB Bulb. Turns on when open and delays 2 minutes and turns bulb off. There is more you can do like check time, and weather as well to if bulb should come on during day.

        • alias: Back Door Sensor Open
          hide_entity: True
          trigger:

          • platform: state
            entity_id: binary_sensor.door_window_sensor_#########
            to: 'on'

          condition:
          condition: or
          conditions:

          • condition: sun
            after: sunset
            after_offset: '-03:00:00'
          • condition: numeric_state
            entity_id: sensor.dark_sky_cloud_coverage
            above: 50

          action:

          • service: light.turn_on
            entity_id:
            • light.media_room
          • delay: 00:02:00
          • service: light.turn_off
            entity_id: light.media_room

        https://home-assistant.io/components/binary_sensor.xiaomi_aq… Is a few examples of other Xiaomi products like Cube, Switch etc

    • Didn't know yeelight could control air purifier using Google home.

      I have air purifier setup with mi home and home assistant but the latest by hass.io version .62 breaks the mi robot and mi purifier integration in hass.

      • Gee that's no good, can you roll back the version? My air purifiers arrived today and am also planning to purchase mi robot.

        • I don't see an option to roll back the version. I'll just have to wait until 0.62.1 or 0.63

      • There is a few non-light products that can be set up in yeelights

  • +1

    https://home-assistant.io/components/xiaomi_aqara/ This will add your Gateway and all zigbee devices to home assistant.

  • Seeing as no ones said it clearly yet.

    You cannot make Mi Home app automation work with Google Home as the zigbee sensors are not supported on the Singapore server which is the only one with google home. Xiaomi/Yeelight know of this issue but it has been present for over a year and they don't seem to rate it a high priority to add the Zigbee products to the Singapore server.

    The only way to make this work is to setup an entirely different system/app such as Home Assistant.

    • Use IFTTT as an intermediary and they will.

      • And how does IFTTT connect to the Xiaomi Chinese servers to use the automation?

        There’s many third party ways to make things work but until Xiaomi either supports zigbeee devices on their Singapore server or supports Western internet companies on their China server such integration is not possible within the Mihome app

  • +1

    Connect the yeelights to the Singapore server through the Yeelight app, then link Yeelight to Google home. Leave the mi home app in mainland China.

    This seemed to let me use my toothbrush (China server only) and yeelights still work through Google home.

  • I installed Home Assistant on my Windows 10 PC to play around with, but from what I read it seems the rasp pi version is easier to work with?

    • +1

      hass.io is very simple and quick to set up

  • It's easy on the pi. I use Haas.io on the pi. It's mostly GUI and editing text files. Haven't needed to run a single Linux command or type into terminal or run ssh and I have it all setup. It's not easy but it's not that hard for computer geeks to do. I've never used Linux before.

    Have ha working with all my Xiaomi gear.

    The Google home integration into hass.io I have not done yet.

  • I'm running Home Assistant on my QNAP NAS (you can't run the hass.io build)

    It installed into a QNAP Container Station (basically a very lightweight VM) and you just install a prebuilt Docker build of HA (https://home-assistant.io/docs/installation/docker/)

    I also tried Domoticz on a Raspberry Pi (which worked fine) but in the end preferred HA - I was originally going to put HA on the Pi (before I found I could put it on the NAS) but my NAS is on 24x7 anyway and it runs way fine there

    I too am now at the point where it all works fine in HA but I'd like to integrate that with Google Home (and Amazon Echo - but I think thats not so likely since the tie to that from HA is apparently going to cost money)

    I've also got a Broadlink on the way so will see how integrating that goes :)

    • The broadlink switches work great with HA.

      I haven't played around with the IR blasters yet but they report temperature fine.

  • Thanks all.. has given me a great guide and some ideas to try.. appreciate it !

  • Can someone tell me if getting a Ubiquiti Unifi AC Lite will help with administering all the wireless devices on the network, such as reserving IP addresses etc. ? Or will I need the Ubiquiti router for that?
    I'm trying to set up my parents house with xiaomi gear and wondering if this would help if I need hunt down IP addresses/mac addresses for hassio.

    • +1

      Install Fing android app to scan the network.
      Most very basic routers offer the ability to reserve an IP address to a specific device. Sometimes you may need to enter the Mac address of the target device this is where Fing can be useful too.

      • Thanks! Looks like a great app.

Login or Join to leave a comment