Giter Site home page Giter Site logo

jghaanstra / com.xiaomi-miio Goto Github PK

View Code? Open in Web Editor NEW
446.0 16.0 81.0 17.29 MB

Homey app to control Mi Home devices that implement the miIO protocol and Xiaomi gateway child devices

License: GNU General Public License v3.0

JavaScript 63.06% HTML 36.94%
homey homeyapp xiaomi mihome mihomey miio zigbee gateway mi

com.xiaomi-miio's People

Contributors

apply3d avatar baskiers avatar jghaanstra avatar maxmudjon avatar notabene01 avatar sedrubal avatar slavikme avatar unsegnor avatar willian-zhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

com.xiaomi-miio's Issues

The db file is absent

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.

Mi Robot Vacuum Cleaner, Fan little bug

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

Add support for xiaomi gateway

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...

Power Strip does not work

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.

Roborock s50 will not take commands in v.2.8.3

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 :)

Feature Request: Change Brightness over Time - Yeelight

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

Support for Xiaomi Mi Plant

It would be great if you could add support for the Xiaomi Mi Plant device.

For example with the triggers:

  1. Plant X needs water.
  2. Plant Y needs fertilizer.

There's a existing library for the Mi Plant. Maybe you could use that one.

Thanks and great work! 😉

New version of miIO library

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!

No Sensor feedback (Air Purifier)

The temp, humidity and air quality index do not appear to work on the device card:

air1

Also, they layout is too large for the mobile app:

screenshot_20170609-190922

adding Philips light bulb error

i can't add Philips light bulb.
i have got an error: device.power is not a function.
IP and token are good.

what i do wrong? thanks

screen

Mi Robot Vacuum Cleaner, status bug

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.

Connection timeout for Mi Robot Vacuum Cleaner cards

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.

Yeelight status not reporting

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.

Stuttering when controlling temperature and color through the mobile app

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.

.

/

unable to connect to Gateway in another subnetwork

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.

token size differs

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

Dockning mi robot

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).

Xiaomi Home Update 2.8.3

When updated to 2.8.3, the roborock vacuumcleaner lost connection with homey.
When downgrading back to 2.8.0, it popped back up.

vacuum not working anymore

What do you mean with since new firmware ? If you don't update the firmware then you won't have a problem is it ?

Retreive token

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.

xiaomi_token

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?

Connect to xiaomi robot vacuum s50

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

  • change ip adr.
  • put http:// in front.
  • tryed get a new token by doing a reset of robot wifi and do evrything again.(got a different token then first time, is that normal?)
  • small and big letters in the token.

set it up like this in configuraton file
vacuum:

  • platform: xiaomi_miio
    host: 192.168.xxx.xxx
    token: 4755306265556e484e5543515079xxxx

runing out of ideas, hope you can help.

Get Token from roborock.vacuum.s5

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.

unbenannt

Firmware-Version: 3.3.9_001412

what do i wrong?

App constantly crashing

Every few days the app (installed via the store) keeps crashing. The only connected device is an air filter.

Error message:

Hi!

Unfortunately, the app crashed while I was doing the following:

(...)

This is the stack trace:

Too many memwarns received

Xiaomi Gateway

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 ?

hub ver. 3

problem: homey can't see aqara hub v3 (lumi-gateway-v3-miape04c)

Yeelight stays at around 50% brightness

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.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.