Xiaomi Mi Universal Smart Remote Controller

I was wondering if there would be any support for the following:

I can see that there is already support for the broadlink device: https://home-assistant.io/components/switch.broadlink/

Bummer, I rushed and bought it, to realize that it isn’t supported yet.

I wonder what’s the procedure to get a new components added.

Don’t have any issue getting my hand into coding, though I need some guidance where to start

Just try this custom component and report problems: https://github.com/syssi/chuangmi_ir

Thanks syssi,

Will give it a try letting you know; just awaiting its delivery from gearbest

Howdy! Thanks for this! Going to give it a go this week. Quick question. Is there any way to do this without a rooted phone?

Yes: Xiaomi - Home Assistant

1 Like

Got the remote and I made it working on the Mi Home App in no time, then I moved to configure it in HA where confusion hit.

In the readme file there’s a link for installation (https://github.com/homeassistantchina/custom_components/blob/master/doc/chuang_mi_ir_remote.md) it talks about the token being the token for the IR remote itself. But under your repository and under the doc directory (https://github.com/syssi/chuangmi_ir/blob/master/doc/chuang_mi_ir_remote.md) there’s a link to get the API token which depicts the method to get the token for the Xiaomi gateway and not the remote! Which one is the accurate link?

Anyone out there gave it a shout?

Try to use this one: Xiaomi - Home Assistant

Thanks, for some reason the link is broken…

The manual was restructured in the mean time:

Thanks mate…

As I got Hass.io installed, it’s a challenge to follow the procedure.

I guess I’ll install HA on my laptop and play with it, keeping you posted

Cheers,

Newbie here. Anyone got it working on Hass.io? I was able to retrieve the token and IP from my ios device and decrypted it to 32 characters. But its giving me an Invalid Config error.

Invalid Config

The following components and platforms could not be set up:

  • switch.chuangmi_ir

Please check your config

This is my configuration.yaml setup. any help?

switch:
  - platform: chuangmi_ir
name: "Xiaomi IR"
host: blocked
token: blocked
switches:
  wcfan:
    name: 'wcfan'
    command_on: 'Z6VLAAkCAABpAgAAYgYAAKYIAACJEQAAoSMAAKScAABYeQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFAQEBAQEBAQEhISEhISEhIQEBISEBAQEBISEBASEhISFhNXE1AQ=='
    command_off: 'Z6VHAPEBAACBAgAASQYAAIYIAABqEQAAySMAAECcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFAQEBAQEBAQEhISEhISEhIQEBASEhAQEBISEhAQEhISFhNQE='

Yup, its Hass.io. Upon switching to Hassbian, got everything to work perfectly =D

@syssi I Was wondering if you could have a look at the broadlink Climate component and port this to the XIaomi IR ?

https://github.com/vpnmaster/homeassistant-custom-components

I’m also running hass.io and gave this a shot. The error it gives is being unable to install the miio dependency. Hass.io already includes miio and I have it working for the Xiaomi Air Purifier 2.

I know the hass.io install is through virtual environments and docker containers, which is above my present knowledge, so I can’t yet figure this out myself. However, it seems the custom component needs to be changed slightly to point to the miio instance already installed with hass.io. Perhaps that’s enough of a starting point for someone with more knowledge to dive in and make a hass.io-compatible fork.

Cheers!

Any chance to get ac component for xiaomi chuanir ?

We could maybe have ac, media player and switch platforms ?