Comments (7)
Tried installing the app via CLI but no extra debug or other useful information produced.
from com.xiaomi-miio.
Fixed with d49e169
Will soon be published as new beta in the Athom app store but feel free to test it through CLI install.
from com.xiaomi-miio.
Would you be willing to test a new release. Due to an update of the miio library I had to rewrite all drivers including the air purifier and I'd like someone to test it that actually owns the device. The release can be found here: https://github.com/jghaanstra/com.xiaomi-miio/releases/tag/2.5.0
from com.xiaomi-miio.
@jghaanstra device setup fine as before, can switch it on\off via clicking on the card but not within the new mobile app (Can you change the power toggle to a button? It seems the new app doesn't support clicking the image icon?)
I've tested it from the web interface (running in flows) and via the old mobile app, no issues at all.
If I attempt to test a flow from the new app it crashes, taking out all other apps (No option to power on\off as mentioned above):
`node.js output:
2018-02-02 21:24:15 [log] [XiaomiMiioApp] Initializing Xiaomi Mi Home app ...
(node:1430) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: pm2_5 is not defined
(node:1430) [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:1430) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: invalid_type
(node:1430) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): ReferenceError: pm2_5 is not defined
(node:1430) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: invalid_type
/app.js:114
args.device.miio.setPower(false)
^
TypeError: Cannot read property 'miio' of undefined
at FlowCardAction.Homey.FlowCardAction.register.registerRunListener [as _runListener] (/app.js:114:29)
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 ()
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)
--- INFO: com.xiaomi-miio has been killed ---
Error from Homey log:
(node:1430) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: pm2_5 is not defined
(node:1430) [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:1430) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: invalid_type
(node:1430) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): ReferenceError: pm2_5 is not defined
(node:1430) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: invalid_type
/app.js:114
args.device.miio.setPower(false)
^
TypeError: Cannot read property 'miio' of undefined
at FlowCardAction.Homey.FlowCardAction.register.registerRunListener [as _runListener] (/app.js:114:29)
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 ()
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`
from com.xiaomi-miio.
Thanx for testing. It's good to hear the basic are working. This was a compete code overhaul.
The crash seems to be caused by something else other than the onoff capability, looking at the stack trace. I'll look into it later this weekend. It would be great if you could test it again by that time.
from com.xiaomi-miio.
I'm setting it to auto speed after switching on in the flow - I'll remove that and test again.
Let me know if you want me to test anything - happy to host some remote access if needed.
Edit:
Same issue with just switch on\off in the flow. Works 100% (Very responsive!) from the web interface or old android app but the new android app crashes miio instantly.
from com.xiaomi-miio.
@chinswain I dont think the crashes are related to the old or new mobile app. That was probably just a coincidence. I have made a little edit in the master branch and updated the release 2.5.0. Could you try again to see if this fixes the issue?
And you are right about the onoff capability. I'll have to switch that once the new mobile app becomes the standard one. For now I'll leave it in. Perhaps Athom will come with a backwards compatible solution.
https://github.com/jghaanstra/com.xiaomi-miio/releases/tag/2.5.0-v2
from com.xiaomi-miio.
Related Issues (20)
- Xiaomi smart humidifier unavailable HOT 1
- New Device Model: chuangmi.plug.m3 HOT 2
- New Device Support s7 max ultra (roborock.vacuum.a65) HOT 4
- Add more flow cards(set hunidity%, turn on/off light/sound etc.) in Homey for Smart Mi Antibacterial Humidifier JSQ5 HOT 14
- Incorrect fan speed values for Roborock S5 HOT 5
- Add more card for rockrobo.vacuum.v1 HOT 7
- Add model roborock.vacuum.a51 (Roborock S8) HOT 3
- New Device Model: Mi Smart Plug (WiFi) EU HOT 3
- Add Flowcard swepping, moppping or booth as option for dreame.vacuum.r2228o HOT 3
- New Device Model Xiaomi Robot Vacuum X10 (dreame.vacuum.r2209) HOT 11
- Dreame Vacuum cleaner - set Rooms for cleanings HOT 13
- Add support for xiaomi.airp.cpa4 HOT 1
- Add support for chuangmi.camera.ipc009 HOT 9
- Add support dreame.vacuum.p2114a HOT 1
- [Bug] Chuangmi Plug HMI206 Power Plug Switch not working HOT 1
- Add support for careli.fryer.maf10a HOT 2
- Xiaomi smart plug 2 HOT 2
- Xiaomi lightstrip HOT 2
- Add support for dreame.vacuum.r2232c (Dreame L10s Prime)
- Support for Mijia Smart Pet Food Feeder 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from com.xiaomi-miio.