I am trying to install the remote. So I got the token from the miio script and got this:
Device ID: 88207853
Model info: chuangmi.ir.v2
Address: 192.168.131.159
Token: c89548fcae7e3edbcea9255088c7c5b6 via auto-token
Support: At least generic
Then I entered the following to configuration.yaml:
But the platfrom is still failing to start with the following messages in the log:
2018-08-11 07:59:21 ERROR (MainThread) [miio.device] Unable to discover a device at address 192.168.131.159
2018-08-11 07:59:21 ERROR (MainThread) [homeassistant.components.remote.xiaomi_miio] Device unavailable or token incorrect: Unable to discover the device 192.168.131.159
2018-08-11 07:59:21 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
Any suggestions? the token is exactly as I got from the discovery…
Got it working at last, just sharing the wealth… the HA found it only after I connected it to the same network as HA (I have a private network for all the smart home devices).
Few things I learned during this proccess:
You must set the Mi Home app location to mainland china
You must have the latest iphone “Mi Home” app, otherwise you cant add the device
The remote and HA needs to be on the same network
I am going to test the last part again today and update if necessary.
Hello, someone can Help me? I bought a Xiaomi Universal IR Remote, but cannot pair to my network. Seems there is a regional block code… Someone can watch the log and help me find out why the device does not pair with the wifi network?
Thanks in advance.
Here’s the log. https://pastebin.com/iQFAvbYt
If you have not yet got it going, forget the mi home app… Just use the Miio NPM module from your command line: miio - npm
And setup like so:
# 1. Connect to the IR remote's wifi access point (when it's in initial setup mode)
# 2. Get the token:
miio discover --sync
# 3. Connect the remote to your wifi network like so:
miio configure 192.168.4.1 --ssid xxxxxx --passwd xxxxxx
# 4. Configure your home assistant as per: https://www.home-assistant.io/components/remote.xiaomi_miio/