This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed Official
[APP] Xiaomi Mi Home (supports Yeelights and Mi Home WiFi devices)
This discussion has been closed.
Comments
I finally get out some tokens from the Mi Home App, 4 of them. 1 must be that power strip. But it's an encrypted 96 character token. I still have to figure out how to decrypt them. For the normal (not ICT user) this is just no option lol. I even have difficulties figuring this out.
Hit the decrypt button. Your token are the first two lines of the right block of code. These two lines should contain a token of 32 characters. I have never tried this before as I dont own any Apple stuff but I seen other people confirm this works. Would be nice to know so I can add it to the docs.
Anyway, i found the right token, because if i test the connection to the Powerstrip i get a different error (instead of the time out): "Cannot read property "toUpperCase" of undefined".
Latest version - 2018-01-07 -- v2.4.1
Phuturist: is there some way I can help with the modes for the Mi Air Purifier (2)?
Right now only on/off/auto/silent work, as others have mentioned. The one setting that should really work is "Favorite". With that you can set the speed once using the app and just go back to it later using your app
I am willing to do some troubleshooting, but I am not a coder. I do work in IT
If need be I can even drop by with the device to do some testing (depending on where you live that could take a while).
I will try to implement favorites for the Air Purifier in the next release of the app. It looks like the documentation I have used to built the app is not correct and that it should be possible to set the mode to favorite. I'll also add a card that will allow you set the speed of the favorite mode.
The favorite mode would be sweet!
Latest version - 2018-01-17 - 2.4.2
Latest version - 2018-01-18 -- v2.4.3
I'd really like to see some people that can test one of these devices and report back. I cant test any of these devices myself and would like to have some feedback before I push it to the app store.
has anyone worked out a way to achieve activating the night mode (or dimming this low?)
Edit: Should have read the docs, set_power has an optional 3rd parameter:
0: Normal turn on operation (default value)
1: Turn on and switch to CT mode.
2: Turn on and switch to RGB mode.
3: Turn on and switch to HSV mode.
4: Turn on and switch to color flow mode.
5: Turn on and switch to Night light mode. (Ceiling light only).
{"id":1,"method":"set_power","params":["on","smooth",500,5]}
Any chance you could add an "enable night mode" card for us lazy people
Do you think it would be better to add the ceiling light as a separate device? I think it would help to remove the RGB stuff from the device control and cards.
(node:19281) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: reject is not defined
(node:19281) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:19281) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): ReferenceError: reject is not defined
/app.js:103
args.device.miio.setPower(true)
^
TypeError: Cannot read property 'setPower' of undefined
at FlowCardAction.Homey.FlowCardAction.register.registerRunListener [as _runListener] (/app.js:103:34)
at FlowCardAction._onRun (/opt/homey-client/system/manager/ManagerApps/bootstrap/sdk/v2/lib/FlowCard.js:1:1191)
at emitThree (events.js:136:13)
at FlowCardAction.emit (events.js:217:7)
at ManagerFlow._onRun (/opt/homey-client/system/manager/ManagerApps/bootstrap/sdk/v2/manager/flow.js:1:2274)
at _eventListeners.filter.forEach.t (/opt/homey-client/system/manager/ManagerApps/bootstrap/sdk/v2/lib/HomeyClient.js:1:1219)
at Array.forEach (<anonymous>)
at HomeyClient._onMessage (/opt/homey-client/system/manager/ManagerApps/bootstrap/sdk/v2/lib/HomeyClient.js:1:1196)
at emitTwo (events.js:126:13)
at process.emit (events.js:214:7)
Exit code: 1
Exit signal: null
[edit]
I have pushed another edit to GitHub, could you test it. It's in the master branch and this release: https://github.com/jghaanstra/com.xiaomi-miio/releases/tag/2.5.0-v4
It would be great if you could use 'athom project --run' to see if there is debug logging.
Latest version - 2018-02-05 -- v2.5.1 (beta)
trying to add the wifi power plug, have discovered the token using miio,
but when adding it in settings it says "Cannot read property 'toUpperCase' of undefined"
so looks like the conversion of the token to uppercase is going wrong?