I see that it’s quite hard to get access token for Xiaomi devices. I wanted to ask if anyone considered contacting Xiaomi and asking for a ‘legal’ integration instead of all this hacking into it?
Apparently they have integration with Google Assistant and Alexa. And it does not seem like you need to go through all this token-finding hell. Since it’s all so hacky there’s a high chance that Xiaomi may break it at any moment. So it’s not reliable.
I believe that HomeAssistant is big enough name for Xiaomi to consider or at least respond to. Granted, it’s open source, so they may not like that part. But still, I suppose it’s worth asking them?
@radinsky No need to be so offensive. I could of course try that. Asking if it was done already. I also suspect that it may require contacting them by more official ‘leaders’ of hass community with official hass email, not just some random weirdo from random email.
Or is this for local control? I thought this is token for the cloud. Is it local token for device?
–
I also don’t really understand what all the privacy hype is all about, what information do they have? Your floor plan? Who could benefit from it? It’s not to argue, just to understand.
That was not an answer to the question I asked, instead you said " try to do it yourself". At least from my experience this kind of response usually implies certain form of aggression. Which, in this situation, may not be a good option as I mentioned in my other post, it has to be more official than that, I suppose.
I’m trying to get more information on the subject. I can’t ask them anything without knowing if anyone already asked it, or if Hass community is even interested in this.
Getting the token is for local control. The token is a security feature between their cloud server(and then the mobile app) and the device so that everything goes through their cloud server which then uses another security feature. The mobile app actually sets that token and syncs with the cloud server when the device is added to your account. It is the same scheme Tuya uses for example and it is as painful to obtain this token from the Tuya plugs. Not sure how far you will be able to go with this given the fact that the token is a security feature and is unlikely to be made easier to obtain…
Yes that’s what concerns me, the fact that it will only get harder to control until HASS gives up on supporting it at all.
I would like to have a “Cloud” based integration component, which goes the ‘official’ route. I don’t care about China knowing my floor plan and my vacuuming schedule, lmao. I’m more concerned about it just working for as long as I have it all setup.
Could be 2 separate ways of integration, local and cloud based. Was there any discussion about it? Did anyone try to do it?
EDIT: there is no benefit to Xiaomi in them making it easier to use their hardware with other systems. If you are stuck with their hub, you’ll stick with their sensors/switches/bulbs etc.
zigbee2mqtt is open source and can accommodate many different manufacturers’ hardware, and not give away your data.