Comments (10)
@Dane03 @guesq seems like you folks are having a different problem. So I will create a separate issue for this. In the worse case, I can automatically disable
filter_life
andchild_lock
for 2H and Pro H.@guesq did you try to turn them off in settings before commenting out the code?
@torifat Thanks for your reply.
I'm using Xiaomi Air Purifier 2H. This is my settings:
I did not turn Child Lock on and only got the errors about Filter Life Level and Filter Change Indication. So I just commented out the lines with filter_life
property. I also tested turning on Child Lock and got the errors about Lock Physical Controls.
from xiaomi-mi-air-purifier.
Can you please share your version of homebridge-xiaomi-mi-air-purifier
?
from xiaomi-mi-air-purifier.
I got the error like this: How to fix it?
[11/18/2021, 11:12:58 PM] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: device.power is not a function. See https://git.io/JtMGR for more info.
[Removed rest of the log because they don't provide any additional value. - Rifat]
I have the same problem!
from xiaomi-mi-air-purifier.
@Csehla your issue is similar to #223
from xiaomi-mi-air-purifier.
@torifat Thanks for your effort here.
I am constantly getting errors like
20/11/2021, 19:08:09] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Lock Physical Controls': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'value'). See https://git.io/JtMGR for more info.
[20/11/2021, 19:08:09] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Life Level': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'value'). See https://git.io/JtMGR for more info.
[20/11/2021, 19:08:09] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Change Indication': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'value'). See https://git.io/JtMGR for more info.
Version is homebridge-xiaomi-mi-air-purifier v2.0.0
NPM 8.1.4
Node 16.13
Using Xiaomi Air Purifier 2h and Pro H
from xiaomi-mi-air-purifier.
@torifat Thanks for your effort here. I am constantly getting errors like
20/11/2021, 19:08:09] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Lock Physical Controls': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'value'). See https://git.io/JtMGR for more info. [20/11/2021, 19:08:09] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Life Level': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'value'). See https://git.io/JtMGR for more info. [20/11/2021, 19:08:09] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Change Indication': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'value'). See https://git.io/JtMGR for more info.
Version is homebridge-xiaomi-mi-air-purifier v2.0.0 NPM 8.1.4 Node 16.13
Using Xiaomi Air Purifier 2h and Pro H
Same here.
I find the values of property filter_life
and child_lock
are undefined.
So I comment these lines out for now, then return some determined values and these errors are gone. There might be something wrong with getting these properties values.
from xiaomi-mi-air-purifier.
@Dane03 @guesq seems like you folks are having a different problem. So I will create a separate issue for this. In the worse case, I can automatically disable filter_life
and child_lock
for 2H and Pro H.
@guesq did you try to turn them off in settings before commenting out the code?
from xiaomi-mi-air-purifier.
@guesq Ah! thank you. My bad! It's filter_life
and not Air Quality. Also, thanks for confirming that the setting works for Child Lock.
from xiaomi-mi-air-purifier.
made a pull request fixing this bug
from xiaomi-mi-air-purifier.
Closing this in favour of #229
from xiaomi-mi-air-purifier.
Related Issues (20)
- Issue with parental lock in homekit
- No Support for XIAOMI Smart Air Purifier 4 Pro HOT 7
- Mi Air Purifier 3H does not respond anymore
- Add device support for zhimi.airpurifier.v7
- 2s not able to change speed and always set to Auto when switch on
- Plugin not working anymore HOT 5
- Mi Air Purifier MAX2 does not connect
- Deprecation of device.changeFanSpeed HOT 3
- Ability to configure air quality ranges HOT 1
- Device not responding in Homekit
- Unresponsive 4 lite ……, I hope you fix the error as soon as possible thank you
- Mi 3H
- Impossible to control my Mi Air Purifier 2S
- The plugin not working at all
- Is this abandoned? HOT 1
- Mi air purifier 3C HOT 1
- Disable switches (silent, etc)
- Update to support new models HOT 2
- Logs say that "this plugin slows down Homebridge... Please check that you properly call the callback!" HOT 3
- Since update last month the Ai Purifier Pro switches to Auto by itself after some time
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 xiaomi-mi-air-purifier.