-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Child lock and Filter life don't work in 2H and Pro H #229
Comments
I need some volunteers to test 2* and Pro devices. I don't own those devices, so it's tough for me to test. |
Thanks, @luluhoc. Can you please share the output of the following code snippet? require('miio')
.device({
address: "?.?.?.?",
token: "YOUR_TOKEN",
})
.then(console.log); It should output something like:
|
@torifat, this is the output of my device. Looks like my device is Air Purifier 2. I thought it was 2H. Sorry for the misinformation.
|
Thank you, this will help me a lot. |
@torifat This is the 2S:
(edit: relevant to #10) |
@cbrunnkvist 2* & 3* devices use different method and property names. In my fork, I'm trying to make them same. For example this - torifat/miio@856110e. However, my end goal is to move to https://github.com/maxinminax/node-mihome. |
I will give you later, I can open another PR if you want i can leave your old properties and just add conditional if model is PRO also check this out this guy listed all properties https://github.com/syssi/xiaomi_airpurifier |
Can you folks try the new version
@luluhoc Thanks, but I don't actually need those. Xiaomi has an official API that gives you those. I'm asking you folks to run it to see what |
I will try it later when I'll get home from work :) |
@torifat Thanks for your effort. But when Fan speed is enabled and I'm trying to adjust the fan speed in Home app, I get the following errors:
When Child Lock is enabled and switched on or off in Home app, I get the following errors:
|
Thanks @guesq, that's quite helpful. I will fix both of those issues soon. |
Confirmed on 2S it doesn't spam logs anymore now 👍 , also power switch works fine. And if I enable speed control, it logs the same exception as @guesq's on changing its value:
|
An observation: at first sight it is a little bit ambiguous as to what should actually happen when you adjust Fan Speed because in the Mi Home app, (-for the 2S at least-), in two ( In the (Apple-)Home app however, the slider is shown all the time. However, in the other older plugins, while the Fan Speed is always visible, touching actually has the side effect of instantly throwing the device into Manual mode, which actually makes a lot of sense then. 🙂 |
@guesq and @cbrunnkvist I just released a new version |
@torifat Tested. While adjusting Fan Speed, the following messages show in logs:
While Child Lock is switched, the following messages show in logs:
|
Still 2.0.1 listed as the newest version in Hoobs! Now it was showing up in Hoobs, 2.0.2 installed. Now it don’t even show the Fan speed control in HomeKit even if it is on in Hoobs. 🤔 |
|
First of all, a big thank you very much for this. MiioDevice { |
Child lock and Filter life don't work in 2H and Pro H. They throw
Cannot read properties of undefined (reading 'value')
.Version is
homebridge-xiaomi-mi-air-purifier
v2.0.0
NPM 8.1.4
Node 16.13
Affected Devices
Reported by @Dane03 in #226 (comment)
Reported by @guesq in #226 (comment)
The text was updated successfully, but these errors were encountered: