Mi Connector and Xiaomi

Can you clarify for me what the Server Address Device and External Network address device would be.
i.e. is one the RPi and the other the Mi Home hub.
Thanks again.

Both are the RPi (which is what I did here) I wasnt 100% sure either :joy: But it is working :+1:

image

I cannot get this to work.
Can you just clarify something for me.
In the Mi Connector app and User Setting, what username and password should I enter here.
Mi Password? RPi password.
I've tried several things but thought I would ask.
When I hit the test button for Smartthings settings I'm getting fail so I know its not connecting through.

Thanks again.

have you set up the DB part in the settings on the RPi?

Yes all done.
Would it cause a problem if I just followed the whole process through again?
I know docker is running OK.
image

What’s the settings for the DB in the settings?
They are pretty standard, but hit register just in case.

And which version of the Mi Connector docker did you install? I did 004 I think from memory.

I just followed the instructions TBH. Didn't see a version mentioned.

1 Like

This is my DB settings

image

When you hit Register, you should see this.
image

I can put anything in those fields and it always says Success. :thinking:
I've tried port 3306 & 33006. password or password1234. In the db install I left the password to password1234.
OK, the DB url. Is that your router.
I just have localhost in that field.

What do you have in the user setting fields.

You know what I'd never looked into it deeper, but you're right and I see errors in my log, ah well lol.

On the app side, on HE in Mi Connector, have you hit the Config and grabbed the details, then added those to the Docker?

image

User settings
image

Added those to the docker?????????
I've not consciously done that.
Oh crxp. Something else I've missed probably. Can you give me a hint please. :blush:
I'm the same as you with the other screenshots.

1 Like

If you hit configure on HE Mi Connector, you get this.

{
"description": "Mi Connector API",
"platforms": [
{
"platform": "SmartThings Mi Connector",
"name": "Mi Connector",
"app_url": "http://192.168.1.26/apps/api/",
"app_id": 7742,
"access_token": "XXXXXXX-XXXXX-XXXXX-XXXX-XXXXXXXXXXXX"
}
]
}

Then copy and paste into the Docker Mi Connector SmartThings settings. Then register.
If all good, it will have added to the config.json on the docker. (in /confg I think).

If I hit the config button, I assume you mean this one.
image
All I get is this.
image

Ah, you have to enable OAuth :wink:

Thats here

Ok Youre now a worse skimmer (or better - not sure) than I :joy:

I have.
image

I'd uninstall the app, and reinstall it then, just to be sure its installed with it already done, maybe update the OAuth too?

I think a penny has just dropped.
Do I need to put the Client secret in the access token field.

No that doesn't work. :frowning:

I think if you can’t get that config open, it wouldn’t get much further. I’d go go reinstalling the app in HE first.

YYYEEESSSSSSSSSS!!!!!!!!!!!
Thanks for your patience and help. :smile:

I now have the config and I'm now getting success when I test.
Now to go deeper.

2 Likes

Woohoo! Nice one. Now the fun really begins, getting the hub and token into the docker :wink:

2 Likes