Hi,
I\m a beginner here and I’m stuck with connecting HA to Xiaomi devices (air purifier and vacuum robot).
I have managed to co connect them to WiFi (*) and to Mi Home app, so I know they are in my network.
I have reserved fixed IP for them and extracted the tokens as per instruction (with the python script).
Still, when I try to add Miio integration for any of these devices to HA, I only get the “could not connect. Unknown error” message.
What am I doing wrong?
(*) There is a Catch 22 case when you have MAC address control in your WiFi - the only way to get the MAC address of a Mi device I found is through the Mi Home app, AFTER connecting to WiFi which you cannot do not knowing the MAC address. Of course temporary switching off the MAC control on router helped.