jghaanstra / com.xiaomi-miio Goto Github PK
View Code? Open in Web Editor NEWHomey app to control Mi Home devices that implement the miIO protocol and Xiaomi gateway child devices
License: GNU General Public License v3.0
Homey app to control Mi Home devices that implement the miIO protocol and Xiaomi gateway child devices
License: GNU General Public License v3.0
Hi all.
I opened this folder but it's empty. I have root.
/data/data/com.xiaomi.smarthome/databases/
What can I do to make the database file created? Thanks.
Hi! Please add xiaomi Sherlock M1 Smart Lock device
If you set the fan speed trough homey card (fan speed) it keeps spinning like something needs to be executed, except it already is executed.
steps to repeat
-create a flow
-set fanspeed to silent or other
-run flow
-see that the card keeps spinning
Please add support for the xiaomi gateway.
the miio library has support for it. Even though we dont need the zigbee functions of it anymore since homey can do it directly, it still has some nice usable functions, like a speaker that can play alarms or doorbells etc, a light, and a luminance sensor...
Through the plug-in, turn off, but do not turn on.
Does not show the real status of the power strip.
Do not display consumption readings.
Two power strip without USB, firmware 1.2.4_58.
One power strip with USB, firmware 3.4.2._79.
Worked out fine with v.2.8.2 but not since last update. Flows do nothing and when I try to change the status of the mi robot in devices I get the following error message: "Something went wrong addressing device Mi Robot (Network communication is unavailable, device might be destroyed".
Device is certainly not destroyed :)
I've got this device: https://www.yeelight.com/en_US/product/mijia-lamp
The app does not find it using the 'Yeelights' driver. The ceiling light, which is connected to the same network is recognized.
Having moved from Hue to Yeelight, the one feature I miss is being able to change brightness over time.
I.e. use as wakeup (0-100% over 30mins) or use as preparing for bed (x% to 0% over 15mins)
Additionally, while I'm unsure of feasability) it would be great to be able to do the same transitions with colours (Red - Blue - Green) over 10mins
Help me please and repair
It now always shows a succesful connection even though it's not succesful.
It would be great if you could add support for the Xiaomi Mi Plant device.
For example with the triggers:
There's a existing library for the Mi Plant. Maybe you could use that one.
Thanks and great work! 😉
I've just added a Mi Air Purifier - on and off works but speed control does not.
Homey errors with "args not defined"
A new version of the miIO library with rewritten support for the old vacuum and added support for the new vacuum.
https://github.com/aholstenson/miio
Maybe the new releases could help bring back support for the old vacuum and add support for the new to this app? :)
I'm happy to help with testing!
hello i'm trying to get the token to install Xiaomi gateway
I'm using a iPad/imac
Any help..
The only way to do this seems to be to poll the device. This is unwanted.
Hello! Please add radio control to Gateway 2. Now works light control and light sensor
if you activate(stofzuigen) the Mi Robot vacuum cleaner it changes the status (thats ok), except if the app polls in between it gives again the old status (charging).
I think there needs to be a poll timout of +- 60sec (best gues) after changing the status with a flow or app, or ofcourse if there is a better solution.
what about Xiaomi Mijia Roborock Vacuum Cleaner 2 support ?
https://ru.aliexpress.com/item/Xiaomi-mijia-roborock-2/32839446159.html
Since Mi Robot firmware 3.3.9_003077 the Homey app seems to have trouble sending commands to the Mi Robot which according to some users time out.
Current implementation is live requests for all capabilities, possible solution could be polling the device and keeping track of its state. This would however increase the network traffic specially for a device that is only used once in a while.
Alternative could be to lengthen the request time out. This however effect the complete miio library.
Needs further research.
Homey: v1.5.12
Xiaomi Mi Home: v2.9.0
I've discovered that my Yeelights does not report status. If I turn off a bulb via Homey desktop app, it doesn't update it status in mobile app or vice versa. If I turn off a bulb via a flow, it does not update the bulbs status in neither app och desktop app. All commands work though.
This is probably caused because hue and saturation are set as separate values in a single HSV function for the Yeelights while the app has seperate listeners for hue and saturation. So when setting either one, the other is taken from the settings object which is at that same moment changing as well.
Hi!
Is it possible to add zonecleaning to the vacuume in Homey?
It works with HA according to the link below:
Would be great if I could set up a card and tell the Homey what coordinates it should vacuum.
Thanks =)
/
Hi,
I have put the Gateway v.3 in a guest wifi network different from Homey but with full access from Homey's network to the guest network. But it does not work to add the Gateway in Homey. I get the message: Could not connect to device, handshake timeout
When they were in the same subnetwork it worked fine, but I would like to isolate them from each other.
Hey,
using a dump from an iOS device the first weird thing was finding two sqllite files. One named as said in the tutorial for getting the tokens out of the app (_mihome.sqllite), one named 17xxxxx_mihome.sqllite.
Only the second database contains values - seems like it was copied after checking in a new device - and looking for the token I found a character string containing 96 chars.
I even splitted the string into strings of 32 chars but none of the strings were recognized by the vacuum cleaner I am trying to control.
Do I miss something important here? Any help appreciated.
Best regards
The log has been sent to the developer.
The unique log ID is: 663782b4-93a2-4c80-9c39-ad938327f921
Currently not even supported by the miio library and technical data needs to be retrieved from other Xiaomi libraries.
Roborock s50 won’t dock thru flowcard or manually thru homey v2 app. App not showing correct state of vacuum white docked (shows cleaning instead of docked).
Please add support for Xiaomi smartmi air humidifier 2
https://www.aliexpress.com/wholesale?catId=0&initiative_id=AS_20181011071521&isPremium=y&SearchText=xiaomi+smartmi+air+humidifier+2
This has not been implemented in the miio library yet so it requires a pull request.
When updated to 2.8.3, the roborock vacuumcleaner lost connection with homey.
When downgrading back to 2.8.0, it popped back up.
What do you mean with since new firmware ? If you don't update the firmware then you won't have a problem is it ?
Hi,
I´m a Homey user and have installed your Homey app Xiaomi Mi Home.
When adding a device I need a token and you have made an excelent description on how to retreive that token. Thanks!
Method one did not return a token, so I continued with method 3.
When excecuting the query from miio2.db to retreive the token, the query returns null.
During install of my Xiaomi Roborock, I updated the unit to latest firmware (3.3.9_001632). Could it be that there is an update of how the token is handeled?
Hello
i have a lot of truble conecting hass.io to the robot.
i have collected the token with packet sender. did it with 2 ligh bulb right after, no problem there.
here is some of the logs
It look like it is duing something right:
2018-09-05 22:25:57 INFO (MainThread) [homeassistant.components.vacuum.xiaomi_miio] Initializing with host 192.168.1.153 (token 72316...)
2018-09-05 22:25:57 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=vacuum, service=xiaomi_remote_control_start>
2018-09-05 22:25:57 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=vacuum, service=xiaomi_remote_control_stop>
2018-09-05 22:25:57 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=vacuum, service=xiaomi_remote_control_move>
2018-09-05 22:25:57 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=vacuum, service=xiaomi_remote_control_move_step>
But a litle later i got this:
2018-09-05 22:26:07 WARNING (MainThread) [homeassistant.components.vacuum] Setup of platform xiaomi_miio is taking over 10 seconds.
2018-09-05 22:26:18 ERROR (SyncWorker_3) [miio.device] Got error when receiving: timed out
2018-09-05 22:26:18 WARNING (SyncWorker_3) [homeassistant.components.vacuum.xiaomi_miio] Got exception while fetching the state: No response from the device
things i have tryed
set it up like this in configuraton file
vacuum:
runing out of ideas, hope you can help.
Hi there,
i dont get the Token from my "roborock.vacuum.s5", i tried it frist over Packet sender.
From Packet Sender i get:
Hex: 21 31 00 20 00 00 00 00 04 EF EA 79 00 00 03 41 34 49 42 4C 55 46 4C 33 7A 6E 71 47 4E 77 4A 44
ASC: !1\00 \00\00\00\00\04\ef\eay\00\00\03A4IBLUFL3znqGNwJD
i tried with the python-mirobo both the last 32 charaters without succes.
Then i tried it over extracting from the App make all steps but the field "Token" is Empty,
the Control over the App works fine.
Firmware-Version: 3.3.9_001412
what do i wrong?
Every few days the app (installed via the store) keeps crashing. The only connected device is an air filter.
Hi!
Unfortunately, the app crashed while I was doing the following:
(...)
This is the stack trace:
Too many memwarns received
Hey,
Just to be sure, would this work?
Add support for powerstrip and power socket
Hello,
Ive managed to connect the gateway with Homey. I Thought one of the advantages of the gateway is the function as a amplifier, when the signals are poor. With the developer tool i don't recognize the gateway in the loops of the other sensors. Can you explain why and what can i furthermore do with this gateway ?
RE: App Store comment
Homey thinks there are Hue/Sat controls, but this light doesn't support them.
Also the temperature is out of range. In the warmest regions, the temperature is not applied.
The documentation in https://github.com/jghaanstra/com.xiaomi-miio/blob/master/docs/obtain_token.md
states the following path:
/var/mobile/Containers/Data/Application/514106F3-C854-45E9-A45C-119CB4FFC235/Documents/USERID_mihome.sqlite
for the database.
However the UUID is also different on every installation and device. It would be better if there was a note stating that besides the path.
Thanks in advance
problem: homey can't see aqara hub v3 (lumi-gateway-v3-miape04c)
Hi!
I have an issue with the dim level of my Yeelight when I want to change it via a flow.
Scenario:
Motion Sensor goes off -> Time is between 00:00 and 06:00 (and sun is down) -> Set brightness to 5% (also tried other variables) -> Set color 'red' -> Send IFTTT (this is because I had an issue with the light being offline, so it's for backup).
What happens is:
Motion sensor goes off -> Light goes on in the color red at around 50% brightness -> the IFTTT trigger fires a few seconds later because of delay since it needs to send it to the internet -> Brightness changes to the correct value.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.