Tried to add this as an Xiaomi Plug and was re-directed to Xiaomi Gateway (Aqara) which in turn says I need to:
From here you will be able to retrieve the key (password) from within the app following this tutorial.
Unfortunately the tutorial does not seem to apply.
I’m thinking this is not the zigbee version? (It’s working fine in my mi home app)
I had to do some changes in my network and because of that my Plug was reset … so new token
I followed all this steps (which actually i did some time ago when I started with this) and the token is no longer showing for any of my plugs. The tool is reporting no Token, the SQLite DB is not storing anything.
I had another phone with the v5.0.19. Just tested it there and directly saw the token.
reading other forums looks like the latest update, the gateway is no longer looking at that in the database (so the field is empty) but is checking onver internet.
Using a file explorer, find the sqlite file at apps/com.xiaomi.smarthome/db/miio2.db or /data/data/com.xiaomi.smarthome/databases/miio2.db (root needed) and move it to your computer
Read the file with sqliteonline.com with the following command: SELECT name,token FROM devicerecord;
Xiaomi app running v5.8.7 with aqara 2 hub firmware 1.4.1_176.0220 with 29 devices connected.
I have 4 new wifi switches which haven’t been connected yet.
Installed the apk which installs as version v5.0.18 from @bokub on another phone.
After sign in to china location from my existing setup only my temp sensors show up none of my other sensor types or mi hub.
I have put wifi switch into pairing mode and tried to add to the mi app v5.0.18 using the scan function with bluetooth and location enabled but nothing is found.
At a guess I would say the aqara hub which is using the latest firmware is not backwards compatible with the older version of the app.
I think I am just going to bin the plugs, my trouble than they are worth.
Then I went into integrations and add an integration.
I’ve added xiaomi_miio and when I type the IP and token it adds it (I even tested, by changing the token delieberately incorrect and it fails)
So once I’ve successfully added the the miio integration it forces me to add it as a gateway (??) not a switch? This makes no sense to me.
So home assistant sees the IP sees the token, recognises both but it doesn’t show a ‘switch entity’
What am I doing wrong?
I can even turn the switch on and off in the Xiaomi Mi Home app (Which I hate having installed, but I digress)
What do Ineed to change?
Oh and the part# is ZNCZ02CM
I also have the aquara gateway, I’m wondering if the 2 are conflicting with one and other?
Has anyone got this wifi only plug working? OP?
“2021-02-06 08:36:13 ERROR (SyncWorker_0) [homeassistant.util.yaml.loader] while scanning for the next token
found character ‘\t’ that cannot start any token
in “/config/configuration.yaml”, line 23, column 1
2021-02-06 08:36:13 ERROR (MainThread) [homeassistant.bootstrap] Failed to parse configuration.yaml: while scanning for the next token
found character ‘\t’ that cannot start any token
in “/config/configuration.yaml”, line 23, column 1. Activating safe mode”
I don’t understand, I followed these instructions.
Right near the bottom of the page.
CONFIGURATION
To add a plug to your installation, add the following to your configuration.yaml file:
UPDATEto help others
That fault is due to using a TAB not spaces in the YAML file.
However, my switch still isn’t working, even though it reboots with no errors.
Any idea how to add switch