does this binding also work with Xiaomi LED Smart Table Lamp Dimming Reading Light? That would be really great as i want to avoid using the cloud for controlling it.
Dear Marcel,
Have you had some time to look into my items and sitemap?
In the meantime I found that Paper UI “Discovered Xiaomi Mi IO Device”. That is strange because I did add both devices already and have them on the Configuration/Things list (vacuum and air purifier).
Edit 1. I think I found the problem. I can see double entries in Paper UI/Control. It is most likely due to that I did pick “Item linking” “Simple Mode”. I did turn OFF this feature but I’m not sure how to remove double entries.
Edit 2. I did turn OFF “Item linking”. I removed xiaomi vacuum part from .items. Removed Thing. Discovered Thing again. Token. Add xiaomi vacuum part to .items and buttons are working great.
Thank you for your work. I wish you could edit sitemap buttons as they don’t fit on cell phone. “Vacuum Control” is on top of “Vacuum” button. The same for the Fan buttons.
Yes, the current binding allows to control the Xiaomi LED Smart Table Lamp Dimming Reading Light.
Not all functionality is yet fully supported, but in the making.
Great that you got it fixed.
The double discovery is still indeed happening. This because there are 2 different methods that these devices can be found. Some (most) devices support both ways. The discovery is not yet aware that the other method already found the thing, hence the chance for double discovery of the same device
Ive noticed that the vac when off the dock goes to sleep with no light - perhaps I could move it forward and undock it at the DND time and then redock it when it ends - @marcel_verpaalen do you have an example of the command needed for app_rc_move I can’t work out the syntax needed for the command channel
@joq3 the binding accepts the 96 char IOS token.
No need to decrypt is maually.
If you want to see the decrypted token, run the binding with debug. It will show the decrypted token.
Hi marcel, problem is that I am using Home Assistant, and I don’t think this one is accepted. Because I cannot make it work. Would you be able to help me decrypt it? Can I send you my token somewhere?
However my challenge was to get the token as an Apple/iOS user having regisered the mi robot vacuum cleaner already at that iOS App, which i want to keep as a fallback.
For all other who have same problem and do not want to buy the ibackup tool, the following tool iBackupBot is a free alternative. iBackupBot can be downloaded from: http://www.icopybot.com/itunes-backup-manager.htm
After backup is loaded, klick on “Apps” at bottom
Use search function and do a search “Xiaomi”
Klick on: xom.xiaomi.mihome -> Documents -> 17465…mihome.sqlite
RichtClick: Export file
Now continue with instructions from following description (start at section iOS)
8. Install DB Browser for SQLite.
9. Open DB Browser and load the .sqlite file you saved from your backup.
10. Click on the Execute SQL tab.
11. Input and run this query: SELECT ZTOKEN FROM ZDEVICE WHERE ZNAME = "Mi Robot"
12. Copy token your clipboard
Yes, what I mean is when you enter your 96 byte long IOS code in Openhab thing configuration. Than look a the log, the token you see is the decrypted (32 byte) token that will be usable in the other tools as well.
Thanks for the effort building this Binding. With all the good examples it tooks only a few minutes to be up running.
Added Alexa command to start and stop vacuum. Should be easy to add other tasks aswell.
Switch VacuumVirtual "StartVacuum" ["Lighting"]
and a quick rule for the test.
rule "VacuumStart"
when
Item VacuumVirtual received command
then
if(receivedCommand==ON){
sendCommand(actionControl,"vacuum")
}
else { sendCommand(actionControl,"dock")}
end
discoved the new Switch in Alexa, and added a Group “Vacuum Livingroom” that triggers the StartVacuum
Alexa Turn on Vacuum Livingroom — or Alexa Start Vacuum Livingroom
You dont even need to go to that much trouble - just use the vacuum channel - it does what your rule is doing already all you need to do is add the [“Switchable”] syntax
rule "Mi Robot saugen"
when
Item StartVacuum changed from OFF to ON
then
sendCommand(MiRobotAction,"vacuum")
sendCommand(StartVacuum, OFF)
end
I’ve decided for “Switchable” instead of “Ligthing” because Homekit looks better with the switch.
Since the switch is always active when the command is executed, I had to put it back to OFF sometime.
To make no second rule, I inserted it right after the command.